/* filters ------------------------------------------------------------------------------------- */
.filters-main {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
}

/* DEFAULT = DESKTOP */
#filters {
    display: flex;
    width: 100%;
    overflow-x: scroll;
    align-items: center;
    height: 90px;              /* 🖥️ Desktop */
    position: relative;
    margin: 5px 2px 0px 2px;
}

/* MOBILE */
@media (max-width: 768px) {
    #filters {
        height: 48px;          /* 📱 Mobile */
    }
}




#filters > a {
    margin: 0px 1.25rem;
    text-decoration: none;
}

@media (max-width:768px) {
    #filters > a {
        margin: 0px .95rem;
    }
}

@media (max-width:425px) {
    #filters > a {
        margin: 0px .65rem;
    }
}

#slideButton {
    cursor: pointer;
    position: sticky;
    background-color: rgb(128, 128, 128);
    color: rgb(255, 255, 255);
    height: 1.75rem;
    width: 1.75rem;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    padding: 10px;
    z-index: 100;
    transition: all .2s ease-out;
}

#slideButton:active {
    transform: scale(1.2);
    background-color: black;
}

#slideButton > i {
    font-size: 1rem;
}

.left_img_button {
    left: 0px;
}

.right_img_button {
    right: 0px;
}

#filters::-webkit-scrollbar {
    display: none;
}

.filter {
    text-align: center;
    margin-right: 0rem;
    margin-top: 1rem;
    opacity: 0.6;
    transition: 150ms ease-in-out all;
}

.filter:hover {
    opacity: 1 !important;
    border-bottom: 2.5px solid rgba(66, 63, 63, 0.679) !important;
    transform: scale(1.05) !important;
    transition: 150ms ease all;
}

.selectedFilter {
    opacity: 1;
    border-bottom: 2.5px solid #000;
}

.tax-info {
    display: none;
}
.tax-underline{
    text-decoration: underline;
}

.price-info {
    display: inline;
}

.tax-toggle {
    border: .5px solid rgba(128, 128, 128, 0.503);
    border-radius: 12px;
    height: 3rem;
    min-width: 300px;
    width: fit-content !important;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
    font-weight: 500;
}

.tax-toggle:hover {
    border: 1px solid black;
}

.tax-filter {
    justify-self: flex-end;
    min-width: 280px;
}

.tax-sticky-sticky {
    position: relative;
    top: -2px;
}

.tax-switch:checked {
    height: 23px;
    background-color: black;
}

.form-check-input {
    height: 23px;
    width: 2.3rem !important;
    margin-left: 5px !important;
}

.form-switch .form-check-input {
    transition: background-position .25s ease-in-out;

}

.tax-sticky {
    display: none;
}

.tax-filter-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px auto;
    min-width: 100px;
}

.tax-filter-icon-small {
    display: none;
}

.filter > p {
    display: -block;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.7rem;
    color: black;
}

@media (max-width: 767px) {
    .tax-toggle {
        display: block;
        position: sticky !important;
        top: calc(8rem - .5px) !important;
        z-index: 15;
        margin: 0px auto !important;
        padding: 0.6rem 2rem 1rem 0rem;
        border: .5px solid rgba(128, 128, 128, 0.703);
    }
    .tax-filter {
        display: none;
    }

    .tax-filter-icon {
        display: none;
    }

    .tax-filter-icon-small {
        min-width: 35px;
        padding-left: 18px;
        padding-top: 12px;
        margin: 25px 0px !important;
        display: block;
    }
}


/* <-  new style for price , buttons  -> */

/* ===============================
   CATEGORY BUTTONS (LEFT SIDE)
   Farmhouses & Stays / Hotel & Resorts
   =============================== */

#filters {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 18px;
}

#filters a {
  text-decoration: none;
  color: #111;
}

#filters .filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
}

/* underline on hover */
#filters .filter::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: width 0.25s ease;
}

#filters .filter:hover::after {
  width: 100%;
}

/* active look (optional future use) */
#filters .filter.active::after {
  width: 100%;
}

#filters .filter p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}


/* ===============================
   DOZZY STYLE FILTER BUTTONS
   All BHK / All Prices / Sort / Clear
   =============================== */

