/* ===== DARK MODE HERO POLISH ===== */
body.dark-mode .home-hero {
  filter: brightness(0.92) contrast(1.05);
}

/* SEARCH BAR DARK */
body.dark-mode .hero-search {
  background: #151821;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

body.dark-mode .hero-search input {
  background: transparent;
  color: #ffffff;
}

/* HERO TO CONTENT SEPARATOR */
body.dark-mode .filters-main {
  background: linear-gradient(
    to bottom,
    #0f1115 0%,
    #151821 100%
  );
}






/* ===============================
   DOZZY STYLE FILTER BAR (INDEX)
================================ */

/* LEFT FILTER BUTTONS */
/* SINGLE FILTER BUTTON */
.filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #555;
}

.filter img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

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

/* HOVER EFFECT */
.filter:hover {
  background: #f7f7f7;
  color: #000;
}

/* ACTIVE (OPTIONAL – FUTURE USE) */
.filter.active {
  border-bottom: 2px solid #000;
  color: #000;
}

/* REMOVE OLD SLIDER BUTTONS IF ANY */
.left_img_button,
.right_img_button {
  display: none !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .filters-main {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters-main::-webkit-scrollbar {
    display: none;
  }


}


/* ===== DOZZY STYLE FILTER ALIGNMENT FIX ===== */

/* Parent row jisme categories + filters hain */
.filters-main,
.category-bar,
.stayvel-category-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* RIGHT se hata ke LEFT */
  gap: 28px;
  flex-wrap: wrap;
}

/* Farmhouses & Stays + Hotel & Resorts */
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Filter buttons container */
.dozzy-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
  /* categories ke baad spacing */
}

/* Individual filter buttons */
.dozzy-filters .filter-btn,
.dozzy-filters button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.dozzy-filters .filter-btn:hover {
  border-color: #000;
}

/* Clear filter button */
.clear-filter {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

/* Remove right side push */
.dozzy-filters,
.filter-dd {
  position: relative;
}

/* Dropdown menu position */
.filter-menu {
  position: absolute;
  top: 42px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 6px 0;
  display: none;
  z-index: 1000;
  min-width: 160px;
}

.filter-dd.active .filter-menu {
  display: block;
}

.filter-menu li {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.filter-menu li:hover {
  background: #f5f5f5;
}

/* ================= FILTER BAR FIX ================= */

.filters-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px 0;
  padding-left: 8px;
  flex-wrap: wrap;
}

/* individual buttons */
.filters-wrapper .filter-dd button,
.filters-wrapper .clear-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* dropdown list */
.filters-wrapper .filter-dd {
  position: relative;
}

.filters-wrapper .filter-dd ul {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 8px 0;
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.filters-wrapper .filter-dd ul li {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.filters-wrapper .filter-dd ul li:hover {
  background: #f5f5f5;
}

/* clear filter */
.filters-wrapper .clear-filter {
  border: none;
  background: transparent;
  font-weight: 500;
}

/* active dropdown */
.filters-wrapper .filter-dd.active ul {
  display: block;
}

/* ===== FILTER CONTAINER FIX ===== */
.filters-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  /* 🔥 gap kam */
  margin-top: 6px;
  /* 🔥 MAIN SPACE REMOVE */
}


/* Icons row (Farmhouses & Stays / Hotel & Resorts) */
#filters {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-left: 0;
}

/* Dozzy style buttons row */
.dozzy-index-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Filter buttons */
.dozzy-index-filters .filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* Clear all filters */
.clear-filter {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

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

.filter-menu {
  position: absolute;
  top: 42px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  list-style: none;
  padding: 8px 0;
  min-width: 160px;
  display: none;
  z-index: 999;
}

.filter-menu li {
  padding: 8px 14px;
  cursor: pointer;
}

.filter-menu li:hover {
  background: #f5f5f5;
}


/* ================= FLATPICKR FIX FOR BOTTOM SHEET ================= */

/* Force flatpickr inside overlay */
#calendarOverlay .flatpickr-calendar {
  position: relative !important;
  inset: auto !important;
  margin: 12px auto 0 auto !important;

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

  border-radius: 16px;
  box-shadow: none !important;
}

/* Remove weird left shift */
.flatpickr-calendar.open {
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
}

/* Month header center */
.flatpickr-months {
  padding: 10px 0;
}

/* Calendar grid spacing */
.flatpickr-days {
  padding-bottom: 8px;
}

/* Selected range clean */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Disable triangle arrow */
.flatpickr-calendar::before,
.flatpickr-calendar::after {
  display: none !important;
}

/* Mobile padding */
@media (max-width: 576px) {
  #calendarOverlay .flatpickr-calendar {
    padding: 4px;
  }
}

/* ================= QUICK FILTER ROW ================= */

.quick-filter-row {
  display: flex;
  gap: 12px;
  padding: 0 10px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filter-row::-webkit-scrollbar {
  display: none;
}

/* normal chips */
.quick-chip {
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  /* body bg match */
  border: 1px solid #e1e2e6;
  font-size: 13px;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
}

.quick-chip span {
  font-size: 12px;
  color: #666;
}

.quick-chip:hover {
  border-color: #000;
}

/* dropdown alignment fix */
.quick-filter-row .filter-dd {
  min-width: max-content;
}




/* new style started here */

/* ================= DOZZY CARD (HOME) ================= */

.dozzy-card {
  width: 100%;
}

.dozzy-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.dozzy-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* top icons */
.dozzy-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

/* dots */
.dozzy-dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.dot.active {
  background: #fff;
}

/* bottom overlay */
.dozzy-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
}

