/* ─────────────────────────────────────────────
   CalmStay Homes – Main Stylesheet
   ───────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --surface:     #faf9f7;
  --card:        #ffffff;
  --text:        #1c1a17;
  --muted:       #8a8278;
  --muted-light: #c5c1b8;
  --border:      #e8e4de;
  --border-dark: #d4cfc7;
  --brand:       #bd9e43;
  --brand-2:     #d4b86a;
  --brand-light: rgba(189,158,67,.08);
  --brand-mid:   rgba(189,158,67,.16);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 36px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --radius:      20px;
  --radius-sm:   12px;
  --max:         1200px;
  --font:        'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --header-h:    61px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────── */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.container--md { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 32px 0; }

/* ── Typography ─────────────────────────────── */
.h1 { font-size: 42px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.h3 { font-size: 18px; font-weight: 800; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* ── Base components ─────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(189,158,67,.28);
}
.btn-primary:hover {
  background: #a08535;
  box-shadow: 0 6px 20px rgba(189,158,67,.36);
}

.btn-outline {
  background: #fff;
  border-color: var(--border-dark);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

/* ── Header & Navbar ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.01em;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-badge {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(189,158,67,.3);
}
.brand-name { color: var(--text); }
.brand-suffix { color: var(--muted); font-weight: 700; }
.brand-logo { height: 36px; width: auto; display: block; object-fit: contain; }

/* ── Nav links ──────────────────────────────── */
.navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.navlinks a,
.navlinks li a {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.navlinks a:hover,
.navlinks li a:hover { background: var(--surface); color: var(--text); }

.navlinks a.current-menu-item,
.navlinks li.current-menu-item > a,
.navlinks li.current_page_item > a {
  color: var(--brand);
  background: var(--brand-light);
}
/* WP menu <li> normalisation */
.navlinks li { list-style: none; white-space: nowrap; position: relative; }

/* ── Dropdown ───────────────────────────────── */
.navlinks li:hover > .sub-menu,
.navlinks li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navlinks .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 500;
}

.navlinks .sub-menu li { white-space: nowrap; }

.navlinks .sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.navlinks .sub-menu a:hover {
  background: var(--surface);
  color: var(--brand);
}

/* Chevron indicator on parent items with children */
.navlinks li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: .6;
  vertical-align: middle;
}

/* Mobile nav <li> */
.mobile-nav__links li { list-style: none; }
.mobile-nav__links li a { display: block; }
.mobile-nav__links .sub-menu { list-style: none; padding: 0 0 0 16px; margin: 0; }
.mobile-nav__links .sub-menu a { font-size: 14px; opacity: .8; }

/* ── Right side ─────────────────────────────── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(189,158,67,.28);
  font-weight: 800 !important;
  font-size: 13px !important;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s !important;
}
.nav-cta:hover {
  background: #a08535 !important;
  box-shadow: 0 6px 18px rgba(189,158,67,.36) !important;
  color: #fff !important;
}

/* Currency selector */
.header-currency {
  display: flex;
  align-items: center;
}
.header-currency__select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 7px 30px 7px 13px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s;
}
.header-currency__select:hover { border-color: var(--brand); }
.header-currency__select:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Profile link */
.header-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: var(--surface);
  transition: border-color .15s, background .15s;
  font-size: 16px;
}
.header-profile:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}
.header-profile__icon { line-height: 1; }

/* ── Hamburger button ────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--brand); background: var(--brand-light); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}
/* Animated → X when open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay backdrop ────────────────────────── */
.nav-overlay { display: none; } /* hidden everywhere by default */
@media (max-width: 840px) {
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.55);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── Mobile nav drawer ───────────────────────── */
.mobile-nav {
  display: none; /* hidden on desktop — shown only via the media query below */
}
@media (max-width: 840px) {
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 95vw);
    height: 100vh;
    height: 100dvh; /* uses dynamic viewport height on modern browsers (accounts for mobile browser chrome) */
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav.is-open { transform: translateX(0); }
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
}
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.mobile-nav__close:hover { border-color: var(--brand); background: var(--brand-light); }

.mobile-nav__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 12px;
  gap: 2px;
}
.mobile-nav__links a,
.mobile-nav__links li a {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s, color .15s;
  list-style: none;
}
.mobile-nav__links a:hover,
.mobile-nav__links li a:hover { background: var(--surface); color: var(--brand); }
.mobile-nav__links a.current-menu-item,
.mobile-nav__links li.current-menu-item a { background: var(--brand-light); color: var(--brand); }
.mobile-nav__links ul { margin: 0; padding: 0; list-style: none; }

