/* =========================================================================
   Sojourn design system, "warm cottage": cream, sage, terracotta and honey.
   ========================================================================= */
:root {
  --mist: #F5EDE1;
  --paper: #FAF4EA;
  --white: #FFFFFF;
  --sand: #F3E2CF;
  --sand-deep: #E5CFB4;
  --sage-50: #EEF1E6;
  --sage-100: #E0E7D6;
  --sage-200: #CBD6BF;
  --sage-400: #93A98A;
  --sage-600: #5F7A5C;
  --sage-700: #4F6B4F;
  --sage-800: #3F563F;
  --ink: #3A2F26;
  --ink-soft: #6B5D50;
  --ink-faint: #9A8C7E;
  --line: #E8DCCB;
  --clay: #B8653F;
  --clay-50: #F6E6DA;
  --honey: #E3B85C;
  --sky: #A9C4CF;

  --f-display: 'Fraunces', Georgia, serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(58, 47, 38, .06);
  --sh-2: 0 8px 24px -8px rgba(58, 47, 38, .14);
  --sh-3: 0 24px 48px -16px rgba(58, 47, 38, .22);
  --sh-ring: 0 0 0 3px rgba(95, 122, 92, .22);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-ui); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; caret-color: var(--sage-700); }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
h1, h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
em { font-style: italic; }
:focus-visible { outline: none; box-shadow: var(--sh-ring); border-radius: 6px; }
::selection { background: var(--sage-200); }

.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13.5px; }
.sage { color: var(--sage-600); font-weight: 600; }
.center { text-align: center; justify-content: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.mt { margin-top: 56px; }
.page-pad { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; min-height: 70vh; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-600); margin-bottom: 12px; }
.eyebrow .ic { width: 15px; height: 15px; }
.eyebrow-light { color: rgba(255, 255, 255, .9); }

