/* ===== MADELY HOMES — DESIGN SYSTEM ===== */

/* Theme "wave" toggle (View Transitions API).
   Disable the default cross-fade and let JS clip a circle on the new snapshot,
   which reveals the new theme expanding over the old one from the button. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

/* Lenis smooth scroll (buttery inertia scrolling).
   These are required by Lenis; without them the page can't scroll. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- TOKENS ---- */
:root {
  color-scheme: light;
  --c-primary: #c77b5c;
  --c-primary-h: #a85f43;
  --c-dark: #000000;
  --c-bg: #ffffff;
  --c-bg-card: #f4f4f3;
  --c-surface: #ffffff;
  --c-surface-soft: #faf8f6;
  --c-border: #e7e7e7;
  --c-header-bg: rgba(255,255,255,.78);
  --c-header-bg-scrolled: rgba(255,255,255,.94);
  --c-text: #000000;
  --c-muted: #6b6b6b;
  --c-subtle: #8a8a8a;
  --c-ph: #9a9a9a;
  --c-mint: #c77b5c;
  --c-mint-light: #f4e4dc;
  --c-mint-fg: #8b4b32;
  --c-warm: #f4e4dc;
  --c-warm-fg: #8b4b32;
  --c-red: #ef4444;
  --c-red-bg: #fde8e8;
  --c-red-fg: #9b1c1c;
  --font-serif: 'TYPOGRAPHY', 'Noto Kufi Arabic', Georgia, serif;
  --font-sans: 'TYPOGRAPHY', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-head: var(--font-serif);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow: 0 8px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.18);
  --shadow-card: 0 20px 50px -34px rgba(0,0,0,.5);
  --transition: 150ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --c-primary: #c77b5c;
  --c-primary-h: #de9678;
  --c-dark: #ffffff;
  --c-bg: #000000;
  --c-bg-card: #111111;
  --c-surface: #151515;
  --c-surface-soft: #0b0b0b;
  --c-border: #2b2b2b;
  --c-header-bg: rgba(12,12,12,.72);
  --c-header-bg-scrolled: rgba(12,12,12,.9);
  --c-text: #ffffff;
  --c-muted: #d0cbc8;
  --c-subtle: #a49d98;
  --c-ph: #7b746f;
  --c-mint: #c77b5c;
  --c-mint-light: rgba(199,123,92,.18);
  --c-mint-fg: #f0b49c;
  --c-warm: rgba(199,123,92,.18);
  --c-warm-fg: #f0b49c;
  --c-red-bg: rgba(239,68,68,.16);
  --c-red-fg: #ffb4b4;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.45);
  --shadow: 0 12px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.65);
  --shadow-card: 0 20px 50px -34px rgba(0,0,0,.9);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
  /* Reserve the scrollbar gutter so locking body scroll (e.g. opening the
     language modal) can't make the whole page jump sideways. */
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
  /* Never allow horizontal overflow to shift the site right (keeps vertical
     scroll/sticky intact — clip, unlike hidden, doesn't break position:sticky). */
  overflow-x: clip;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--c-mint); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8cfc8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-subtle); }

/* ---- FOCUS ---- */
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }

/* ---- PHOTO PLACEHOLDER ---- */
.ph { background-image: repeating-linear-gradient(135deg, #ececea 0 12px, #f5f4f2 12px 24px); }

/* ===== TYPOGRAPHY ===== */
.serif { font-family: var(--font-serif); }
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 13px; }
.text-base{ font-size: 15px; }
.text-md  { font-size: 17px; }
.text-lg  { font-size: 19px; }
.text-xl  { font-size: 24px; }
.text-2xl { font-size: 32px; }
.text-3xl { font-size: 40px; }
.text-hero{ font-size: clamp(44px, 6vw, 72px); }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: .12em; }
.tracking { letter-spacing: .06em; }
.color-primary { color: var(--c-primary); }
.color-muted   { color: var(--c-muted); }
.color-subtle  { color: var(--c-subtle); }
.color-ph      { color: var(--c-ph); }
.color-dark    { color: var(--c-dark); }
.text-balance  { text-wrap: balance; }
.inline-icon { display: inline-block; flex: none; vertical-align: -0.16em; }
.icon-text { display: inline-flex; align-items: center; gap: 5px; }
.inline-icon.is-muted { opacity: .26; }
.inline-icon.is-filled { color: var(--c-primary); }
.inline-icon.is-filled path { fill: currentColor; stroke: currentColor; }

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.section { padding: 60px 0; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 300;
  background: var(--c-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
/* Condense + lift the header once the page is meaningfully scrolled. */
.header.is-scrolled {
  background: var(--c-header-bg-scrolled);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.28);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 40px; max-width: 1280px; margin: 0 auto;
  transition: padding .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.header.is-scrolled .header-inner { padding-top: 11px; padding-bottom: 11px; }
.logo-img { transition: height .35s cubic-bezier(0.22, 1, 0.36, 1); }
.header.is-scrolled .logo-img { height: 48px; }
.logo { display: inline-flex; align-items: center; color: var(--c-text); text-decoration: none; flex-shrink: 0; }
.logo svg { display: block; height: 28px; width: auto; }
.logo-img { display: block; width: auto; height: 58px; object-fit: contain; }
.logo-word { font-family: var(--font-serif); font-size: 27px; font-weight: 500; letter-spacing: -0.02em; color: var(--c-text); }
.logo-tag  { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary); margin-inline-start: 3px; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a, .header-nav button.nav-link {
  font-size: 15px; font-weight: 500; color: var(--c-muted);
  background: none; border: none; padding: 4px 0;
  transition: color var(--transition);
}
.header-nav a:hover, .header-nav button.nav-link:hover { color: var(--c-text); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Lang button */
.btn-lang {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--c-border);
  border-radius: var(--radius-pill); padding: 9px 15px;
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.btn-lang:hover { border-color: var(--c-text); background: var(--c-surface); }
.lang-icon { width: 16px; height: 16px; flex-shrink: 0; }
.lang-dot { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 6px; width: 190px; z-index: 320;
  animation: fadeDown .15s ease;
}
.lang-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; border: none; border-radius: 9px;
  padding: 10px 13px; background: transparent; color: var(--c-muted);
  transition: background var(--transition), color var(--transition);
}
.lang-option:hover, .lang-option.active { background: var(--c-bg-card); color: var(--c-text); }
.lang-code { font-size: 11px; font-weight: 700; opacity: .55; }

/* Auth buttons */
.btn-ghost { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--c-text); padding: 10px 8px; transition: color var(--transition); }
.btn-ghost:hover { color: var(--c-primary); }

/* User menu */
.user-menu-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-pill);
  padding: 8px 14px 8px 8px; font-size: 13px; font-weight: 600; color: var(--c-text);
  transition: box-shadow var(--transition);
}
.user-menu-btn:hover { box-shadow: var(--shadow-sm); }
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 6px; width: 220px; z-index: 200;
  animation: fadeDown .15s ease;
}
.user-dropdown hr { border: none; border-top: 1px solid var(--c-border); margin: 6px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 10px 14px;
  font-size: 14px; font-weight: 500; color: var(--c-text); background: none; border: none;
  border-radius: 9px; transition: background var(--transition);
}
.dropdown-item-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-primary); }
.dropdown-item:hover { background: var(--c-bg-card); }
.dropdown-item.danger:hover { background: var(--c-red-bg); color: var(--c-red-fg); }

/* Mobile hamburger */
.menu-toggle { display: none; background: none; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 8px; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--c-text); margin: 4px 0; border-radius: 2px; }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--c-border); padding: 12px 20px; background: var(--c-surface);
}
.mobile-nav a, .mobile-nav button { font-size: 15px; font-weight: 500; color: var(--c-muted); background: none; border: none; text-align: start; padding: 10px 0; width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: none; border-radius: var(--radius-pill); padding: 13px 26px;
  cursor: pointer; transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-h); box-shadow: 0 6px 20px rgba(199,123,92,.35); }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { background: var(--c-primary); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-text); background: var(--c-bg-card); }