.mobile-nav__footer {
  padding: 16px 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(189,158,67,.3);
  transition: background .15s;
}
.mobile-nav__cta:hover { background: #a08535; }
.mobile-nav__account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.mobile-nav__account:hover { border-color: var(--brand); background: var(--brand-light); }

/* ── Responsive: show hamburger, hide desktop nav ── */
@media (max-width: 840px) {
  .navlinks { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Fixed header — works regardless of Elementor overflow:hidden on sections */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  /* Push main content below the fixed header */
  .site-main {
    padding-top: var(--header-h);
  }
}
/* Body scroll lock */
body.nav-open { overflow: hidden; }

/* ── Archive page – Hero strip ───────────────── */
.archive-hero {
  background: linear-gradient(135deg, var(--brand) 0%, #c9a84c 100%);
  padding: 40px 0 32px;
  margin-bottom: 0;
}
.archive-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.archive-hero__heading {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}
.archive-hero__sub {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  margin: 4px 0 0;
}

/* Search bar inside hero */
.hero-searchbar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 660px;
}
.hero-searchbar__input {
  flex: 1;
  padding: 14px 20px;
  border: 0;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
}
.hero-searchbar__input::placeholder { color: var(--muted-light); }
.hero-searchbar__btn {
  margin: 5px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.hero-searchbar__btn:hover { background: #a08535; }

/* Filter pills under hero */
.filter-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.pill.active,
.pill.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 800;
}
.pill.pill--clear {
  color: var(--text);
  border-color: var(--border-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pill.pill--clear:hover {
  border-color: #c0392b;
  color: #c0392b;
}
.pill-chevron {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform .2s;
}

/* Pill wrapper + dropdown */
.pill-wrap {
  position: relative;
}
.pill-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 220px;
  animation: dropIn .15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pill-dropdown__inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pill-dropdown__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pill-option {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: background .12s, border-color .12s, color .12s;
}
.pill-option:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}
.pill-option.is-active {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 700;
}

/* Guest counter */
.cs-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
}
.cs-counter__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  transition: border-color .12s, color .12s;
}
.cs-counter__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cs-counter__val {
  font-weight: 700;
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

/* Price range inputs */
.cs-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
.cs-price-range__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-price-range__field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cs-price-range__field input {
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--text);
}
.cs-price-range__field input:focus {
  outline: none;
  border-color: var(--brand);
}
.cs-price-range__sep {
  color: var(--muted-light);
  font-size: 16px;
  padding-top: 18px;
}

/* Apply button inside dropdown */
.cs-apply-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.cs-apply-btn:hover {
  background: var(--brand-dark, #a08535);
}

/* Loading overlay */
.cs-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
  font-size: 14px;
  color: var(--muted);
}
.cs-search-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.cs-no-results {
  padding: 48px 0;
  text-align: center;
}
.cs-reset-search {
  background: none;
  border: none;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

/* ── Map: price pill markers ─────────────────── */
.cs-map-pin {
  background: #fff;
  color: #1c1a17;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  border: 1.5px solid rgba(0,0,0,.08);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
  display: inline-block;
}
.cs-map-pin:hover {
  background: #1c1a17;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
.cs-map-pin--active {
  background: #1c1a17;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.32);
  border-color: #1c1a17;
}

/* ── Map: cluster bubble ──────────────────────── */
.cs-map-cluster {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c1a17;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.cs-map-cluster:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.36);
}

/* ── Map: Leaflet popup reset + card ─────────── */
.cs-map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  border: none;
}
.cs-map-popup .leaflet-popup-content {
  margin: 0;
  width: 260px !important;
  line-height: 1;
}
.cs-map-popup .leaflet-popup-tip-container { margin-top: -1px; }
.cs-map-popup .leaflet-popup-tip {
  background: #fff;
  box-shadow: none;
}

.cs-map-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
  transition: opacity .15s;
}
.cs-map-card:hover { opacity: .92; }

.cs-map-card__img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-map-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.cs-map-card:hover .cs-map-card__img { transform: scale(1.04); }

.cs-map-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cs-map-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #1c1a17;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-map-card__meta {
  font-size: 11px;
  color: #8a8278;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-map-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  border-top: 1px solid #f0ede8;
  padding-top: 8px;
}
.cs-map-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #1c1a17;
}
.cs-map-card__reviews {
  font-weight: 400;
  color: #8a8278;
}
.cs-map-card__price { font-size: 13px; color: #1c1a17; }
.cs-map-card__price strong { font-weight: 800; }
.cs-map-card__price span { font-size: 11px; color: #8a8278; font-weight: 400; }

/* ── Archive listing layout ──────────────────── */
.listing-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  padding: 20px 0 32px;
}
.listing-layout > * { min-width: 0; }
@media (max-width: 980px) {
  .listing-layout { grid-template-columns: 1fr; }
}

.results-pane { min-width: 0; }
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.sort { display: flex; align-items: center; gap: 8px; }
.sort-select {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.sort-select:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Listing cards ───────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cards-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .cards-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.listing-card {
  overflow: hidden;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
  text-decoration: none;
  color: var(--text);
}
.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.listing-img {
  position: relative;
  overflow: hidden;
}
.listing-img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.listing-card:hover .listing-img img { transform: scale(1.04); }
.img-placeholder { height: 210px; background: var(--surface); }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.listing-card__wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  border: 1px solid rgba(255,255,255,.6);
}
.listing-card:hover .listing-card__wish { opacity: 1; }

.listing-body { padding: 14px; }
.listing-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}
.listing-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.listing-feats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.feat {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
}
.listing-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.price-strong {
  color: var(--text);
  font-weight: 900;
  font-size: 16px;
}
.price-night {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .listing-img img,
  .img-placeholder { height: 200px; }
  .listing-body { padding: 12px; }
  .listing-title { font-size: 15px; }
  .listing-meta { font-size: 12px; }
  .price-strong { font-size: 15px; }
}

