/* ═══════════════════════════════════════════════════════════
   QARIBIA — Stays / Accommodation Page
   Two-column layout: filter sidebar + results.
   ══════════════════════════════════════════════════════════ */

/* ── 1. Hero ───────────────────────────────────────────── */
.stays-hero {
  position: relative;
  height: 21vh;
  min-height: 200px;
  max-height: 250px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.stays-hero__bg { position: absolute; inset: 0; }

.stays-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.stays-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(13, 27, 42, 0.97) 0%,
    rgba(13, 27, 42, 0.80) 50%,
    rgba(13, 27, 42, 0.60) 100%);
}

.stays-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

/* ── Search bar — floats over the stays hero/content boundary ── */
.stays-search__bar-wrap {
  position: relative;
  z-index: 5;
  max-width: calc(var(--max-w) - 80px);
  margin: -46px auto 0;
  padding: 0 40px;
}

.stays-search__bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 10px 10px 10px 32px;
}

.stays-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  flex: 1;
  min-width: 0;
  text-align: left;
  position: relative;
}

.stays-search__field > i {
  color: var(--amber);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.stays-search__field-inner { width: 100%; }

.stays-search__field-inner label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.stays-search__field-inner input,
.stays-search__field-inner select,
.stays-search__select {
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.stays-search__lock-note {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stays-search__divider {
  width: 1px;
  height: 46px;
  align-self: center;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.stays-search__btn {
  align-self: center;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--deep-green) 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--trans-base);
}

.stays-search__btn:hover {
  box-shadow: 0 12px 28px rgba(45, 90, 66, 0.4);
}

@media (max-width: 900px) {
  .stays-search__bar-wrap {
    margin: -26px 20px 0;
    padding: 0;
  }

  .stays-search__bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
    border-radius: 18px;
  }

  .stays-search__field { padding: 4px 8px; }

  .stays-search__divider {
    width: 100%;
    height: 1px;
  }

  .stays-search__btn {
    justify-content: center;
    padding: 16px;
  }
}

.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb i { font-size: 0.62rem; }
.breadcrumb span { color: rgba(255, 255, 255, 0.7); }


/* ── 2. Leg-context banner ─────────────────────────────── */
.leg-banner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 4;
}

.leg-banner__inner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(26, 58, 46, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 14px 22px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.leg-banner__text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.leg-banner__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leg-banner__label i { color: var(--amber); }

.leg-banner__status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.leg-banner__status--filled {
  color: var(--sage);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-banner__back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans-base);
  flex-shrink: 0;
}

.leg-banner__back:hover {
  background: var(--amber);
  border-color: var(--amber);
}


/* ═══════════════════════════════════════════════════════════
   3. LAYOUT — sidebar + results
   ══════════════════════════════════════════════════════════ */
.stays-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}


/* ── 4. Sidebar ────────────────────────────────────────── */
.stays-sidebar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 24px 22px 8px;
  overflow-x: hidden;
  /* Sticks in view alongside the results as they scroll, instead of
     ending partway down the page once the grid runs longer than the
     filter panel's own (much shorter) content height. Capped and
     internally scrollable as a fallback for short viewports where
     even the filter panel itself is taller than the visible space. */
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
}