.btn-mint { background: var(--c-mint); color: var(--c-dark); }
.btn-mint:hover { background: var(--c-primary-h); }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-icon { padding: 11px; border-radius: 50%; }
.btn-danger { background: var(--c-red-bg); color: var(--c-red-fg); }
.btn-danger:hover { background: #fbd0d0; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }
.badge-active   { background: var(--c-mint-light); color: var(--c-mint-fg); }
.badge-pending  { background: var(--c-warm); color: var(--c-warm-fg); }
.badge-rejected { background: var(--c-red-bg); color: var(--c-red-fg); }
.badge-archived { background: var(--c-bg-card); color: var(--c-subtle); }
.badge-confirmed { background: var(--c-mint-light); color: var(--c-mint-fg); }
.badge-cancelled { background: var(--c-red-bg); color: var(--c-red-fg); }
.badge-completed { background: #e0e7ff; color: #3730a3; }
.badge-type { background: rgba(255,255,255,.92); color: var(--c-muted); font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); letter-spacing: .05em; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.form-input, .form-textarea, .form-select {
  width: 100%; font-family: inherit; font-size: 15px;
  padding: 13px 15px; border: 1.5px solid var(--c-border);
  border-radius: var(--radius); background: #fff; color: var(--c-text);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-ph); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(199,123,92,.14);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9088' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-error { font-size: 12px; color: var(--c-red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Checkbox */
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--c-primary); cursor: pointer; }
.form-check span { font-size: 14px; font-weight: 500; color: var(--c-text); }

/* ===== ALERTS / FLASH ===== */
.flash-container { position: fixed; top: 80px; inset-inline-end: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: slideIn .25s ease; }
.flash-success { background: var(--c-mint-light); color: var(--c-mint-fg); border: 1px solid rgba(199,123,92,.28); }
.flash-error   { background: var(--c-red-bg); color: var(--c-red-fg); border: 1px solid #fbd0d0; }
.flash-warning { background: var(--c-warm); color: var(--c-warm-fg); border: 1px solid #eed9b0; }
.flash-info    { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.flash-close   { margin-inline-start: auto; background: none; border: none; font-size: 16px; cursor: pointer; opacity: .6; flex-shrink: 0; }
.flash-close:hover { opacity: 1; }

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 400;
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
}
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-copy { flex: 1; min-width: 240px; }
.cookie-banner-title { font-size: 14px; font-weight: 700; color: var(--c-text); margin: 0 0 4px; }
.cookie-banner-text { font-size: 13px; color: var(--c-text); line-height: 1.6; margin: 0; }
.cookie-banner-text a { color: var(--c-primary); text-decoration: underline; margin-inline-start: 6px; }
/* Accept and Decline are given the same prominence on purpose — consent is
   only meaningful when refusing is as easy as agreeing. */
.cookie-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { min-width: 116px; justify-content: center; }
@media (max-width: 560px) {
  .cookie-banner-inner { padding: 14px 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; min-width: 0; }
}

/* ===== HERO ===== */
.hero-wrap { position: relative; overflow: visible; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  contain: paint;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: rgba(0,0,0,.28);
  transition: opacity 1100ms ease;
}
.hero-bg.is-transitioning::after { opacity: 1; }
.hero-bg.hero-video-dawn::after {
  background:
    radial-gradient(circle at 50% 54%, rgba(255,213,157,.34), transparent 38%),
    linear-gradient(180deg, rgba(18,12,8,.22), rgba(255,174,101,.18) 55%, rgba(0,0,0,.30));
}
.hero-bg.hero-video-blur::after { background: rgba(0,0,0,.18); backdrop-filter: blur(5px); }
.hero-bg.hero-video-slide::after { background: rgba(0,0,0,.20); }
.hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover; object-position: center;
}
.hero-bg video.hero-video-layer {
  opacity: 0;
  transform: scale(1.015);
  filter: none;
  transition: opacity 1900ms ease, transform 2200ms ease, filter 2200ms ease;
}
.hero-bg video.hero-video-preload {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.hero-bg video.hero-video-layer.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-bg.hero-video-dawn video.hero-video-layer.is-active {
  filter: saturate(1.12) brightness(1.08) sepia(.08);
}
.hero-bg.hero-video-blur video.hero-video-layer {
  filter: blur(10px);
}
.hero-bg.hero-video-blur video.hero-video-layer.is-active {
  filter: blur(0);
}
.hero-bg.hero-video-slide video.hero-video-layer {
  transform: translateX(18px) scale(1.02);
}
.hero-bg.hero-video-slide video.hero-video-layer.is-active {
  transform: translateX(0) scale(1);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  transition: background .25s, backdrop-filter .25s;
}
.hero-wrap .hero { position: relative; z-index: 2; }
/* When bg is active: make all hero text white */
.hero-has-bg .hero-badge  { color: rgba(255,255,255,.9); }
.hero-has-bg .hero-title  { color: #fff; }
.hero-has-bg .hero-sub    { color: rgba(255,255,255,.8); }
.hero-has-bg .cat-chip    { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.hero-has-bg .cat-dot     { background: rgba(255,255,255,.7); }

.hero { padding: 80px 40px 50px; text-align: center; max-width: 1280px; margin: 0 auto; }
.hero-badge { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 20px; }
.hero-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; color: var(--c-text); max-width: 880px; margin: 0 auto; text-wrap: balance; }
.hero-sub { font-size: 19px; color: var(--c-subtle); margin: 24px auto 0; max-width: 540px; line-height: 1.55; }

/* ===== SEARCH BAR ===== */
.searchbar {
  margin: 46px auto 0; max-width: 880px;
  display: flex; align-items: stretch;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 48px -28px rgba(20,16,12,.4);
  overflow: hidden; position: relative; z-index: 80;
}
.searchbar.date-range-picker {
  overflow: visible;
}
.searchbar.date-range-picker .date-range-popover {
  top: calc(100% + 12px);
}
.searchbar-field {
  flex: 1; padding: 16px 24px; text-align: start; cursor: pointer;
  border: none; background: none; transition: background var(--transition);
  position: relative;
}
.searchbar-field:hover,
.searchbar-field:focus-within { background: rgba(199,123,92,.08); box-shadow: inset 0 0 0 1px rgba(199,123,92,.18); }
.searchbar-field:first-child { flex: 1.4; padding-left: 28px; }
.searchbar-divider { width: 1px; background: var(--c-border); margin: 12px 0; flex-shrink: 0; }
.searchbar-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ph); margin-bottom: 3px; }
.searchbar-value { font-size: 15px; font-weight: 500; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar-value.empty { color: var(--c-ph); }
.searchbar-input-wrap { flex: 1.4; display: flex; align-items: center; padding: 0 28px; }
.searchbar-input {
  width: 100%; border: none; outline: none; background: none;
  font-size: 15px; font-weight: 500; color: var(--c-text);
}
.location-autocomplete {
  position: relative;
}
.searchbar-input-wrap.location-autocomplete {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  transition: background .16s ease, box-shadow .16s ease;
}
.searchbar-input-wrap.location-autocomplete:hover,
.searchbar-input-wrap.location-autocomplete:focus-within,
.scp-loc.location-autocomplete:hover,
.scp-loc.location-autocomplete:focus-within {
  background: rgba(199,123,92,.08);
  box-shadow: inset 0 0 0 1px rgba(199,123,92,.18);
}
[data-theme="dark"] .searchbar-input-wrap.location-autocomplete:hover,
[data-theme="dark"] .searchbar-input-wrap.location-autocomplete:focus-within,
[data-theme="dark"] .scp-loc.location-autocomplete:hover,
[data-theme="dark"] .scp-loc.location-autocomplete:focus-within {
  background: rgba(199,123,92,.14);
  box-shadow: inset 0 0 0 1px rgba(199,123,92,.26);
}
.location-autocomplete .searchbar-input,
.location-autocomplete .search-compact-location {
  background: transparent !important;
}
.location-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  z-index: 1200;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.location-suggestions[hidden] {
  display: none;
}
.location-suggestion {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.location-suggestion span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}
.location-suggestion small {
  flex: none;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 650;
}
.location-suggestion:hover,
.location-suggestion.is-active {
  background: rgba(199,123,92,.12);
  color: var(--c-primary);
}
.searchbar-date-trigger,
.compact-date-trigger,
.date-range-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  text-align: start;
}
.compact-date-trigger {
  width: auto;
  min-width: 108px;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ── Search compact pill — Airbnb-style two-row ────────── */
.search-compact-pill {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 0;
  gap: 0;
  position: relative;
  flex: 1;
  min-width: 0;
}
.scp-section {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 18px; border-radius: 30px;
  border: none; background: none; text-align: left;
  font-family: inherit; transition: background .15s;
  min-width: 0; cursor: pointer;
}
.scp-section:hover { background: rgba(0,0,0,.05); }
[data-theme="dark"] .scp-section:hover { background: rgba(255,255,255,.06); }
.scp-loc { flex: 1.8; cursor: text; }
.scp-date { flex: 1.1; }
.scp-guests-wrap { flex: 1.2; }
.scp-label {
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--c-text); white-space: nowrap; line-height: 1.2;
  text-transform: uppercase; display: flex; align-items: center; gap: 4px;
}
.scp-val {
  font-size: 13px; color: var(--c-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.35;
}
.search-compact-location {
  border: none; outline: none; font-family: inherit;
  font-size: 13px; color: var(--c-muted); background: transparent;
  width: 100%; padding: 0;
}
.search-compact-location::placeholder { color: var(--c-muted); }
.search-compact-location:focus { color: var(--c-text); }
.search-compact-guests {
  border: none; outline: none; font-family: inherit;
  font-size: 13px; color: var(--c-muted); background: transparent;
  appearance: none; width: 100%; cursor: pointer; padding: 0;
}
.guest-dropdown { position: relative; }
.searchbar-field.guest-dropdown {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}
.searchbar-guest-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.scp-loc {
  border-radius: 30px 0 0 30px;
}
.scp-date {
  border-radius: 0;
}
.scp-guests-wrap {
  border-radius: 0 30px 30px 0;
}
.guest-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: start;
  border-radius: inherit;
}
.guest-dropdown-trigger:focus-visible {
  outline: none;
  box-shadow: none;
}
.guest-dropdown:focus-within {
  background: rgba(199,123,92,.08);
  box-shadow: inset 0 0 0 1px rgba(199,123,92,.18);
}
[data-theme="dark"] .guest-dropdown:focus-within {
  background: rgba(199,123,92,.14);
  box-shadow: inset 0 0 0 1px rgba(199,123,92,.26);
}
.guest-dropdown-trigger svg {
  flex: none;
  opacity: .65;
  transition: transform .16s ease;
}
.guest-dropdown.is-open .guest-dropdown-trigger svg {
  transform: rotate(180deg);
}
.guest-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  z-index: 1200;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.guest-dropdown-menu[hidden] { display: none; }
.guest-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.guest-option span {
  font-size: 14px;
  font-weight: 650;
}
.guest-option small {
  flex: none;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 650;
}
.guest-option:hover,
.guest-option.active {
  background: rgba(199,123,92,.12);
  color: var(--c-primary);
}
.search-compact-divider { width: 1px; height: 22px; background: var(--c-border); flex: none; }
.search-compact-submit {
  background: var(--c-primary); border: none; border-radius: 50%;
  width: 42px; height: 42px; min-width: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; margin-right: 4px;
  transition: opacity .15s, transform .1s;
}
.search-compact-submit:hover { opacity: .88; transform: scale(1.05); }
/* force transparent bg on inputs inside the new pill */
.search-compact-pill input,
.search-compact-pill select { background: transparent !important; }
.date-range-trigger {
  min-height: 28px;
}
.searchbar-btn {
  display: flex; align-items: center; gap: 9px; padding: 8px;
}
.searchbar-btn button {
  background: var(--c-primary); border: none; border-radius: var(--radius-pill);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 16px 28px; height: 100%; display: flex; align-items: center; gap: 9px;
  transition: background var(--transition);
}
.searchbar-btn button:hover { background: var(--c-primary-h); }
.search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex: none;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* Category chips */
.cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 13px; font-weight: 500; color: var(--c-muted);
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.cat-chip:hover, .cat-chip.active { border-color: var(--c-primary); color: var(--c-primary); background: rgba(199,123,92,.08); }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); }

/* ===== LISTINGS GRID ===== */
.listings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.listings-grid-2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: var(--font-serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; color: var(--c-text); }
.section-sub { font-size: 14px; color: var(--c-subtle); margin-top: 4px; }
.section-more { font-size: 14px; font-weight: 600; color: var(--c-primary); background: none; border: none; }
.section-more:hover { text-decoration: underline; }

/* Listing Card */
.listing-card { cursor: pointer; }
.listing-card-img {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; align-items: flex-end; padding: 14px;
  background-image: repeating-linear-gradient(135deg, #ececea 0 12px, #f5f4f2 12px 24px);
}
.listing-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg); transition: transform .4s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-type { position: absolute; top: 12px; inset-inline-start: 12px; }
.listing-card-fav {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--c-primary); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.listing-card-fav:hover { background: #fff; transform: scale(1.1); }
.listing-card-fav.active { color: #e11d48; }
.listing-card-body { padding: 13px 2px 0; }
.listing-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.listing-card-name { font-size: 15px; font-weight: 600; color: var(--c-text); }
.listing-card-rating { font-size: 14px; font-weight: 500; color: var(--c-muted); white-space: nowrap; }
.listing-card-title { font-size: 13px; color: var(--c-subtle); margin-top: 2px; }
.listing-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.listing-card-details span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--c-bg-card);
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.listing-card-price { font-size: 15px; color: var(--c-text); margin-top: 7px; }
.listing-card-price strong { font-weight: 700; }
.listing-card-price span { color: var(--c-subtle); }

.listing-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: none;
}
.listing-edit-link:hover { text-decoration: underline; }

/* 4/3 variant for search page */
.listing-card-img.ratio-4-3 { aspect-ratio: 4/3; border-radius: var(--radius); }

/* ===== HOST CTA ===== */
.host-cta {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl);
  padding: 56px 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 40px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-card);
}
.host-cta-text { position: relative; z-index: 2; max-width: 540px; }
.host-cta-title { font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--c-text); letter-spacing: -0.01em; }
.host-cta-desc  { font-size: 17px; color: var(--c-muted); margin-top: 14px; line-height: 1.55; }
.host-cta-img   { width: 280px; height: 180px; border-radius: var(--radius-lg); flex-shrink: 0; opacity: .7; }

/* ===== SEARCH PAGE ===== */
:root {
  --search-map-top: 0px;
  --search-map-height: 100dvh;
  --smap-topbar-height: 56px;
  --smap-tabs-height: 0px;
  --smap-layout-height: calc(100dvh - var(--smap-topbar-height) - var(--smap-tabs-height));
}
.search-layout { display: grid; grid-template-columns: 1fr 600px; align-items: start; min-height: 100vh; }
.search-left { overflow: visible; padding: 24px 32px 90px 40px; }
.search-map-pane {
  position: sticky;
  top: var(--search-map-top);
  height: var(--search-map-height);
  min-height: 320px;
}
#madely-map { width: 100%; height: 100%; }
.search-sticky-bar {
  position: relative; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border); padding: 14px 40px;
}
.search-bar-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.search-bar-top { display: flex; align-items: center; gap: 10px; }
.search-bar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-map-btn { display: inline-flex !important; align-items: center; gap: 6px; }
.search-filter-row { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.search-filter-row::-webkit-scrollbar { display: none; }
.filter-pill {
  font-family: inherit; font-size: 13px; font-weight: 500;
  background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill);
  padding: 8px 16px; cursor: pointer; color: var(--c-muted);
  transition: all var(--transition);
}
.filter-pill:hover, .filter-pill.active { border-color: var(--c-text); color: var(--c-text); }
.filter-pill.active { background: var(--c-text); color: var(--c-bg); }
.filter-pill-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-count-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex: none;
}
.filter-pill.active .filter-count-dot {
  background: var(--c-bg);
  color: var(--c-text);
}