/* ── Map pane ────────────────────────────────── */
.map-pane {
  position: sticky;
  top: 80px;
  height: fit-content;
  overflow: hidden;
  border-radius: var(--radius) !important;
}
.map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
}

/* ── Single property page ────────────────────── */
.site-main { background: var(--bg); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color .15s;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.back-link:hover { color: var(--brand); }

.property-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.property-title-group {}
.property-title-group .h1 { font-size: 36px; }
.property-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.property-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.property-meta-more {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 6px 0;
  cursor: pointer;
}
.property-meta-more-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.property-meta-detail {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.meta-sep { color: var(--border-dark); }
.meta-superhost {
  color: var(--brand);
  font-weight: 800;
  background: var(--brand-light);
  font-size: 13px;
}

.property-stats {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.property-stat {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-right: 1px solid var(--border);
}
.property-stat:first-child { padding-left: 0; }
.property-stat:last-child { border-right: 0; }

/* ── Gallery ─────────────────────────────────── */
.property-gallery { margin-top: 16px; max-width: 1080px; margin-left: auto; margin-right: auto; }

.property-gallery__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  background: var(--surface);
}
.property-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.property-gallery__main:hover img { transform: scale(1.025); }

.property-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.property-gallery__thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 110px;
  background: var(--surface);
  cursor: pointer;
}
.property-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s ease;
}
.property-gallery__thumb:hover img { transform: scale(1.06); }

.property-gallery__more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 900; color: #fff;
  background: rgba(0,0,0,.48);
  font-size: 16px; line-height: 1.2;
}
.property-gallery__view-all {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 2;
  color: var(--text);
  font-family: var(--font);
  transition: background .15s;
}
.property-gallery__view-all:hover { background: #fff; }

.property-gallery__slider,
.property-gallery__slider-track,
.property-gallery__slider-ui { display: none; }

.property-gallery__slider {
  position: relative;
  margin-bottom: 12px;
}
.property-gallery__slider-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
}
.property-gallery__slider-track::-webkit-scrollbar { display: none; }
.property-gallery__slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(240px, 62vw, 360px);
  padding: 0;
  border: 0;
  background: var(--surface);
  scroll-snap-align: start;
}
.property-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-gallery__slider-ui {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.property-gallery__counter {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .74);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.property-gallery__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  pointer-events: auto;
}
.property-gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(28, 26, 23, .24);
  cursor: pointer;
}
.property-gallery__dot.is-active { background: var(--text); }

.property-favorite {
  position: absolute;
  top: 14px; right: 14px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 9px 14px;
  display: flex; gap: 7px; align-items: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}
.property-favorite:hover { background: #fff; }
.property-favorite--mobile { display: none; }

/* ── Property content layout ─────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin-top: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.grid-2 > * { min-width: 0; }
.grid-2 > aside.booking-card {
  position: sticky;
  top: 90px;
  height: fit-content;
}
/* Tablet: gallery thumbnails reflow, grid still 2-col */
@media (max-width: 980px) {
  .property-gallery__main { height: 320px; }
  .property-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: full single-column layout */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .grid-2 > aside.booking-card {
    position: static;
    top: auto;
    margin-top: 36px;
    scroll-margin-top: 80px;
  }
}

/* ── Pill tab row ────────────────────────────── */
.pillrow {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  margin-top: 22px;
}
.pillrow .pill {
  border: 0;
  border-radius: 0;
  padding: 10px 16px 11px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  transition: color .15s, border-color .15s;
}
.pillrow .pill:hover { color: var(--text); border-bottom-color: var(--border-dark); }
.pillrow .pill.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 800; }

.cs-detail-section {
  position: relative;
}
.cs-section-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 18px 0 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.cs-section-toggle__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.cs-detail-section.is-open .cs-section-toggle__icon {
  transform: rotate(225deg);
}
.cs-section-body[hidden] { display: none !important; }

/* ── Meta icons row ──────────────────────────── */
.metaicons {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.metaicons .item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-right: 1px solid var(--border);
}
.metaicons .item:first-child { padding-left: 0; }
.metaicons .item:last-child { border-right: 0; }