.stays-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stays-sidebar__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.stays-sidebar__reset {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.stays-sidebar__reset:hover {
  background: rgba(224, 123, 57, 0.1);
}

.stays-sidebar__close {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.stays-sidebar__close:hover {
  background: var(--amber);
  color: #fff;
}

/* Groups */
.stays-sidebar__group {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stays-sidebar__group--last {
  border-bottom: none;
  margin-bottom: 8px;
}

.stays-sidebar__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Search */
.stays-sidebar__search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--warm-white);
  transition: border-color 0.2s ease;
  min-width: 0;
}

.stays-sidebar__search-wrap:focus-within {
  border-color: var(--amber);
  background: #fff;
}

.stays-sidebar__search-wrap i {
  color: var(--amber);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.stays-sidebar__search {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
}

.stays-sidebar__search::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

/* Option rows */
.stays-sidebar__options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stays-sidebar__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.stays-sidebar__option:hover {
  background: rgba(224, 123, 57, 0.06);
}

.stays-sidebar__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stays-sidebar__option-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.stays-sidebar__option-mark--check {
  border-radius: 5px;
}

.stays-sidebar__option-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stays-sidebar__option-mark--check::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  width: auto;
  height: auto;
  background: none;
  color: #fff;
  border-radius: 0;
}

.stays-sidebar__option input:checked ~ .stays-sidebar__option-mark {
  border-color: var(--amber);
  background: var(--amber);
}

.stays-sidebar__option input:checked ~ .stays-sidebar__option-mark::after {
  opacity: 1;
  transform: scale(1);
}

.stays-sidebar__option input:checked ~ .stays-sidebar__option-mark--check::after {
  color: #fff;
}

.stays-sidebar__option-label {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stays-sidebar__option-count {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Tier dot */
.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-dot--inspected  { background: var(--gold); }
.tier-dot--verified   { background: var(--teal); }
.tier-dot--registered { background: var(--sage); }

/* Eco checkbox */
.stays-sidebar__check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
}

.stays-sidebar__check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stays-sidebar__check-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stays-sidebar__check-box::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stays-sidebar__check-row input:checked ~ .stays-sidebar__check-box {
  background: var(--sage);
  border-color: var(--sage);
}

.stays-sidebar__check-row input:checked ~ .stays-sidebar__check-box::after {
  opacity: 1;
  transform: scale(1);
}

.stays-sidebar__check-label {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════
   5. RESULTS
   ══════════════════════════════════════════════════════════ */
.stays-results { min-width: 0; }

.stays-results__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stays-results__meta { min-width: 0; }

.stays-results__title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.stays-results__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stays-results__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stays-results__sort-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.stays-sort {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.stays-sort:focus { border-color: var(--amber); }

.map-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.map-toggle-btn i { font-size: 0.78rem; }

.map-toggle-btn:hover {
  border-color: var(--deep-green);
  color: var(--deep-green);
  box-shadow: 0 4px 12px rgba(26, 58, 46, 0.1);
}

.map-toggle-btn.active {
  background: var(--deep-green);
  color: #fff;
  border-color: var(--deep-green);
  box-shadow: 0 6px 16px rgba(26, 58, 46, 0.25);
}

/* Body — normal: grid only. Map active: map only. */
.stays-results__body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-width: 0;
}

.stays-grid {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Map view — hide the grid, map takes over the results column */
.stays-results__body.has-map .stays-grid { display: none; }

.stays-empty {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex: 1;
}

.stays-empty__icon {
  font-size: 2.4rem;
  color: rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
}

.stays-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stays-empty p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Map container */
.stays-map-container {
  display: none;
  flex: 1 1 100%;
  min-width: 0;
  height: calc(100vh - 220px);
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.stays-map-container.visible { display: block; }

#staysMap { width: 100%; height: 100%; }


/* ── 6. Stay Card ──────────────────────────────────────── */
.stay-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  position: relative;
}

.stay-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 150, 62, 0.28);
}

.stay-card--selected {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 2px var(--deep-green), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stay-card__image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--cream);
}

.stay-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.stay-card:hover .stay-card__image img { transform: scale(1.06); }

.stay-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  color: rgba(0, 0, 0, 0.15);
  font-size: 2rem;
}

.stay-card__tier-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
  line-height: 1;
}

.stay-card__tier-pill i { font-size: 0.68rem; }

.stay-card__tier-pill--registered { background: rgba(107, 143, 113, 0.9); }
.stay-card__tier-pill--verified   { background: rgba(27, 107, 114, 0.9); }
.stay-card__tier-pill--inspected  { background: rgba(200, 150, 62, 0.94); }

.stay-badge--selected {
  position: absolute;
  top: 14px;
  right: 62px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--deep-green);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 3;
}

.stay-card__wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  z-index: 3;
  transition: all var(--trans-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stay-card__wishlist:hover,
.stay-card__wishlist.active {
  color: #E53E3E;
  transform: scale(1.1);
}

.stay-card__price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.stay-card__price-val {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stay-card__price-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stay-card__price-from { display: none; }

.stay-card__body {
  padding: 18px 20px 16px;
}

.stay-card__location {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
}

.stay-card__name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.stay-card__operator {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.stay-card__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stay-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.stay-card__stars i { font-size: 0.72rem; color: var(--amber); }
.stay-card__stars i.empty { color: rgba(0, 0, 0, 0.1); }

.stay-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.stay-amenity {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--warm-white);
  border: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stay-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.stay-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stay-card__rating-score {
  background: var(--deep-green);
  color: #fff;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
}

.stay-card__rating-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stay-card__view-btn {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--trans-base), color var(--trans-base);
}

.stay-card:hover .stay-card__view-btn {
  gap: 9px;
  color: var(--amber);
}

.stay-card__view-btn i { font-size: 0.68rem; }


/* ── 7. Mobile filter FAB + backdrop ───────────────────── */
.stays-mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--midnight);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.35);
  transition: all 0.2s ease;
}

.stays-mobile-filter-btn:hover { transform: translateX(-50%) translateY(-2px); }
.stays-mobile-filter-btn i { font-size: 0.85rem; }