/* Filter modal */
.filter-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 400;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .15s ease;
}
.filter-modal {
  background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  padding: 32px; animation: slideUp .25s ease;
}
.filter-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filter-modal-title { font-size: 18px; font-weight: 700; }
.filter-close { background: none; border: 1px solid var(--c-border); border-radius: 50%; width: 32px; height: 32px; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.filter-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--c-border); }
.filter-section-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.price-range-row { display: flex; gap: 12px; }
.price-input { flex: 1; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-option { border: 1.5px solid var(--c-border); border-radius: var(--radius); padding: 14px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; transition: all var(--transition); }
.type-option.active, .type-option:hover { border-color: var(--c-text); background: var(--c-bg-card); }
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amenity-check { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 500; transition: all var(--transition); }
.amenity-check:hover { border-color: var(--c-primary); }
.amenity-check input { accent-color: var(--c-primary); }
.filter-modal-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }

/* Filter count badges */
.filter-pill-more { display: inline-flex; align-items: center; gap: 5px; }
.filter-pill-fc {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--c-bg); color: var(--c-text);
  font-size: 11px; font-weight: 700; line-height: 1;
}
.filter-action-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: rgba(255,255,255,.28); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; margin-left: 2px;
}

/* Map price markers */
.map-price-marker {
  background: #ffffff; color: #000000;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.25); white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: max-content; min-width: max-content; line-height: 1.2;
  transition: background var(--transition), transform var(--transition);
  transform-origin: center;
}
.map-price-marker:hover, .map-price-marker.active { background: var(--c-primary); color: #ffffff; transform: scale(1.08); }
.map-price-icon {
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
}
.leaflet-container { font-family: var(--font-sans) !important; background: var(--c-bg-card); }

/* Date range picker */
.date-range-picker { position: relative; }
.date-range-popover {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: min(330px, calc(100vw - 32px));
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 250;
}
.booking-dates .date-range-popover {
  inset-inline-start: 0;
  transform: none;
  z-index: 400;
}
.date-range-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  border: 0;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .16s ease;
}
.date-range-popover.date-range-popover--modal {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1000 !important;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  animation: calendarModalIn .18s ease;
}
body.date-modal-open {
  overflow: hidden;
}
.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.date-picker-title {
  font-size: 14px;
  font-weight: 800;
}
.date-picker-nav {
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 16px;
  font-weight: 800;
}
.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.date-picker-weekdays {
  margin-bottom: 6px;
}
.date-picker-weekdays span {
  color: var(--c-subtle);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.date-picker-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
}
.date-picker-day:hover:not(:disabled) {
  border-color: var(--c-primary);
}
.date-picker-day.is-start,
.date-picker-day.is-end {
  background: var(--c-primary);
  color: #ffffff;
}
.date-picker-day.is-in-range {
  background: var(--c-mint-light);
  color: var(--c-primary);
}
.date-picker-day:disabled {
  color: var(--c-ph);
  opacity: .45;
  cursor: not-allowed;
}
/* Days that carry a live price become rounded rects tall enough for the number
   + price. When any day in the grid has a price, normalise every cell so rows
   stay even. */