/* ── Section headings ─────────────────────────── */
.section-heading {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ── Amenities ───────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 900px) { .amenities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .amenities-grid { grid-template-columns: 1fr; } }

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .15s, background .15s, transform .15s;
}
.amenity-item:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}
/* Icon bubble */
.amenity-item .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  flex-shrink: 0;
}
.amenity-item .icon i {
  font-size: 20px;
  color: var(--brand);
  line-height: 1;
}
/* Card chips — icon only, no label */
.feat--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
}
.feat--icon i {
  font-size: 15px;
  color: var(--brand);
  line-height: 1;
}
.feat--more {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
/* Hide overflow amenities globally; revealed by JS toggling .is-expanded */
#calmstay-amenities .amenity-item.is-extra { display: none; }
#calmstay-amenities.is-expanded .amenity-item.is-extra { display: flex; }

.cs-amenities-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Rating stars ────────────────────────────── */
.rating-stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.star { width: 16px; height: 16px; fill: #bd9e43; }
.star--empty { fill: #e8e4de; }
.star--half {}

/* ── Reviews ─────────────────────────────────── */
.calmstay-review-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}

/* ── Booking card ────────────────────────────── */
.booking-card {
  padding: 22px;
  border-radius: var(--radius) !important;
}
.booking-card__mobile-head,
.cs-booking-scrim {
  display: none;
}
.booking-card .price {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.booking-card .price .small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.booking-form { display: grid; gap: 10px; margin-top: 16px; }

.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.booking-dates .field {
  border: 0;
  border-radius: 0;
  padding: 11px 14px;
  background: #fff;
}
.booking-dates .field:first-child {
  border-right: 1px solid var(--border-dark);
}

.field {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: #fff;
  transition: border-color .15s;
}
.field:focus-within { border-color: var(--brand); }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
}
.field select { cursor: pointer; }

.booking-guests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-total {
  padding: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  min-height: 20px;
}


.calmstay-policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.calmstay-policy .policy-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
}

.booking-benefits {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Reserve button in booking form */
.booking-form .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

/* ── Host card ───────────────────────────────── */
.host-card {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}
.host-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  flex-shrink: 0;
}
.host-title { font-weight: 800; font-size: 14px; }
.host-sub { font-size: 12px; color: var(--muted); }

/* ── Map (single property) ────────────────────── */
.location-map { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; }
.location-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.location-actions__map-btn {
  min-height: 42px;
}

/* ── Gallery room grid ───────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}
.gallery-side {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}
.gallery-tile { min-height: 120px; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-side { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
}

/* ── Airbnb-style Gallery Lightbox ───────────── */
#csGalleryLightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.96);
  display: none; flex-direction: column;
  opacity: 0; transition: opacity .22s ease;
}
#csGalleryLightbox.cs-lb-open { display: flex; opacity: 1; }

.cs-lb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cs-lb-counter { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; }
.cs-lb-close {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
  font-family: var(--font);
}
.cs-lb-close:hover { background: rgba(255,255,255,.22); }

.cs-lb-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 0; padding: 0 72px;
}
.cs-lb-img-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.cs-lb-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 8px;
  user-select: none; display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.cs-lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
  font-family: var(--font);
}
.cs-lb-arrow:hover { background: rgba(255,255,255,.26); }
.cs-lb-prev { left: 12px; }
.cs-lb-next { right: 12px; }

.cs-lb-thumbs {
  display: flex; gap: 6px; justify-content: center;
  padding: 12px 16px; overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cs-lb-thumbs::-webkit-scrollbar { display: none; }
.cs-lb-thumb {
  width: 66px; height: 50px;
  border-radius: 6px; overflow: hidden;
  cursor: pointer; flex-shrink: 0; opacity: .5;
  border: 2px solid transparent; transition: opacity .15s, border-color .15s;
}
.cs-lb-thumb.cs-active { opacity: 1; border-color: #fff; }
.cs-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .cs-lb-stage { padding: 0 48px; }
  .cs-lb-arrow { width: 40px; height: 40px; font-size: 20px; }
  .cs-lb-thumb { width: 50px; height: 38px; }
}

/* ── My Account sidebar nav ──────────────────── */
.cs-account-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* User profile strip */
.cs-account-nav__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--brand) 0%, #c9a84c 100%);
}
.cs-account-nav__avatar {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.2);
}
.cs-account-nav__avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 50%;
}
.cs-account-nav__user-info { min-width: 0; }
.cs-account-nav__user-name {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-account-nav__user-email {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav list */
.cs-account-nav__list {
  list-style: none;
  margin: 0; padding: 8px 0;
}
.cs-account-nav__item { margin: 0; }

.cs-account-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
  position: relative;
}
.cs-account-nav__link:hover {
  background: var(--surface);
  color: var(--text);
  border-left-color: var(--border-dark);
}
.cs-account-nav__link.is-active {
  background: var(--brand-light);
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 800;
}

.cs-account-nav__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cs-account-nav__icon svg { width: 18px; height: 18px; }

.cs-account-nav__label { flex: 1; }

.cs-account-nav__chevron {
  width: 14px; height: 14px;
  opacity: 0;
  transition: opacity .15s;
  flex-shrink: 0;
}
.cs-account-nav__link:hover .cs-account-nav__chevron,
.cs-account-nav__link.is-active .cs-account-nav__chevron { opacity: .4; }

/* Logout item */
.cs-account-nav__item--logout {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 4px;
}
.cs-account-nav__item--logout .cs-account-nav__link { color: #ef4444; }
.cs-account-nav__item--logout .cs-account-nav__link:hover {
  background: #fef2f2;
  color: #dc2626;
  border-left-color: #ef4444;
}

/* WooCommerce account page layout */
.cs-account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 760px) {
  .cs-account-layout { grid-template-columns: 1fr; }
}
.cs-account-layout__sidebar {
  position: sticky;
  top: 90px;
}
.cs-account-layout__content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}