/* ---- buttons, chips, tags ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--sage-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(94, 128, 104, .55); }
.btn-primary:hover { background: var(--sage-700); transform: translateY(-1px); }
.btn-ghost { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sage-400); background: var(--sage-50); }
.btn-light { background: #fff; color: var(--sage-800); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-float { background: #fff; color: var(--ink); box-shadow: var(--sh-3); }
.btn.loading, .chip.loading { opacity: .7; pointer-events: none; }
.link { color: var(--sage-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--sage-50); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .2s var(--ease); }
.chip .ic { width: 16px; height: 16px; }
.chip:hover { border-color: var(--sage-400); }
.chip.on { background: var(--sage-800); border-color: var(--sage-800); color: #fff; }
.chip-glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip-glass:hover { background: rgba(255, 255, 255, .28); border-color: rgba(255, 255, 255, .6); }
.chip-glass.on { background: #fff; color: var(--sage-800); border-color: #fff; }
.chip-select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B665F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; cursor: pointer; }
.chip-static { background: var(--sage-50); border-color: transparent; color: var(--sage-800); height: 34px; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.tag .ic { width: 13px; height: 13px; }
.tag-clay { background: var(--clay); color: #fff; }
.tag-sage { background: var(--sage-100); color: var(--sage-800); }
.l-tags .tag:not(.tag-clay):not(.tag-sage) { background: var(--sand); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.lg { width: 60px; height: 60px; }
.avatar.xl { width: 96px; height: 96px; }
.avatar.initials { display: grid; place-items: center; background: var(--sage-100); color: var(--sage-800); font-weight: 700; }

/* ---- forms ---- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field > span { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea, .money-in, .card-in {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border .2s, box-shadow .2s; outline: none;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .money-in:focus-within { border-color: var(--sage-400); box-shadow: var(--sh-ring); }
.money-in, .card-in { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.money-in input, .card-in input { border: 0; height: 100%; padding: 0; box-shadow: none !important; background: transparent; }
.money-in i { font-style: normal; color: var(--ink-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--sage-600); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .ic { color: var(--sage-600); }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; align-self: end; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row small { display: block; font-size: 12.5px; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .25s var(--ease); }
.toggle-row input:checked + .switch { background: var(--sage-600); }
.toggle-row input:checked + .switch::after { transform: translateX(18px); }
.note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md); background: var(--sage-50); color: var(--sage-800); font-size: 14px; margin-top: 20px; }
.note.warn { background: var(--clay-50); color: #8A5538; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- header ---- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h); background: rgba(250, 244, 234, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--sh-1); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; max-width: 1440px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark svg { width: 32px; height: 32px; display: block; }
.brand-mark rect { fill: var(--sage-700); }
/* Logo: the travellers' "safe place to stay" sign (an open square) with a light left on. */
.brand-mark path { stroke: var(--paper); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--honey); }
.brand-word { font-family: var(--f-display); font-size: 24px; font-weight: 500; letter-spacing: -.02em; color: var(--sage-800); }
.header-search { position: relative; flex: 1; max-width: 420px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.header-search:focus-within { border-color: var(--sage-400); box-shadow: var(--sh-ring); }
.header-search .i-wrap { color: var(--ink-soft); display: inline-flex; }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search kbd { font: 600 11px var(--f-ui); color: var(--ink-faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--sage-800); background: var(--sage-50); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.list-cta { margin-left: 8px; }
.list-cta .ic { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* Home: header floats transparent over the hero until you scroll. */
body[data-route="home"] .site-header:not(.scrolled),
body[data-route="landlords"] .site-header:not(.scrolled),
body[data-route="how"] .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-route="home"] .site-header:not(.scrolled) .brand-word,
body[data-route="landlords"] .site-header:not(.scrolled) .brand-word,
body[data-route="how"] .site-header:not(.scrolled) .brand-word,
body[data-route="home"] .site-header:not(.scrolled) .main-nav a,
body[data-route="landlords"] .site-header:not(.scrolled) .main-nav a,
body[data-route="how"] .site-header:not(.scrolled) .main-nav a,
body[data-route="home"] .site-header:not(.scrolled) .icon-btn,
body[data-route="landlords"] .site-header:not(.scrolled) .icon-btn,
body[data-route="how"] .site-header:not(.scrolled) .icon-btn { color: #fff; }
body[data-route="home"] .site-header:not(.scrolled) .main-nav a:hover,
body[data-route="landlords"] .site-header:not(.scrolled) .main-nav a:hover,
body[data-route="how"] .site-header:not(.scrolled) .main-nav a:hover,
body[data-route="landlords"] .site-header:not(.scrolled) .main-nav a.active,
body[data-route="how"] .site-header:not(.scrolled) .main-nav a.active { background: rgba(255, 255, 255, .18); }
body[data-route="home"] .site-header:not(.scrolled) .icon-btn:hover { background: rgba(255, 255, 255, .14); }
body[data-route="home"] .site-header:not(.scrolled) .header-search { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.header-search { transition: opacity .3s, transform .3s var(--ease), box-shadow .2s; }

/* ---- suggestions dropdown ---- */
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 6px; min-width: 280px; animation: pop .2s var(--ease); }
.suggest-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left; color: var(--ink); }
.suggest-item:hover, .suggest-item.active { background: var(--sage-50); }
.suggest-item b { display: block; font-weight: 600; font-size: 14.5px; }
.suggest-item small { display: block; color: var(--ink-faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.s-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sage-50); color: var(--sage-600); flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---- page transitions ---- */
#app { outline: none; min-height: 60vh; }
/* "backwards", not "both": a transform left behind after the animation would trap
   position:fixed children (map toggle, phone bottom bars) inside the page. */
#app.enter { animation: pageIn .45s var(--ease) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

/* ---- hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 0; }
.hero-bg { position: absolute; inset: -4%; background-size: cover; background-position: center 60%; z-index: -2; animation: kenburns 32s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.hero-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(38, 54, 44, .55) 0%, rgba(59, 84, 67, .25) 40%, rgba(38, 54, 44, .62) 100%); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, .15); }
.hero-title em { color: var(--sand); font-weight: 400; }
.hero-sub { max-width: 600px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .88); margin-bottom: 36px; }
.search-pill { position: relative; display: flex; align-items: stretch; width: 100%; max-width: 940px; background: #fff; border-radius: var(--r-pill); padding: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); color: var(--ink); text-align: left; }
.search-pill.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sp-field { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 22px; border-radius: var(--r-pill); transition: background .2s; min-width: 0; cursor: text; }
.sp-field + .sp-field::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.sp-field:hover { background: var(--mist); }
.sp-field:focus-within { background: var(--sage-50); }
.sp-where { flex: 1.7; }
.sp-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.sp-field input, .sp-field select { border: 0; outline: 0; background: transparent; padding: 2px 0; font-size: 15px; color: var(--ink-soft); width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sp-field input::placeholder { color: var(--ink-faint); }
.sp-where .suggest { top: calc(100% + 14px); }
/* Themed move-in calendar and budget menu (match the location suggestions). */
.sp-pick { cursor: pointer; }
.sp-pick.open { background: var(--sage-50); }
.sp-value { padding: 2px 0; font-size: 15px; color: var(--ink-soft); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-value.empty { color: var(--ink-faint); }
.sp-pick .pick-pop { top: calc(100% + 14px); cursor: default; }
.pk-cal { width: 316px; min-width: 0; padding: 14px 16px 10px; }
.pk-menu { left: auto; right: 0; min-width: 220px; }
.pk-menu .suggest-item { justify-content: space-between; }
.pk-menu .suggest-item b { font-weight: 500; }
.pk-menu .suggest-item.active b { font-weight: 600; color: var(--sage-800); }
.pk-menu .suggest-item .ic { width: 16px; height: 16px; color: var(--sage-600); }
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pk-head b { font-weight: 600; font-size: 15px; }
.pk-head .icon-btn { width: 34px; height: 34px; }
.pk-head .icon-btn:disabled { opacity: .3; pointer-events: none; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.pk-grid i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); padding: 2px 0 6px; }
.pk-grid button { aspect-ratio: 1; border-radius: 10px; font-size: 14px; color: var(--ink); transition: background .15s, color .15s; }
.pk-grid button:hover { background: var(--sage-50); color: var(--sage-800); }
.pk-grid button.today { box-shadow: inset 0 0 0 1.5px var(--sage-400); }
.pk-grid button.sel { background: var(--sage-600); color: #fff; box-shadow: none; }
.pk-grid button.past { color: #C9CDC9; pointer-events: none; }
.pk-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pk-link { font-size: 13.5px; font-weight: 600; color: var(--sage-700); padding: 6px 8px; border-radius: 8px; }
.pk-link:hover { background: var(--sage-50); }
/* Themed stand-ins for native selects and date boxes (see enhanceForms in pickers.js). */
.tpick-native { display: none !important; }
.tpick { position: relative; }
.tpick-btn { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); text-align: left; transition: border .2s, box-shadow .2s; }
.tpick-btn .ic { width: 16px; height: 16px; flex: none; color: var(--ink-soft); transition: transform .2s; }
.tpick-btn:hover { border-color: var(--sage-400); }
.tpick.open .tpick-btn { border-color: var(--sage-400); box-shadow: var(--sh-ring); }
.tpick-select.open .tpick-btn .ic { transform: rotate(180deg); }
.tpick-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpick-val.empty { color: var(--ink-faint); }
.tpick-pop { position: fixed; right: auto; z-index: 2100; cursor: default; }
.tpick-pop.pk-menu { min-width: 200px; max-height: 320px; overflow-y: auto; }
.tpick-pop.pk-menu .suggest-item .ic { opacity: 0; }
.tpick-pop.pk-menu .suggest-item.active .ic { opacity: 1; }
.sp-go { display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; border-radius: var(--r-pill); background: var(--sage-600); color: #fff; font-weight: 600; transition: background .2s, transform .2s; }
.sp-go:hover { background: var(--sage-700); transform: scale(1.02); }
.sp-go .ic { width: 20px; height: 20px; }
.hero .hero-inner { flex: 1; justify-content: flex-start; padding-top: 9vh; }
.hero .hero-title { margin-bottom: max(36px, 16vh); }
.hero .search-pill { max-width: 820px; }
.hero-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 48px; padding-bottom: 32px; }
.hero-steps > div { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.hero-steps .hs-ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .16); grid-row: span 2; align-self: start; }
.hero-steps b { font-family: var(--f-display); font-size: 19px; font-weight: 500; }
.hero-steps span:not(.hs-n) { grid-column: 2; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.hero-steps .hs-n { position: absolute; top: 14px; right: 0; font-family: var(--f-display); font-size: 22px; color: var(--sand); opacity: .8; }
.lb-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; font-size: 16.5px; color: rgba(255, 255, 255, .88); }
.lb-list li { display: flex; gap: 12px; align-items: flex-start; }
.lb-list .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--sand); }
.lb-list b { color: #fff; }
.review-group { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-600); margin: 8px 0 18px; }
.testimonials + .review-group { margin-top: 44px; }

/* ---- sections ---- */
.section { padding: 96px 0; }
.section-sand { background: linear-gradient(180deg, var(--paper), var(--sand) 18%, var(--sand) 82%, var(--paper)); }
.section-mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin: 0 auto; }
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.explore { padding-top: 88px; }
.explore-map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); border: 1px solid var(--line); }
.explore-map { height: 560px; }
.map-chips { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 500; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.map-chips .chip { pointer-events: auto; box-shadow: var(--sh-2); border-color: transparent; }
.map-legend { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: flex; gap: 14px; padding: 8px 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: var(--r-pill); font-size: 12.5px; box-shadow: var(--sh-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-pin { background: #fff; border: 2px solid var(--sage-600); }
.lg-h { background: var(--clay); }
.lg-e { background: var(--sky); }

.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.city-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; isolation: isolate; color: #fff; box-shadow: var(--sh-2); }
.city-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transition: transform 1.2s var(--ease); }
.city-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(38, 54, 44, .75)); }
.city-card:hover .city-img { transform: scale(1.06); }
.city-body { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.city-body b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 500; }
.city-body span { font-size: 13px; color: rgba(255, 255, 255, .85); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 32px 28px; background: rgba(255, 255, 255, .7); border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--sh-1); }
.step-n { position: absolute; top: 24px; right: 26px; font-family: var(--f-display); font-size: 44px; color: var(--sand-deep); line-height: 1; }
.step-ic { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--sage-100); color: var(--sage-700); margin-bottom: 18px; }
.step p { margin: 0; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; box-shadow: var(--sh-3); }
.float-card { position: absolute; left: -24px; bottom: 32px; display: flex; gap: 12px; align-items: center; background: #fff; padding: 14px 18px; border-radius: var(--r-md); box-shadow: var(--sh-3); animation: float 6s ease-in-out infinite; }
.float-card > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--sage-100); color: var(--sage-700); }
.float-card b, .float-card span { display: block; }
@keyframes float { 50% { transform: translateY(-8px); } }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 32px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
.feature .ic { grid-row: span 2; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--sage-50); color: var(--sage-700); }
.feature span { font-size: 14.5px; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; padding: 30px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-family: var(--f-display); font-size: 18px; line-height: 1.5; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption b, .testimonial figcaption span { display: block; }
.stars { color: var(--honey); letter-spacing: 2px; font-size: 14px; }

.landlord-band { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 28px; overflow: hidden; background: var(--sage-800); color: #fff; box-shadow: var(--sh-3); }
.lb-copy { padding: 64px; }
.lb-copy p { color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 460px; }
.lb-media { background-size: cover; background-position: center; min-height: 380px; }
.big-ten { font-size: 1.25em; color: var(--sand); font-style: italic; }
.lb-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-50); transition: transform .3s var(--ease); flex: none; }
.faq details[open] .faq-x { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; margin: 0; animation: pageIn .4s var(--ease); }