.date-picker-grid:has(.has-price) .date-picker-day {
  aspect-ratio: auto;
  min-height: 46px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.05;
  font-size: 12px;
}
.date-picker-day-price {
  font-size: 9px;
  font-weight: 600;
  color: var(--c-subtle);
  font-variant-numeric: tabular-nums;
}
.date-picker-day.is-start .date-picker-day-price,
.date-picker-day.is-end .date-picker-day-price { color: rgba(255,255,255,.9); }
.date-picker-day.is-in-range .date-picker-day-price { color: var(--c-primary); }
.booking-pick-hint { margin-top: 14px; text-align: center; font-size: 13px; color: var(--c-subtle); }
.date-picker-hint {
  color: var(--c-subtle);
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

/* ===== LISTING DETAIL ===== */
.listing-detail { max-width: 1120px; margin: 0 auto; padding: 30px 40px 100px; }
.listing-title { font-family: var(--font-serif); font-weight: 400; font-size: 38px; letter-spacing: -0.01em; line-height: 1.1; }
.listing-meta { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 14px; color: var(--c-muted); flex-wrap: wrap; }
.listing-meta strong { font-weight: 600; color: var(--c-text); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; }
.photo-main { grid-row: span 2; position: relative; overflow: hidden; }
.photo-grid .ph, .photo-grid .photo-item { overflow: hidden; position: relative; }
.photo-grid img, .photo-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-grid .photo-item:hover img, .photo-main:hover img { transform: scale(1.04); }
.photo-more-btn {
  position: absolute; bottom: 14px; inset-inline-end: 14px;
  background: rgba(255,255,255,.92); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 7px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.photo-more-btn:hover { background: #fff; }

/* 2-col detail layout */
.listing-body { display: grid; grid-template-columns: 1fr 380px; gap: 56px; margin-top: 38px; }
.listing-info {}
.listing-section { border-bottom: 1px solid var(--c-border); padding: 24px 0; }
.listing-section:first-child { padding-top: 0; }
.listing-who { display: flex; justify-content: space-between; align-items: flex-start; }
.listing-who-title { font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.listing-who-specs { font-size: 15px; color: var(--c-subtle); margin-top: 6px; }
.host-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.perks-row { display: flex; flex-wrap: wrap; gap: 24px; }
.perk-item { display: flex; gap: 13px; align-items: flex-start; flex: 1; min-width: 160px; }
.perk-icon { width: 24px; height: 24px; border: 1.5px solid var(--c-primary); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-size: 12px; }
.perk-title { font-size: 14px; font-weight: 600; }
.perk-sub   { font-size: 13px; color: var(--c-subtle); }
.listing-desc { font-size: 16px; line-height: 1.7; color: var(--c-muted); }
.amenities-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amenity-item { display: flex; gap: 11px; align-items: center; font-size: 15px; color: var(--c-text); }
.amenity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); flex-shrink: 0; }

/* Booking widget */
.booking-aside {
  position: sticky; top: 100px; align-self: start; height: max-content;
}
.booking-widget {
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-card);
}
.booking-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.booking-price-num { font-size: 26px; font-weight: 700; }
.booking-price-per { color: var(--c-subtle); font-size: 15px; }
.booking-dates {
  border: 1.5px solid var(--c-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
.booking-dates.date-range-picker {
  overflow: visible;
}
.booking-dates-row { display: grid; grid-template-columns: 1fr 1fr; }
.booking-date-cell { padding: 13px 15px; }
.booking-date-cell:first-child { border-inline-end: 1px solid var(--c-border); }
.booking-date-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--c-ph); letter-spacing: .08em; }
.booking-date-input { width: 100%; border: none; outline: none; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--c-text); background: transparent; cursor: pointer; }
.booking-guests-cell { padding: 13px 15px; border-top: 1px solid var(--c-border); }
.booking-guests-row { display: flex; align-items: center; justify-content: space-between; }
.booking-guests-ctrl { display: flex; align-items: center; gap: 12px; }
.booking-guests-btn { width: 28px; height: 28px; border: 1.5px solid var(--c-border); border-radius: 50%; background: none; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.booking-guests-btn:hover { border-color: var(--c-text); }
.booking-breakdown { margin-top: 20px; font-size: 15px; color: var(--c-text); }
.breakdown-row { display: flex; justify-content: space-between; padding: 7px 0; }
.breakdown-row.total { padding: 13px 0 0; margin-top: 10px; border-top: 1px solid var(--c-border); font-weight: 700; font-size: 16px; }
.breakdown-row .underline { text-decoration: underline; }

/* Reviews */
.review-item { padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--c-subtle); }
.review-stars { color: #f59e0b; font-size: 12px; }
.review-text { font-size: 14px; line-height: 1.65; color: var(--c-muted); }
.star-input { display: flex; gap: 4px; margin-bottom: 12px; }
.star-btn { background: none; border: none; font-size: 24px; color: #d1d5db; cursor: pointer; transition: color var(--transition); }
.star-btn.active, .star-btn:hover { color: #f59e0b; }
.star-btn.active path, .star-btn:hover path { fill: currentColor; stroke: currentColor; }
.review-stars .inline-icon.is-filled { color: #f59e0b; }
.review-stars .inline-icon.is-filled path { fill: currentColor; stroke: currentColor; }

/* Favorite button states */
.fav-btn.active { color: #ef4444 !important; }
.fav-btn.active path { fill: currentColor !important; stroke: currentColor !important; }
.listing-card-fav.active { color: #ef4444 !important; }
.btn-favorited { color: #ef4444 !important; border-color: #ef4444 !important; }
.btn-favorited path { fill: currentColor !important; stroke: currentColor !important; }

/* Rules section */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule-item { display: flex; flex-direction: column; gap: 2px; }
.rule-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-subtle); }
.rule-value { font-size: 15px; font-weight: 500; }

/* ===== AUTH ===== */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 73px); }
.auth-panel {
  position: relative; display: flex; align-items: flex-end; padding: 48px;
  background-image: repeating-linear-gradient(135deg, #cfe1d7 0 14px, #d8e7de 14px 28px);
}
.auth-panel-content { max-width: 380px; }
.auth-quote { font-family: var(--font-serif); font-size: 28px; line-height: 1.3; color: #1b2e26; }
.auth-quote-by { font-size: 14px; font-weight: 600; color: #3a5247; margin-top: 16px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-title { font-family: var(--font-serif); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; }
.auth-icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-bg-card); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.auth-sub { font-size: 15px; color: var(--c-subtle); margin-top: 8px; }
.auth-tabs { display: flex; gap: 6px; background: var(--c-bg-card); border-radius: var(--radius); padding: 4px; margin-top: 24px; }
.auth-tab { flex: 1; font-family: inherit; font-size: 14px; font-weight: 600; border: none; border-radius: 9px; padding: 11px; background: transparent; color: var(--c-subtle); cursor: pointer; transition: all var(--transition); }
.auth-tab.active { background: #fff; color: var(--c-text); box-shadow: var(--shadow-sm); }
.auth-fields { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--c-ph); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.auth-social { display: flex; flex-direction: column; gap: 10px; }
.btn-social { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--radius); padding: 13px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--c-text); cursor: pointer; transition: all var(--transition); }
.btn-social:hover { border-color: var(--c-text); background: var(--c-bg-card); }
.auth-switch { font-size: 14px; color: var(--c-subtle); text-align: center; margin-top: 16px; }
.auth-switch a { color: var(--c-primary); font-weight: 600; }

/* ===== HOST DASHBOARD ===== */
.host-layout { display: flex; min-height: 100vh; }
.host-sidebar {
  width: 260px; flex-shrink: 0; border-inline-end: 1px solid var(--c-border);
  padding: 28px 20px; position: sticky; top: 73px; height: calc(100vh - 73px); overflow-y: auto;
}
.host-sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ph); padding: 10px 12px; margin-bottom: 4px; }
.host-sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--c-muted);
  text-decoration: none; transition: all var(--transition);
}
.host-sidebar-link:hover { background: var(--c-bg-card); color: var(--c-text); }
.host-sidebar-link.active { background: var(--c-mint-light); color: var(--c-mint-fg); }
.host-sidebar-icon { width: 20px; text-align: center; }
.host-content { flex: 1; padding: 34px 40px 80px; overflow: hidden; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 22px; }
.stat-label { font-size: 13px; color: var(--c-subtle); font-weight: 500; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.stat-delta { font-size: 13px; font-weight: 600; color: var(--c-mint-fg); margin-top: 6px; }
.stat-delta.negative { color: var(--c-red-fg); }

/* Income chart */
.chart-card { background: var(--c-dark); border-radius: var(--radius-lg); padding: 24px; color: var(--c-bg); }
.chart-title { font-size: 13px; color: var(--c-primary); font-weight: 500; }
.chart-amount { font-size: 32px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-top: 20px; }
.chart-bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--c-primary); min-height: 4px; transition: opacity var(--transition); }
.chart-bar:hover { opacity: .8; }
.chart-bar-month { font-size: 10px; color: var(--c-subtle); text-align: center; margin-top: 4px; }
.chart-labels { display: flex; gap: 6px; margin-top: 4px; }
.chart-label-item { flex: 1; font-size: 10px; color: var(--c-subtle); text-align: center; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ph); padding: 12px 20px; text-align: start; border-bottom: 1px solid var(--c-border); background: var(--c-bg-card); }
.data-table td { padding: 14px 20px; border-bottom: 1px solid #f1f3f0; font-size: 14px; vertical-align: middle; }
.data-table tr:hover td { background: rgba(0,0,0,.01); }
.data-table tr:last-child td { border-bottom: none; }
.listing-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.listing-thumb-ph { width: 44px; height: 44px; border-radius: var(--radius-sm); background-image: repeating-linear-gradient(135deg, #ececea 0 6px, #f5f4f2 6px 12px); flex-shrink: 0; }

/* Booking request card */
.request-card { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #f1f3f0; }
.request-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.request-info { flex: 1; }
.request-name { font-size: 14px; font-weight: 600; }
.request-dates { font-size: 12px; color: var(--c-subtle); margin-top: 2px; }
.request-actions { display: flex; gap: 8px; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0; background: var(--c-dark);
  padding: 28px 16px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.admin-logo { display: flex; align-items: baseline; gap: 2px; padding: 0 8px 28px; }
.admin-logo-word { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--c-bg); }
.admin-logo-tag  { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-mint); margin-inline-start: 3px; }
.admin-sidebar-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #8a8a8a; padding: 12px 10px 6px; margin-top: 8px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: #cfccc6;
  text-decoration: none; transition: all var(--transition); margin-bottom: 2px;
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-link.active { background: rgba(199,123,92,.22); color: var(--c-primary); }
.admin-nav-icon { width: 18px; opacity: .7; }
.admin-content { flex: 1; padding: 34px 40px 80px; overflow-x: auto; }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.admin-kick { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); }
.admin-title { font-family: var(--font-serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; margin-top: 4px; }

/* Dashboard 2-col */
.dash-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }

/* Table filters */
.table-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.status-tab { font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-border); background: #fff; color: var(--c-muted); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.status-tab:hover { border-color: var(--c-text); color: var(--c-text); }
.status-tab.active { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.table-search { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill); padding: 0 14px; gap: 8px; flex: 1; max-width: 300px; }
.table-search input { border: none; outline: none; font-family: inherit; font-size: 14px; padding: 9px 0; background: transparent; width: 100%; }

/* Card wrapper */
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 700; }
.card-body { padding: 24px; }

/* Site settings */
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
/* Whether the public licensing block is currently rendering. */
.settings-status {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; margin: 0 0 18px;
}
.settings-status-on  { background: rgba(34,160,110,.12); color: #1f9d68; }
.settings-status-off { background: rgba(150,150,150,.14); color: var(--c-muted); }

.settings-help {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.font-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.font-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.font-choice:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.font-choice.active,
.font-choice:has(input:checked) {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(199,123,92,.16);
}
.font-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.font-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.font-choice-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-muted);
}
.font-choice-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-card);
  color: transparent;
}
.font-choice.active .font-choice-check,
.font-choice:has(input:checked) .font-choice-check {
  background: var(--c-primary);
  color: #ffffff;
}
.font-choice-preview {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}
.font-choice-sample {
  color: var(--c-subtle);
  font-size: 14px;
  line-height: 1.45;
}
.settings-preview {
  position: sticky;
  top: 24px;
}
.settings-preview-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.settings-preview-text {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

/* Admin pages overview */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.page-block-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  background:
    linear-gradient(90deg, rgba(199,123,92,.16), transparent 42%),
    var(--c-surface);
  box-shadow: 0 14px 32px -26px rgba(0,0,0,.45);
}
.page-block-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--c-primary);
}
.page-block-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 22px 18px 26px;
}
.page-block-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(199,123,92,.24);
}
.page-block-copy {
  min-width: 0;
}
.page-block-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
}
.page-block-desc {
  margin: 6px 0 0;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-muted);
}
.page-block-url {
  display: inline-flex;
  margin-top: 12px;
  max-width: 100%;
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-block-badge {
  background: var(--c-text);
  color: var(--c-bg);
  white-space: nowrap;
  flex-shrink: 0;
}
.page-block-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 22px 16px 26px;
  border-top: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-bg-card) 72%, transparent);
}
.page-block-state {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-subtle);
}
.page-block-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 40px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--c-border); background: #fff; font-size: 14px; font-weight: 600; color: var(--c-muted); text-decoration: none; transition: all var(--transition); }
.page-link:hover { border-color: var(--c-text); color: var(--c-text); }
.page-link.active { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ===== PROFILE ===== */
.profile-layout { max-width: 760px; margin: 0 auto; padding: 48px 40px; }
.profile-avatar-lg { width: 100px; height: 100px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 36px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.profile-name { font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.profile-joined { font-size: 13px; color: var(--c-subtle); }
.profile-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}
.profile-page-title {
  margin: 0 0 28px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
}
.profile-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.profile-summary {
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 96px;
}
.profile-summary-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.profile-summary-initials {
  background: linear-gradient(135deg, var(--c-primary), var(--c-mint));
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}
.profile-summary-name {
  font-size: 16px;
  font-weight: 800;
}
.profile-summary-role,
.profile-summary-date {
  color: var(--c-subtle);
  font-size: 12px;
  margin-top: 4px;
}
.profile-summary-date {
  margin-top: 9px;
}
.profile-summary-btn {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}
.profile-form {
  min-width: 0;
}
.profile-card-body {
  display: grid;
  gap: 16px;
}
.profile-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-password-card {
  margin-top: 20px;
}
.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.profile-actions .btn-primary {
  flex: 1;
  justify-content: center;
}
.profile-note {
  color: var(--c-subtle);
  font-size: 12px;
}
.avatar-uploader {
  display: grid;
  gap: 14px;
}
.avatar-dropzone {
  position: relative;
  min-height: 104px;
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-card);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.avatar-dropzone:hover,
.avatar-dropzone.is-active {
  border-color: var(--c-primary);
  background: var(--c-mint-light);
}
.avatar-dropzone strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.avatar-dropzone small {
  display: block;
  margin-top: 2px;
  color: var(--c-subtle);
  font-size: 12px;
}
.avatar-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.avatar-editor {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-card);
}
.avatar-crop-frame {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  touch-action: none;
  cursor: grab;
}
.avatar-crop-frame:active {
  cursor: grabbing;
}
.avatar-crop-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.avatar-circle-guide {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0,0,0,.28);
  pointer-events: none;
}
.avatar-editor-controls {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.avatar-editor-controls label {
  color: var(--c-subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.avatar-editor-controls input {
  accent-color: var(--c-primary);
}
.avatar-editor-hint {
  color: var(--c-subtle);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-summary { position: static; }
}
@media (max-width: 520px) {
  .profile-page { padding: 28px 16px 72px; }
  .profile-name-grid { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }
}

/* ===== BOOKINGS LIST ===== */
.booking-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px; display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: start; }
.booking-item-img { width: 80px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; }
.booking-item-ph { width: 80px; height: 70px; border-radius: var(--radius-sm); background-image: repeating-linear-gradient(135deg, #ececea 0 6px, #f5f4f2 6px 12px); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 20px; }
.empty-svg { color: var(--c-primary); }
.feature-svg-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--c-mint-light);
  color: var(--c-primary);
}

/* ===== BECOME HOST ===== */
.host-page {
  background: var(--c-bg);
  color: var(--c-text);
}
.host-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(199,123,92,.24), transparent 42%),
    #050505;
  color: #fff;
  padding: 88px 24px 72px;
}
.host-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -56px;
  width: min(520px, 84vw);
  height: 120px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(199,123,92,.18);
  filter: blur(28px);
}
.host-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}
.host-hero-copy {
  text-align: start;
}
.host-hero-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.host-hero-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.02;
}
.host-hero-sub {
  max-width: 620px;
  margin: 22px 0 0;
  color: #d7d1ca;
  font-size: 18px;
  line-height: 1.65;
}
.host-hero .host-cta-img {
  width: 100%;
  height: 280px;
  opacity: 1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  background-color: #171717;
  background-size: cover;
  background-position: center;
}
.host-application-wrap {
  max-width: 760px;
  margin: -32px auto 72px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.host-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.host-status-card {
  text-align: center;
}
.host-status-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-primary) 18%, var(--c-bg-card));
  color: var(--c-primary);
}
.host-form-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
}
.host-form-sub {
  margin: 0 0 28px;
  color: var(--c-muted);
  line-height: 1.65;
}
.host-application-form {
  display: grid;
  gap: 16px;
}
.host-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.required-mark {
  color: var(--c-red);
}
.host-submit-btn {
  justify-content: center;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 16px;
}
.host-form-note {
  margin: -4px 0 0;
  text-align: center;
  color: var(--c-subtle);
  font-size: 13px;
}
.host-alert {
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, #ef4444 12%, var(--c-bg-card));
  color: #ef4444;
}
.host-alert p {
  margin: 8px 0 0;
  font-size: 14px;
}
.host-application-summary {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-bg-card);
  text-align: start;
}
.host-application-summary span,
.host-application-summary small {
  color: var(--c-subtle);
}
.host-steps-section,
.host-estimator {
  max-width: 1100px;
  margin: 0 auto 76px;
  padding: 0 24px;
}
.host-section-title {
  margin: 0 0 34px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
}
.host-steps-grid,
.host-benefits-grid {
  display: grid;
  gap: 18px;
}
.host-steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.host-step-card,
.host-benefit-card {
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-surface);
  padding: 24px;
}
.host-step-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 900;
}
.host-step-card h3,
.host-benefit-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 900;
}
.host-step-card p,
.host-benefit-card p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.6;
}
.host-benefits-section {
  padding: 72px 24px;
  margin-bottom: 76px;
  background: var(--c-bg-card);
}
.host-benefits-inner {
  max-width: 960px;
  margin: 0 auto;
}
.host-benefits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.host-estimator {
  max-width: 760px;
  text-align: center;
}
.host-estimator-sub {
  margin: -18px 0 28px;
  color: var(--c-muted);
}
.host-estimator-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.host-estimator-field {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-surface);
}
.host-estimator-field span {
  color: var(--c-subtle);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.host-estimator-field input {
  width: 92px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-text);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}
.host-estimator-result {
  margin-top: 24px;
  padding: 28px;
  border-radius: 22px;
  background: #050505;
  color: #fff;
}
.host-estimator-result span,
.host-estimator-result small {
  color: #cfc8c0;
}
.host-estimator-result strong {
  display: block;
  margin: 8px 0;
  font-family: var(--font-head);
  font-size: clamp(32px, 7vw, 46px);
  font-weight: 900;
}