/* ── WooCommerce ─────────────────────────────── */
.woocommerce, .woocommerce-page { background: #fff; }
.woocommerce .woocommerce-cart-form,
.woocommerce .checkout,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce .woocommerce-form-coupon,
.woocommerce .woocommerce-form-login,
.woocommerce .cart_totals {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
  border: 0 !important;
  transition: background .15s !important;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: #a08535 !important;
}

/* ── Flatpickr calendar ──────────────────────── */
.flatpickr-calendar {
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font) !important;
}
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays { background: #fff !important; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}
.flatpickr-day.inRange {
  background: var(--brand-light) !important;
  border-color: var(--brand-light) !important;
}
.flatpickr-day:hover { background: var(--brand-mid) !important; }

/* Booked / taken days */
.flatpickr-day.cs-booked-day,
.flatpickr-day.cs-booked-day.disabled {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #ef4444 !important;
  text-decoration: line-through;
  opacity: 1 !important;
  cursor: not-allowed !important;
}
.flatpickr-day.cs-booked-day:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

/* ── Location cards ──────────────────────────── */
.cs-locations-section {
  padding: 60px 0;
}
.cs-locations-header {
  text-align: center;
  margin-bottom: 36px;
}
.cs-locations-header__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -.4px;
}
.cs-locations-header__sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.cs-locations-grid {
  display: grid;
  gap: 20px;
}
.cs-locations-grid--2col { grid-template-columns: repeat(2, 1fr); }
.cs-locations-grid--3col { grid-template-columns: repeat(3, 1fr); }
.cs-locations-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Tablet: 3/4-col drops to 2 */
@media (max-width: 900px) {
  .cs-locations-grid--3col,
  .cs-locations-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .cs-locations-section { padding: 40px 0; }
}

/* Mobile: always 2 per row */
@media (max-width: 560px) {
  .cs-locations-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cs-locations-header__title { font-size: 22px; }
  .cs-location-card__name { font-size: 15px !important; }
  .cs-location-card__count { font-size: 11px; }
  .cs-location-card__overlay { padding: 12px; }
}

.cs-location-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cs-location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cs-location-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size .4s ease;
}
.cs-location-card:hover .cs-location-card__img {
  background-size: 106%;
}
/* img fallback (used by shortcode) */
.cs-location-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.cs-location-card:hover .cs-location-card__img img {
  transform: scale(1.06);
}
.cs-location-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cfc7 100%);
}

.cs-location-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.cs-location-card__name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.cs-location-card__count {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
}

.cs-locations-cta {
  text-align: center;
  margin-top: 40px;
}
.cs-locations-cta__btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: .2px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(189,158,67,.35);
}
.cs-locations-cta__btn:hover {
  background: #a88930;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(189,158,67,.45);
  color: #fff;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: #1c1a17;
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-section {
  min-width: 0;
}
.footer-section__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
}
.footer-section__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.footer-section.is-open .footer-section__icon {
  transform: rotate(225deg);
}
.footer-section__content[hidden] { display: none !important; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}
.footer-brand-badge {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 240px;
  color: rgba(255,255,255,.55);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-widget {
  color: inherit;
}
.footer-widget > *:first-child {
  margin-top: 0;
}
.footer-widget > *:last-child {
  margin-bottom: 0;
}
.footer-widget-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin: 0 0 14px;
}
.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-navigation,
.site-footer .wp-block-page-list,
.site-footer .wp-block-social-links,
.site-footer .wp-block-paragraph,
.site-footer .wp-block-heading,
.site-footer .wp-block-list {
  margin: 0;
}
.site-footer .widget + .widget {
  margin-top: 18px;
}
.site-footer p,
.site-footer li,
.site-footer .wp-block-paragraph,
.site-footer .wp-block-list,
.site-footer .wp-block-navigation-item__content,
.site-footer .wp-block-page-list a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  line-height: 1.65;
}
.site-footer ul:not(.wp-block-social-links) {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer ul:not(.wp-block-social-links) li + li {
  margin-top: 9px;
}
.site-footer a,
.site-footer .wp-block-navigation a,
.site-footer .wp-block-page-list a {
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.site-footer a:hover,
.site-footer .wp-block-navigation a:hover,
.site-footer .wp-block-page-list a:hover {
  color: #fff;
}
.site-footer .wp-block-social-links {
  gap: 10px;
}
.site-footer .wp-block-social-link-anchor {
  color: #fff;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ── Focus ring (accessibility) ──────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ── Similar properties section ──────────────── */
.cs-similar-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
}
.cs-similar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.cs-similar-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.cs-similar-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  transition: opacity .15s;
}
.cs-similar-all:hover { opacity: .75; }
.cs-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .cs-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cs-similar-grid { grid-template-columns: 1fr; }
  .cs-similar-section { padding: 32px 0 40px; }
}

/* ── Mobile sticky booking bar ───────────────── */
.cs-mobile-bar { display: none; }