/* ---- page hero (landlords, how) ---- */
.page-hero { position: relative; padding: calc(var(--header-h) + 100px) 0 110px; color: #fff; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover; animation: kenburns 30s ease-in-out infinite alternate; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(38, 54, 44, .82), rgba(59, 84, 67, .35)); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.page-hero h1 em { color: var(--sand); font-weight: 400; }
.page-hero p { max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .86); }

.compare { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.cmp { padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.cmp-us { background: var(--sage-50); border: 2px solid var(--sage-400); box-shadow: var(--sh-2); }
.cmp-name { font-weight: 600; margin-bottom: 8px; }
.cmp-price { font-family: var(--f-display); font-size: 52px; line-height: 1.1; }
.cmp-price small { font-size: 18px; color: var(--ink-soft); }
.cmp ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.cmp li { display: flex; gap: 10px; align-items: center; }
.cmp li .ic { color: var(--sage-600); }
.cmp li.no { color: var(--ink-soft); }
.cmp li.no .ic { color: var(--clay); }
.compare-4 { grid-template-columns: repeat(4, 1fr); }
.cmp-row { padding: 16px 0; border-top: 1px solid var(--line); }
.cmp-row:last-of-type { flex: 1; margin-bottom: 18px; }
.cmp-price-sm { font-size: 38px; }
.cmp-foot { text-align: center; max-width: 720px; margin: 24px auto 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-row b { display: block; font-family: var(--f-display); font-size: 44px; font-weight: 500; color: var(--sage-800); }
.howlist { list-style: none; counter-reset: h; padding: 0; margin: 28px 0 32px; display: grid; gap: 20px; }
.howlist li { counter-increment: h; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.howlist li::before { content: counter(h); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-600); color: #fff; font-weight: 700; }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.persona { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.persona-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.persona-body { padding: 26px; }
.persona-body .step-ic { margin-top: -48px; position: relative; background: #fff; box-shadow: var(--sh-2); }
.persona-grid.persona-2 { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin: 0 auto; }
.persona-2 .link .ic { width: 16px; height: 16px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 32px; font-size: 14.5px; color: var(--ink-soft); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ic { width: 18px; height: 18px; color: var(--sage-600); }

/* ---- listing cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { position: relative; border-radius: var(--r-lg); transition: transform .3s var(--ease); }
.card .carousel { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); overflow: hidden; background: var(--sage-50); box-shadow: var(--sh-1); transition: box-shadow .3s; }
.card:hover .carousel, .card.hl .carousel { box-shadow: var(--sh-3); }
.card.hl { transform: translateY(-3px); }
.card.hl .carousel { outline: 2px solid var(--sage-400); outline-offset: 3px; }
.car-track { position: absolute; inset: 0; }
.car-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease), transform 1.2s var(--ease); }
.car-track img.on { opacity: 1; }
.card:hover .car-track img.on { transform: scale(1.04); }
.car-btn { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: var(--sh-2); }
.car-btn .ic { width: 16px; height: 16px; }
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.carousel:hover .car-btn { opacity: 1; }
.car-btn:hover { transform: scale(1.08); }
.car-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: all .3s var(--ease); }
.car-dots i.on { background: #fff; width: 14px; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; pointer-events: none; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(58, 47, 38, .18); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.fav-btn .ic { width: 20px; height: 20px; }
.fav-btn:hover { transform: scale(1.1); background: rgba(58, 47, 38, .3); }
.fav-btn.on .ic, .fav-inline.on .ic { fill: var(--clay); stroke: var(--clay); }
.fav-btn.on { background: #fff; }
.fav-btn.pop, .fav-inline.pop { animation: heartPop .45s var(--ease); }
@keyframes heartPop { 40% { transform: scale(1.3); } }
.card-body { display: block; padding: 14px 4px 4px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; }
.card-price { font-size: 18px; font-weight: 700; }
.card-price small { font-size: 13.5px; font-weight: 400; color: var(--ink-soft); }
.card-rating { display: inline-flex; gap: 4px; align-items: center; font-size: 13.5px; font-weight: 600; }
.card-rating .ic { width: 14px; height: 14px; fill: var(--ink); stroke: none; }
.card-title { font: 500 15px/1.35 var(--f-ui); margin: 4px 0 6px; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.card-facts { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.card-facts i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.card-dist { font-size: 13px; color: var(--sage-700); margin-top: 6px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-dist .ic { width: 15px; height: 15px; }
.card-avail { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.skel { pointer-events: none; }
.skel-img { aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); }
.skel-line { height: 12px; border-radius: 6px; margin-top: 12px; }
.skel-img, .skel-line { background: linear-gradient(90deg, var(--sage-50) 25%, var(--mist) 50%, var(--sage-50) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.w60 { width: 60%; } .w90 { width: 90%; } .w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- map ---- */
/* isolation keeps the map's own layers (z-index 400+) from covering nearby dropdowns. */
.sj-map { background: #E6EEDB; font-family: var(--f-ui); isolation: isolate; }
/* Tint the base tiles toward sage; labels sit on their own pane, untinted. */
.sj-map.sj-raster .leaflet-tile-pane { filter: sepia(.35) hue-rotate(60deg) saturate(.95) brightness(1.03); }
.sj-map.sj-raster .leaflet-labels-pane { filter: sepia(.3) hue-rotate(60deg) opacity(.9); }
.sj-map::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 401; box-shadow: inset 0 0 80px rgba(94, 128, 104, .18); }
.sj-map.placing, .sj-map.placing .leaflet-interactive { cursor: crosshair !important; }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--sh-2) !important; border-radius: var(--r-pill) !important; overflow: hidden; margin: 0 16px 16px 0 !important; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 38px !important; color: var(--ink) !important; border: 0 !important; font: 400 20px/38px var(--f-ui) !important; }
.leaflet-control-zoom a:hover { background: var(--sage-50) !important; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .7) !important; font-size: 10.5px !important; border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--ink-soft) !important; }

.pin-wrap { background: none; border: 0; }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); padding: 6px 11px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 700 13px var(--f-ui); white-space: nowrap; box-shadow: 0 4px 12px -2px rgba(58, 47, 38, .28), 0 0 0 1.5px var(--sage-200); transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .2s; animation: pinDrop .6s var(--ease) both; cursor: pointer; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; box-shadow: 1.5px 1.5px 0 0 var(--sage-200); z-index: -1; }
.pin:hover, .pin.active { background: var(--sage-700); color: #fff; transform: translate(-50%, -100%) scale(1.14); box-shadow: 0 8px 20px -4px rgba(59, 84, 67, .55); }
.pin.active::after, .pin:hover::after { box-shadow: none; }
.pin-mine { background: var(--clay); color: #fff; box-shadow: 0 4px 12px -2px rgba(201, 139, 107, .6); }
.pin-mine::after { box-shadow: none; }
.pin-heart { font-style: normal; color: var(--clay); margin-right: 4px; }
.pin:hover .pin-heart, .pin.active .pin-heart { color: var(--sand); }
@keyframes pinDrop { 0% { opacity: 0; transform: translate(-50%, -160%) scale(.6); } 60% { opacity: 1; transform: translate(-50%, -92%) scale(1.04); } 100% { opacity: 1; transform: translate(-50%, -100%) scale(1); } }

.here { position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; }
.here b { position: absolute; inset: 0; border-radius: 50%; background: var(--sage-600); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.here i { position: absolute; inset: 0; border-radius: 50%; background: var(--sage-400); animation: pulse 2.4s var(--ease) infinite; }
.here i + i { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(5); opacity: 0; } }

.poi { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: var(--sh-2); }
.poi .ic { width: 16px; height: 16px; }
.poi-hospital { background: var(--clay); }
.poi-employer { background: #7FA2B0; }
.search-pin { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--sage-800); color: #fff; font: 600 12.5px var(--f-ui); white-space: nowrap; box-shadow: var(--sh-3); pointer-events: none; animation: pinDrop .5s var(--ease); }
.search-pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.search-pin .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--sage-500, #7FA287); }
.search-pin.is-hosp .ic { background: var(--clay); }
.home-dot { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-600); color: #fff; border: 3px solid #fff; box-shadow: var(--sh-3); }
.home-dot.drop { animation: pinDrop .5s var(--ease); cursor: grab; }

.sj-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-3); }
.sj-popup .leaflet-popup-content { margin: 0; width: 250px !important; }
.sj-popup .leaflet-popup-tip { box-shadow: none; }
.map-card { display: block; color: var(--ink) !important; animation: pop .25s var(--ease); }
.map-card-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.map-card-body { padding: 12px 14px 14px; }
.map-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.map-card-top b { font-size: 16px; }
.map-card-top small { font-weight: 400; color: var(--ink-soft); }
.map-card-top .ic { width: 13px; height: 13px; fill: var(--ink); stroke: none; }
.map-card-title { font-weight: 500; font-size: 14px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card-meta { font-size: 12.5px; color: var(--ink-soft); }
.sj-tip { background: var(--ink); color: #fff; border: 0; border-radius: 8px; font: 600 12px var(--f-ui); padding: 5px 10px; box-shadow: var(--sh-2); }
.sj-tip::before { border-top-color: var(--ink) !important; }

/* ---- search page ---- */
.search-page { padding-top: var(--header-h); }
.filter-bar { position: sticky; top: var(--header-h); z-index: 600; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(250, 244, 234, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.fb-scroll { flex: 1; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fb-scroll::-webkit-scrollbar { display: none; }
.fb-place { display: flex; gap: 10px; align-items: center; padding-right: 6px; flex: none; }
.fb-place > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--sage-100); color: var(--sage-700); }
.fb-place b { display: block; font-size: 14.5px; line-height: 1.2; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.fb-place span { white-space: nowrap; }
.fb-sep { width: 1px; height: 28px; background: var(--line); flex: none; margin: 0 4px; }
.dropdown { position: relative; flex: none; }
.dd-panel { position: fixed; z-index: 700; margin-top: 8px; width: 300px; padding: 18px 20px; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-3); border: 1px solid var(--line); display: none; }
.dropdown.open .dd-panel { display: block; animation: pop .2s var(--ease); }
.chip-dd .dd-caret { width: 14px; height: 14px; margin-left: -2px; opacity: .6; transition: transform .2s; }
.dropdown.open .dd-caret { transform: rotate(180deg); }
.dd-menu { width: 250px; padding: 6px; }
.dd-menu.dd-narrow { width: 210px; }
.dd-menu .suggest-item { justify-content: space-between; }
.dd-menu .suggest-item b { font-weight: 500; }
.dd-menu .suggest-item .ic { width: 16px; height: 16px; color: var(--sage-600); opacity: 0; }
.dd-menu .suggest-item.active b { font-weight: 600; color: var(--sage-800); }
.dd-menu .suggest-item.active .ic { opacity: 1; }
.dd-title { font-weight: 600; margin-bottom: 12px; }
.dd-panel input[type=range] { width: 100%; accent-color: var(--sage-600); }
.dd-range { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.dd-range b { color: var(--ink); font-size: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); flex: none; }
.seg button { height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: all .2s; }
.seg button.on { background: var(--sage-800); color: #fff; }
/* List keeps just enough width for two card columns; the map gets the rest (~60% on wide screens). */
.search-body { display: grid; grid-template-columns: clamp(340px, 40%, 620px) minmax(0, 1fr); height: calc(100vh - var(--header-h) - 65px); }
.results { overflow-y: auto; padding: 28px 28px 80px; scrollbar-width: thin; }
/* Sort bar stays pinned to the top of the scrolling list. */
.results-head { position: sticky; top: -28px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -28px -28px 20px; padding: 14px 28px; background: rgba(250, 244, 234, .96); border-bottom: 1px solid var(--line); }
.results-head .dd-panel { position: absolute; top: 100%; left: 0; }
.results .card-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 18px; }
.map-col { position: relative; padding: 14px 14px 14px 0; }
.search-map { height: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.map-redo { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 500; height: 42px; animation: pop .3s var(--ease); }
.map-tools { position: absolute; top: 30px; right: 30px; z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; justify-content: center; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-2); font-size: 13.5px; font-weight: 600; transition: all .2s; }
.tool:hover { background: var(--sage-50); }
.tool.on { background: var(--ink); color: #fff; }
.tool span:empty { display: none; }
.map-count { position: absolute; left: 30px; bottom: 30px; z-index: 500; padding: 7px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); box-shadow: var(--sh-2); font-size: 13px; font-weight: 600; }
.view-toggle { display: none; }
body[data-route="search"] .site-footer, body[data-route="search"] .demo-pill { display: none; }

/* ---- listing detail ---- */
.listing { padding-top: calc(var(--header-h) + 20px); padding-bottom: 80px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--sage-700); }
.crumbs .ic { width: 15px; height: 15px; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(520px, 56vw); border-radius: var(--r-lg); overflow: hidden; }
.g-item { background-size: cover; background-position: center; transition: filter .3s, transform .6s var(--ease); }
.g-item:hover { filter: brightness(.92); }
.g-0 { grid-row: span 2; }
.g-all { position: absolute; right: 18px; bottom: 18px; box-shadow: var(--sh-2); }
/* Single centered column: the price card is gone and its info lives in .facts. */
.listing-layout { max-width: 920px; margin: 36px auto 0; }
.l-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.l-head h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 10px 0 6px; }
.l-head p { margin: 0; }
.l-head p .ic { width: 15px; height: 15px; }
.l-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.l-actions { display: flex; gap: 8px; flex: none; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 24px; padding: 22px 0; margin: 24px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact b { display: block; font-size: 20px; font-weight: 700; }
.fact span { font-size: 13px; color: var(--ink-soft); }
.fact-price b { font-family: var(--f-display); font-size: 28px; font-weight: 500; color: var(--sage-800); }
.quick { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px 0; font-size: 14.5px; color: var(--ink-soft); }
.quick span { display: inline-flex; gap: 8px; align-items: center; }
.quick .ic { color: var(--sage-600); }
.l-sec { padding: 36px 0; border-top: 1px solid var(--line); }
.l-sec h2 { font-size: 24px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.l-sec h2 .ic { width: 22px; height: 22px; fill: var(--ink); stroke: none; }
.desc { font-size: 16px; line-height: 1.7; color: var(--ink); position: relative; }
.desc.collapsed { max-height: 8.5em; overflow: hidden; }
.desc.collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--paper)); }
.ideal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.amen { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.amen .ic { width: 24px; height: 24px; color: var(--sage-700); }
.nearby { display: grid; gap: 4px; margin-bottom: 20px; }
.near-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; }
.near-row + .near-row { border-top: 1px dashed var(--line); }
.near-row b, .near-row span { display: block; }
.near-ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--clay-50); color: var(--clay); }
.near-row:nth-last-child(-n+3) .near-ic { background: var(--sage-50); color: var(--sage-700); }
.near-d { text-align: right; }
.mini-map { height: 340px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 10px; }
.cal-wrap { display: flex; gap: 28px; align-items: flex-start; }
.cal { flex: 1; }
.cal-title { font-weight: 600; text-align: center; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13.5px; }
.cal-grid b { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; padding-bottom: 4px; }
.cal-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; }
.cal-grid .free { background: var(--sage-50); color: var(--sage-800); }
.cal-grid .booked { color: var(--ink-faint); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--mist) 4px 8px); }
.cal-grid .past { color: #C9CDC9; }
.cal-grid .sel { background: var(--sage-600) !important; color: #fff !important; text-decoration: none; }
.cal-grid .sel.booked { background: var(--clay) !important; }
.cal-nav { margin-top: -6px; }
.cal-legend { display: flex; gap: 18px; margin-top: 16px; }
.cal-legend span { display: inline-flex; gap: 6px; align-items: center; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cl-free { background: var(--sage-50); border: 1px solid var(--sage-200); }
.cl-booked { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--line) 3px 6px); }
.cl-sel { background: var(--sage-600); }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.rv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.rv-head b, .rv-head span { display: block; }
.review p { margin: 0; color: var(--ink); }
.host { display: flex; gap: 28px; align-items: flex-start; }
.host h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.host-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; color: var(--ink-soft); }
.host-stats b { color: var(--ink); }
.similar { margin-top: 24px; }
.mobile-cta { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(24, 30, 26, .94); display: grid; grid-template-columns: 80px 1fr 80px; grid-template-rows: 1fr auto; align-items: center; opacity: 0; transition: opacity .25s; }
.lightbox.in { opacity: 1; }
.lightbox figure { margin: 0; grid-column: 2; display: grid; place-items: center; height: 100%; padding: 50px 0 10px; }
.lightbox img { max-height: calc(100vh - 170px); max-width: 100%; border-radius: var(--r-md); object-fit: contain; animation: pop .3s var(--ease); }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: 13px; margin-top: 10px; }
.lightbox .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); justify-self: center; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-x { position: absolute; top: 18px; right: 18px; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-thumbs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding: 14px; overflow-x: auto; }
.lb-thumbs button { width: 64px; height: 46px; border-radius: 8px; background-size: cover; background-position: center; opacity: .45; flex: none; transition: opacity .2s; }
.lb-thumbs button.on { opacity: 1; outline: 2px solid #fff; }

/* ---- wizard ---- */
.wizard { padding-top: calc(var(--header-h) + 36px); padding-bottom: 60px; }
.wz-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 30px; }
.wz-head h1 { font-size: clamp(28px, 3.4vw, 40px); max-width: 640px; }
.wz-head p { margin: 0; }
.wz-fee { flex: none; padding: 16px 22px; border-radius: var(--r-md); background: var(--sage-50); border: 1px solid var(--sage-200); text-align: center; }
.wz-fee span, .wz-fee small { display: block; font-size: 12px; color: var(--ink-soft); }
.wz-fee b { font-family: var(--f-display); font-size: 36px; font-weight: 500; color: var(--sage-800); line-height: 1.1; }
.wz-steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 6px; overflow-x: auto; }
.wz-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); font-size: 14px; color: var(--ink-faint); font-weight: 500; white-space: nowrap; }
.wz-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.wz-steps li.on { background: var(--sage-50); color: var(--sage-800); }
.wz-steps li.on span { background: var(--sage-600); color: #fff; }
.wz-steps li.done { color: var(--ink-soft); cursor: pointer; }
.wz-steps li.done span { background: var(--sage-200); color: var(--sage-800); }
.wz-progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 32px; }
.wz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage-400), var(--sage-600)); border-radius: 2px; transition: width .6s var(--ease); }
.wz-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.wz-panel { padding: 36px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); min-height: 420px; }
.wz-panel.enter { animation: pageIn .4s var(--ease); }
.wz-panel h2 { font-size: 28px; }
.wz-panel h3 { margin-top: 28px; margin-bottom: 14px; }
.wz-panel > .field, .wz-panel > .grid-2, .wz-panel > .grid-3 { margin-bottom: 18px; }
.wz-preview { position: sticky; top: calc(var(--header-h) + 24px); }
.wz-preview .card { pointer-events: none; }
.wz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.wz-foot .ic { width: 14px; height: 14px; color: var(--sage-600); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; font-weight: 600; transition: all .2s var(--ease); text-align: left; }
.type-card .ic { width: 28px; height: 28px; color: var(--sage-600); }
.type-card:hover { border-color: var(--sage-400); }
.type-card.on { border-color: var(--sage-600); background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--sage-600); }
.steppers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: end; }
.stepper { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.stepper > div { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-md); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: all .2s; }
.stepper button:hover { border-color: var(--sage-600); color: var(--sage-700); }
.ac-field { position: relative; }
.wz-map { height: 360px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin-top: 6px; }
.photo-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.tray-item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background-size: cover; background-position: center; animation: pop .25s var(--ease); }
.tray-item.cover { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tray-item .tag { position: absolute; top: 8px; left: 8px; }
.tray-item [data-rm] { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.tray-item [data-rm] .ic { width: 14px; height: 14px; }
.mk-cover { position: absolute; bottom: 6px; left: 6px; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); font-size: 11.5px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.tray-item:hover .mk-cover { opacity: 1; }
.tray-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px; border: 2px dashed var(--sage-200); border-radius: var(--r-md); color: var(--ink-soft); }
.tray-empty .ic { width: 28px; height: 28px; color: var(--sage-400); }
.photo-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.upload-btn { cursor: pointer; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.stock { position: relative; aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; transition: transform .2s var(--ease), opacity .2s; }
.stock:hover { transform: scale(1.03); }
.stock.on { outline: 3px solid var(--sage-600); outline-offset: 2px; }
.stock-n { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-600); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.stock-n:empty { display: none; }
.amen-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.checklist { display: grid; gap: 2px; margin: 18px 0 24px; }
.cl-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-row b, .cl-row span { display: block; }
.cl-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-100); color: var(--sage-700); }
.cl-ic .ic { width: 15px; height: 15px; }
.pay { margin-top: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); display: grid; gap: 16px; }
.pay-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pay-head span { display: block; }
.pay-amt { font-family: var(--f-display); font-size: 32px; font-weight: 500; color: var(--sage-800); }
.pay-demo { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--clay-50); color: #8A5538; font-size: 13px; font-weight: 600; }
.grid-card { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.grid-card input[readonly] { color: var(--ink-soft); }
.pay p { margin: 0; }

.success { padding-top: calc(var(--header-h) + 56px); padding-bottom: 80px; text-align: center; }
.success-badge { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-600); color: #fff; box-shadow: 0 0 0 12px var(--sage-50); animation: heartPop .6s var(--ease); }
.success-badge .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.success-grid { display: grid; grid-template-columns: 340px 360px; gap: 32px; justify-content: center; margin-top: 36px; text-align: left; }
.receipt { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.rc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rc-row span { color: var(--ink-soft); }
.rc-actions { display: grid; gap: 10px; margin-top: 22px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 4000; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--drift), 105vh) rotate(720deg); } }