.dozzy-index-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* common pill button */
.filter-btn,
.clear-filter {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover effect */
.filter-btn:hover,
.clear-filter:hover {
  border-color: #000;
}

/* active (clicked) state */
.filter-btn.active {
  border: 2px solid #000;
  padding: 7px 15px;
}

/* Clear filter same look as others */
.clear-filter {
  color: #111;
}


/* ===============================
   DROPDOWN MENU
   =============================== */

.filter-dd {
  position: relative;
}





/* show dropdown (JS will toggle this class) */

.filter-dd {
  position: relative;
}






.filter-menu.show {
  display: block;
}



.filter-menu li:hover {
  background: #f5f5f5;
}
/* ===== DOZZY DROPDOWN FIX ===== */

.filters-main {
    overflow: visible !important;
}

#filters {
    overflow: visible !important;
}

/* Right side buttons */
.dozzy-index-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* PUSH TO RIGHT */
    position: relative;
}

/* Button style (same as navbar) */
.filter-btn,
.clear-filter {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
}

/* REMOVE underline on Clear All Filters */
.clear-filter {
    text-decoration: none !important;
}
.clear-filter:hover {
    text-decoration: none !important;
    border-color: #000;
}

/* Dropdown container */
.filter-dd {
    position: relative;
}



/* Show dropdown */
.filter-dd.active .filter-menu {
    display: block;
}





/* ================= MOBILE FILTER FIX ================= */
@media (max-width: 768px) {

  /* Hide desktop inline filters */
  .dozzy-index-filters {
    display: none !important;
  }

  /* Mobile filter panel */
  .mobile-filter-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 20px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .mobile-filter-panel.active {
    right: 0;
  }

  .mobile-filter-panel h4 {
    margin-bottom: 15px;
    font-size: 18px;
  }

  .mobile-filter-panel .filter-dd,
  .mobile-filter-panel .clear-filter {
    margin-bottom: 15px;
    width: 100%;
  }

  .mobile-filter-panel button {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 500;
  }

  .mobile-filter-panel ul {
    display: none;
    margin-top: 10px;
    padding-left: 0;
  }

  .mobile-filter-panel ul li {
    list-style: none;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
  }

  .mobile-filter-panel ul li:last-child {
    border-bottom: none;
  }

}
.filter {
    opacity: 0.6;
}

.filter:hover {
    opacity: 1;
    border-bottom: 2.5px solid rgba(66, 63, 63, 0.679);
    transform: scale(1.05);
}

.selectedFilter {
    opacity: 1;
    border-bottom: 2.5px solid #000;
}

/* ===== FIX: REMOVE DEFAULT UNDERLINE FROM HOMESTAY ===== */

/* By default no underline */
#filters .filter::after {
  width: 0 !important;
}

/* Only show underline on hover */
#filters .filter:hover::after {
  width: 100% !important;
}

/* Remove border-bottom based underline */
.filter {
  border-bottom: none !important;
}

/* Hover underline only */
.filter:hover {
  border-bottom: none !important;
}

/* Selected ONLY when class added manually */
.filter.selectedFilter::after,
.filter.active::after {
  width: 100% !important;
}

/* Make text color same */
#filters .filter p {
  color: #111;
  font-weight: 500;
}

/* Remove accidental opacity difference */
.filter {
  opacity: 0.7;
}
.filter:hover,
.filter.selectedFilter {
  opacity: 1;
}


/* ================= CRAZY DATE SELECT ================= */

#openCalendar {
  width: 100%;
  height: 58px;

  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);

  border-radius: 16px;
  border: 2px solid transparent;

  background-image:
    linear-gradient(rgba(15,23,42,0.8), rgba(15,23,42,0.8)),
    linear-gradient(120deg, #22d3ee, #6366f1, #ec4899);

  background-origin: border-box;
  background-clip: padding-box, border-box;

  color: #e5e7eb;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  cursor: pointer;
  position: relative;
  overflow: hidden;

  box-shadow:
    0 0 0 rgba(99,102,241,0.0),
    0 10px 30px rgba(0,0,0,0.35);

  transition: all 0.35s ease;
}

/* ICON */
#openCalendar::before {
  content: "";
  font-size: 18px;
}

/* GLOW EFFECT */
#openCalendar::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, #22d3ee, #6366f1, #ec4899);
  filter: blur(20px);
  opacity: 0.35;
  z-index: -1;
  animation: glowPulse 2.5s infinite ease-in-out;
}