@media (max-width: 768px) {

  /* Sticky booking bar */
  .cs-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    z-index: 90;
    box-shadow: 0 -4px 24px rgba(0,0,0,.10);
  }
  .cs-mobile-bar__price {
    display: grid;
    gap: 2px;
    font-size: 19px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
  }
  .cs-mobile-bar__price strong {
    font-size: 18px;
    line-height: 1.1;
  }
  .cs-mobile-bar__price span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .cs-mobile-bar__btn {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
  }
  .cs-mobile-bar__btn:hover { background: #a88930; color: #fff; }

  /* Push footer above sticky bar */
  .site-footer { padding-bottom: 80px; }

  /* Container horizontal padding */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Single property mobile rules are centralized in the dedicated block below. */

  /* Similar stays */
  .cs-similar-grid { grid-template-columns: 1fr !important; }
  .cs-similar-title { font-size: 18px; }
  .cs-similar-section { padding-bottom: 100px; }
}

/* ── Misc helpers ─────────────────────────────── */
.map-placeholder {
  height: 520px;
  border-radius: 16px;
  border: 1px dashed rgba(17,24,39,.18);
  background: linear-gradient(180deg, var(--brand-light), rgba(189,158,67,.03));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 16px;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(640px, 100%);
}
.search-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  outline: none;
  font-family: var(--font);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* (mobile nav hamburger, overlay, and drawer are defined earlier in this file) */