@media (max-width: 900px) {
  .host-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .host-hero-copy {
    text-align: center;
  }
  .host-hero-sub {
    margin-inline: auto;
  }
  .host-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .host-hero { padding: 64px 20px 58px; }
  .host-hero .host-cta-img {
    height: 170px;
    border-radius: 18px;
  }
  .host-application-wrap { margin-top: -22px; padding-inline: 16px; }
  .host-form-card { padding: 24px 18px; border-radius: 18px; }
  .host-form-grid,
  .host-steps-grid,
  .host-benefits-grid { grid-template-columns: 1fr; }
  .host-benefits-section { padding: 56px 16px; }
  .host-steps-section,
  .host-estimator { padding-inline: 16px; }
  .host-estimator-field { width: 100%; justify-content: space-between; }
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.spec-field {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px;
}
.spec-field .form-label {
  margin-bottom: 8px;
}
.spec-input {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  background: var(--c-surface);
}
.listing-location-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--c-bg-card);
}
.listing-map-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.listing-map-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}
.listing-map-search .form-input {
  min-height: 42px;
}
.listing-map-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.listing-map-suggestion,
.listing-map-suggestion-empty {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--c-text);
  text-align: start;
}
.listing-map-suggestion:hover,
.listing-map-suggestion:focus-visible {
  background: var(--c-bg-card);
}
.listing-map-suggestion-title {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listing-map-suggestion-sub {
  color: var(--c-subtle);
  font-size: 11px;
  line-height: 1.35;
}
.listing-map-suggestion-empty {
  color: var(--c-subtle);
  font-size: 13px;
}
.listing-map-shell {
  position: relative;
}
.listing-map-shell.is-expanded {
  position: fixed;
  inset: 16px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
}
.listing-map-shell.is-expanded::before {
  content: "Click map to set location · Scroll to zoom · Esc to close";
  display: block;
  margin-bottom: 10px;
  color: var(--c-subtle);
  font-size: 12px;
  font-weight: 700;
}
.listing-map-shell.is-expanded .listing-location-map {
  flex: 1;
  height: auto;
  min-height: 0;
  margin: 0;
  border-radius: 14px;
}
body.listing-map-expanded-open {
  overflow: hidden;
}
body.listing-map-expanded-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.listing-map-status {
  min-height: 18px;
  margin: -4px 0 12px;
  color: var(--c-subtle);
  font-size: 12px;
}

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
  .listing-map-tools,
  .listing-map-search {
    grid-template-columns: 1fr;
  }
  .listing-map-suggestions {
    top: calc(50% + 4px);
  }
  .listing-map-shell.is-expanded {
    inset: 8px;
    padding: 10px;
  }
}

/* Listing photo manager */
.photo-manager { display: flex; flex-direction: column; gap: 14px; }
.photo-dropzone {
  position: relative;
  min-height: 104px;
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-card);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: start;
  transition: border-color var(--transition), background var(--transition);
}
.photo-dropzone:hover,
.photo-dropzone.is-active {
  border-color: var(--c-primary);
  background: var(--c-mint-light);
}
.photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.photo-sort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}
.photo-sort-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-card);
  cursor: grab;
}
.photo-sort-item:active { cursor: grabbing; }
.photo-sort-item.is-dragging { opacity: .55; }
.photo-sort-item.is-cover { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(199,123,92,.18); }
.photo-sort-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-sort-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: var(--c-primary);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}
.photo-sort-actions {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}
.photo-sort-actions button {
  flex: 1;
  border: 1px solid var(--c-border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--c-surface) 90%, transparent);
  color: var(--c-text);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 6px;
}
.photo-sort-actions button:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.empty-title { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-bottom: 10px; }
.empty-sub { font-size: 15px; color: var(--c-subtle); max-width: 360px; margin: 0 auto 28px; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  min-height: 380px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--c-bg-card) 0%, var(--c-surface) 100%);
  position: relative; overflow: hidden;
}
.about-hero-bg {
  background-image: none; /* overridden by page config if set */
  background-size: cover; background-position: center;
}
.about-hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.28) 100%);
}
.about-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; padding: 80px 40px;
  text-align: center;
}
.about-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: 12px;
}
.about-title {
  font-size: clamp(32px,5vw,56px); font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 18px;
}
.about-tagline {
  font-size: clamp(16px,2vw,20px); color: rgba(255,255,255,.82); line-height: 1.6; max-width: 580px; margin: 0 auto;
}
.about-container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.about-section { padding: 72px 0; }
.about-section-alt { background: var(--c-surface); }
.about-section-heading {
  font-size: clamp(22px,3vw,32px); font-weight: 700; color: var(--c-text);
  margin-bottom: 40px; text-align: center;
}
.about-section-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: 14px;
}
.about-story-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}
.about-story {
  font-size: 17px; line-height: 1.75; color: var(--c-text);
}
.about-story-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.about-stat {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px 18px; text-align: center;
}
.about-stat-num {
  display: block; font-size: 28px; font-weight: 800; color: var(--c-primary); line-height: 1;
}
.about-stat-label {
  font-size: 12px; color: var(--c-muted); margin-top: 6px; display: block;
}
.about-values-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.about-value-card {
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg, 16px); padding: 32px 28px;
}
.about-value-icon {
  width: 52px; height: 52px; background: rgba(199,123,92,.12);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.about-value-title {
  font-size: 17px; font-weight: 700; color: var(--c-text); margin-bottom: 10px;
}
.about-value-desc { font-size: 14px; line-height: 1.6; color: var(--c-muted); }
/* Team grid */
.about-team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 24px;
}
.about-team-card { text-align: center; }
.about-team-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; display: block;
}
.about-team-photo-placeholder {
  background: var(--c-surface); border: 2px dashed var(--c-border);
  display: flex; align-items: center; justify-content: center;
}
.about-team-name { font-size: 16px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.about-team-role { font-size: 13px; color: var(--c-primary); margin-bottom: 8px; font-weight: 600; }
.about-team-bio { font-size: 13px; line-height: 1.55; color: var(--c-muted); }
/* Team slider */
.about-team-slider-wrap {
  display: flex; align-items: center; gap: 12px; overflow: hidden;
}
.about-team-track-wrap { flex: 1; overflow: hidden; }
.about-team-track {
  display: flex; gap: 20px; transition: transform .35s ease; will-change: transform;
}
.about-team-track .about-team-card {
  flex: 0 0 calc(33.33% - 14px); min-width: 200px;
}
.about-slider-btn {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, border-color .15s; color: var(--c-text);
}
.about-slider-btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
/* Contact */
.about-contact-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.about-contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg, 16px); padding: 24px;
}
.about-contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(199,123,92,.1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-contact-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-muted); margin-bottom: 5px;
}
/* The *-value class names are deliberately new: the old .about-contact-phone
   / -address / -email selectors still carry per-language text overrides saved
   in the page editor, including the placeholder number. Renaming retires those
   overrides so all six languages show the one value from site settings. */
.about-contact-address,.about-contact-phone,.about-contact-email,
.about-contact-address-value,.about-contact-phone-value,.about-contact-email-value {
  font-size: 15px; font-weight: 500; color: var(--c-text); line-height: 1.4;
}
.about-contact-phone-value a,.about-contact-email-value a {
  color: inherit; text-decoration: none;
}
.about-contact-phone-value a:hover,.about-contact-email-value a:hover {
  color: var(--c-primary); text-decoration: underline;
}
/* Responsive */
@media (max-width: 900px) {
  .about-story-wrap { grid-template-columns: 1fr; gap: 32px; }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: 1fr; }
  .about-team-track .about-team-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .about-hero-inner { padding: 60px 20px; }
  .about-container { padding: 0 20px; }
  .about-section { padding: 48px 0; }
  .about-story-stats { grid-template-columns: 1fr 1fr; }
  .about-team-track .about-team-card { flex: 0 0 calc(100% - 0px); }
}

/* Staff card in page editor sidebar */
.pe-staff-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 8px;
  margin-bottom: 8px; background: var(--c-bg-card);
}
.pe-staff-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pe-staff-info { flex: 1; min-width: 0; }
.pe-staff-info strong { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-staff-info span { font-size: 11px; color: var(--c-muted); }
.pe-staff-del {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--c-muted); font-size: 16px; line-height: 1; padding: 4px;
  border-radius: 4px; transition: color .15s;
}
.pe-staff-del:hover { color: #e55; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--c-border); padding: 36px 0; margin-top: auto; background: #fff; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--c-subtle); transition: color var(--transition); }
.footer-links a:hover { color: var(--c-text); }
.footer-copy { font-size: 13px; color: var(--c-subtle); }
/* "Cookie settings" reopens the consent banner; styled as a footer link so it
   reads as one rather than as a call to action. */
.footer-link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--c-subtle);
  transition: color var(--transition);
}
.footer-link-btn:hover { color: var(--c-text); text-decoration: underline; }

/* Licensing block — only rendered when the details exist (see
   partials/company_legal.html). */
.footer-legal {
  width: 100%; border-top: 1px solid var(--c-border);
  padding-top: 18px; margin-top: 4px;
}
.footer-legal-heading {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-subtle); margin: 0 0 10px;
}
.footer-legal-list {
  display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0;
}
.footer-legal-item { display: flex; flex-direction: column; gap: 2px; }
.footer-legal-item dt { font-size: 11px; color: var(--c-subtle); margin: 0; }
.footer-legal-item dd { font-size: 13px; color: var(--c-text); margin: 0; font-weight: 600; }

/* Sign-in prompt shown to anonymous visitors on the public host landing page. */
.host-signin-cta {
  border: 1px dashed var(--c-border); border-radius: 14px;
  padding: 20px; margin-top: 18px; background: var(--c-bg-card);
}
.host-signin-cta p { font-size: 14px; color: var(--c-subtle); margin: 0 0 14px; line-height: 1.6; }
.host-signin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Zoom control built from real <button>s (see madelyAddZoomButtons in main.js).
   Matches Leaflet's own metrics so it sits where users expect. */
.madely-zoom { display: flex; flex-direction: column; }
.madely-zoom-btn {
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  font: 700 18px/28px system-ui, sans-serif; text-align: center;
  background: #fff; color: #333; border: none; border-bottom: 1px solid #ccc;
}
.madely-zoom-btn:last-child { border-bottom: none; }
.madely-zoom-btn:hover { background: #f4f4f4; color: #000; }
.madely-zoom-btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
[data-theme="dark"] .madely-zoom-btn { background: #1b1815; color: #ddd; border-bottom-color: #333; }
[data-theme="dark"] .madely-zoom-btn:hover { background: #262220; color: #fff; }

/* ===== SEARCH PAGE HEADING ===== */
.search-h1 {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  line-height: 1.2; color: var(--c-text); margin: 0 0 6px;
}
.search-intro { font-size: 14px; color: var(--c-subtle); margin: 0 0 14px; }
@media (max-width: 640px) { .search-h1 { font-size: 21px; } }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-subtle); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-subtle); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumb-sep { color: var(--c-border); }

/* ===== UTILITIES ===== */
.d-flex { display: flex; }
.d-grid { display: grid; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1 { flex: 1; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.relative { position: relative; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-pill { border-radius: var(--radius-pill); }
.bg-white { background: #fff; }
.border { border: 1px solid var(--c-border); }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.underline { text-decoration: underline; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
@keyframes slideUp { from { transform: translateY(100%) } to { transform: none } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px) } to { opacity: 1; transform: none } }
@keyframes calendarModalIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98) } to { opacity: 1; transform: translate(-50%, -50%) scale(1) } }
@keyframes spin { to { transform: rotate(360deg) } }
.animate-spin { animation: spin 1s linear infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-preview { position: static; }
  .search-layout { grid-template-columns: 1fr; }
  .search-map-pane { display: none; }
}

@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-body { grid-template-columns: 1fr; }
  .booking-aside { position: static; height: auto; }
  .booking-widget { position: static; margin-top: 32px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: unset; height: auto; }
  .photo-main { grid-row: unset; aspect-ratio: 4/3; }
  .photo-grid .ph, .photo-grid .photo-item { aspect-ratio: 4/3; }
  .host-cta { flex-direction: column; padding: 40px; }
  .host-cta-img { width: 100%; height: 120px; }
}