/* HOVER = POWER */
#openCalendar:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 20px rgba(99,102,241,0.6),
    0 18px 45px rgba(0,0,0,0.45);
}

/* CLICK */
#openCalendar:active {
  transform: scale(0.98);
}

/* GLOW ANIMATION */
@keyframes glowPulse {
  0%   { opacity: 0.25; }
  50%  { opacity: 0.6; }
  100% { opacity: 0.25; }
}

/* MOBILE TUNE */
@media (max-width: 576px) {
  #openCalendar {
    height: 54px;
    font-size: 15px;
  }
}


/* ================= DATE PICKER MODERN UI ================= */

.date-input-wrapper {
  position: relative;
  margin-top: 14px;
}

.date-input-wrapper input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 44px;
  border-radius: 14px;
  border: 2px solid #2563eb;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  outline: none;
}

.date-input-wrapper input:focus {
  border-color: #1d4ed8;
}

/* calendar icon */
.date-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
}

/* ================= FIX FLATPICKR BREAK ================= */

/* force calendar inside overlay */
.flatpickr-calendar {
  margin: 12px auto !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important;
}

/* prevent overflow cut */
#calendarOverlay {
  overflow-y: auto;
}

/* two months spacing fix */
.flatpickr-innerContainer {
  justify-content: center !important;
}

/* mobile spacing */
@media (max-width: 768px) {
  .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* ===== TOP CATEGORY TABS (EXACT MATCH) ===== */

.top-category-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 14px 16px 6px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

/* tab text */
.tab-link {
  position: relative;
  text-decoration: none;
  font-size: 15px;              /* exact */
  font-weight: 500;             /* inactive weight */
  color: #222;
  padding-bottom: 6px;          /* space for underline */
  line-height: 1.2;
  white-space: nowrap;
}

/* blue pill background */
.tab-link::before {
  content: "";
  position: absolute;
  inset: -6px -10px;          /* pill size */
  background: rgba(63, 102, 255, 0.22); /* blue pill */
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

/* active = show pill */
.tab-link.active::before {
  transform: scaleX(1);
}


/* active tab */
.tab-link.active {
  color: #3f66ff;               /* Airbnb-like blue */
  font-weight: 600;
}

/* hover (desktop only subtle) */
@media (hover: hover) {
  .tab-link:hover {
    color: #3f66ff;
  }
}

/* mobile fine-tune */
@media (max-width: 480px) {
  .top-category-tabs {
    gap: 22px;
  }
  .tab-link {
    font-size: 14.5px;
  }
}


/* Desktop hide mobile quick filters */
@media (min-width: 769px) {
  .quick-filter-row {
    display: none !important;   /* 🔥 CHANGE HERE */
  }
}

/* ================= MOBILE DROPDOWN OVERFLOW FIX ================= f*/

@media (max-width: 768px) {
    /* 1. Parent container ko visible rakhein taaki dropdown bahar aa sake */
    .quick-filter-row {
        overflow-x: auto; /* Scroll allow karein */
        overflow-y: visible !important; /* Vertical clip rokein */
        display: flex;
        align-items: center;
        padding-bottom: 10px; /* Thoda space dropdown ke liye */
        -webkit-overflow-scrolling: touch;
    }

    /* 2. Dropdown container ki position relative honi chahiye */
    .quick-filter-row .filter-dd {
        position: static; /* Mobile par static karne se dropdown parent boundary cross kar payega */
    }

    /* 3. Menu ko fixed ya absolute position dein relative to the screen */
    .quick-filter-row .filter-menu {
        position: absolute;
        top: auto; /* Buttons ke niche automatic position */
        left: 10px; /* Mobile screen ke left se align */
        right: 10px; /* Mobile screen ke right tak spread (optional) */
        width: calc(10% - 20px); /* Screen width ke hisab se */
        z-index: 99999 !important; /* Card ke upar dikhne ke liye */
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        border: 1px solid #ddd;
        margin-left: 13rem;
    }
}

/* ===== ACTIVE FILTER STATE ===== */
.filter-btn.active,
.clear-filter.active {
  border: 2px solid #000;
  font-weight: 600;
  background-color: #f5f5f5;
}