/* ── Archive hero ─────────────────────────────── */
@media (max-width: 768px) {
  .archive-hero { padding: 24px 0 20px; }
  .archive-hero__heading { font-size: 22px; }
  .archive-hero__sub { font-size: 13px; margin-top: 2px; }
  .hero-searchbar {
    flex-direction: column;
    border-radius: 14px;
    overflow: visible;
    gap: 0;
    background: transparent;
    box-shadow: none;
  }
  .hero-searchbar__input {
    border-radius: 12px;
    padding: 13px 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .hero-searchbar__btn {
    margin: 8px 0 0;
    padding: 13px 20px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
  }
}

/* ── Filter strip pills ─────────────────────── */
@media (max-width: 768px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex-shrink: 0; }
  .pill-dropdown {
    position: fixed !important;
    left: 12px !important; right: 12px !important;
    width: auto !important;
    top: auto !important;
    bottom: 16px !important;
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ── Single property page ─────────────────────── */
@media (max-width: 768px) {
  html, body, .site-main {
    max-width: 100%;
    overflow-x: hidden;
  }
  body.single-property.cs-booking-drawer-open {
    overflow: hidden;
  }
  body.single-property .section > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.single-property .back-link,
  body.single-property .property-header,
  body.single-property .grid-2,
  body.single-property .property-gallery {
    padding-left: 2px;
    padding-right: 2px;
  }
  body.single-property .grid-2 > div > section,
  body.single-property .grid-2 > div > .pillrow,
  body.single-property .grid-2 > div > .metaicons {
    padding-left: 8px;
    padding-right: 8px;
  }
  body.single-property #calmstay-overview .cs-about-block {
    padding-left: 8px;
    padding-right: 8px;
  }
  .property-title-group .h1 { font-size: 22px; }
  .property-gallery { margin-top: 6px; }
  .property-gallery__slider { display: block; }
  .property-gallery__slider-track { display: flex; }
  .property-gallery__slider-ui { display: flex; }
  .property-gallery__main {
    height: clamp(210px, 62vw, 300px);
    border-radius: 14px;
    display: none;
  }
  .property-gallery__thumbs { display: none; }
  .property-favorite {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
    justify-content: center;
  }
  .property-favorite .heart { width: 16px; height: 16px; }
  .property-favorite .calmstay-fav-text { display: none; }
  .property-favorite--mobile {
    display: inline-flex;
    z-index: 3;
  }
  .property-gallery__view-all {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .booking-dates { grid-template-columns: 1fr; }
  .booking-dates .field:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }
  .booking-guests { grid-template-columns: 1fr; }
  .booking-card,
  .booking-form,
  .booking-form .field,
  .booking-form input,
  .booking-form select,
  .booking-form textarea,
  .booking-form button {
    max-width: 100%;
    min-width: 0;
  }
  .booking-form label,
  .booking-card .small,
  .calmstay-policy {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pillrow { display: none; }

  .property-meta-row {
    gap: 6px;
    margin-top: 10px;
  }
  .property-meta-chip {
    padding: 6px 10px;
    font-size: 12px;
  }
  .property-meta-more {
    display: inline-flex;
    align-items: center;
  }
  .property-meta-more-panel {
    gap: 6px;
  }
  .property-meta-detail {
    font-size: 12px;
    padding: 5px 9px;
  }

  .property-header { flex-direction: column; gap: 6px; }
  .section-heading {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
    padding: 14px 0 10px;
  }
  #calmstay-overview,
  #calmstay-amenities,
  #calmstay-house-rules,
  #calmstay-reviews,
  #calmstay-location,
  #calmstay-google-reviews {
    overflow-x: hidden;
  }
  .cs-section-toggle {
    display: flex;
  }
  .cs-section-body > .h2,
  .cs-section-body > .section-heading {
    display: none;
  }
  .metaicons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0;
    border-bottom: 0;
  }
  .metaicons .item {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .metaicons .item:first-child,
  .metaicons .item:last-child {
    padding-left: 12px;
  }
  #calmstay-overview .muted {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #calmstay-overview .cs-about-block,
  #calmstay-overview .cs-about-content {
    min-width: 0;
    max-width: 100%;
    padding-left: 2px;
    padding-right: 2px;
  }
  #calmstay-overview .cs-about-excerpt,
  #calmstay-overview .cs-about-content,
  #calmstay-overview .cs-about-content p,
  #calmstay-overview .cs-about-content li,
  #calmstay-overview .cs-about-content span,
  #calmstay-overview .cs-about-content div {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }
  #calmstay-overview .cs-about-content > *:last-child {
    margin-bottom: 0;
  }
  #calmstay-overview p,
  #calmstay-overview li {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #calmstay-overview .wp-block-image,
  #calmstay-overview figure {
    margin: 12px 0;
  }
  #calmstay-overview img,
  #calmstay-overview iframe,
  #calmstay-overview video,
  #calmstay-overview table {
    max-width: 100%;
  }
  #calmstay-overview table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .amenity-item {
    align-items: flex-start;
    padding: 10px 12px;
  }
  .amenity-item .label {
    line-height: 1.35;
  }
  #calmstay-google-reviews .cs-trustindex-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  #calmstay-google-reviews .cs-trustindex-wrap > * {
    min-width: 0;
    max-width: 100% !important;
  }
  #calmstay-google-reviews .cs-trustindex-wrap iframe,
  #calmstay-google-reviews .cs-trustindex-wrap img,
  #calmstay-google-reviews .cs-trustindex-wrap video,
  #calmstay-google-reviews .cs-trustindex-wrap canvas,
  #calmstay-google-reviews .cs-trustindex-wrap svg {
    max-width: 100% !important;
    height: auto !important;
  }
  .host-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .host-card .btn {
    width: 100%;
    justify-content: center;
  }
  #calmstay-reviews .card,
  #calmstay-google-reviews .cs-trustindex-wrap,
  #calmstay-location .card {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .location-map #calmstaySingleMap {
    height: 180px !important;
  }
  .booking-card.booking-card--drawer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-radius: 22px 22px 0 0 !important;
    max-height: min(88vh, 760px);
    overflow-y: auto;
    transform: translateY(calc(100% + 24px));
    transition: transform .22s ease;
    z-index: 100;
    box-shadow: 0 -12px 40px rgba(0,0,0,.18);
  }
  body.single-property.cs-booking-drawer-open .booking-card.booking-card--drawer {
    transform: translateY(0);
  }
  .booking-card.booking-card--drawer .booking-card__mobile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  .booking-card__mobile-copy {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
  }
  .booking-card__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .booking-card.booking-card--drawer + .cs-booking-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .34);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 95;
  }
  body.single-property.cs-booking-drawer-open .booking-card.booking-card--drawer + .cs-booking-scrim {
    opacity: 1;
    visibility: visible;
  }

  .cs-similar-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 420px) {
  .cs-mobile-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .cs-mobile-bar__btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

/* ── Shared mobile layout adjustments ─ */
@media (max-width: 768px) {
  .grid-2 { margin-top: 16px; }
  .booking-card { padding: 16px; }
  .cs-account-layout__sidebar { position: static; top: auto; }
}

/* ── General spacing ─────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 24px 0; }
  .container { width: calc(100% - 32px); }
}

/* ── Host dashboard: stat grid ───────────────── */
.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.cs-native-account__title {
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.05;
  margin-bottom: 8px;
}
.cs-native-account__tabs-wrap {
  padding: 10px;
  margin-top: 12px;
}
.cs-native-account__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-native-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.cs-native-tab:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}
.cs-native-tab.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.cs-host-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.cs-host-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cs-host-cal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.cs-host-cal__select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.cs-host-cal__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cs-host-cal__nav-btn {
  min-width: 36px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cs-host-cal__month-label {
  font-size: 15px;
  font-weight: 800;
  min-width: 140px;
  text-align: center;
}
.cs-host-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cs-host-cal__dow {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0;
}
.cs-host-cal__day {
  text-align: center;
  padding: 7px 2px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
.cs-host-cal__day.is-booked { background: #bd9e43; color: #fff; }
.cs-host-cal__day.is-ical { background: #f97316; color: #fff; }
.cs-host-cal__day.is-available { background: #dcfce7; color: #166534; }
.cs-host-cal__day.is-today { background: #e0e7ff; color: #3730a3; font-weight: 900; }
.cs-host-cal__day.is-past { background: #f9fafb; color: #9ca3af; }
.cs-host-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 14px;
  font-size: 12px;
}
.cs-host-cal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-host-cal__dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.cs-host-cal__dot.is-booked { background: #bd9e43; }
.cs-host-cal__dot.is-ical { background: #f97316; }
.cs-host-cal__dot.is-available { background: #dcfce7; border: 1px solid #bbf7d0; }
.cs-host-cal__dot.is-today { background: #e0e7ff; border: 1px solid #c7d2fe; }
.cs-host-cal__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px 10px;
  color: #6b7280;
  font-size: 13px;
}
.cs-host-cal__loading.is-error { color: #b91c1c; }
@media (max-width: 640px) {
  .cs-stat-grid {
    grid-template-columns: 1fr;
  }
  .cs-native-account__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .cs-native-tab {
    flex: 0 0 auto;
    min-height: 38px;
  }
  .cs-host-kpi-row {
    flex-direction: column;
    gap: 8px;
  }
  .cs-host-cal {
    padding: 14px !important;
  }
  .cs-host-cal__nav {
    justify-content: space-between;
  }
  .cs-host-cal__month-label {
    min-width: 0;
    flex: 1;
  }
  .cs-host-cal__day {
    padding: 8px 2px;
    font-size: 12px;
  }
}

/* ── Responsive data table → card stack ─────── */
.cs-responsive-table {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cs-responsive-table table {
  width: 100%;
  border-collapse: collapse;
}
.cs-responsive-table th,
.cs-responsive-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}
.cs-responsive-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.cs-responsive-table tbody tr:last-child td { border-bottom: none; }
.cs-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.cs-status--pending,
.cs-status--processing {
  background: #fef3c7;
  color: #92400e;
}
.cs-status--paid,
.cs-status--completed,
.cs-status--confirmed,
.cs-status--approved {
  background: #dcfce7;
  color: #065f46;
}
.cs-status--failed,
.cs-status--cancelled,
.cs-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}
.cs-status--refunded {
  background: #e5e7eb;
  color: #374151;
}
.cs-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
}
.cs-action-btn--view {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.cs-action-btn--view:hover {
  background: #dbeafe;
}
.cs-action-btn--cancel {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.cs-action-btn--cancel:hover {
  background: #fee2e2;
}

@media (max-width: 600px) {
  .cs-responsive-table {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .cs-responsive-table table,
  .cs-responsive-table thead,
  .cs-responsive-table tbody,
  .cs-responsive-table tr { display: block; }

  .cs-responsive-table thead { display: none; }

  .cs-responsive-table tbody tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
  }
  .cs-responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    font-size: 13px;
  }
  .cs-responsive-table td:last-child { border-bottom: none; }
  .cs-responsive-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    white-space: nowrap;
    padding-top: 1px;
    flex-shrink: 0;
  }
  .cs-responsive-table td:empty { display: none; }
  .cs-booking-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .cs-booking-actions .cs-action-btn {
    min-width: 84px;
  }
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { gap: 20px; }
  .footer-tagline { max-width: 100%; }
  .cs-similar-grid { grid-template-columns: 1fr; }
  html { font-size: 14px; }

  .footer-grid {
    display: block;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .footer-section + .footer-section {
    margin-top: 2px;
  }
  .footer-section__toggle {
    display: flex;
  }
  .footer-section__content {
    padding: 14px 0 8px;
  }
  .footer-section__content > .footer-col-title,
  .footer-section__content > .footer-widget-title {
    display: none;
  }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px;
    margin-top: 18px;
  }
}

/* ── Map pane hidden on mobile (archive) ──────── */
@media (max-width: 980px) {
  .map-pane { display: none; }
  .listing-layout { grid-template-columns: 1fr; }
}

/* ── Auth modal ──────────────────────────────── */
.cs-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.cs-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .58);
  backdrop-filter: blur(3px);
}
.cs-auth-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 26px));
  margin: 5.5vh auto 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
  padding: 16px;
}
.cs-auth-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.cs-auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-right: 40px;
  margin-bottom: 12px;
}
.cs-auth-modal__tab {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  min-height: 40px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cs-auth-modal__tab.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.cs-auth-modal__panel { display: none; }
.cs-auth-modal__panel.is-active { display: block; }
.cs-auth-modal__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
.cs-auth-modal__sub {
  margin: 6px 0 12px;
  color: #6b7280;
  font-size: 13px;
}
.cs-auth-modal__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: #374151;
  font-weight: 700;
}
.cs-auth-modal__input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.cs-auth-modal__input:focus {
  outline: none;
  border-color: #bd9e43;
  box-shadow: 0 0 0 3px rgba(189, 158, 67, .18);
}
.cs-auth-modal__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
  margin: 4px 0 10px;
}
.cs-auth-modal__submit {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.cs-auth-modal__submit:hover { opacity: .94; }
.cs-auth-modal__submit:disabled { opacity: .55; cursor: not-allowed; }
.cs-auth-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cs-auth-modal__msg {
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.cs-auth-modal__msg.is-error { color: #b91c1c; }
.cs-auth-modal__msg.is-success { color: #065f46; }
@media (max-width: 640px) {
  .cs-auth-modal__dialog {
    width: calc(100% - 16px);
    margin-top: 2.5vh;
    max-height: 95vh;
    overflow: auto;
    padding: 14px;
  }
  .cs-auth-modal__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