.dozzy-info .title {
  font-size: 15px;
  font-weight: 600;
}

.dozzy-info .title span {
  font-weight: 400;
  font-size: 13px;
}

.dozzy-info .sub {
  font-size: 12px;
  opacity: 0.9;
}

.dozzy-info .price {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}


/* 🔒 FIX CARD IMAGE HEIGHT (DESKTOP ISSUE) */
.index-res-img {
  position: relative;
  width: 100%;
  height: 260px;
  /* 👈 FIXED HEIGHT */
  overflow: hidden;
  /* border-radius: 18px; */
}


.index-res-img img.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 🔥 MOST IMPORTANT */
  display: block;
}

.listing-card {
  height: auto !important;
  align-self: flex-start;
  /* 🔥 stops equal-height stretching */
}

.listing-card .card-body {
  padding: 8px 10px;
}

.listing-card .card-body {
  padding: 8px 10px;
}


/* ===== FINAL FIX FOR DESKTOP BROKEN CARDS ===== */

.dozzy-img-wrapper {
  width: 100%;
  height: 280px;
  /* 🔑 THIS WAS MISSING */
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

/* image should just fill wrapper */
.dozzy-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* desktop grid stability */
@media (min-width: 992px) {
  .dozzy-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .dozzy-img-wrapper {
    height: 360px;
  }
}

/* 🔥 FINAL BOOTSTRAP GRID FIX */
.row {
  align-items: flex-start !important;
}

.dozzy-card {
  width: 100%;
}

.dozzy-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* 🔥 keeps height perfect */
  overflow: hidden;
  /* border-radius: 18px; */
}

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

/* ===============================
   TOP CATEGORY TABS – PREMIUM ANIMATION
================================ */

.top-category-tabs {
  position: relative;
  display: flex;
  gap: 28px;
}

/* TAB LINK */
.top-category-tabs .tab-link {
  position: relative;
  padding: 6px 4px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  overflow: hidden;
  /* 🔑 bg animation clip */
  transition: color 0.3s ease;
}

/* LIGHT BLUE SLIDE BG */
.top-category-tabs .tab-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, 0.42);
  /* light blue */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
  border-radius: 6px;
}

/* HOVER EFFECT */
.top-category-tabs .tab-link:hover::before {
  transform: scaleX(0);
}

/* ACTIVE TAB */
.top-category-tabs .tab-link.active {
  color: #2563eb;
  font-weight: 600;
}

/* ACTIVE BG */
.top-category-tabs .tab-link.active::before {
  transform: scaleX(1);
}

/* ===============================
   UNDERLINE (already working)
================================ */

.tab-underline {
  position: absolute;
  bottom: -6px;
  height: 2px;
  background: #2563eb;
  color: #2563eb;
  border-radius: 2px;
  transition: left 0.35s ease, width 0.35s ease;
}


/* ================= HOME MOBILE HERO NAVBAR ================= */
@media (max-width: 768px) {

  /* HERO WRAPPER */
  .home-hero {
    position: relative;
    height: 330px;
    /* IMPORTANT: increase height */
    background: url("/Icon/hero-bg.png") center/cover no-repeat;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    overflow: visible;
    /* allow search overlap */
  }

  /* TOP OVERLAY BAR */
  .home-hero-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
  }

  .hero-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-profile {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
  }

  .hero-location {
    font-size: 14px;
    font-weight: 500;
  }

  .view-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
  }


  .hero-slides {
    display: flex;
    width: 400%;
    height: 100%;
  }

  .hero-slides img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    /* border-radius: 18px; */
  }

  .hero-content {
    position: absolute;
    top: 90px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
  }

  /* SEARCH BAR – HALF HERO + HALF CONTENT */
  .hero-search {
    position: absolute;
    bottom: -22px;
    /* KEY FIX */
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: inset 0px -1px 1px 1px rgba(0.1, 0.1, 0.1, 0.1);
    z-index: 5;
  }

  .hero-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 300;
  }
}

/* ===== END HOME MOBILE HERO SLIDER ===== */

@media (max-width: 768px) {

  /* FULL WIDTH HERO SLIDER */
  .hero-slider {
    position: relative;
    width: 100vw;
    /* FULL SCREEN */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 160px;
    overflow: hidden;
    border-radius: 0;
    /* full width = no side rounding */
  }

  .hero-slides {
    display: flex;
    width: 200%;
    /* 2 images */
    height: 100%;
  }

  .hero-slides img {
    width: 100vw;
    /* EACH IMAGE FULL WIDTH */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

}

/* ================= FULL WIDTH HOME MOBILE SLIDER ================= */
@media (max-width: 768px) {

  .hero-slider {
    position: relative;
    width: 100vw;
    height: 320px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    border-radius: 0;
    /* EDGE TO EDGE */
  }

  .hero-slides {
    display: flex;
    width: 400%;
    /* 4 images */
    height: 100%;
  }

  .hero-slides img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

}

/* ================= DAY / NIGHT MODE ================= */


.view-toggle {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
/* ======================================
   🔒 HIDE HOME MOBILE HERO ON DESKTOP
====================================== */

/* Desktop & Laptop */
@media (min-width: 992px) {
  .home-hero,
  .hero-slider,
  .home-hero-top,
  .hero-search {
    display: none !important;
  }
}
/* ===== DEFAULT ===== */
.navbar-desktop {
  display: block;
}

.navbar-mobile {
  display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .navbar-desktop {
    display: none !important;
  }

  .navbar-mobile {
    display: block !important;
  }
}