/* ---- inbox ---- */
.inbox { padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
.inbox-shell { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - var(--header-h) - 64px); min-height: 520px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.thread-list { border-right: 1px solid var(--line); overflow-y: auto; }
.tl-head { padding: 22px 22px 14px; position: sticky; top: 0; background: #fff; z-index: 1; }
.tl-head h1 { font-size: 26px; margin: 0; }
.tl-item { position: relative; display: flex; gap: 12px; padding: 14px 22px; transition: background .2s; border-left: 3px solid transparent; }
.tl-item:hover { background: var(--mist); }
.tl-item.on { background: var(--sage-50); border-left-color: var(--sage-600); }
.tl-body { min-width: 0; flex: 1; }
.tl-top { display: flex; justify-content: space-between; gap: 8px; }
.tl-listing { color: var(--sage-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item.unread b, .tl-item.unread .tl-snip { color: var(--ink); font-weight: 700; }
.tl-item .dot { position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); }
/* Inbox list groups: Active / Confirmed / Not moving forward. */
.tl-group { padding: 16px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.tl-group span { margin-left: 4px; font-weight: 600; }
.tl-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12.5px; font-weight: 600; }
.tl-badge .ic { width: 13px; height: 13px; }
.tl-badge.ok { color: var(--sage-700); }
.tl-badge.no { color: var(--clay); }
.tl-closed { opacity: .62; }
.tl-closed:hover, .tl-closed.on { opacity: 1; }
.tl-del { position: absolute; right: 12px; bottom: 10px; width: 30px; height: 30px; opacity: 0; transition: opacity .15s; color: var(--ink-soft); }
.tl-del .ic { width: 16px; height: 16px; }
.tl-item:hover .tl-del, .tl-del:focus-visible { opacity: 1; }
@media (hover: none) { .tl-del { opacity: .7; } } /* phones have no hover: keep the trash icon visible */
.tl-del:hover { color: var(--clay); background: var(--clay-50); }
.tl-empty { padding: 0 22px; }
.btn-danger { background: var(--clay); color: #fff; border: 1px solid var(--clay); }
.btn-danger:hover { background: #A1552F; }
.modal.modal-sm { max-width: 440px; }
.modal-sm h3 { margin-top: 0; }
.convo { display: flex; flex-direction: column; min-height: 0; background: linear-gradient(180deg, #fff, var(--paper)); }
.convo-empty { margin: auto; text-align: center; max-width: 380px; padding: 40px; }
.big-ic { width: 64px; height: 64px; padding: 16px; border-radius: 20px; background: var(--sage-50); color: var(--sage-600); margin-bottom: 18px; }
.convo-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.convo-head b, .convo-head > div > span { display: block; }
.convo-head b .ic { width: 15px; height: 15px; }
.back-btn { display: none; }
.status-pill { margin-left: auto; padding: 5px 12px; border-radius: var(--r-pill); background: var(--sage-100); color: var(--sage-800); font-size: 12.5px; font-weight: 600; }
.contact-listing img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
/* Chat header: listing photo with landlord avatar badge, then name + status and listing link. */
.ch-photo { position: relative; flex: none; width: 64px; height: 48px; }
.ch-photo > img:first-child { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; }
.ch-photo .avatar { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border: 2px solid #fff; }
.ch-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ch-top { display: flex; align-items: center; gap: 10px; }
.ch-top .status-pill { margin-left: 0; padding: 3px 10px; font-size: 12px; }
.ch-listing { display: inline-flex; align-items: center; gap: 4px; color: var(--sage-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ch-listing:hover { text-decoration: underline; }
.ch-listing .ic { width: 13px; height: 13px; flex: none; }
.bubbles { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.safety { align-self: center; display: flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: var(--r-pill); background: var(--sand); color: var(--ink-soft); margin-bottom: 8px; }
.safety .ic { width: 14px; height: 14px; }
.bubble { max-width: 72%; padding: 12px 16px; border-radius: 18px; font-size: 15px; animation: pop .3s var(--ease); }
.bubble p { margin: 0; }
.bubble time { display: block; font-size: 11px; margin-top: 4px; opacity: .6; }
.bubble.me { align-self: flex-end; background: var(--sage-600); color: #fff; border-bottom-right-radius: 6px; }
.bubble.host { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
/* Deal decision bar under the listing strip. */
.deal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 22px 4px; padding: 12px 16px; border-radius: var(--r-md); background: var(--mist); border: 1px solid var(--line); }
.deal > div:first-of-type { flex: 1 1 260px; display: grid; gap: 2px; }
.deal b { font-size: 14.5px; }
.deal .deal-ic { width: 22px; height: 22px; flex: none; color: var(--sage-700); }
.deal-btns { display: flex; gap: 8px; flex: none; }
.deal-btns .ic { width: 15px; height: 15px; }
.deal-sides { display: flex; gap: 16px; color: var(--ink-soft); }
.deal-sides .ok { color: var(--sage-700); }
.deal-sides .no { color: var(--clay); }
.deal-ok { background: var(--sage-50); border-color: var(--sage-400); }
.deal-no { background: #FBF4F0; border-color: #EBD3C6; }
.deal-no .deal-ic { color: var(--clay); }
/* Shared photos and documents. */
.composer { align-items: flex-end; }
.attach-btn { width: 46px; height: 46px; flex: none; }
.bubble-file { padding: 6px; }
.bubble-file time { padding: 0 8px 4px; }
.att-img img { display: block; max-width: 260px; max-height: 260px; border-radius: 14px; }
.att-doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: inherit; min-width: 220px; }
.bubble.host .att-doc { background: var(--mist); }
.att-doc .ic { width: 26px; height: 26px; flex: none; }
.att-doc b { display: block; font-size: 14px; word-break: break-all; }
.att-doc small { opacity: .8; font-size: 12px; }
.call-line { display: flex; align-items: center; gap: 8px; }
.call-line .ic { width: 16px; height: 16px; }
/* Video call screen. */
.modal.modal-call { max-width: 720px; padding: 18px; background: #1E2722; color: #fff; }
.modal.modal-call .modal-x { color: #fff; z-index: 2; }
.call-stage { position: relative; height: min(62vh, 460px); border-radius: var(--r-lg); background: radial-gradient(circle at 50% 35%, #3B5443, #1E2722 70%); overflow: hidden; }
.call-remote { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.call-remote .avatar { width: 110px; height: 110px; border: 3px solid rgba(255, 255, 255, .25); }
.call-remote b { font-size: 20px; }
.call-remote span { opacity: .75; }
.call-self { position: absolute; right: 14px; bottom: 14px; width: 132px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #2D3A32; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); }
.call-self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.call-self span { position: absolute; }
.call-self span .ic { width: 34px; height: 34px; opacity: .5; }
.call-ctrls { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 14px; }
.call-ctl { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: background .2s; }
.call-ctl:hover { background: rgba(255, 255, 255, .26); }
.call-ctl.off { background: #fff; color: #1E2722; }
.call-ctl .ic { width: 22px; height: 22px; }
.call-end { background: #C4554A; }
.call-end:hover { background: #A9463C; }
.call-note { display: flex; gap: 8px; align-items: center; margin: 12px 4px 0; color: rgba(255, 255, 255, .7) !important; }
.call-note .ic { width: 15px; height: 15px; flex: none; }
/* Housing request "cover sheet" bubble. */
.bubble-req { background: #fff !important; color: var(--ink) !important; border: 1.5px solid var(--sage-400); min-width: 280px; }
.req-card { display: grid; gap: 8px; }
.req-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sage-800); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.req-card > div:not(.req-title) { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; font-size: 14.5px; }
.req-card .ic { width: 16px; height: 16px; color: var(--sage-600); }
.req-card span { color: var(--ink-soft); }
.req-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.req-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--sage-600); }
.bubble.typing { display: flex; gap: 4px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .2s; } .bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.composer { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 22px; padding: 11px 18px; outline: 0; min-height: 46px; max-height: 140px; }
.composer textarea:focus { border-color: var(--sage-400); box-shadow: var(--sh-ring); }
.composer .btn { width: 46px; padding: 0; }

/* ---- modal ---- */
.modal-wrap { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(58, 47, 38, .42); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal { position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(14px) scale(.98); transition: all .3s var(--ease); }
.modal-wrap.in .modal-backdrop { opacity: 1; }
.modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.contact-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.contact-head .eyebrow { margin-bottom: 2px; }
.contact-head h3 { font-family: var(--f-display); font-size: 24px; font-weight: 500; margin: 0; }
.contact-listing { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--mist); margin-bottom: 20px; }
.contact-listing b, .contact-listing span { display: block; }

/* ---- toasts, empty, footer ---- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5000; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(12px) scale(.96); transition: all .35s var(--ease); pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--sage-400); color: var(--ink); stroke-width: 2.4; }
.toast-info .ic { background: var(--sky); }
.toast-err .ic { background: var(--clay); }
.toast a { color: var(--sage-200); font-weight: 600; text-decoration: underline; }
.empty-state { text-align: center; padding: 64px 20px; display: flex; flex-direction: column; align-items: center; }
.empty-state p { max-width: 420px; }
.empty-art { font-size: 48px; margin-bottom: 10px; }
.small-empty { grid-column: 1 / -1; padding: 40px 20px; }
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; }
body[data-route="inbox"] .site-footer, body[data-route="home"] .site-footer, body[data-route="landlords"] .site-footer, body[data-route="how"] .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 4px 0; }
.footer-grid a:not(.brand):hover { color: var(--sage-700); }
.footer-grid p { font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-pill { position: fixed; left: 18px; bottom: 18px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: var(--sh-2); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.demo-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-400); box-shadow: 0 0 0 3px var(--sage-100); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .4; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .header-search { max-width: none; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  body.nav-open .main-nav { display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; padding: 12px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  body.nav-open .main-nav a { color: var(--ink) !important; padding: 12px 14px; }
  .search-pill { flex-direction: column; border-radius: var(--r-lg); padding: 10px; gap: 2px; }
  .sp-field + .sp-field::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; }
  .sp-field { padding: 10px 18px; border-radius: var(--r-md); }
  .sp-go { justify-content: center; height: 52px; margin-top: 6px; }
  .sp-where .suggest { top: calc(100% + 4px); }
  .hero-steps { grid-template-columns: 1fr; gap: 14px; padding-top: 40px; }
  .steps, .testimonials, .persona-grid, .persona-grid.persona-2, .compare, .compare-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .float-card { left: 16px; }
  .landlord-band { grid-template-columns: 1fr; }
  .lb-copy { padding: 40px 28px; }
  .lb-media { min-height: 240px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-body { grid-template-columns: 1fr; height: auto; }
  .results { overflow: visible; padding: 20px 16px 100px; }
  /* Here the page scrolls, so pin the sort bar just under the filter bar. */
  /* Phones/tablets: filters wrap so none are hidden; the bar scrolls away with the
     page and the sort bar pins under the header. --fb-h is measured in search.js. */
  .filter-bar { position: relative; top: auto; }
  .fb-scroll { flex-wrap: wrap; overflow: visible; row-gap: 10px; }
  .fb-place { flex-basis: 100%; }
  .fb-sep { display: none; }
  /* Listing page: the pinned bottom bar carries "Request housing", so drop the top copy. */
  .l-actions [data-contact] { display: none; }
  .results-head { top: var(--header-h); margin: -20px -16px 16px; padding: 10px 16px; }
  .map-col { display: none; position: fixed; inset: calc(var(--header-h) + var(--fb-h, 63px)) 0 0; padding: 0; z-index: 500; }
  .search-map { border-radius: 0; border: 0; }
  body.show-map .map-col { display: block; }
  body.show-map .results { display: none; }
  .map-tools { top: 16px; right: 16px; }
  .map-redo { top: auto; bottom: 140px; }
  .map-count { left: 16px; bottom: 90px; }
  .view-toggle { display: inline-flex; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 800; background: var(--ink); color: #fff; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-cta b { font-size: 18px; }
  body[data-route="listing"] .demo-pill { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 70vw; }
  .g-0 { grid-column: span 2; grid-row: auto; }
  .g-3, .g-4 { display: none; }
  .wz-body { grid-template-columns: 1fr; }
  .wz-preview { position: static; max-width: 360px; }
  .wz-head { flex-direction: column; align-items: flex-start; }
  .success-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .inbox-shell { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--header-h) - 40px); }
  /* An open conversation fills the screen: no site header, footer or page margins. */
  body.chat-open .site-header, body.chat-open .site-footer, body.chat-open .demo-pill { display: none; }
  body.chat-open .inbox { padding: 0; }
  body.chat-open .inbox-shell { height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  /* Phone conversation: tighter edges; the deal bar already shows status, so the pill goes. */
  .convo-head { padding: 12px 14px; gap: 10px; }
  .ch-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ch-top .status-pill { display: none; }
  .deal { margin: 12px 14px 4px; padding: 10px 12px; }
  .bubbles { padding: 14px; }
  .bubble { max-width: 85%; }
  .composer { gap: 6px; padding: 10px 12px 12px; }
  .composer .attach-btn { width: 38px; height: 46px; }
  .composer textarea { padding: 12px 14px; font-size: 15px; min-width: 0; }
  .deal > div:first-of-type { flex: 1 1 180px; }
  .deal-btns { flex: 1 1 100%; }
  .deal-btns .btn { flex: 1; justify-content: center; padding: 0 8px; white-space: nowrap; min-width: 0; }
  .deal-btns .ic { display: none; }
  .deal-why { display: none; } /* phones: title, dates and buttons only */
  .deal { padding: 8px 12px; gap: 8px 12px; }
  .deal-btns .btn { height: 36px; }
  .inbox-shell .convo { display: none; }
  .inbox-shell.has-thread .thread-list { display: none; }
  .inbox-shell.has-thread .convo { display: flex; }
  .back-btn { display: inline-grid; }
  .reviews { grid-template-columns: 1fr; }
  .cal-wrap .cal + .cal { display: none; }
}
@media (max-width: 600px) {
  /* Listing form steps: numbers only, plus the current step's name, so all five fit. */
  .wz-steps { justify-content: space-between; overflow: visible; }
  .wz-steps li { font-size: 0; gap: 0; padding: 4px; }
  .wz-steps li.on { font-size: 14px; gap: 8px; padding: 4px 14px 4px 4px; }
  /* Home reviews: a sideways swipe row instead of six stacked cards. */
  .testimonials { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .testimonials::-webkit-scrollbar { display: none; }
  .testimonial { flex: 0 0 84%; scroll-snap-align: center; }
  /* Back / Continue stay within thumb reach instead of below the live preview. */
  .wz-foot { position: sticky; bottom: 0; z-index: 50; margin: 0 -16px; padding: 12px 16px; background: rgba(250, 244, 234, .96); border-top: 1px solid var(--line); }
  .container { padding-left: 16px; padding-right: 16px; } /* sides only: pages set their own top spacing */
  .list-cta span:last-child { display: none; }
  .list-cta { width: 38px; padding: 0; }
  .section { padding: 64px 0; }
  .hero-title { font-size: 38px; }
  /* Phones: headline on two lines and the search bar higher, nearer the top of the photo. */
  .hero .hero-inner { padding-top: 2vh; }
  .hero .hero-title { font-size: 31px; line-height: 1.12; margin-bottom: 22px; }
  .explore-map { height: 460px; }
  .map-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .city-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .city-body b { font-size: 19px; }
  .feature-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-card, .steppers { grid-template-columns: 1fr; }
  /* The housing request form keeps its pairs side by side so it fits without scrolling. */
  .modal-contact .grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .modal-contact .form-foot .btn { width: 100%; justify-content: center; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .wz-panel { padding: 22px 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .l-head { flex-direction: column; }
  .host { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
  .modal { padding: 24px 18px; }
  .filter-bar { padding: 10px 16px; }
  .demo-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- accounts: header menu, sign-in window, profile page ---- */
.acct { position: relative; display: flex; }
.acct-signin { margin-left: 4px; }
.acct-btn { width: 38px; height: 38px; margin-left: 6px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sage-100); color: var(--sage-800); font-weight: 700; font-size: 15px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); transition: box-shadow .2s; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--sage-400); }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }
.acct-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); animation: pop .2s var(--ease); }
.acct-who { display: grid; gap: 1px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-who span { overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink); text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--sage-50); }
.acct-menu .ic { width: 17px; height: 17px; color: var(--ink-soft); }
body[data-route="home"] .site-header:not(.scrolled) .acct-signin,
body[data-route="landlords"] .site-header:not(.scrolled) .acct-signin,
body[data-route="how"] .site-header:not(.scrolled) .acct-signin { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

.modal-signin { text-align: center; }
.signin h3 { margin: 6px 0 8px; font-family: var(--f-display); font-weight: 500; font-size: 26px; }
.signin > div > p { margin: 0 0 18px; }
.signin-mark { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 18px; display: grid; place-items: center; background: var(--sage-50); color: var(--sage-600); }
.signin-mark .ic { width: 26px; height: 26px; }
.signin .form { text-align: left; display: grid; gap: 14px; }
.signin .btn .ic { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-in { text-align: center; font-size: 24px !important; letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.form-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--clay-50); color: #8E4527; font-size: 14px; }
.signin-links { display: flex; justify-content: space-between; margin-top: 14px; }
.signin-links .link { font-size: 14px; }
.signin-fine { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; }
.signin-fine .ic { width: 14px; height: 14px; }

.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.account-card { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.account-card .avatar { margin-bottom: 8px; font-size: 36px; }
.account-card b { font-size: 18px; }
.account-card .tag { margin: 8px 0 12px; background: var(--sage-100); }
.account-card .tag.tag-clay { background: var(--clay-50); color: #8E4527; }
.account-card .tag .ic { width: 14px; height: 14px; }
.account-form { display: grid; gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.account-form > p { margin: 0; }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .acct-signin { padding: 0 12px; }
}
