
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: -40px;
    font-size: 10px;
    overflow: visible; /* Ensures dropdown can extend */
    z-index: 1; /* Lower z-index to keep other things behind */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 130px; /* Minimum width */
    max-width: 100%; /* Prevents it from overflowing the parent */
    max-height: 110px; /* Fits 4 items at a time */
    overflow-y: auto; /* Enables smooth scrolling */
    border: 1px solid #ccc;
    border-top: none;
    outline: none;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    appearance: none;
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    z-index: 999; /* Higher z-index to bring dropdown to the front */
}

/* Hide scrollbar */
.dropdown-content::-webkit-scrollbar {
    display: none;
}

.dropdown-content div {
    font-size: 12px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease-in-out;
    height: 40px; /* Fixed height for consistent display */
    display: flex;
    align-items: center;
    white-space: nowrap; /* Ensures text remains in a single line */
}

.dropdown-content div:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block; /* Shows the dropdown when hovering over the parent */
}




.social-icons {
    display: flex;
    padding: 0;
    margin: 0;
}

.social-icons li {
    margin-right: 10px; /* Optional: add space between the images */
}

.social-icons img {
    width: 30px; /* Adjust the size of the images */
    height: auto;
}

/* Media query for screen sizes below 400px */
@media (max-width: 400px) {
    .social-icons {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: center; /* Optional: center them horizontally */
    }

    .social-icons li {
        margin-right: 10px;
    }
}

@media only screen and (max-width: 768px) {
    .formblock1 .dropdown input[type="text"] {
        padding-left: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-top: 5px;
    }

}

@media (max-width: 768px) {
    #mobileFooterMenu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease; /* For smooth animation */
    }

    /* This class will be added/removed via JavaScript */
    #mobileFooterMenu.keyboard-open {
        transform: translateY(100%); /* Slide it out of view */
    }
}



@media (min-width: 992px) { /* Large screens only */
    .large-2.small-6.cell.formblock {
        max-width: 135px; /* Adjust width if required */
    }
    .large-3.small-12.cell.formblock {
        max-width: 168px; /* Adjust width if required */
    }
}

/* Only affects this specific set of 3 blocks */
.mobile-row-specific {
    display: flex;
    flex-wrap: wrap; /* wrap if needed */
    gap: 5px; /* space between items */
}

.mobile-row-specific .formblock {
    flex: 1 1 30%; /* each block ~1/3 of container */
    min-width: 100px; /* optional: prevent shrinking too much */
}

/* Optional: adjust input/select size on small screens */
@media (max-width: 480px) {
    .mobile-row-specific .formblock input,
    .mobile-row-specific .formblock select {
        font-size: 14px;
        padding: 5px;
    }
}



  .tag-best-rated {
  position: absolute;
  bottom: 45px;   /* 🔥 move up */
  right: 10px;
  background: black;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  z-index: 2;
}


.card-img-box {
  position: relative; 
  width: 100%;
  height: 220px;
  margin: 0;
  padding: 0;
  overflow: hidden; /* ensures no extra space */
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops instead of stretching */
  display: block;    /* removes inline gap */
  border-radius: 10px 10px 0 0;
  margin: 0;
  padding: 0;
}
.offer-explore {
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes them apart */
  margin-top: 10px;
}

.text-color {
  color: #e63946;   /* red offer color */
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.explore-btn {
  width: 42px;
  height: 42px;
  border-radius: 5%;
  background: #ffffffff;
  color: #000000ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  border:1px solid black;
}

.explore-btn:hover {
  background: #444;
}

    .btn-toggle {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 8px;
    cursor: pointer;
}

.btn-toggle:hover {
    background: #eaeaea;
}

.btn-toggle.active {
    background: #010101ff;
    border-color: #000000ff;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.home-slider .item {
    position: relative;
    width: 100%;
    height:100%;   /* ✅ Fixed height for all devices */
}

.home-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* fills image nicely */
    display: block;
}


@media (max-width: 768px) {
    .home-slider .item {
        height: 100%;
    }
}

.home-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* STOP PAGE FROM SCROLLING HORIZONTALLY */


/* =========================================
   GLOBAL RESET – STOP HORIZONTAL SCROLL
========================================= */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

/* Prevent any element from pushing page width */
* {
    box-sizing: border-box;
}



.grid-x {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* =========================================
   OWL CAROUSEL FIX (MAJOR CAUSE)
========================================= */
.owl-carousel {
    width: 100% !important;
    overflow: hidden !important;
}

.owl-stage-outer {
    overflow: hidden !important;
}

/* Prevent owl items from stretching page */
.owl-item {
    max-width: 100%;
}

/* =========================================
   VILLA FILTER SCROLLER – ONLY THIS SCROLLS
========================================= */
.villa-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;

    width: 100% !important;
    max-width: 100vw !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;

    padding: 8px 10px;
    margin: 15px 0;

    scrollbar-width: none;
}

/* Hide scrollbar */
.villa-filters::-webkit-scrollbar {
    display: none;
}

/* Filter Buttons */
.villa-filters .btn-toggle {
    flex: 0 0 auto;
    white-space: nowrap;

    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;

    border: 1px solid #ddd;
    background: #fff;
    color: #333;

    cursor: pointer;
    transition: all 0.3s ease;
}

.villa-filters .btn-toggle.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* =========================================
   CARD IMAGE FIX – PREVENT OVERFLOW
========================================= */
.card,
.card-img-box,
.img-container {
    width: 100%;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   MOBILE FOOTER SAFETY
========================================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }

    #mobileFooterMenu {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }
}

/* =========================================
   DROPDOWNS – NO PAGE PUSH
========================================= */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    position: absolute;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    overflow-x: hidden;
    z-index: 999;
}