@media (max-width: 900px) {
  .host-sidebar { display: none; }
  .admin-sidebar { display: none; }
  .host-content, .admin-content { padding: 20px; }
}

@media (max-width: 768px) {
  .container, .container-sm { padding: 0 20px; }
  .header-inner { padding: 12px 16px; gap: 10px; min-width: 0; }
  .logo { min-width: 0; flex-shrink: 1; }
  .header .logo-img { height: 44px; max-width: 220px; }
  .logo-word { font-size: 22px; }
  .logo-tag { font-size: 10px; letter-spacing: .08em; }
  .header-nav { display: none; }
  .header-actions { gap: 8px; min-width: 0; }
  .header-actions > .dropdown-wrapper,
  .header-actions > .theme-toggle,
  .header-actions > .btn-ghost,
  .header-actions > .btn-primary,
  .header-actions > .user-menu-btn {
    display: none;
  }
  .menu-toggle { display: block; }
  .hero { padding: 50px 20px 36px; }
  .hero-title { font-size: clamp(32px, 8vw, 50px); }
  .hero-sub { font-size: 16px; }
  .searchbar { flex-direction: column; border-radius: var(--radius-lg); }
  .searchbar-field { border-bottom: 1px solid var(--c-border); }
  .searchbar-divider { display: none; }
  .searchbar-btn { padding: 16px 20px; }
  .searchbar-btn button { width: 100%; justify-content: center; }
  .listings-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .listings-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .listing-detail { padding: 20px 20px 60px; }
  .listing-detail .breadcrumb { display: none; }
  .photo-grid {
    display: flex;
    height: auto;
    gap: 0;
    margin-inline: -20px;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .photo-grid::-webkit-scrollbar { display: none; }
  .photo-grid .ph,
  .photo-grid .photo-item,
  .photo-main {
    display: block;
    flex: 0 0 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0 !important;
    scroll-snap-align: center;
  }
  .photo-grid img,
  .photo-main img {
    transform: none !important;
  }
  .amenities-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .search-sticky-bar { padding: 12px 20px; }
  .search-left { padding: 20px 20px 60px; }
  .font-choice-grid { grid-template-columns: 1fr; }
  .pages-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-block-top { grid-template-columns: 36px minmax(0, 1fr); padding: 18px 18px 16px 22px; }
  .page-block-icon { width: 36px; height: 36px; }
  .page-block-badge { grid-column: 2; justify-self: start; }
  .page-block-footer { padding: 14px 18px 14px 22px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .auth-name-grid { grid-template-columns: 1fr; }
  .listing-meta { flex-direction: column; gap: 6px; }
  .host-cta { padding: 32px 24px; }
  .host-cta-title { font-size: 26px; }
}

/* RTL support */
/* ── Bidi: left-to-right data inside a right-to-left page ──────────────────
   A phone number, a price or a licence number is a single atomic token that is
   always written left-to-right, even in Arabic. The Unicode bidi algorithm does
   not know that: it sees "+971 55 925 0894" as four separate digit runs joined
   by neutral spaces, and neutrals inherit the paragraph direction — so on the
   Arabic pages the groups were laid out right-to-left and the number rendered
   as "0894 925 55 971+". Same for "1 250 AED", which came out "AED 1 250".

   Isolating these elements as their own LTR context fixes the order without
   touching the surrounding Arabic layout. Applied by selector rather than in
   each template so it also covers values injected later by JavaScript (map
   pins, the booking total, the earnings estimator). */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .listing-card-price strong,
[dir="rtl"] .listing-card-price span,
[dir="rtl"] .listing-card-rating,
[dir="rtl"] .booking-price-num,
[dir="rtl"] .listing-book-bar-price,
[dir="rtl"] .map-price-marker,
[dir="rtl"] .smap-pin,
[dir="rtl"] .smap-popup-price,
[dir="rtl"] .smap-card-price,
[dir="rtl"] .est-result-value,
[dir="rtl"] .est-result-meta,
[dir="rtl"] #price-label-min,
[dir="rtl"] #price-label-max,
[dir="rtl"] [data-bd-subtotal],
[dir="rtl"] [data-bd-fee],
[dir="rtl"] [data-bd-cleaning],
[dir="rtl"] [data-bd-discount],
[dir="rtl"] [data-bd-total],
[dir="rtl"] [data-guest-label],
[dir="rtl"] [data-checkin-label],
[dir="rtl"] [data-checkout-label] {
  direction: ltr;
  unicode-bidi: isolate;
}
/* Block-level holders keep sitting on the right of an RTL layout; only their
   contents are re-ordered. */
[dir="rtl"] .about-contact-phone-value,
[dir="rtl"] .about-contact-address-value,
[dir="rtl"] .about-contact-email-value,
[dir="rtl"] .footer-legal-item dd {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
/* Usable anywhere, in any page direction, when markup is clearer than a
   selector: <span class="ltr-data">+971 55 925 0894</span> */
.ltr-data { direction: ltr; unicode-bidi: isolate; }

[dir="rtl"] .searchbar-field:first-child { padding-right: 28px; padding-left: 24px; }
[dir="rtl"] .form-select { background-position: left 14px center; padding-right: 15px; padding-left: 36px; }
[dir="rtl"] .lang-dropdown { inset-inline-end: 0; inset-inline-start: auto; }
[dir="rtl"] .flash-container { inset-inline-end: 24px; inset-inline-start: auto; }

/* Leaflet fix */
.leaflet-pane, .leaflet-map-pane { z-index: 1 !important; }
.leaflet-top, .leaflet-bottom { z-index: 2 !important; }
.leaflet-bottom.leaflet-right { display: none !important; }

/* ===== MOBILE & TOUCH IMPROVEMENTS ===== */

/* Fast tap response */
button, a, [role="button"] { touch-action: manipulation; }

/* Flash - full-width banner on mobile */
@media (max-width: 600px) {
  .flash-container { inset-inline-end: 0; inset-inline-start: 0; top: 0; max-width: 100%; padding: 0; }
  .flash { border-radius: 0; border-inline: none; border-top: none; }
}

/* Header — hide heavy elements on very small screens */
@media (max-width: 480px) {
  .header-actions .theme-toggle { display: none; }
  .btn-lang { padding: 9px 10px; }
  .btn-lang span:not(.lang-icon) { display: none; }
}

/* Mobile nav extras row (theme + lang) */
.mobile-nav-meta {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--c-border);
  margin-top: 8px;
  align-items: end;
}
@media (min-width: 769px) { .mobile-nav-meta { display: none; } }
.mobile-control {
  min-width: 0;
}
.mobile-control-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-subtle);
  margin-bottom: 7px;
}
.mobile-theme-toggle {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  justify-content: center;
  background: var(--c-bg-card);
}
.mobile-lang-open {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-card);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 800;
}
/* Pure fixed overlay — like the booking calendar's backdrop + centered panel,
   but it NEVER touches html/body (no scroll lock, no width/overflow changes),
   so it is physically incapable of shifting the page. Both the backdrop and
   the panel are position:fixed to the viewport. */
.mobile-lang-modal[hidden] { display: none; }
.mobile-lang-modal { display: contents; }
.mobile-lang-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  border: 0;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .16s ease;
}
.mobile-lang-sheet {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-lg);
  animation: calendarModalIn .18s ease;
}
.mobile-lang-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.mobile-lang-kicker {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-subtle);
}
.mobile-lang-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
}
.mobile-lang-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-bg-card);
  color: var(--c-text);
  font-size: 24px;
  line-height: 1;
}
.mobile-lang-options {
  display: grid;
  gap: 8px;
}
.mobile-lang-option {
  min-height: 48px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-bg-card);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 800;
}
.mobile-lang-option span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mobile-lang-option.active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: color-mix(in srgb, var(--c-primary) 10%, var(--c-bg-card));
}
.mobile-lang-code {
  font-size: 12px;
  color: var(--c-subtle);
}
@media (max-width: 380px) {
  .mobile-nav-meta { grid-template-columns: 1fr; }
}

/* Better touch targets for form controls */
@media (max-width: 768px) {
  .lang-dropdown { display: none !important; }
  .form-input, .form-textarea, .form-select { font-size: 16px; min-height: 48px; }
  .btn { min-height: 48px; padding: 12px 22px; }
  .btn-sm { min-height: 40px; padding: 9px 16px; }
  .booking-guests-btn { width: 36px; height: 36px; }
}

@media (hover: none) and (pointer: coarse) {
  .lang-dropdown { display: none !important; }
}

/* Collapsible listing description */
.listing-desc-wrap.is-collapsed .listing-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-desc-toggle {
  display: inline-block; margin-top: 10px;
  background: none; border: none; font-family: inherit;
  font-size: 15px; font-weight: 700; color: var(--c-text);
  text-decoration: underline; padding: 4px 0; cursor: pointer;
}
.listing-desc-toggle:hover { color: var(--c-primary); }

/* Mobile sticky booking bar */
.listing-book-bar { display: none; }
@media (max-width: 1024px) {
  .listing-book-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    width: 100%; max-width: 100vw; box-sizing: border-box;
    background: var(--c-surface); border-top: 1.5px solid var(--c-border);
    padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 16px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  }
  .listing-book-bar > div { min-width: 0; overflow: hidden; }
  .listing-book-bar-price { font-size: 19px; font-weight: 700; color: var(--c-text); }
  .listing-book-bar-per  { font-size: 13px; color: var(--c-subtle); font-weight: 400; }
  .listing-book-bar .btn { flex: 0 0 auto; min-width: 108px !important; justify-content: center; }
  .listing-detail { padding-bottom: 128px !important; }
  body:has(.listing-book-bar) .footer { padding-bottom: 112px; }
}
@media (max-width: 420px) {
  .listing-book-bar { padding-inline: 14px; gap: 10px; }
  .listing-book-bar-price { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .listing-book-bar-per { display: block; font-size: 12px; line-height: 1.2; }
  .listing-book-bar .btn { min-width: 96px !important; padding-inline: 16px; }
}

/* Admin sidebar — mobile slide-in drawer */
.admin-mobile-toggle {
  display: none; position: fixed;
  top: 12px; inset-inline-start: 12px; z-index: 400;
  background: #000; border: none; border-radius: var(--radius-sm);
  padding: 10px; color: #fff; line-height: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.admin-mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 199;
}
@media (max-width: 900px) {
  .admin-mobile-toggle { display: flex; }
  .admin-mobile-overlay.is-open { display: block; }
  .admin-sidebar {
    position: fixed !important; inset-block: 0; inset-inline-start: 0;
    height: 100vh; display: flex !important;
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(.25,.46,.45,.94); z-index: 300;
  }
  [dir="rtl"] .admin-sidebar { transform: translateX(100%); }
  .admin-sidebar.is-open { transform: none; }
  .admin-content { padding: 20px 20px 60px !important; padding-top: 56px !important; }
}

/* Host sidebar — mobile slide-in drawer */
.host-mobile-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--c-text); cursor: pointer; margin-bottom: 20px;
}
.host-mobile-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 199;
}
@media (max-width: 900px) {
  .host-mobile-toggle { display: flex; }
  .host-mobile-sidebar-overlay.is-open { display: block; }
  .host-sidebar {
    position: fixed !important; inset-block: 0; inset-inline-start: 0;
    height: 100vh; background: var(--c-surface);
    border: none; box-shadow: var(--shadow-lg);
    display: flex !important; flex-direction: column;
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(.25,.46,.45,.94); z-index: 300;
  }
  [dir="rtl"] .host-sidebar { transform: translateX(100%); }
  .host-sidebar.is-open { transform: none; }
  .host-content { padding: 20px 20px 60px !important; }
}