.stays-mobile-filter-btn__count {
  background: var(--amber);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.stays-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 1499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stays-sidebar-backdrop.open {
  opacity: 1;
  pointer-events: all;
}


/* ═══════════════════════════════════════════════════════════
   8. STAY DETAIL — content classes reused on stay-detail.html
   (page chrome — header, gallery — comes from explore.css's
   generic .detail-* classes; these are just the stay-specific
   pieces: amenities, rooms, description, book card, tier pill)
   ══════════════════════════════════════════════════════════ */
.modal-stars { display: flex; gap: 4px; margin-bottom: 8px; }
.modal-stars i { font-size: 0.85rem; color: var(--amber); }

.modal-rating-line {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-rating-line strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.modal-tier-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.modal-tier-line i { font-size: 0.72rem; }
.modal-tier-line--registered { background: var(--sage); }
.modal-tier-line--verified   { background: var(--teal); }
.modal-tier-line--inspected  { background: var(--gold); }

.modal-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title i { color: var(--amber); font-size: 0.85rem; }

.modal-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.modal-amenity {
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-amenity i { color: var(--amber); font-size: 0.8rem; }

.modal-rooms { margin-bottom: 40px; }

.modal-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-room:hover,
.modal-room.selected {
  border-color: var(--amber);
  background: rgba(224, 123, 57, 0.03);
}

.modal-room.selected { box-shadow: 0 0 0 2px var(--amber); }

.modal-room__info h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-room__info span { font-size: 0.8rem; color: var(--text-muted); }

.modal-room__price { text-align: right; }

.modal-room__price strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-room__price em {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

.modal-book__price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-book__price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-book__per { font-size: 0.85rem; color: var(--text-muted); }

.modal-book__cancel {
  font-size: 0.8rem;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.modal-book__cancel i { font-size: 0.8rem; }

.modal-book-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--deep-green), var(--forest));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(26, 58, 46, 0.25);
  margin-bottom: 12px;
}

.modal-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 58, 46, 0.35);
}

.modal-book-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-book__secure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-book__secure i { color: var(--sage); }

.stay-reviews-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 26px;
}

.stay-reviews-summary__score {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-green), var(--forest));
  border-radius: 12px;
  padding: 10px 18px;
  flex-shrink: 0;
}

.stay-reviews-summary__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stay-reviews-summary__text strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.stay-reviews-summary__text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ── 9. Toast ──────────────────────────────────────────── */
.stays-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--charcoal);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 400px;
}

.stays-toast.show { transform: translateY(0); opacity: 1; }
.stays-toast i { color: var(--amber); font-size: 1.2rem; }


/* ── 10. Leaflet markers ──────────────────────────────── */
.leaflet-marker-icon.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.map-price-pill {
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 11px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.map-price-pill:hover {
  background: var(--midnight);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  z-index: 999;
}

.map-price-pill--homestay {
  background: var(--amber);
  color: var(--midnight);
  border-color: rgba(255, 255, 255, 0.3);
}

.map-price-pill--homestay:hover { background: #b87d2a; color: #fff; }

.stays-map-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
}

.stays-map-popup .leaflet-popup-content {
  margin: 0;
  padding: 20px;
  min-width: 200px;
}

.stays-map-popup .leaflet-popup-tip-container { display: none; }

.map-popup__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.map-popup__location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-popup__location i { color: var(--amber); font-size: 0.7rem; }

.map-popup__price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.map-popup__per {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.map-popup__btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: var(--deep-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

.map-popup__btn:hover { background: var(--forest); }

.stay-card.map-highlighted {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber), 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT DEFENSES — prevent horizontal overflow
   ══════════════════════════════════════════════════════════ */

/* Grid children must be allowed to shrink below content size */
.stays-layout > * { min-width: 0; }
.stays-sidebar > *,
.stays-sidebar__group > * { min-width: 0; }
.stays-results > * { min-width: 0; }

/* Overflow containment */
.stays-layout,
.stays-results,
.stays-results__body { overflow-x: clip; }


/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.stays-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.stays-pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stays-pagination__btn:hover:not(:disabled):not(.active) {
  border-color: var(--amber);
  color: var(--amber);
}

.stays-pagination__btn.active {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26, 58, 46, 0.25);
}

.stays-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stays-pagination__btn i {
  font-size: 0.72rem;
}

.stays-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 40px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .stays-pagination__btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   11. RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .stays-layout {
    padding: 32px 32px 80px;
    gap: 32px;
  }
  .stays-hero__content {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1024px) {
  .stays-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  .stays-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  /* Sidebar becomes a drawer */
  .stays-layout {
    grid-template-columns: 1fr;
    padding: 20px 20px 100px;
    gap: 0;
  }

  .stays-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1500;
    padding: 24px 22px 40px;
    transition: left 0.35s var(--ease-smooth);
  }

  .stays-sidebar.open { left: 0; }

  .stays-sidebar__close {
    display: flex;
  }

  .stays-sidebar__header { padding-right: 0; }

  .stays-sidebar-backdrop { display: block; }

  .stays-mobile-filter-btn { display: inline-flex; }

  /* Map hidden on mobile */
  .stays-map-container { display: none !important; }

  .map-toggle-btn { display: none; }

  .stays-results__header {
    align-items: flex-start;
  }

  .stays-results__actions {
    width: 100%;
    justify-content: space-between;
  }

  .stays-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .stays-hero__content { padding: 0 24px 18px; }

  .stays-layout {
    padding: 16px 20px 100px;
  }

  .stays-results__title { font-size: 1.3rem; }

  .stays-results__header { margin-bottom: 22px; }

  .stays-toast {
    bottom: 100px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .stays-layout { padding: 12px 16px 100px; }

  .stays-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stays-results__actions {
    flex-wrap: wrap;
  }

  .stays-results__sort-label { display: none; }

  .stays-sort { flex: 1; }
}