/* Scrollable filter tabs on mobile (no wrap, scroll) */
@media (max-width: 768px) {
  .table-filters { overflow-x: auto; flex-wrap: nowrap !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .table-filters::-webkit-scrollbar { display: none; }
  .status-tab { flex-shrink: 0; }
  .search-sticky-bar {
    position: static;
    top: auto;
    z-index: auto;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 10px 28px -24px rgba(0,0,0,.42);
  }
  .search-layout {
    display: block;
    height: auto;
    min-height: 0;
  }
  .search-left {
    overflow: visible;
    padding-top: 18px;
  }
  .search-bar-inner {
    gap: 10px;
    padding: 0;
  }
  .search-bar-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* Mobile: search pill stacks into a card */
  .search-compact-pill {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--c-border);
    box-shadow: 0 12px 34px -30px rgba(0,0,0,.5);
  }
  .scp-section {
    border-radius: 10px;
    padding: 10px 14px;
    flex: none;
  }
  .scp-section:last-of-type { padding-bottom: 10px; }
  .search-compact-divider { display: none; }
  .search-compact-submit {
    width: 100%; border-radius: 12px; height: 44px;
    min-width: unset; margin: 4px 0 0; flex-shrink: 0;
  }
  .search-compact-location,
  .search-compact-guests { font-size: 14px; }
  .scp-val { font-size: 14px; }
  .search-bar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
  }
  .search-bar-actions .btn,
  .search-map-btn,
  #sort-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: 12px;
    padding-inline: 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .search-bar-actions .relative {
    min-width: 0;
  }
  .search-bar-actions .relative .btn {
    min-width: 42px;
  }
  .search-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .search-filter-row::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; }
}

/* Scrollable data tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) { .data-table { min-width: 620px; } }

/* Section headings on mobile */
@media (max-width: 768px) {
  .section-title { font-size: 26px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .listing-title { font-size: 26px; }
  .host-cta-title { font-size: 26px; }
  .admin-title { font-size: 24px; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Searchbar better structure on mobile */
@media (max-width: 768px) {
  .searchbar-input-wrap { padding: 14px 20px; border-bottom: 1px solid var(--c-border); flex: unset; width: 100%; }
  .searchbar-field { padding: 14px 20px; }
  .searchbar-btn { padding: 10px 20px 14px; }
  .searchbar-btn button { padding: 14px 28px; height: auto; }
  .cats { gap: 8px; }
  .cat-chip { padding: 8px 14px; font-size: 12px; }
}

/* Stats & stat cards on mobile */
@media (max-width: 768px) {
  .stat-card { padding: 16px; }
  .stat-value { font-size: 24px; }
  .chart-bars { height: 60px; }
  .stats-grid { gap: 12px !important; }
}

/* Booking item on mobile */
@media (max-width: 480px) {
  .booking-item { grid-template-columns: 70px 1fr; }
  .booking-item > :last-child { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
}

/* Profile on mobile */
@media (max-width: 768px) { .profile-layout { padding: 24px 20px; } }

/* Auth form on small mobile */
@media (max-width: 480px) {
  .auth-form-side { padding: 28px 20px; align-items: flex-start; }
  .auth-box { max-width: 100%; }
}

/* Very small screen — single column listings */
@media (max-width: 360px) {
  .listings-grid { grid-template-columns: 1fr !important; }
}

/* ===== ADDITIONAL UTILITIES ===== */
.gap-6  { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-28 { gap: 28px; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }

/* page-btn alias for pagination in admin/host templates */
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--c-border); background: #fff; font-size: 13px; font-weight: 600; color: var(--c-muted); text-decoration: none; transition: all var(--transition); }
.page-btn:hover { border-color: var(--c-text); color: var(--c-text); }
.page-btn.active { background: var(--c-text); color: #fff; border-color: var(--c-text); }

/* Favorites page listing card aliases */
.listing-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.listing-card-area { font-size: 13px; color: var(--c-subtle); }
.listing-card-specs { font-size: 13px; color: var(--c-subtle); margin-top: 3px; }

/* fav-btn (alias for listing-card-fav used in favorites page) */
.fav-btn { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85); border: none; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--c-primary); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.fav-btn:hover { background: #fff; transform: scale(1.1); }
.fav-btn.active { color: #e11d48; }

/* Admin search bar */
.admin-search { display: flex; align-items: center; gap: 8px; }

/* Admin stats grid 5-col variant */
@media (max-width: 1200px) {
  .stats-grid[style*="repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ===== MADELY THEME REFRESH ===== */
body,
.header,
.mobile-nav,
.search-sticky-bar {
  background: var(--c-bg);
}

.header,
.mobile-nav,
.search-sticky-bar,
.footer,
.card,
.stat-card,
.booking-item,
.form-input,
.form-textarea,
.form-select,
.searchbar,
.cat-chip,
.filter-pill,
.table-search,
.status-tab,
.page-link,
.page-btn,
.btn-outline,
.btn-social,
.lang-dropdown,
.user-dropdown,
.user-menu-btn,
.btn-lang {
  background-color: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text);
}

.header,
.search-sticky-bar {
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
}

.footer {
  background: var(--c-surface-soft);
}

.auth-tabs,
.data-table th,
.host-sidebar-link:hover,
.dropdown-item:hover,
.lang-option:hover,
.lang-option.active,
.btn-outline:hover,
.btn-social:hover {
  background: var(--c-bg-card);
}

.btn-primary,
.searchbar-btn button,
.chart-bar,
.user-avatar-sm,
.host-avatar,
.review-avatar,
.request-avatar,
.profile-avatar-lg,
.cat-dot {
  background: var(--c-primary);
}

.btn-primary:hover,
.searchbar-btn button:hover {
  background: var(--c-primary-h);
  box-shadow: 0 8px 24px rgba(199,123,92,.34);
}

.btn-dark,
.chart-card,
.status-tab.active,
.page-link.active,
.page-btn.active {
  background: var(--c-dark);
  color: var(--c-bg);
}

.admin-sidebar {
  background: #000000;
}

[data-theme="dark"] .admin-sidebar {
  border-inline-end: 1px solid var(--c-border);
}

[data-theme="dark"] .leaflet-container,
[data-theme="dark"] .listing-card-img,
[data-theme="dark"] .listing-thumb-ph,
[data-theme="dark"] .booking-item-ph,
[data-theme="dark"] .ph {
  background-image: repeating-linear-gradient(135deg, #111 0 12px, #1b1b1b 12px 24px);
}

.hero-title,
.section-title,
.auth-title,
.profile-name,
.empty-title,
.logo-word,
.admin-logo-word,
.host-cta-title {
  letter-spacing: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  height: 34px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-text);
  padding: 4px 12px;
  transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  border-color: var(--c-primary);
}

.theme-icon { width: 16px; height: 16px; flex: none; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.theme-toggle-text { font-size: 13px; font-weight: 700; line-height: 1; }

.theme-toggle-admin {
  margin: 0 8px 14px;
  background: #111111;
  border-color: #2b2b2b;
  color: #ffffff;
}

[data-theme="dark"] .theme-toggle-admin {
  background: #ffffff;
  color: #000000;
}

/* ===== STRICT TYPOGRAPHY THEME PASS ===== */
html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

[data-theme="dark"] .header,
[data-theme="dark"] .search-sticky-bar {
  background: rgba(0,0,0,.86);
}

.btn-outline,
.form-input,
.form-textarea,
.form-select,
.cat-chip,
.filter-pill,
.filter-modal,
.booking-widget,
.auth-card,
.auth-tab.active,
.btn-social,
.stat-card,
.card,
.status-tab,
.table-search,
.page-link,
.page-btn,
.booking-item,
.bg-white {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
}

.filter-modal-overlay {
  background: rgba(0,0,0,.62);
}

.searchbar,
.search-bar-inner > div:first-child,
.searchbar-input,
.booking-date-input,
.table-search input,
.search-sticky-bar input,
.search-sticky-bar select {
  background: var(--c-surface) !important;
  color: var(--c-text) !important;
}

.searchbar-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-ph);
}

.listing-card-fav,
.fav-btn,
.badge-type,
.photo-more-btn {
  background: color-mix(in srgb, var(--c-surface) 86%, transparent);
  color: var(--c-primary);
}

.listing-card-fav:hover,
.fav-btn:hover,
.photo-more-btn:hover {
  background: var(--c-surface);
}

.chart-card,
.admin-sidebar {
  background: #000000;
  color: #ffffff;
}

[data-theme="dark"] .chart-card,
[data-theme="dark"] .admin-sidebar {
  background: #151515;
}

.chart-card,
.admin-logo-word {
  color: #ffffff;
}

.chart-title,
.chart-bar-month,
.chart-label-item {
  color: #cfccc6;
}

.btn-mint {
  background: var(--c-primary);
  color: #ffffff;
}

.btn-dark {
  background: var(--c-text);
  color: var(--c-bg);
}

.btn-dark:hover {
  background: var(--c-primary);
  color: #ffffff;
}

.data-table td,
.request-card {
  border-color: var(--c-border);
}

.ph,
.listing-card-img,
.listing-thumb-ph,
.booking-item-ph {
  background-image: repeating-linear-gradient(135deg, #ececea 0 12px, #f5f4f2 12px 24px);
}

[data-theme="dark"] .ph,
[data-theme="dark"] .listing-card-img,
[data-theme="dark"] .listing-thumb-ph,
[data-theme="dark"] .booking-item-ph {
  background-image: repeating-linear-gradient(135deg, #111111 0 12px, #1b1b1b 12px 24px);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH MAP PAGE  (.smap-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────── */
.smap-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.smap-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: var(--smap-topbar-height);
  min-height: 56px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  z-index: 10;
}
.smap-logo { display: flex; align-items: center; flex-shrink: 0; }
.smap-logo .logo-img { height: 40px; }
.smap-count-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  background: rgba(199,123,92,.1);
  padding: 4px 10px;
  border-radius: 20px;
}
.smap-close-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.smap-close-btn:hover { background: var(--c-bg-card); border-color: var(--c-muted); }

/* ── Main layout ────────────────────────────────────────────── */
.smap-layout {
  display: flex;
  flex: 1;
  height: var(--smap-layout-height);
  min-height: 0;
  overflow: hidden;
}

/* ── Left panel ─────────────────────────────────────────────── */
.smap-panel {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--c-border);
  background: var(--c-surface);
}

/* ── Filters wrap ───────────────────────────────────────────── */
.smap-filters-wrap {
  flex-shrink: 0;
  overflow-y: auto;
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  max-height: 55vh;
}
.smap-filters-wrap.is-collapsed {
  overflow: hidden;
  padding-bottom: 12px;
}
.smap-filters-wrap.is-collapsed > :not(.smap-filters-head) {
  display: none;
}
.smap-filters-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--c-text);
}
.smap-filters-wrap.is-collapsed .smap-filters-head {
  margin-bottom: 0;
}
.smap-filters-toggle {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--c-text);
  font: inherit;
  padding: 3px 0;
}
.smap-filters-chevron {
  flex-shrink: 0;
  transition: transform .18s ease;
}
.smap-filters-wrap:not(.is-collapsed) .smap-filters-chevron {
  transform: rotate(180deg);
}
.smap-reset-btn {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.smap-reset-btn:hover { color: var(--c-text); }

/* ── Filter group ───────────────────────────────────────────── */
.smap-fgroup {
  margin-bottom: 16px;
}
.smap-fgroup:last-child { margin-bottom: 0; }
.smap-fgroup-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.smap-fgroup-row { display: flex; align-items: center; gap: 12px; }
.smap-fgroup-row .smap-fgroup-label { margin: 0; min-width: 80px; flex-shrink: 0; }
.smap-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.smap-date-trigger {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 11px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.smap-date-trigger:hover {
  border-color: var(--c-primary);
  background: var(--c-bg-card);
}
.smap-date-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Budget labels ──────────────────────────────────────────── */
.smap-price-disp {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}

/* ── Histogram ──────────────────────────────────────────────── */
.smap-hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  margin-bottom: 0;
}
.smap-hist-bar {
  flex: 1;
  background: var(--c-border);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: background .2s;
}
.smap-hist-bar.empty {
  background: transparent !important;
  min-height: 0;
}
.smap-hist-bar.active { background: var(--c-primary); opacity: .7; }

/* ── Dual range slider ──────────────────────────────────────── */
.smap-range-wrap {
  position: relative;
  padding: 0 0 4px;
}
.smap-range-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: none;
  background: var(--c-border);
  border-radius: 2px;
  pointer-events: none;
}
.smap-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--c-primary);
  border-radius: 2px;
}
.smap-range-inputs {
  position: relative;
  height: 22px;
}
.smap-range-input {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
}
.smap-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-primary);
  cursor: pointer;
  pointer-events: all;
  border: 2px solid var(--c-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .1s;
}
.smap-range-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.smap-range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-primary);
  cursor: pointer;
  pointer-events: all;
  border: 2px solid var(--c-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ── Property type grid ─────────────────────────────────────── */
.smap-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.smap-type-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.smap-type-btn:hover { border-color: var(--c-primary); color: var(--c-text); }
.smap-type-btn.active {
  border-color: var(--c-primary);
  background: rgba(199,123,92,.12);
  color: var(--c-primary);
  font-weight: 600;
}

/* ── Segmented buttons ──────────────────────────────────────── */
.smap-seg-btns {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.smap-seg-btn {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
  border-right: 1.5px solid var(--c-border);
  transition: background .15s, color .15s;
}
.smap-seg-btn:last-child { border-right: none; }
.smap-seg-btn:hover { background: var(--c-bg-card); color: var(--c-text); }
.smap-seg-btn.active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
}

/* ── Results bar ────────────────────────────────────────────── */
.smap-results-bar {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Cards list ─────────────────────────────────────────────── */
.smap-cards {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smap-cards-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 16px;
  color: var(--c-muted);
  font-size: 14px;
  text-align: center;
}

/* ── Listing card (horizontal compact) ──────────────────────── */
.smap-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: var(--c-bg-card);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color .15s, background .15s, box-shadow .15s;
  cursor: pointer;
}
.smap-card:hover, .smap-card.highlighted {
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.smap-card-img {
  width: 88px;
  height: 72px;
  border-radius: 8px;
  background: var(--c-border);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.smap-card-type {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.smap-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.smap-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
}
.smap-card-area {
  font-size: 11px;
  color: var(--c-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
}
.smap-card-specs {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--c-muted);
}
.smap-card-specs span::after { content: ' ·'; }
.smap-card-specs span:last-child::after { content: ''; }
.smap-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.smap-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}
.smap-card-per { font-size: 11px; font-weight: 400; color: var(--c-muted); }
.smap-card-rating {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-primary);
  background: rgba(199,123,92,.1);
  padding: 2px 6px;
  border-radius: 10px;
}

/* ── Map container ──────────────────────────────────────────── */
.smap-map {
  flex: 1;
  min-width: 0;
  height: 100%;
  z-index: 0;
}

/* ── Price pin marker ───────────────────────────────────────── */
.smap-pin-wrap {
  overflow: visible !important;
  width: 0 !important;
  height: 0 !important;
}
.smap-pin {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: background .15s, transform .12s, filter .15s;
  pointer-events: all;
  font-family: var(--font-sans), sans-serif;
}
.smap-pin::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #1e293b;
}
.smap-pin:hover, .smap-pin.active {
  background: var(--c-primary, #c77b5c);
  transform: translate(-50%, calc(-100% - 14px)) scale(1.06);
  z-index: 1000;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
}
.smap-pin:hover::after  { border-top-color: var(--c-primary, #c77b5c); }
.smap-pin.active::after { border-top-color: var(--c-primary, #c77b5c); }

/* ── Listing card slider (search page) ──────────────────────── */
.lcard-slider { position: relative; overflow: hidden; }
.lcard-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.lcard-slide.active { opacity: 1; }
.lcard-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  touch-action: manipulation;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.lcard-arrow svg { width: 16px; height: 16px; }
.lcard-prev { left: 8px; }
.lcard-next { right: 8px; }
.lcard-slider:hover .lcard-arrow { opacity: 1; }
@media (hover: none) { .lcard-arrow { opacity: 1; } }
.lcard-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}
.lcard-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  transition: background .2s;
}
.lcard-dot.active { background: #fff; }

/* ── POI markers ────────────────────────────────────────────── */
.smap-poi-anchor {
  overflow: visible !important;
  width: 0 !important;
  height: 0 !important;
}
.smap-poi {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 6px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  pointer-events: all;
  cursor: default;
  font-family: var(--font-sans), sans-serif;
}
.smap-poi--airport { background: #1d4ed8; cursor: pointer; }
.smap-poi--park    { background: #15803d; cursor: pointer; }
.smap-poi--beach   { background: #0891b2; cursor: pointer; }
.smap-poi--landmark{ background: #7c3aed; cursor: pointer; }

/* ── POI tooltip (image on hover) ───────────────────────────── */
.smap-poi-tooltip {
  position: absolute;
  z-index: 900;
  pointer-events: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: fadeIn .15s ease;
  width: 250px;
  max-width: min(250px, calc(100vw - 28px));
  overflow: hidden;
}
.smap-poi-tooltip-img {
  height: 112px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-card);
}
.smap-poi-tooltip-body { padding: 10px 12px 12px; }
.smap-poi-tooltip-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}
.smap-poi-tooltip-name svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .7;
}
.smap-poi-tooltip-copy p {
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.42;
  white-space: normal;
}

/* ── Card slider ─────────────────────────────────────────────── */
.smap-card { cursor: default; }
.smap-card-body-link {
  display: flex;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--c-text);
}
.smap-card-slider {
  width: 88px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--c-border);
}
.smap-card-slides {
  position: absolute;
  inset: 0;
}
.smap-card-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.smap-card-slide.active { opacity: 1; }
.smap-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  font-size: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s;
  touch-action: manipulation;
  line-height: 1;
}
.smap-card-slider:hover .smap-slide-btn { opacity: 1; }
.smap-slide-prev { left: 3px; }
.smap-slide-next { right: 3px; }
.smap-slide-dots {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  z-index: 2;
}
.smap-slide-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .15s;
}
.smap-slide-dot.active { background: #fff; }
@media (hover: none) {
  .smap-slide-btn { opacity: 1; }
}

/* ============================================================ */
/* ===== PREMIUM POLISH (motion, tactility, fine details) ===== */
/* ============================================================ */

/* 2 ── Tactile listing cards: lift with a soft shadow on hover.
   (Declared before the reveal block so a card's snappy .35s hover transition
   is restored once JS removes .reveal-init after the entrance animation.) */
.listing-card {
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing-card:hover { transform: translateY(-5px); }
.listing-card-img { transition: box-shadow .35s ease; }
.listing-card:hover .listing-card-img {
  box-shadow: 0 22px 45px -22px rgba(0,0,0,.45);
}

/* All motion below is opt-in via JS-added classes and disabled for users who
   prefer reduced motion — content is always visible without JS. */
@media (prefers-reduced-motion: no-preference) {

  /* 1 ── Reveal on scroll: content gently rises + fades into place.
     JS adds .reveal-init only to elements below the fold, then .is-visible,
     then removes both once the entrance finishes (restoring hover behaviour). */
  .reveal-init {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
                transform .8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal-init.is-visible { opacity: 1; transform: none; }

  /* 3 ── Lazy images fade in instead of popping. JS tags still-loading
     images with .img-fade; cached images are never hidden. */
  .img-fade { opacity: 0; transition: opacity .6s ease; }
  .img-fade.loaded { opacity: 1; }
}

/* 4 ── Fine details */
/* Tabular figures so prices/ratings don't shift width. */
.listing-card-price, .listing-card-price strong, .listing-card-rating,
.price-amount, .stat-value, .tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Animated underline for text links (nav + "view all" style links). */
.header-nav a, .section-more, .footer-links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s cubic-bezier(0.22, 1, 0.36, 1), color var(--transition);
}
.header-nav a:hover, .section-more:hover, .footer-links a:hover {
  background-size: 100% 1.5px;
}
.section-more:hover { text-decoration: none; }

.host-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(199,123,92,.10), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(199,123,92,.06), transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .host-cta {
  background: #151515;
  border-color: #242424;
  color: #ffffff;
}
[data-theme="dark"] .host-cta-title { color: #ffffff; }
[data-theme="dark"] .host-cta-desc { color: #cfccc6; }
[data-theme="dark"] .host-cta-img { opacity: .3; }
[data-theme="dark"] .host-cta::before {
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(199,123,92,.30), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(199,123,92,.12), transparent 50%);
}

/* ── Leaflet popup override ─────────────────────────────────── */
.smap-popup-wrap .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.smap-popup-wrap .leaflet-popup-content { margin: 0; width: auto !important; }
.smap-popup-wrap .leaflet-popup-tip-container { display: none; }
.smap-popup {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-text);
  width: 220px;
}
.smap-popup-img {
  width: 100%;
  height: 130px;
  background: var(--c-border);
  background-size: cover;
  background-position: center;
}
.smap-popup-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.smap-popup-body { padding: 10px 12px 12px; }
.smap-popup-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.smap-popup-meta {
  font-size: 11px;
  color: var(--c-muted);
  margin: 0 0 6px;
}
.smap-popup-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}
.smap-popup-price span { font-size: 11px; font-weight: 400; color: var(--c-muted); }
.smap-popup:hover .smap-popup-title { color: var(--c-primary); }

/* ── Mobile tab bar ─────────────────────────────────────────── */
.smap-mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  z-index: 200;
}
.smap-mobile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
}
.smap-mobile-tab.active { color: var(--c-primary); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .smap-panel { width: 340px; }
}

@media (max-width: 700px) {
  .smap-mobile-tabs { display: flex; }
  .smap-page { padding-bottom: 56px; }
  .smap-panel {
    width: 100%;
    border-right: none;
    position: absolute;
    top: var(--smap-topbar-height);
    left: 0;
    right: 0;
    bottom: var(--smap-tabs-height);
    z-index: 5;
  }
  .smap-panel.smap-panel--hidden { display: none; }
  .smap-map {
    position: absolute;
    top: var(--smap-topbar-height);
    left: 0;
    right: 0;
    bottom: var(--smap-tabs-height);
  }
  .smap-map.smap-map--hidden { display: none; }
  .smap-layout { position: relative; }
  .smap-topbar { padding: 0 12px; gap: 10px; }
  .smap-close-btn span { display: none; }
}

@media (max-width: 480px) {
  .smap-filters-wrap { max-height: 45vh; }
  .smap-fgroup-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .smap-fgroup-row .smap-fgroup-label { min-width: auto; }
}
