/* ECStay — styles. Tokens follow design-system.SKILL.md. Mobile first. */
:root {
  /* ECStay brand (Explore, Come, Stay). Research on premium stay brands (Aman, Mint House, Habyt, Zoku,
     Blueground, Outsite): warm ivory pages, one deep colour, one metallic accent, a classic serif for headlines
     (Newsreader, close to the Tiempos family Mint House uses) and a quiet grotesk for everything else.
     Ours: Mt Apo evergreen + golden-hour brass on ivory. */
  --evergreen: #1D3F35;
  --evergreen-dark: #132C25;
  --evergreen-soft: #E6EDE8;
  --brass: #B98B4E;
  --brass-text: #8A6431;   /* brass dark enough for small text on ivory (4.8:1) */
  --page: #F9F6F0;         /* ivory page */
  --linen: #EFE8DC;
  --linen-line: #E2D8C7;
  --foot: #1C2A21;         /* the grass at the bottom of the scene, and the footer */

  /* Older names, mapped onto the ECStay palette */
  --blue: var(--evergreen);
  --blue-dark: var(--evergreen-dark);
  --blue-light: var(--evergreen-soft);
  --navy: #17221D;
  --kapi: var(--brass);
  --kapi-dark: var(--brass-text);
  --sand: var(--linen);
  --sand-line: var(--linen-line);
  --sky: #F1E1CA;          /* top of the house picture (closing section) */
  --sky-soft: #F6EEE2;
  --surface: #F2EDE4;
  --card: #FFFFFF;
  --border: #E4DDD0;
  --border-strong: #CCC2B1;
  --muted: #666C66;
  --ink-2: #3C443F;
  --text: #17221D;
  --green: #2D7A4B;
  --amber: #A8650F;
  --red: #B4322A;
  --heart: #B3263E;
  --warm: #FAF3E6;
  --warm-border: #E8D3AE;
  --warm-text: #6B4A1C;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-display: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 3px rgba(23, 34, 29, .08), 0 1px 2px rgba(23, 34, 29, .04);
  --shadow-hover: 0 4px 12px rgba(29, 63, 53, .12);
  --shadow-pop: 0 10px 32px rgba(23, 34, 29, .16), 0 2px 6px rgba(23, 34, 29, .06);
  --ring: 0 0 0 3px rgba(29, 63, 53, .25);

  --hdr-row1: 56px;
  --hdr-h: 166px;
  --nav-h: calc(64px + env(safe-area-inset-bottom));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  font: 400 15px/1.5 var(--font-body);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }
body.map-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; font-optical-sizing: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(29, 63, 53, .45); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.noscript { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-display); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.btn-sm .i { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-link { font: 600 15px var(--font-display); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.icon-btn:hover { background: var(--surface); }
.icon-btn-dark { background: rgba(255, 255, 255, .12); color: #fff; }
.icon-btn-dark:hover { background: rgba(255, 255, 255, .22); }
.count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--blue); color: #fff; font: 700 11px/1 var(--font-display);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: calc(var(--hdr-row1) * -1); z-index: 30;
  background: rgba(249, 246, 240, .94); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
}
.hdr {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo . actions" "search search filter";
  align-items: center; column-gap: 10px; padding: 0 16px;
}
.logo { grid-area: logo; height: var(--hdr-row1); display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.logo-icon { width: 45px; height: 30px; flex: none; }
/* Wordmark: a bold geometric sans that matches the weight of the capybara-house mark. */
.logo-word { font: 800 23px/1 'Plus Jakarta Sans', var(--font-body); letter-spacing: -0.035em; color: var(--evergreen); }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 8px; }
.logo-ph { font: 700 11px/1 var(--font-display); letter-spacing: .14em; color: var(--muted); margin-top: 8px; }
.hdr-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.hdr-link { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; font: 600 14px var(--font-display); text-decoration: none; color: var(--text); }
.hdr-link:hover { background: var(--surface); }
.hdr-link.on { background: var(--blue-light); color: var(--blue-dark); }
.saved-link .i { width: 18px; height: 18px; }
.saved-link.on .i { fill: var(--heart); stroke: var(--heart); }

.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: #fff; }
.lang button { min-width: 36px; height: 30px; padding: 0 8px; border-radius: 999px; font: 700 11.5px/1 var(--font-display); letter-spacing: .04em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: #fff; }

.back-link { grid-area: search; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 6px; font: 600 15px var(--font-display); text-decoration: none; color: var(--text); justify-self: start; }
.back-link:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Search */
.search { grid-area: search; position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.sf { position: relative; }
.sf-where { flex: 1; min-width: 0; }
.sf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sf-input { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(23, 34, 29, .05), 0 3px 10px rgba(23, 34, 29, .05); }
.sf-input:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.sf-icon { color: var(--text); width: 18px; height: 18px; }
.sf-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 15px var(--font-body); }
.sf-input input::placeholder { color: var(--muted); font-weight: 400; }
.sf-input.is-area input::placeholder { color: var(--text); font-weight: 600; }
.sf-input.is-area .sf-icon { color: var(--blue); }
.sf-clear { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sf-clear:hover { background: var(--surface); color: var(--text); }
.sf-clear .i { width: 16px; height: 16px; }
.sf-select, .sf-go { display: none; }
.filter-btn-top { grid-area: filter; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; position: relative; background: #fff; }
.filter-btn-top .count { position: absolute; top: -2px; right: -2px; }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  width: min(420px, calc(100vw - 32px)); max-height: 60vh; overflow: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 8px;
}
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.suggest li .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface); color: var(--blue); }
.suggest li span { display: flex; flex-direction: column; min-width: 0; }
.suggest li b { font: 600 14.5px var(--font-display); }
.suggest li small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--surface); }

/* Chips */
.chips-row { display: flex; align-items: center; gap: 12px; padding: 0 0 10px 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding-right: 16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font: 500 13.5px/1 var(--font-display); white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-sep { flex: none; width: 1px; height: 22px; background: var(--border); align-self: center; }
.filter-btn-row { display: none; }

/* ---------- Browse ---------- */
.browse { padding-bottom: calc(var(--nav-h) + 8px); }
.results { padding: 16px 16px 24px; }
.sample-note {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 10px 14px;
  background: var(--warm); border: 1px solid var(--warm-border); border-radius: 12px; color: var(--warm-text); font-size: 13.5px;
}
.sample-note .i { width: 18px; height: 18px; margin-top: 1px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-head h1 { font-size: 18px; font-weight: 700; }
.sort { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); flex: none; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  font: 600 13.5px var(--font-display); color: var(--text);
}

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 20px; }
.sub-head { font-size: 18px; margin: 32px 0 16px; }

/* Card */
.card { position: relative; }
.card-media {
  position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden;
  background: linear-gradient(90deg, #EEE9E0 25%, #E5DFD4 50%, #EEE9E0 75%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.card-media:has(img.ok) { animation: none; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.card-media img, .g-item img, .mini img, .viewer img { opacity: 0; transition: opacity .3s ease; }
img.ok { opacity: 1 !important; }
.slide-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .15s, scale .15s;
}
.slide-btn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-btn:hover { scale: 1.06; }
.at-start .slide-btn.prev, .at-end .slide-btn.next { visibility: hidden; }
@media (hover: hover) { .card-media:hover .slide-btn { opacity: 1; } }
.dots { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; display: flex; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: background-color .2s, scale .2s; }
.dots i.on { background: #fff; scale: 1.15; }
.status {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95);
  font: 600 12px/1.2 var(--font-display); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); pointer-events: none;
}
.status i, .b-status i, .pc-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.s-few i { background: var(--amber); }
.s-full i { background: var(--red); }
.heart { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; }
.heart .i { width: 26px; height: 26px; fill: rgba(23, 34, 29, .4); stroke: #fff; stroke-width: 2; transition: transform .15s var(--ease), fill .15s; }
.heart:hover .i { transform: scale(1.08); }
.heart[aria-pressed="true"] .i, .save-btn[aria-pressed="true"] .i { fill: var(--heart); stroke: var(--heart); }
.heart[aria-pressed="true"] .i { stroke: #fff; animation: pop .3s var(--ease); }
.card-body { display: block; padding-top: 10px; text-decoration: none; color: var(--text); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 650 16px/1.3 var(--font-body); letter-spacing: -0.005em; color: var(--text); }
.card-title span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { flex: none; font: 600 11.5px/1 var(--font-display); color: var(--ink-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; letter-spacing: .02em; vertical-align: middle; }
.card-near { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--evergreen); font-weight: 600; font-size: 14.5px; }
.card-near .i { width: 16px; height: 16px; }
.card-meta { margin-top: 1px; color: var(--ink-2); font-size: 14.5px; }
.card-price { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.card-price b { font: 700 17px var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.card.is-full .card-media img { filter: grayscale(1); }
.card.is-full .card-price b { color: var(--muted); }
.card.pin-hover .card-media { box-shadow: 0 0 0 3px var(--blue); }
@media (hover: hover) { .card-body:hover .card-title span:first-child { text-decoration: underline; text-underline-offset: 3px; } }

/* Empty state */
.empty { text-align: center; padding: 32px 16px 8px; background: var(--surface); border-radius: var(--radius-lg); }
.empty-art { width: 160px; height: 120px; margin: 0 auto 12px; }
.empty h2 { font-size: 19px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }
.empty .btn { margin-bottom: 20px; }


/* ---------- Map pane ---------- */
.map-pane { display: none; }
.browse.mode-map .results { display: none; }
.browse.mode-map .map-pane { display: block; position: fixed; left: 0; right: 0; top: var(--hdr-h); bottom: var(--nav-h); z-index: 5; }
.map { position: relative; width: 100%; height: 100%; background: #EEE9E0; }
.map-loading { position: absolute; inset: 0; background: linear-gradient(90deg, #EEE9E0 25%, #E5DFD4 50%, #EEE9E0 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.map-error { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted); }
.map-error .i { width: 32px; height: 32px; }

/* Phones: live count of rooms in view; tap to see them as a list. */
.map-count { display: none; }
.browse.mode-map .map-count {
  position: absolute; left: 50%; bottom: 44px; translate: -50% 0; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; background: var(--blue); color: #fff; white-space: nowrap;
  font: 600 14.5px var(--font-display); box-shadow: 0 6px 20px rgba(19, 44, 37, .35);
  transition: transform .15s var(--ease);
}
.browse.mode-map .map-count:active { transform: scale(.97); }
.map-count .i { width: 18px; height: 18px; }
.map-pane:has(.map-card) .map-count { display: none; }

/* Price pins: Havn-blue tags whose tail points at the room's exact spot (marker anchor = bottom). */
.pin, .cluster-pin { padding: 0; }
.pin { padding-bottom: 7px; }
.pin span {
  position: relative; display: block; padding: 6px 10px; border-radius: 8px; background: var(--blue); color: #fff;
  font: 700 13px/1.1 var(--font-display); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(19, 44, 37, .32);
  transform-origin: 50% calc(100% + 7px);
  transition: transform .15s var(--ease), background-color .15s, color .15s;
}
.pin span::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; z-index: -1; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; border-radius: 0 0 2px 0; transform: rotate(45deg);
}
.pin:hover, .pin.hover, .pin.active { z-index: 3; }
.pin:hover span, .pin.hover span { transform: scale(1.1); background: var(--blue-dark); }
.pin.active span { background: var(--brass-text); transform: scale(1.14); }
.pin.full span { background: #E4DED3; color: var(--muted); text-decoration: line-through; box-shadow: 0 1px 3px rgba(23, 34, 29, .18); }
.pin.saved span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 1.5px #fff; vertical-align: 1px; }
.cluster-pin span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 3px solid #fff; font: 700 14px/1 var(--font-display);
  box-shadow: 0 2px 8px rgba(29, 63, 53, .35); transition: transform .15s var(--ease);
}
.cluster-pin:hover span { transform: scale(1.08); }

/* Schools on the map */
.school-pin { position: relative; width: 24px; height: 24px; pointer-events: none; }
.school-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--blue-dark); box-shadow: 0 0 0 2px var(--blue-dark), 0 1px 3px rgba(0, 0, 0, .2); }
.school-dot .i { width: 15px; height: 15px; stroke-width: 2; }
.school-name {
  position: absolute; left: calc(100% + 5px); top: 50%; translate: 0 -50%; white-space: nowrap;
  font: 700 11.5px/1 var(--font-display); color: var(--blue-dark);
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.school-pin.left .school-name { left: auto; right: calc(100% + 5px); }
.far .school-name { display: none; }
.far .school-pin, .far .school-dot { width: 18px; height: 18px; }
.far .school-dot .i { width: 11px; height: 11px; }

/* Exact room pin */
.home-pin { position: relative; width: 44px; height: 54px; display: flex; justify-content: center; }
.home-pin > span {
  width: 40px; height: 40px; margin-top: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--blue); border: 3px solid #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(29, 63, 53, .45);
}
.home-pin .i { transform: rotate(45deg); color: #fff; width: 19px; height: 19px; stroke-width: 2.2; }
.home-pin::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 16px; height: 6px; translate: -50% 0; border-radius: 50%; background: rgba(23, 34, 29, .28); filter: blur(1px); z-index: -1; }

/* Map popups / cards */
.room-popup .maplibregl-popup-content { padding: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-pop); }
.room-popup .maplibregl-popup-close-button { width: 30px; height: 30px; top: 8px; right: 8px; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: 20px; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.room-popup .maplibregl-popup-tip { display: none; }
.mini { display: block; width: 260px; text-decoration: none; color: var(--text); font-family: var(--font-body); }
.mini img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: #EEE9E0; }
.mini-b { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; font-size: 13.5px; color: var(--ink-2); }
.mini-b b { font: 600 15px var(--font-display); color: var(--text); }
.mini-b strong { font: 700 14.5px var(--font-display); color: var(--text); }
.mini-b em { font-style: normal; font-weight: 600; color: var(--green); }
.mini-b em.st-few { color: var(--amber); }
.mini-b em.st-full { color: var(--red); }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 6; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-pop); animation: rise .22s var(--ease); }
.map-card .mini { width: auto; display: flex; }
.map-card .mini img { width: 128px; aspect-ratio: auto; flex: none; }
.map-card .mini-b { padding: 12px 44px 12px 14px; justify-content: center; }
.map-card-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .18) !important; }
.maplibregl-ctrl-group button { width: 36px !important; height: 36px !important; }

/* ---------- Bottom nav (phones/tablets) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom); background: rgba(249, 246, 240, .96); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11.5px var(--font-display); color: var(--muted); }
.bottom-nav button .i { width: 22px; height: 22px; }
.bottom-nav button[aria-pressed="true"] { color: var(--blue); }
.bottom-nav button[data-tab="saved"][aria-pressed="true"] .i { fill: var(--heart); stroke: var(--heart); }
.bottom-nav .count { position: absolute; top: 8px; left: calc(50% + 6px); }

/* ---------- Home ---------- */
/* Room-type tabs: in the header on computers, under the search on phones. */
.tabs { display: flex; gap: 2px; }
.tab {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 10px 10px;
  color: var(--muted); text-decoration: none; font: 600 12.5px/1.2 var(--font-display); white-space: nowrap; transition: color .15s;
}
.tab .i { width: 26px; height: 26px; stroke-width: 1.35; transition: transform .25s var(--ease); }
.tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transition: transform .2s var(--ease); }
.tab.on { color: var(--evergreen); }
.tab.on::after { transform: scaleX(1); }
@media (hover: hover) { .tab:hover { color: var(--text); } .tab:hover .i { transform: translateY(-2px); } }
.tabs-hdr { display: none; }
.tabs-band { overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 8px; justify-content: space-between; }
.tabs-band::-webkit-scrollbar { display: none; }

/* Header: a small search button appears once the big search scrolls away. */
.hdr-find {
  grid-area: search; display: none; align-items: center; gap: 10px; width: 100%; height: 44px; margin-bottom: 10px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--muted); text-align: left;
  font: 500 14.5px var(--font-body); box-shadow: 0 1px 2px rgba(23, 34, 29, .05), 0 3px 10px rgba(23, 34, 29, .05);
}
.hdr-find .i { width: 18px; height: 18px; color: var(--text); }
.hdr-find span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { .hdr-find { grid-column: 1 / -1; } }
.site-header.find-on .hdr-find { display: flex; animation: rise .25s var(--ease); }
.site-header.is-home:not(.find-on) { border-bottom-color: transparent; }

.home { padding-bottom: calc(var(--nav-h) + 16px); }
.home-wrap { padding: 0 16px; }
/* Line icons in a soft round badge (rows, places) */
.h-ic { flex: none; display: grid; place-items: center; border-radius: 50%; }
.h-ic { width: 38px; height: 38px; background: var(--linen); color: var(--brass-text); }
.h-ic .i { width: 19px; height: 19px; }

/* Top band: greeting (phones), search, tabs and Kapi the capybara. */
.top { background: linear-gradient(180deg, var(--page) 0%, var(--linen) 100%); border-bottom: 1px solid var(--linen-line); }
.top-in { position: relative; padding: 2px 16px 0; }
/* The keyword H1 is kept for search engines and screen readers but not shown (Carl, 11 Nov: search + Kapi only). */
.top-greet { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-greet h1 { margin-top: 4px; font: 500 25px/1.15 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
.top-greet p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.top-search { position: relative; z-index: 3; margin-top: 104px; }
.top .search { margin: 0; }
.top .sf-go { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin-left: 8px; border-radius: 12px; background: var(--blue); color: #fff; }
.top .sf-go span { display: none; }
.top .sf-go .i { width: 20px; height: 20px; stroke-width: 2.4; }

.capy { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.top .capy { position: absolute; right: 0; top: -26px; width: 150px; height: 150px; z-index: 2; }
.capy canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.capy-still { position: absolute; left: 18%; right: 18%; bottom: 0; height: 68%; width: 64%; object-fit: contain; object-position: 50% 100%; }
.capy-still { filter: drop-shadow(0 8px 12px rgba(23, 34, 29, .12)); transition: opacity .35s; }
.capy canvas { opacity: 0; transition: opacity .35s; }
.capy.live canvas { opacity: 1; }
.capy.live .capy-still { opacity: 0 !important; } /* beats the global img.ok fade-in rule */
.capy-bubble {
  position: absolute; z-index: 1; right: 78%; top: 6%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 34, 29, .06), 0 8px 22px rgba(23, 34, 29, .12); font: 500 14px var(--font-body); color: var(--navy); white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 100% 100%; transition: opacity .25s, transform .3s var(--ease); pointer-events: none;
}
.capy.talk .capy-bubble { opacity: 1; transform: none; }
@media (max-width: 1023px) { .top .capy-bubble { opacity: 1; transform: none; right: 84%; top: 22%; } }


.h-sec, .hrow { margin-top: 32px; }
.h-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.h-head h2 { font: 500 22px/1.2 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); min-width: 0; }

/* Rows of rooms */
.h-rows { margin-top: 28px; }
.h-rows > .sample-note { margin-bottom: 0; }
.hrow-all { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 10px; border-radius: 999px; font: 600 13.5px var(--font-display); color: var(--blue); text-decoration: none; }
.hrow-all:hover { background: var(--blue-light); }
.hrow-all .i { width: 16px; height: 16px; }
.hrow-nav { display: none; margin-left: auto; gap: 8px; }
.hrow-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; display: grid; place-items: center; transition: border-color .15s, opacity .15s; }
.hrow-btn:hover:not(:disabled) { border-color: var(--text); }
.hrow-btn:disabled { opacity: .35; cursor: default; }
.hrow-btn .i { width: 18px; height: 18px; }
.hrow-track { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.hrow-track::-webkit-scrollbar { display: none; }
.hrow-track .card { flex: 0 0 min(80vw, 330px); scroll-snap-align: start; }
.hrow-track .card-media { aspect-ratio: 4 / 3; border-radius: 18px; }
.hrow-track .card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.js .static-home { display: none; }
.static-home { max-width: 860px; margin: 0 auto; padding: 24px 16px; }

.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; border-radius: 999px; letter-spacing: .01em; }
.btn-lg .i { width: 20px; height: 20px; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(23, 34, 29, .12); }
.btn-light:hover { background: #F3EEE6; }

/* Kapi's friends at home: a full-screen painted boarding house (the closing section). The friends are painted in;
   only the speech bubbles float. Picture: assets/scene/hood-*.webp, its bottom edge fades into --foot. */


/* Footer on the grass (under the house) */

/* The mall / hospital / office a search is "near", on the map */
.place-pin { position: relative; width: 28px; height: 28px; pointer-events: none; z-index: 2; }
.place-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brass); color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .25); }
.place-dot .i { width: 16px; height: 16px; stroke-width: 2.2; }
.place-name {
  position: absolute; left: 34px; top: 50%; translate: 0 -50%; padding: 3px 8px; border-radius: 8px; background: #fff; color: var(--brass-text);
  font: 700 12.5px/1.2 var(--font-display); white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* ---------- Room page ---------- */
.room { max-width: 1120px; margin: 0 auto; padding: 0 16px 120px; display: flex; flex-direction: column; }
.room-head { order: 2; display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.room-head h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.room-head h1 .tag { font-size: 11px; margin-left: 6px; position: relative; top: -3px; }
.room-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.room-sub .i { width: 16px; height: 16px; }
.room-actions { display: flex; gap: 8px; }
.gallery { order: 1; position: relative; margin: 0 -16px; }
.gallery .slides { aspect-ratio: 4 / 3; height: auto; }
.g-item { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; background: #EEE9E0; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(23, 34, 29, .72); color: #fff; font: 600 12.5px var(--font-display); }
.g-all { display: none; }
.room-cols { order: 3; display: flex; flex-direction: column; }
.room-main { display: contents; }
.room-intro { order: 1; padding: 18px 0 20px; }
.room-side { order: 2; padding-bottom: 8px; }
.room-sec { order: 3; padding: 26px 0; border-top: 1px solid var(--border); }
.room-intro h2 { font-size: 20px; font-weight: 600; }
.room-specs { color: var(--ink-2); margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badges li { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font: 600 13.5px var(--font-display); }
.badges .i { width: 16px; height: 16px; }
.b-school { background: var(--blue-light); color: var(--blue-dark); }
.b-status { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.room-sec h2 { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.room-sec h3 { font: 600 16px/1.3 var(--font-body); margin: 24px 0 6px; }
.room-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.amenities li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.amenities .i { width: 22px; height: 22px; color: var(--ink-2); }
.rules div { display: grid; grid-template-columns: 22px minmax(90px, 140px) 1fr; gap: 12px; align-items: start; padding: 9px 0; }
.rules .i { width: 20px; height: 20px; color: var(--ink-2); margin-top: 1px; }
.rules dt { font-weight: 600; }
.rules dd { color: var(--ink-2); }
.room-addr { color: var(--ink-2); margin: -6px 0 14px; }
.room-map { height: 320px; border-radius: var(--radius-lg); overflow: hidden; }
.ext-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 40px; color: var(--blue); font: 600 14.5px var(--font-display); text-decoration: none; }
.ext-link .i { width: 16px; height: 16px; }
.ext-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.dist li:last-child { border-bottom: 0; }
.dist .i { width: 20px; height: 20px; color: var(--blue); }
.dist span { min-width: 0; display: flex; flex-direction: column; }
.dist b { font: 600 14.5px var(--font-display); }
.dist small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist em { margin-left: auto; font: 600 13.5px var(--font-display); font-style: normal; color: var(--blue-dark); white-space: nowrap; }
.host { display: flex; align-items: center; gap: 16px; }
.host .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font: 700 22px var(--font-display); flex: none; }
.host b { display: block; font: 600 16px var(--font-display); }
.host span { color: var(--muted); font-size: 14px; }

.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.pc-price { font-size: 15px; color: var(--ink-2); }
.pc-price b { font: 700 26px var(--font-display); color: var(--text); letter-spacing: -0.01em; }
.pc-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 600 13.5px var(--font-display); }
.pc-costs { margin: 16px 0 0; font-size: 14.5px; }
.pc-costs div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.pc-costs dt { color: var(--ink-2); }
.pc-costs .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 700; }
.pc-costs .total dt { color: var(--text); }
.pc-bills { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 16px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface); font-size: 13.5px; color: var(--ink-2); }
.pc-bills .i { width: 18px; height: 18px; color: var(--amber); margin-top: 1px; }
.pc-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.similar { order: 4; padding-top: 28px; border-top: 1px solid var(--border); }
.similar h2 { font-size: 19px; margin-bottom: 16px; }
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(23, 34, 29, .06); font-size: 14px; color: var(--ink-2);
}
.contact-bar b { font: 700 18px var(--font-display); color: var(--text); }
.cb-status { display: block; font: 600 12.5px var(--font-display); color: var(--green); }
.cb-status.s-few { color: var(--amber); }
.cb-status.s-full { color: var(--red); }
.room-missing { max-width: 520px; margin: 0 auto; padding: 80px 16px; text-align: center; }
.room-missing h1 { font-size: 24px; margin-bottom: 8px; }
.room-missing p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Photo viewer ---------- */
/* The page stays faintly visible behind a dark, blurred veil. Each photo is narrower than the screen, so its neighbours show at the sides. */
.viewer { --vw: min(76vw, 1100px); --vgap: 8px; position: fixed; inset: 0; z-index: 200; background: rgba(11, 15, 23, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
@media (min-width: 768px) { .viewer { --vw: min(66vw, 1100px); --vgap: 28px; } }
.viewer.open { opacity: 1; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; color: #fff; font: 600 14px var(--font-display); }
.viewer-track { flex: 1; min-height: 0; display: flex; gap: var(--vgap); padding: 0 calc((100% - var(--vw)) / 2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track figure { flex: 0 0 var(--vw); min-width: 0; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 8px 0 32px;
  opacity: .4; scale: .92; transition: opacity .3s ease, scale .3s ease; }
.viewer-track figure.on { opacity: 1; scale: 1; }
.viewer-track img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-xl); }
.viewer-track figure:not(.on) img { cursor: pointer; }
/* All the photos, small, along the bottom: the current one is bright and ringed. */
.viewer-thumbs { position: relative; flex: none; display: flex; gap: 8px; padding: 4px 16px 16px; overflow-x: auto; scrollbar-width: none; }
.viewer-thumbs::-webkit-scrollbar { display: none; }
.viewer-thumbs button { flex: none; width: 56px; height: 42px; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: rgba(255, 255, 255, .08); cursor: pointer; opacity: .5; transition: opacity .2s; }
.viewer-thumbs button:first-child { margin-left: auto; }
.viewer-thumbs button:last-child { margin-right: auto; }
.viewer-thumbs button:hover { opacity: .8; }
.viewer-thumbs button[aria-current] { opacity: 1; outline: 2px solid #fff; outline-offset: -2px; }
.viewer-thumbs button:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .viewer-thumbs { padding-bottom: 20px; } .viewer-thumbs button { width: 72px; height: 54px; } }
.viewer:has(.viewer-thumbs) .viewer-track figure { padding-bottom: 12px; }
.viewer-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; }
.viewer-nav:disabled { opacity: .3; cursor: default; }
.viewer-nav.prev { left: 16px; }
.viewer-nav.next { right: 16px; }
@media (hover: none) { .viewer-nav { display: none; } }

/* ---------- Dialogs / sheets ---------- */
.dlg-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.dlg-backdrop { position: absolute; inset: 0; background: rgba(23, 34, 29, .5); opacity: 0; transition: opacity .2s; }
.dlg {
  position: relative; width: 100%; max-height: 92dvh; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-pop);
  transform: translateY(40px); opacity: 0; transition: transform .25s var(--ease), opacity .2s;
}
.dlg-wrap.open .dlg-backdrop { opacity: 1; }
.dlg-wrap.open .dlg { transform: none; opacity: 1; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 24px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { font-size: 17px; font-weight: 700; }
.dlg-body { overflow: auto; padding: 4px 24px 24px; overscroll-behavior: contain; }
.dlg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.f-sec { padding: 20px 0; border-bottom: 1px solid var(--border); }
.f-sec:last-child { border-bottom: 0; }
.f-sec h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.range { position: relative; height: 32px; margin: 0 4px; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%; border-radius: 2px; background: linear-gradient(to right, var(--border) var(--a), var(--blue) var(--a), var(--blue) var(--b), var(--border) var(--b)); }
.range input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-runnable-track { background: transparent; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.range input::-moz-range-track { background: transparent; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.range-out { margin-top: 8px; font: 600 15px var(--font-display); }
.f-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); font: 600 15px var(--font-display); cursor: pointer; }
.f-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-switch i { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--border-strong); transition: background-color .2s; flex: none; }
.f-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.f-switch input:checked + i { background: var(--blue); }
.f-switch input:checked + i::after { transform: translateX(20px); }
.f-switch input:focus-visible + i { box-shadow: var(--ring); }
.field { display: block; margin-top: 16px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field > span, .field > label, .field > legend { display: block; font: 600 14px var(--font-display); margin-bottom: 6px; padding: 0; }
.field small { font: 400 13px var(--font-body); color: var(--muted); }
.field select, .field textarea, .field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.45; }
.field select, .field input { height: 48px; padding-top: 0; padding-bottom: 0; }
.field textarea { resize: vertical; min-height: 120px; }
.field select:focus, .field textarea:focus, .field input:focus { outline: 0; border-color: var(--blue); box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Radio / checkbox chips inside forms */
.chip-in { display: inline-flex; align-items: center; cursor: pointer; }
.chip-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-in:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-in:has(input:focus-visible) { box-shadow: var(--ring); }

/* Landlords: "Do you own a boarding house?" pop-up.
   Photo side with a preview of a listing + copy side; page dimmed and blurred behind. */
.ll-ask { --spring: cubic-bezier(.16, 1, .3, 1); position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.ll-ask-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(16, 32, 26, .52), rgba(8, 16, 12, .74));
  -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15);
  opacity: 0; transition: opacity .35s ease;
}
.ll-ask-card {
  position: relative; display: flex; flex-direction: column; width: min(440px, 100%);
  max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: #fff; border-radius: 28px; outline: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 32px 80px -16px rgba(8, 16, 12, .6), 0 12px 28px -10px rgba(8, 16, 12, .3);
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .3s ease, transform .6s var(--spring);
}
.ll-ask-card::-webkit-scrollbar { display: none; }
.ll-ask.open .ll-ask-backdrop { opacity: 1; }
.ll-ask.open .ll-ask-card { opacity: 1; transform: none; }

/* Close: a frosted round button that reads on the photo and on white */
.ll-ask-x {
  position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(23, 34, 29, .06), 0 4px 14px rgba(8, 16, 12, .18);
  transition: transform .2s var(--ease), background-color .2s;
}
.ll-ask-x:hover { background: #fff; transform: scale(1.06); }
.ll-ask-x .i { width: 18px; height: 18px; }

/* Photo side */
.ll-ask-media { position: relative; flex: none; height: 210px; overflow: hidden; background: #E9E3D8; }
.ll-ask-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%; transform: scale(1.1); transition: transform 1.4s var(--spring); }
.ll-ask.open .ll-ask-media img { transform: none; }
.ll-ask-media .ll-ask-brand img { width: 36px; height: 24px; object-fit: contain; transform: none; transition: none; }
.ll-ask-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 16, .38) 0%, rgba(10, 20, 16, 0) 32%, rgba(10, 20, 16, 0) 50%, rgba(10, 20, 16, .5) 100%);
}
.ll-ask-brand { position: absolute; z-index: 1; top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.ll-ask-brand .logo-word { font-size: 19px; }
.ll-ask-preview {
  position: absolute; z-index: 1; left: 16px; bottom: 16px; width: 232px; display: grid; gap: 3px;
  padding: 12px 14px 13px; border-radius: 16px; font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 14px 34px -10px rgba(8, 16, 12, .55);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease .3s, transform .8s var(--spring) .3s;
}
.ll-ask.open .ll-ask-preview { opacity: 1; transform: none; }
.ll-ask-preview-k { font: 700 10px/1.4 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ll-ask-preview > b { font: 700 14.5px/1.3 var(--font-display); color: var(--text); }
.ll-ask-preview-near { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--blue); }
.ll-ask-preview-near .i { width: 14px; height: 14px; }
.ll-ask-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding-top: 8px; border-top: 1px solid rgba(23, 34, 29, .08); }
.ll-ask-preview-row b { font: 800 14.5px var(--font-display); color: var(--text); }
.ll-ask-status { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--font-display); color: var(--green); }
.ll-ask-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(45, 122, 75, .16); }

/* Copy side */
.ll-ask-body { position: relative; display: flex; flex-direction: column; padding: 26px 24px 20px; }
.ll-ask-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.ll-ask-eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 1px; background: currentColor; }
.ll-ask h2 { margin: 12px 0 10px; font: 500 30px/1.1 var(--font-serif); letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.ll-ask-lead { font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.ll-ask-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ll-ask-points li { display: flex; align-items: center; gap: 12px; font: 500 14.5px/1.35 var(--font-body); color: var(--text); }
.ll-ask-pi {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--blue);
  background: linear-gradient(180deg, #F5F0E7, #ECE4D6); box-shadow: inset 0 0 0 1px rgba(29, 63, 53, .09);
}
.ll-ask-pi .i { width: 17px; height: 17px; }
.ll-ask-btns { display: grid; gap: 4px; margin-top: 24px; }
.ll-ask-go {
  min-height: 54px; gap: 10px; border-radius: 14px; color: #fff; font: 700 16px var(--font-display); letter-spacing: -.01em;
  background: linear-gradient(180deg, #285445 0%, var(--evergreen) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(19, 44, 37, .3), 0 12px 26px -10px rgba(29, 63, 53, .7);
  transition: box-shadow .2s, transform .15s, filter .2s;
}
.ll-ask-go:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(19, 44, 37, .3), 0 16px 30px -10px rgba(29, 63, 53, .8); }
.ll-ask-go .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ll-ask-go:hover .i { transform: translateX(4px); }
.ll-ask-no { min-height: 46px; border-radius: 12px; font: 600 14.5px var(--font-display); color: var(--muted); transition: color .15s, background-color .15s; }
.ll-ask-no:hover { color: var(--text); background: var(--surface); }
.ll-ask-call { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; text-align: center; color: var(--muted); }
.ll-ask-call a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font: 700 14px var(--font-display); color: var(--blue); text-decoration: none; }
.ll-ask-call .i { width: 15px; height: 15px; }

/* The copy arrives a beat after the card, one line at a time */
.ll-ask-body > * { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .6s var(--spring); }
.ll-ask.open .ll-ask-body > * { opacity: 1; transform: none; }
.ll-ask.open .ll-ask-body > :nth-child(1) { transition-delay: .08s; }
.ll-ask.open .ll-ask-body > :nth-child(2) { transition-delay: .12s; }
.ll-ask.open .ll-ask-body > :nth-child(3) { transition-delay: .16s; }
.ll-ask.open .ll-ask-body > :nth-child(4) { transition-delay: .2s; }
.ll-ask.open .ll-ask-body > :nth-child(5) { transition-delay: .24s; }
.ll-ask.open .ll-ask-body > :nth-child(6) { transition-delay: .28s; }
/* Leaving is quick and all at once */
.ll-ask.closing * , .ll-ask.closing { transition-delay: 0s !important; }
.ll-ask.closing .ll-ask-card { transition: opacity .18s ease, transform .2s ease; transform: scale(.98); }
.ll-ask.closing .ll-ask-backdrop { transition: opacity .2s ease; }

/* Phones: photo on top with a compact listing preview; the three points carry the message */
@media (max-width: 759px) {
  .ll-ask-lead { display: none; }
  .ll-ask h2 { margin-bottom: 2px; }
  .ll-ask-points { margin-top: 16px; gap: 10px; }
  .ll-ask-points li { font-size: 14.5px; }
  .ll-ask-pi { width: 32px; height: 32px; border-radius: 10px; }
  .ll-ask-preview { width: auto; padding: 10px 14px 11px; gap: 2px; border-radius: 14px; }
  .ll-ask-preview-k, .ll-ask-status { display: none; }
  .ll-ask-preview-row { margin-top: 3px; padding-top: 0; border-top: 0; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .ll-ask-media { height: 150px; }
  .ll-ask-preview { display: none; }
  .ll-ask-body { padding-top: 20px; }
  .ll-ask h2 { font-size: 24px; }
}
@media (min-width: 760px) {
  .ll-ask { padding: 24px; }
  .ll-ask-card { flex-direction: row; width: min(900px, 100%); min-height: 560px; max-height: calc(100dvh - 48px); border-radius: 32px; }
  .ll-ask-media { width: 45%; height: auto; }
  .ll-ask-brand { top: 26px; left: 28px; }
  .ll-ask-brand .logo-word { font-size: 20px; }
  .ll-ask-preview { left: 24px; bottom: 24px; width: 252px; padding: 14px 16px 15px; }
  .ll-ask-body { flex: 1; justify-content: center; padding: 56px 52px 44px; }
  .ll-ask h2 { font-size: 36px; margin: 14px 0 12px; }
  .ll-ask-lead { font-size: 16px; }
  .ll-ask-points { margin-top: 24px; gap: 14px; }
  .ll-ask-points li { font-size: 15px; }
  .ll-ask-btns { margin-top: 30px; }
  .ll-ask-x { top: 18px; right: 18px; }
}
.ll-talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.ll-talk p { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.ll-talk b { font: 600 14px var(--font-display); color: var(--text); }
.ll-talk p span { font: 700 16px var(--font-display); color: var(--text); }
.ll-talk-btns { display: flex; gap: 8px; }
.ll-lead { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.ll-error { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: var(--red); font-size: 14px; font-weight: 600; }
.ll-done { padding: 32px 8px 16px; text-align: center; }
.ll-done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 14px; animation: pop .35s var(--ease); }
.ll-done-ic .i { width: 28px; height: 28px; stroke-width: 2.5; }
.ll-done h3 { font-size: 20px; margin-bottom: 6px; outline: 0; }
.ll-done p { color: var(--ink-2); }
.note-box { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warm); border: 1px solid var(--warm-border); color: var(--warm-text); font-size: 14px; }
.note-box .i { width: 18px; height: 18px; margin-top: 1px; }
.fine { margin-top: 10px; font-size: 13px; color: var(--muted); }
.contact .dlg-foot .btn-primary { flex: 1; min-width: 0; }
.contact .dlg-foot .btn span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) {
  .contact .dlg-foot .btn-ghost { width: 48px; padding: 0; flex: none; }
  .copy-lbl { display: none; }
  .sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); z-index: 300; translate: -50% 16px;
  max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: var(--text); color: #fff;
  font: 600 14px var(--font-display); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Room header variant ---------- */
.site-header.is-room .hdr { grid-template-areas: "logo . actions" "search search search"; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results { padding: 20px 24px 24px; }
  .room { padding: 0 24px 120px; }
  .gallery { margin: 0 -24px; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlg-wrap { align-items: center; padding: 24px; }
  .dlg { width: min(620px, 100%); max-height: 86vh; border-radius: 20px; transform: translateY(16px) scale(.98); }
  .map-card { left: 50%; right: auto; width: 440px; translate: -50% 0; }
}

/* ---------- Desktop: rooms left, map right ---------- */
@media (min-width: 1024px) {
  :root { --hdr-row1: 0px; }
  html { scroll-padding-top: 160px; }
  .site-header { top: 0; }
  .hdr {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions"; height: 80px; padding: 0 24px; column-gap: 24px;
  }
  .site-header.is-room .hdr { grid-template-areas: "logo search actions"; }
  .back-link { margin: 0; }
  .hdr-actions { justify-self: end; gap: 4px; }
  .hdr-link { display: inline-flex; white-space: nowrap; }
  .list-link { display: none; }
  .logo { height: 48px; }
  .logo-icon { width: 54px; height: 36px; }
  .logo-word { font-size: 26px; }

  .search {
    margin: 0; height: 60px; width: 100%; max-width: 780px; justify-self: center; padding: 6px;
    border: 1px solid var(--border-strong); border-radius: 16px; background: #fff;
    box-shadow: 0 1px 2px rgba(23, 34, 29, .05), 0 3px 10px rgba(23, 34, 29, .05);
  }
  .search:focus-within { border-color: var(--border-strong); }
  .sf { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-radius: 10px; }
  .sf:hover { background: var(--surface); }
  .sf + .sf::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
  .sf-where { flex: 1.5; }
  .sf-label { position: static; width: auto; height: auto; clip: auto; font: 600 11.5px/1.2 var(--font-display); color: var(--muted); }
  .sf-input { height: auto; padding: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
  .sf-input:focus-within { box-shadow: none; }
  .sf-icon { display: none; }
  .sf-input input { font-size: 14.5px; height: 24px; }
  .sf-clear { width: 28px; height: 28px; margin-right: -8px; }
  .sf-select { display: flex; flex: 1; min-width: 0; }
  .sf-select select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 18px 0 0; height: 24px; min-width: 0; width: 100%;
    font: 400 14.5px var(--font-body); color: var(--ink-2); cursor: pointer; text-overflow: ellipsis;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
  }
  .sf-select select:focus { outline: 0; }
  .sf-select:focus-within { background: var(--surface); box-shadow: var(--ring); }
  .sf-where:focus-within { background: var(--surface); box-shadow: var(--ring); }
  .sf-go { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 100%; padding: 0 20px 0 16px; margin-left: 6px; border-radius: 10px; background: var(--blue); color: #fff; font: 700 14.5px var(--font-display); }
  .sf-go:hover { background: var(--blue-dark); }
  .sf-go .i { width: 18px; height: 18px; stroke-width: 2.4; }
  .suggest { top: calc(100% + 12px); }
  .filter-btn-top { display: none; }

  .chips-row { padding: 0 24px 12px; }
  .chips { padding-right: 0; -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent); }
  .filter-btn-row { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; font: 600 13.5px var(--font-display); background: #fff; }
  .filter-btn-row:hover { border-color: var(--text); }
  .filter-btn-row .i { width: 18px; height: 18px; }

  .browse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 0; }
  .browse .results, .browse.mode-map .results { display: block; padding: 20px 24px 32px; }
  .browse .map-pane, .browse.mode-map .map-pane { display: block; position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); left: auto; right: auto; bottom: auto; z-index: 1; }
  .results-head h1 { font-size: 20px; }
  /* At most 3 rooms per row; 2 when a third would be narrower than 180px. */
  .grid { grid-template-columns: repeat(auto-fill, minmax(max(180px, calc((100% - 32px) / 3)), 1fr)); gap: 24px 16px; }
  .browse .card-title { font-size: 15px; }
  .browse .card-near, .browse .card-meta { font-size: 13.5px; }
  .browse .card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .browse .card-price { font-size: 14px; }
  .browse .card-price b { font-size: 16px; }
  .bottom-nav { display: none; }
  .browse .map-count, .browse.mode-map .map-count { display: none; }
  .toast { bottom: 32px; }

  .room { padding: 0 32px 64px; }
  .room-head { order: 1; flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 28px 0 20px; }
  .room-head h1 { font-size: 28px; }
  .gallery { order: 2; margin: 0; }
  .gallery .slides {
    display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 420px; aspect-ratio: auto;
    overflow: hidden; border-radius: var(--radius-lg); scroll-snap-type: none;
  }
  .g-item:first-child { grid-row: span 2; }
  .g-item:nth-child(n+4) { display: none; }
  .gallery[data-n="1"] .slides { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery[data-n="2"] .slides { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .gallery[data-n="2"] .g-item:first-child { grid-row: auto; }
  .g-item img { transition: filter .2s, opacity .3s; }
  .g-item:hover img { filter: brightness(.9); }
  .g-count { display: none; }
  .g-all { display: inline-flex; position: absolute; right: 16px; bottom: 16px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
  .room-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
  .room-main { display: block; }
  .room-intro { padding: 32px 0 26px; }
  .room-intro h2 { font-size: 22px; }
  .room-side { position: sticky; top: calc(var(--hdr-h) + 24px); padding: 32px 0 0; }
  .price-card { padding: 24px; box-shadow: 0 8px 28px rgba(23, 34, 29, .08); }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-map { height: 400px; }
  .similar { margin-top: 24px; }
  .similar .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-bar { display: none; }
}

@media (min-width: 1280px) {
  .list-link { display: inline-flex; }
}


@media (min-width: 640px) {
  .hrow-track .card { flex-basis: calc((100% - 16px) / 2.3); }
}

@media (min-width: 1024px) {
  /* Header on the home page: logo · room-type tabs · links. Tabs give way to a small search after scrolling. */
  .site-header.is-home .hdr { height: 92px; }
  .tabs-hdr { display: flex; grid-area: search; justify-self: center; align-self: stretch; align-items: stretch; gap: 6px; }
  .tabs-hdr .tab { flex-direction: row; gap: 10px; padding: 0 14px; font-size: 15px; }
  .tabs-hdr .tab .i { width: 24px; height: 24px; }
  .tabs-hdr .tab::after { left: 14px; right: 14px; bottom: 10px; }
  .site-header.find-on .tabs-hdr { display: none; }
  .hdr-find { margin: 0; max-width: 460px; justify-self: center; }
  .tabs-band { display: none; }

  .home { padding-bottom: 0; }
  .home-wrap { padding: 0 clamp(24px, 4vw, 80px); }
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 880px) minmax(260px, 1fr); grid-template-rows: auto; align-items: center; min-height: 250px; padding: 0 clamp(24px, 4vw, 80px); }
  .top-search { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .top .search { height: 70px; max-width: none; border-radius: 16px; box-shadow: 0 2px 6px rgba(23, 34, 29, .05), 0 12px 32px rgba(23, 34, 29, .08); }
  .top .sf-go { width: auto; height: 100%; margin-left: 6px; display: inline-flex; gap: 8px; padding: 0 22px 0 18px; border-radius: 12px; font: 700 15px var(--font-display); }
  .top .sf-go span { display: inline; }
  .top .sf-go .i { width: 18px; height: 18px; }
  .top .capy { grid-column: 3; grid-row: 1; position: relative; right: auto; top: auto; align-self: end; justify-self: start; width: 300px; height: 280px; margin: 0 0 -14px -10px; }
  .capy-bubble { right: 70%; top: 14%; font-size: 14px; padding: 9px 14px; }

  .h-sec, .hrow { margin-top: 48px; }
  .h-head h2 { font-size: 30px; }
  .h-rows { margin-top: 48px; }
  .hrow-nav { display: flex; }
  .hrow-nav[hidden] { display: none; }
  .hrow-track { margin: 0; padding: 2px 0 8px; scroll-padding: 0; gap: 24px; }
  .hrow-track .card { flex-basis: calc((100% - 2 * 24px) / 3); }
  .hrow .card-title { font-size: 17px; }
  .hrow .card-near, .hrow .card-meta { font-size: 15px; }
  .hrow .card-price { font-size: 15px; }
  .hrow .card-price b { font-size: 18px; }

  /* Rooms page: the map sits inset with rounded corners. */
  .browse .map-pane, .browse.mode-map .map-pane { padding: 16px 24px 24px 4px; }
  .browse .map-pane .map { border-radius: 24px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--border), 0 6px 24px rgba(23, 34, 29, .06); }
}

@media (min-width: 1280px) {
  .hrow-track .card { flex-basis: calc((100% - 3 * 24px) / 4); }
}
@media (min-width: 2000px) {
  .hrow-track .card { flex-basis: calc((100% - 4 * 24px) / 5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Business pages, landlord accounts and forms (host.js, pages.js)
   ===================================================================== */
#view-page { min-height: calc(100vh - var(--hdr-row1)); display: flex; flex-direction: column; }
.page-in { flex: 1; }
.page-find { display: flex; text-decoration: none; }
@media (max-width: 1023px) { .site-header.is-page .page-find { display: none; } }
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.field-err { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--evergreen); }
.check a { color: var(--evergreen); font-weight: 600; }

/* Footer columns */

/* Demo notice */
.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--warm); border-bottom: 1px solid var(--warm-border); color: var(--warm-text); font-size: 14px; }
.demo-bar .i { width: 18px; height: 18px; flex: none; }
.demo-bar span { flex: 1; min-width: 200px; }
.demo-bar a { font-weight: 700; color: var(--warm-text); }

/* Documents: about, help, standards, privacy, terms, contact */
.doc { max-width: 760px; margin: 0 auto; padding: 36px 16px 56px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc h1 { font: 500 34px/1.1 var(--font-serif); letter-spacing: -0.025em; color: var(--navy); margin-bottom: 18px; }
.doc h2 { font: 500 24px/1.25 var(--font-serif); letter-spacing: -0.015em; color: var(--navy); margin: 36px 0 10px; scroll-margin-top: 90px; }
.doc h3 { font: 650 17px/1.35 var(--font-body); color: var(--text); margin: 24px 0 6px; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin: 6px 0; padding-left: 4px; }
.doc a { color: var(--evergreen); font-weight: 600; text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.doc section { scroll-margin-top: 90px; }
.doc details { border: 1px solid var(--border); border-radius: 14px; background: #fff; margin: 10px 0; }
.doc details[open] { border-color: var(--linen-line); }
.doc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font: 600 16px/1.35 var(--font-body); color: var(--text); }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--brass-text); border-bottom: 2px solid var(--brass-text); transform: rotate(-45deg); transition: transform .2s var(--ease); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details > :not(summary) { padding: 0 16px; }
.doc details > :last-child { padding-bottom: 14px; }
.doc-form { margin-top: 24px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.doc-form .field:first-child { margin-top: 0; }
.doc-form .btn { margin-top: 18px; }
.doc-note { margin-bottom: 14px; }
@media (min-width: 1024px) {
  .doc { padding: 64px 0 96px; font-size: 17px; }
  .doc h1 { font-size: 48px; margin-bottom: 24px; }
  .doc h2 { font-size: 28px; }
}

/* Not found */
.nf { max-width: 560px; margin: 0 auto; padding: 56px 16px 72px; text-align: center; }
.nf img { margin: 0 auto 8px; }
.nf h1 { font: 500 32px/1.15 var(--font-serif); color: var(--navy); }
.nf p { margin: 12px auto 24px; color: var(--ink-2); max-width: 44ch; }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Real room photos with a light overlay (sign-in, /list) */
.ph-panel { position: relative; overflow: hidden; border-radius: 24px; background: var(--linen); }
.ph-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23, 34, 29, .08) 0%, rgba(23, 34, 29, 0) 30%, rgba(23, 34, 29, 0) 62%, rgba(23, 34, 29, .28) 100%); }
.ph-chip { position: absolute; z-index: 1; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 14px var(--font-body); color: var(--navy); box-shadow: 0 6px 20px -8px rgba(23, 34, 29, .35); }
.ph-chip img { width: 30px; height: 20px; }
.ph-card { position: absolute; z-index: 1; left: 18px; bottom: 18px; width: min(300px, calc(100% - 36px)); display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(23, 34, 29, .45); }
.ph-card-k { font: 600 13px var(--font-body); color: var(--muted); }
.ph-card b { font: 500 20px/1.2 var(--font-serif); color: var(--navy); }
.ph-card-near { display: flex; align-items: center; gap: 6px; font: 600 14px var(--font-body); color: var(--evergreen); }
.ph-card-near .i { width: 15px; height: 15px; }
.ph-card-row { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-2); }
.ph-card-row strong { font: 700 17px var(--font-body); color: var(--text); }
.ph-card-row em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font-body); font-style: normal; color: var(--green); }
.ph-card-row em i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* For landlords (/list): short and to the point */
.lp { color: var(--ink-2); }
.lp-hero { display: grid; gap: 24px; padding: 28px 16px 8px; }
.lp-kicker { font: 600 15px var(--font-body); color: var(--brass-text); }
.lp-hero h1 { margin-top: 10px; font: 500 38px/1.05 var(--font-serif); letter-spacing: -0.03em; color: var(--navy); text-wrap: balance; }
.lp-lead { margin-top: 16px; font-size: 18px; line-height: 1.6; max-width: 46ch; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-ctas .i { width: 18px; height: 18px; }
.lp-photo { min-height: 360px; }
.lp-steps { display: grid; gap: 18px; margin: 32px 16px 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.lp-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--linen); font: 500 19px var(--font-serif); color: var(--brass-text); }
.lp-steps h3 { font: 650 17px/1.3 var(--font-body); color: var(--text); }
.lp-steps p { margin-top: 3px; font-size: 15.5px; line-height: 1.5; }
@media (min-width: 1024px) {
  .lp { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); }
  .lp-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 64px; padding: 56px 0 0; }
  .lp-hero h1 { font-size: clamp(46px, 4.2vw, 64px); }
  .lp-photo { min-height: 0; aspect-ratio: 5 / 4; }
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 56px 0 88px; padding-top: 36px; }
}

/* Sign in: one centered card, logo on top, nothing else; fits one screen (no site header, no footer) */
body.is-auth .site-header { display: none; }
body.is-auth #view-page { min-height: 100dvh; }
body.is-auth .page-in { display: flex; flex-direction: column; }
.auth { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px 16px 6vh; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-logo img { width: 54px; height: 36px; }
.auth-logo .logo-word { font-size: 28px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px 26px 26px; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(23, 34, 29, .04), 0 24px 60px -30px rgba(23, 34, 29, .3); }
.auth-card h1 { font: 650 22px/1.25 var(--font-body); letter-spacing: -0.01em; color: var(--text); text-align: center; }
.auth-sub { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; text-align: center; }
.auth-sub b { color: var(--text); }
.btn-google { min-height: 52px; margin-top: 22px; background: #fff; border: 1px solid var(--border-strong); color: var(--text); gap: 12px; font-size: 15.5px; }
.btn-google:hover { border-color: var(--text); }
.g-logo { width: 20px; height: 20px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; color: var(--muted); font-size: 13.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form .field { margin-top: 8px; }
.auth-form .field input { height: 52px; font-size: 16px; border-radius: 14px; }
.auth-form .btn { min-height: 52px; margin-top: 12px; font-size: 15.5px; }
.auth-legal { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; }
.auth-legal a { color: var(--ink-2); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 8px; padding: 0; font: 600 14px var(--font-body); color: var(--ink-2); text-decoration: none; }
.auth-back .i { width: 18px; height: 18px; }
.auth-back:hover span { text-decoration: underline; text-underline-offset: 3px; }
.auth-demo { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--warm); color: var(--warm-text); font-size: 14px; font-weight: 600; text-align: center; }
.otp { display: flex; gap: 8px; margin-top: 20px; border: 0; padding: 0; }
.otp input { width: 100%; min-width: 0; height: 58px; border: 1px solid var(--border-strong); border-radius: 14px; background: #fff; text-align: center; font: 600 24px var(--font-body); color: var(--text); }
.otp input:focus { outline: 0; border-color: var(--evergreen); box-shadow: var(--ring); }
.auth-resend { margin-top: 10px; text-align: center; }
.auth-resend .btn-link { min-height: 36px; font-size: 14px; color: var(--evergreen); }
.auth-resend .btn-link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
@media (max-width: 479px) { .auth { justify-content: flex-start; padding-top: 9vh; } .auth-card { padding: 26px 18px 22px; } }

/* Header: Sign in */
.signin-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font: 600 14px var(--font-body); text-decoration: none; white-space: nowrap; }
.signin-link:hover { border-color: var(--text); }

/* Dashboard, profile */
.host-wrap { max-width: 980px; margin: 0 auto; padding: 28px 16px 72px; }
.host-narrow { max-width: 560px; }
.host-loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.host-error { padding: 40px 0 16px; color: var(--red); font-weight: 600; }
.host-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.host-hi { font: 600 15px var(--font-body); color: var(--brass-text); }
.host-wrap h1 { margin-top: 4px; font: 500 34px/1.1 var(--font-serif); letter-spacing: -0.025em; color: var(--navy); }
.host-head .btn .i { width: 18px; height: 18px; }
.host-nudge { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--warm); border: 1px solid var(--warm-border); color: var(--warm-text); font-weight: 600; text-decoration: none; }
.host-nudge span { flex: 1; }
.host-nudge .i { width: 18px; height: 18px; flex: none; }
.host-muted { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.host-muted a { color: var(--evergreen); font-weight: 600; }
.host-sec { margin-top: 40px; }
.host-sec h2 { font: 500 24px/1.2 var(--font-serif); color: var(--navy); }
.host-sec > .btn { margin-top: 12px; }
.host-links { display: flex; flex-wrap: wrap; gap: 8px; }
.host-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.host-links .i { width: 17px; height: 17px; color: var(--evergreen); }
.host-form .btn { margin-top: 24px; }
.hl-list { display: grid; gap: 12px; margin-top: 22px; }
.hl { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px 16px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.hl-img { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--linen); display: grid; place-items: center; color: var(--brass-text); }
.hl-img img { width: 100%; height: 100%; object-fit: cover; }
.hl-img .i { width: 28px; height: 28px; }
.hl-b h3 { margin-top: 4px; font: 650 17px/1.3 var(--font-body); color: var(--text); }
.hl-st { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font-body); }
.hl-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-draft { color: var(--muted); }
.st-review { color: var(--amber); }
.st-changes { color: var(--red); }
.st-live { color: var(--green); }
.st-paused { color: var(--muted); }
.hl-meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.hl-note { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hl-bar { height: 5px; margin-top: 10px; border-radius: 5px; background: var(--linen); overflow: hidden; max-width: 260px; }
.hl-bar i { display: block; height: 100%; border-radius: 5px; background: var(--evergreen); }
.hl-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hl-del { min-height: 36px; font-size: 14px; color: var(--muted); }
.host-empty { margin-top: 24px; padding: 36px 20px; border: 1px dashed var(--linen-line); border-radius: 22px; background: #fff; text-align: center; }
.host-empty img { margin: 0 auto; }
.host-empty h2 { margin-top: 8px; font: 500 26px/1.2 var(--font-serif); color: var(--navy); }
.host-empty p { margin: 8px auto 20px; max-width: 42ch; color: var(--ink-2); }
.inq-list, .outbox { display: grid; gap: 10px; margin-top: 14px; }
.inq { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.inq-top { display: flex; justify-content: space-between; gap: 12px; }
.inq-top span { font-size: 13.5px; color: var(--muted); }
.inq-meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.inq-msg { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.5; }
.inq-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inq-act .i { width: 16px; height: 16px; }
.outbox li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.outbox li > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--linen); color: var(--brass-text); }
.outbox li > span .i { width: 17px; height: 17px; }
.outbox div { flex: 1; min-width: 0; }
.outbox b { display: block; font-size: 15px; }
.outbox small { color: var(--muted); font-size: 13px; }
@media (min-width: 760px) {
  .hl { grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; }
  .hl-img { width: 112px; height: 84px; }
  .hl-act { grid-column: auto; justify-content: flex-end; }
}
@media (min-width: 1024px) { .host-wrap { padding: 48px 24px 96px; } .host-wrap h1 { font-size: 42px; } }

/* Listing editor */
.ed { display: grid; max-width: 1180px; margin: 0 auto; }
.ed-side { padding: 18px 16px 0; }
.ed-title { margin-top: 8px; font: 500 22px/1.2 var(--font-serif); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-nav { display: none; }
.ed-main { min-width: 0; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.ed-prog { height: 5px; margin-top: 14px; border-radius: 5px; background: var(--linen); overflow: hidden; }
.ed-prog i { display: block; height: 100%; background: var(--evergreen); border-radius: 5px; transition: width .4s var(--ease); }
.ed-form { padding-top: 22px; }
.ed-step { font: 600 13.5px var(--font-body); color: var(--brass-text); }
.ed-form h1 { margin-top: 6px; font: 500 30px/1.12 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); }
.ed-help { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ed-count { display: block; margin-top: 6px; text-align: right; }
.ed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(249, 246, 240, .96); border-top: 1px solid var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ed-bar [data-next] { margin-left: auto; }
.ed-saved { font-size: 13.5px; color: var(--muted); }
.ed-saved.is-error { color: var(--red); font-weight: 600; }
.ed-map { position: relative; height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #EEE9E0; }
.ed-locate { margin-top: 10px; }
.ed-locate .i { width: 16px; height: 16px; }
.ed-near { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--evergreen); }
.ed-near .i { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.map-fail { padding: 24px; color: var(--muted); }
.pick-pin { cursor: grab; }
.ed-rooms { display: grid; gap: 10px; margin-top: 18px; }
.ed-room { padding: 4px 16px 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.ed-room.on { border-color: var(--evergreen); box-shadow: 0 0 0 1px var(--evergreen) inset; }
.ed-room .check { margin-top: 12px; }
.ed-room .check b { color: var(--text); font-size: 16px; }
.ed-room-f { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ed-room.on .ed-room-f { display: grid; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ed-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; padding: 28px 16px; border: 2px dashed var(--linen-line); border-radius: 18px; background: #fff; color: var(--evergreen); cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s; }
.ed-drop:hover { border-color: var(--evergreen); background: var(--evergreen-soft); }
.ed-drop .i { width: 28px; height: 28px; }
.ed-drop span { font-weight: 700; }
.ed-drop small { color: var(--muted); }
.ed-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ed-photos li { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--linen); }
.ed-photos li.is-up { display: grid; place-items: center; color: var(--muted); }
.ed-photos img { width: 100%; height: 100%; object-fit: cover; }
.ed-cover { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 700 12px var(--font-body); color: var(--evergreen); }
.ed-ph-act { position: absolute; right: 6px; top: 6px; display: flex; gap: 6px; }
.ed-ph-act button { min-height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 600 12.5px var(--font-body); color: var(--text); display: grid; place-items: center; }
.ed-ph-act .i { width: 15px; height: 15px; }
.ed-photo-n { margin-top: 10px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.ed-preview { margin-top: 22px; }
.ed-card { max-width: 340px; margin-top: 8px; }
.ed-card .card-media { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--linen); display: grid; place-items: center; }
.ed-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.ed-noimg .i { width: 32px; height: 32px; color: var(--brass-text); }
.ed-check { display: grid; gap: 6px; margin-top: 22px; }
.ed-check li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ed-check li .i { width: 18px; height: 18px; color: var(--amber); }
.ed-check li.ok .i { color: var(--green); }
.ed-check .btn-link { min-height: 32px; font-size: 14px; color: var(--evergreen); }
.ed-confirm { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.ed-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warm); color: var(--warm-text); font-size: 14.5px; }
.ed-note .i { flex: none; width: 18px; height: 18px; }
@media (min-width: 640px) { .ed-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .ed { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 0 24px; }
  .ed-side { position: sticky; top: 92px; align-self: start; padding: 36px 0 0; }
  .ed-nav { display: grid; gap: 4px; margin-top: 18px; }
  .ed-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; font: 600 15px var(--font-body); color: var(--ink-2); }
  .ed-nav button:hover { background: var(--surface); }
  .ed-nav button[aria-current="step"] { background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--border); }
  .ed-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--linen); font: 600 13px var(--font-body); color: var(--brass-text); }
  .is-done .ed-n { background: var(--evergreen); color: #fff; }
  .ed-n .i { width: 14px; height: 14px; stroke-width: 2.4; }
  .ed-main { padding: 0 0 120px; max-width: 680px; }
  .ed-prog { margin-top: 40px; }
  .ed-form h1 { font-size: 38px; }
  .ed-bar { position: sticky; bottom: 18px; margin-top: 32px; border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px -12px rgba(23, 34, 29, .25); }
  .ed-map { height: 380px; }
}

/* Renter inquiry and contact form */
.inquire .dlg-foot .btn { width: 100%; }
.inq-form .field:first-child { margin-top: 8px; }
.inq-done { padding: 24px 4px 8px; text-align: center; }
.inq-done img { margin: 0 auto; }
.inq-done h3 { margin-top: 8px; font: 500 26px/1.2 var(--font-serif); color: var(--navy); }
.inq-done p { margin: 8px auto 0; max-width: 40ch; color: var(--ink-2); }

/* Review queue (admins) */
.rv-list { display: grid; gap: 18px; margin-top: 24px; }
.rv { padding: 16px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.rv-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rv-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.rv-b h2 { margin-top: 14px; font: 500 24px/1.2 var(--font-serif); color: var(--navy); }
.rv-rooms { margin-top: 6px; font-weight: 600; color: var(--text); }
.rv-desc { margin-top: 8px; color: var(--ink-2); line-height: 1.55; }
.rv-dl { display: grid; gap: 6px; margin-top: 12px; font-size: 14.5px; }
.rv-dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.rv-dl dt { color: var(--muted); }
.rv-dl a { color: var(--evergreen); font-weight: 600; }
.rv-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.host-empty-line { margin-top: 24px; padding: 24px; border: 1px dashed var(--linen-line); border-radius: 16px; text-align: center; color: var(--muted); }
.field input:disabled { background: var(--surface); color: var(--muted); }
@media (min-width: 1024px) { .rv-photos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Footer: readable sizes and room to breathe (all footers) */
@media (min-width: 1024px) {
}

/* Home closing: two brand cards + place links */
.end { margin-top: 56px; padding: 0 16px 48px; }
.end-cards { display: grid; gap: 16px; }
.end-card { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; padding: 28px 24px; border-radius: 28px; }
.end-copy { position: relative; z-index: 1; max-width: 420px; }
.end-card h2 { font: 500 32px/1.08 var(--font-serif); letter-spacing: -0.025em; text-wrap: balance; }
.end-card p { margin: 12px 0 22px; font-size: 16.5px; line-height: 1.55; }
.end-rent { background: var(--linen); color: var(--ink-2); padding-right: 150px; }
.end-rent h2 { color: var(--navy); }
.end-kapi { position: absolute; right: -6px; bottom: -6px; width: 170px; height: 190px; }
.end-keep { background: var(--evergreen); color: rgba(246, 240, 229, .86); }
.end-keep h2 { color: #F6F0E5; }
.end-keep::after { content: ""; position: absolute; right: -40px; top: -20px; width: 300px; aspect-ratio: 3 / 2; background: url(/assets/brand/ecstay-mark-light.svg) no-repeat center / contain; opacity: .08; pointer-events: none; }
.end-keep .btn-light { color: var(--evergreen); box-shadow: none; }
.end-links { margin-top: 44px; }
.end-links h2 { font: 650 17px/1.3 var(--font-body); color: var(--text); }
.end-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin-top: 14px; }
.end-links a { display: block; padding: 6px 0; font-size: 15.5px; color: var(--ink-2); text-decoration: none; }
.end-links a:hover { color: var(--evergreen); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .end-links ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .end { margin-top: 88px; padding: 0 clamp(24px, 4vw, 80px) 80px; }
  .end-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .end-card { min-height: 400px; padding: 48px; }
  .end-card h2 { font-size: clamp(36px, 3vw, 48px); }
  .end-rent { padding-right: 300px; }
  .end-kapi { right: 8px; bottom: -8px; width: 300px; height: 330px; }
  .end-keep::after { right: -60px; top: -40px; width: 520px; }
  .end-links { margin-top: 64px; }
  .end-links ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Footer (every page): bold link columns on evergreen, then a rounded ivory bar */
.foot { margin: 0; background: var(--evergreen); color: rgba(246, 240, 229, .8); }
.foot-in { max-width: 1680px; margin: 0 auto; padding: 56px 20px calc(28px + var(--nav-h)); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.foot-cols a { display: block; padding: 9px 0; font: 700 17px/1.3 var(--font-body); color: #F6F0E5; text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bar { display: grid; gap: 16px; justify-items: start; margin-top: 44px; padding: 22px; border-radius: 24px; background: var(--page); color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 12px; font: 600 16px/1.35 var(--font-body); color: var(--navy); }
.foot-brand img { width: 54px; height: 36px; flex: none; }
.foot-brand .logo-word { display: block; font-size: 22px; }
.foot-copy { font-size: 14.5px; color: var(--muted); }
.foot .lang button { min-width: 44px; height: 36px; font-size: 13px; }
.foot-note { margin-top: 18px; font-size: 13.5px; color: rgba(246, 240, 229, .6); }
@media (min-width: 1024px) {
  .foot-in { padding: 96px clamp(24px, 4vw, 80px) 40px; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .foot-cols a { padding: 12px 0; font-size: 19px; }
  .foot-bar { grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 72px; padding: 28px 36px; border-radius: 28px; }
  .foot-bar .lang { justify-self: end; }
  .foot-brand .logo-word { display: inline; margin-right: 6px; }
}

/* Rooms page quick filters: three labelled groups with clear dividers */
.chips { gap: 0; align-items: center; }
.chip-group { display: flex; align-items: center; gap: 8px; flex: none; }
.chip-group + .chip-group { margin-left: 16px; padding-left: 16px; border-left: 2px solid var(--border-strong); }
.chip-label { flex: none; font: 600 13px var(--font-body); color: var(--muted); white-space: nowrap; }

/* Home rows: arrows on the photos' left and right edges (computers); swipe on phones */
.hrow-body { position: relative; }
/* One photo per card here: the photo box must not be a scroller of its own, or a swipe that starts on a photo is
   swallowed by it (it has overscroll-behavior: contain for the multi-photo cards) and the row never moves. */
.hrow-track .slides, .featured-track .slides { overflow: hidden; overflow: clip; overscroll-behavior: auto; scroll-snap-type: none; }
.hrow-track { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.hrow-track a, .hrow-track img { -webkit-user-drag: none; user-select: none; }
.hrow-nav { display: none; }
.hrow-btn { position: absolute; z-index: 3; top: var(--mid, 120px); translate: 0 -50%; width: 48px; height: 48px; border: 0; background: #fff; box-shadow: 0 0 0 1px rgba(23, 34, 29, .08), 0 6px 18px rgba(23, 34, 29, .22); transition: opacity .2s, transform .15s; }
.hrow-btn[data-row-step="-1"] { left: -24px; }
.hrow-btn[data-row-step="1"] { right: -24px; }
.hrow-btn:hover:not(:disabled) { transform: scale(1.06); }
.hrow-btn:disabled { opacity: 0; pointer-events: none; }
.hrow-btn .i { width: 20px; height: 20px; }
@media (min-width: 1024px) { .hrow-nav { display: block; } .hrow-nav[hidden] { display: none; } }

/* Sign-in first */
.bottom-nav.three { grid-template-columns: repeat(3, 1fr); }
.signin-link { min-height: 40px; padding: 0 20px; background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.signin-link:hover { background: var(--evergreen-dark); border-color: var(--evergreen-dark); }

/* Admin workspace */
.adm { max-width: 1680px; margin: 0 auto; padding: 28px 16px 80px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.adm h1 { margin-top: 4px; font: 500 36px/1.1 var(--font-serif); letter-spacing: -0.025em; color: var(--navy); }
.adm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.adm-stats a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink-2); transition: border-color .15s; }
.adm-stats a:hover { border-color: var(--evergreen); }
.adm-stats b { display: block; font: 600 30px/1.1 var(--font-body); color: var(--navy); }
.adm-stats span { font-size: 14px; }
.adm-tabs { display: flex; gap: 4px; margin-top: 26px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.adm-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 600 15.5px var(--font-body); color: var(--muted); text-decoration: none; }
.adm-tabs a[aria-current="page"] { color: var(--evergreen); border-bottom-color: var(--evergreen); }
.adm-tabs i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--linen); font-size: 12.5px; color: var(--ink-2); }
.adm-body { margin-top: 22px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { padding: 12px; border-radius: 18px; background: var(--linen); min-height: 140px; }
.col h2 { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font: 650 15px var(--font-body); color: var(--navy); }
.col h2 i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); }
.col-empty { padding: 18px 6px; font-size: 14px; color: var(--muted); }
.col[data-stage="moved_in"] { background: var(--evergreen-soft); }
.lead { padding: 14px; margin-top: 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(23, 34, 29, .05); }
.col h2 + .lead { margin-top: 0; }
.lead header { display: flex; justify-content: space-between; gap: 10px; }
.lead header b { font: 650 16px var(--font-body); color: var(--text); }
.lead time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lead-room { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 600 14px var(--font-body); color: var(--evergreen); }
.lead-room .i, .lead-contact .i { width: 15px; height: 15px; flex: none; }
.lead-meta { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.lead-msg { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 1.45; }
.lead-contact { display: grid; gap: 4px; margin-top: 10px; }
.lead-contact a { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font-body); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.lead-contact a:hover { text-decoration: underline; }
.lead-stage { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.lead-stage select, .lead textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font: 500 14px var(--font-body); color: var(--text); }
.lead-stage select { height: 38px; padding: 0 10px; }
.lead textarea { margin-top: 8px; padding: 8px 10px; resize: vertical; min-height: 54px; }
.lead-stage select:focus, .lead textarea:focus { outline: 0; border-color: var(--evergreen); box-shadow: var(--ring); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.tbl { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14.5px; }
.tbl th { padding: 12px 16px; text-align: left; font: 600 13px var(--font-body); color: var(--muted); background: var(--surface); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; color: var(--ink-2); }
.tbl td b { display: block; font-weight: 650; color: var(--text); }
.tbl td small { display: block; font-size: 13px; color: var(--muted); }
.tbl td a { color: var(--evergreen); font-weight: 600; text-decoration: none; }
.tbl-main { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.tbl-main img, .tbl-noimg { flex: none; width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--linen); display: grid; place-items: center; color: var(--brass-text); }
.tbl-noimg .i { width: 18px; height: 18px; }
.tbl-act { white-space: nowrap; text-align: right; }
.tbl-act .btn-link { min-height: 32px; margin-left: 8px; font-size: 13.5px; color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--linen); font: 600 12.5px var(--font-body); color: var(--ink-2); white-space: nowrap; }
.pill.st-live, .pill.ty-keeper { background: var(--evergreen-soft); color: var(--evergreen); }
.pill.st-review { background: var(--warm); color: var(--warm-text); }
.pill.st-changes, .pill.st-removed { background: #F7E4E1; color: var(--red); }
.pill.ty-admin { background: var(--evergreen); color: #fff; }
.msgs { display: grid; gap: 12px; max-width: 900px; }
.msg { padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.msg.is-done { opacity: .6; }
.msg header { display: flex; align-items: center; gap: 10px; }
.msg header time { margin-left: auto; font-size: 13px; color: var(--muted); }
.msg p { margin-top: 8px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.msg-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (min-width: 760px) { .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .adm { padding: 44px clamp(24px, 3vw, 56px) 96px; } .adm-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } .adm h1 { font-size: 44px; } }

/* Account page extras */
.host-keeper { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; color: var(--text); text-decoration: none; }
.host-keeper:hover { border-color: var(--evergreen); }
.host-keeper > span { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--linen); color: var(--evergreen); }
.host-keeper div { flex: 1; }
.host-keeper b { display: block; font-size: 16.5px; }
.host-keeper small { color: var(--muted); font-size: 14.5px; }
.host-keeper > .i { width: 18px; height: 18px; color: var(--muted); }
.sent-list { display: grid; gap: 8px; margin-top: 14px; }
.sent-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-decoration: none; color: var(--text); }
.sent-list a:hover { border-color: var(--evergreen); }
.sent-list span { color: var(--muted); font-size: 14px; }

/* Sign-in backdrop: big room photos in tilted rows, all drifting one way (bottom left to upper right), under an ivory veil */
.auth { position: relative; isolation: isolate; }
.auth-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--page); }
.auth-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(249, 246, 240, .9) 0%, rgba(249, 246, 240, .66) 60%, rgba(249, 246, 240, .5) 100%); }
.auth-tilt { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; transform: rotate(-16deg); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.auth-row:nth-child(even) { margin-left: -16vmax; }
.auth-strip { display: flex; width: max-content; animation: auth-drift 150s linear infinite; will-change: transform; }
.auth-strip img { flex: none; width: max(30vmax, 280px); margin-right: 20px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--linen); }
@keyframes auth-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .auth-strip { animation: none; } }
.auth-logo { padding: 8px 18px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 20px -10px rgba(23, 34, 29, .35); }
.auth-card { box-shadow: 0 1px 2px rgba(23, 34, 29, .05), 0 30px 70px -24px rgba(23, 34, 29, .45); }
.auth-details { max-width: 480px; }
.auth-details .host-form .field:first-child { margin-top: 18px; }
.auth-details .host-form .btn { margin-top: 18px; min-height: 52px; }
.auth-details .check { font-size: 14px; }

/* Room page: Back sits above the title */
.room-back { display: inline-flex; margin: 0 0 10px -4px; padding: 0 10px 0 4px; border-radius: 999px; color: var(--muted, #5B665F); }
.room-back:hover { color: var(--text); background: var(--linen); }
.room-back:hover span { text-decoration: none; }
.room-back + .room-head { margin-top: 0; padding-top: 4px; }

/* Budget slider in the search bar */
.sf-budget { min-width: 230px; }
.sf-budget .sf-label { display: flex; justify-content: space-between; gap: 12px; }
.sf-budget output { font: 600 14.5px/1.2 var(--font-display); color: var(--text); }
.sf-budget input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.sf-budget input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--evergreen) var(--p), var(--linen-line, #E2D8C7) var(--p)); }
.sf-budget input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--evergreen) var(--p), var(--linen-line, #E2D8C7) var(--p)); }
.sf-budget input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--evergreen); box-shadow: 0 1px 4px rgba(23, 34, 29, .25); cursor: grab; }
.sf-budget input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--evergreen); box-shadow: 0 1px 4px rgba(23, 34, 29, .25); cursor: grab; }
.sf-budget input[type=range]:focus { outline: 0; }
.sf-budget input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }

/* Messages: inbox list on the left, the open conversation on the right */
.inbox { --msg-h: calc(100dvh - var(--hdr-h, 81px)); max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1fr; min-height: var(--msg-h); }
.msg-side { min-width: 0; padding: 20px 16px 40px; }
.msg-side h1 { font: 500 32px/1.1 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); }
.msg-tabs { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.msg-tabs button { flex: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: 600 14px var(--font-display); color: var(--ink-2); cursor: pointer; }
.msg-tabs button.on { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.msg-list { display: grid; gap: 4px; margin-top: 16px; }
.msg-row { display: flex; gap: 12px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--text); }
.msg-row:hover { background: var(--linen); }
.msg-row.on { background: var(--evergreen-soft, #E6EDE8); }
.msg-pic { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--linen); color: var(--evergreen); }
.msg-pic img, .msg-room-pic img { width: 100%; height: 100%; object-fit: cover; }
.msg-pic .i { width: 22px; height: 22px; }
.msg-row-b { min-width: 0; flex: 1; display: grid; gap: 2px; }
.msg-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg-row-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15.5px/1.3 var(--font-display); }
.msg-row-top time { flex: none; font-size: 13px; color: var(--muted); }
.msg-row-room { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row-last { display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.msg-row-last i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.msg-row.waiting .msg-row-last { color: var(--text); font-weight: 600; }
.msg-tag { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font: 600 11.5px/1.5 var(--font-display); background: var(--linen); color: var(--brass-text, #8A6431); }
.msg-tag.keeper, .msg-tag.team { background: var(--evergreen-soft, #E6EDE8); color: var(--evergreen); }
.msg-empty { margin-top: 40px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.msg-empty h2 { font: 500 24px/1.2 var(--font-serif); color: var(--navy); }
.msg-empty p { max-width: 38ch; color: var(--ink-2); }
.msg-main { display: none; min-width: 0; }
.inbox.is-open .msg-side { display: none; }
.inbox.is-open .msg-main { display: flex; flex-direction: column; height: var(--msg-h); }
.msg-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--page); }
.msg-head .msg-pic { width: 44px; height: 44px; }
.msg-head-b { min-width: 0; flex: 1; display: grid; }
.msg-head-b b { font: 600 16px/1.3 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head-b span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-back { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.msg-back:hover { background: var(--linen); }
.msg-back .i { width: 20px; height: 20px; }
.msg-view { flex: none; }
.msg-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.msg-conv { min-height: 0; display: flex; flex-direction: column; }
.msg-flow { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg-day { align-self: center; margin: 6px 0; }
.msg-day span { padding: 4px 12px; border-radius: 999px; background: var(--linen); font: 600 12.5px var(--font-display); color: var(--muted); }
.bub { display: flex; gap: 8px; max-width: min(82%, 560px); }
.bub.mine { align-self: flex-end; }
.bub-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); color: var(--evergreen); font: 700 12px var(--font-display); }
.bub-who { font-size: 12.5px; color: var(--muted); }
.bub.mine .bub-who { text-align: right; }
.bub-text { margin-top: 3px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--border); font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.mine .bub-text { border-radius: 18px 18px 6px 18px; background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.msg-box { flex: none; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--page); }
.msg-box-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-box textarea { flex: 1; min-height: 48px; max-height: 160px; padding: 12px 16px; border: 1px solid var(--linen-line, #E2D8C7); border-radius: 24px; background: #fff; font: inherit; font-size: 16px; line-height: 1.4; resize: none; }
.msg-box textarea:focus { outline: 0; border-color: var(--evergreen); box-shadow: var(--ring); }
.msg-box .btn { min-height: 48px; padding-inline: 22px; }
.msg-quick { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.msg-quick button { flex: none; max-width: 300px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; font: 500 14px/1.35 var(--font-body, inherit); color: var(--ink-2); text-align: left; cursor: pointer; }
.msg-quick button:hover { border-color: var(--evergreen); color: var(--text); }
.msg-info { display: none; }
.msg-pick { height: 100%; display: grid; place-items: center; color: var(--muted); }
@media (min-width: 900px) {
  .inbox { grid-template-columns: 360px 1fr; height: var(--msg-h); }
  .msg-side, .inbox.is-open .msg-side { display: block; overflow-y: auto; border-right: 1px solid var(--border); padding: 28px 16px; }
  .msg-main, .inbox.is-open .msg-main { display: flex; flex-direction: column; height: var(--msg-h); }
  .msg-back { display: none; }
  .msg-head { padding: 14px 24px; }
  .msg-flow { padding: 24px 24px 12px; }
  .msg-box { padding: 14px 24px 20px; }
}
@media (min-width: 1200px) {
  .msg-cols { grid-template-columns: 1fr 320px; }
  .msg-view { display: none; }
  .msg-info { display: block; min-height: 0; overflow-y: auto; padding: 24px 20px; border-left: 1px solid var(--border); }
  .msg-room { display: grid; gap: 10px; text-decoration: none; color: var(--text); }
  .msg-room-pic { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--linen); color: var(--evergreen); }
  .msg-room b { font: 500 20px/1.25 var(--font-serif); color: var(--navy); }
  .msg-facts { margin-top: 14px; display: grid; gap: 8px; }
  .msg-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
  .msg-facts dt { color: var(--muted); }
  .msg-facts dd { font-weight: 600; text-align: right; }
  .msg-card { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
  .msg-card h3 { font: 600 15px var(--font-display); }
  .msg-tips { margin-top: 8px; display: grid; gap: 6px; padding-left: 18px; list-style: disc; font-size: 14.5px; color: var(--ink-2); }
  .msg-card .btn-link { display: inline-block; margin-top: 12px; font-size: 14px; }
  .msg-person { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .msg-reach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .msg-reach .i { width: 16px; height: 16px; }
  .msg-card .fine { margin-top: 12px; }
}
#view-page:has(.inbox) { min-height: 0; }
.msg-row-b > * { min-width: 0; }
.msg-row-last { display: block; }
.msg-row-last i { display: inline-block; margin-right: 7px; }

/* ---------- Paid plans: Featured rooms (Premium), Verified mark, Premium pins ---------- */
.featured { margin-bottom: 28px; padding: 18px 16px 20px; background: var(--evergreen); border-radius: 20px; color: var(--page);
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(185, 139, 78, .28), transparent 60%); }
.featured-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #E7C795; }
.featured-head .star { width: 18px; height: 18px; flex: none; }
.featured-head h2 { font-size: 19px; font-weight: 600; color: var(--page); }
.featured-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; margin: 0 -16px; padding: 3px 16px; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-track .card { flex: 0 0 min(70vw, 290px); scroll-snap-align: start; min-width: 0; }
.featured .card-media { box-shadow: 0 0 0 2px var(--brass); }
.featured .card-body, .featured .card-title, .featured .card-price b { color: #fff; }
.featured .status { color: var(--text); }
.featured .card-near { color: #E7C795; }
.featured .card-meta, .featured .card-price { color: rgba(249, 246, 240, .78); }
.featured .card-ver { color: #E7C795; }
.featured .card-over { color: #F3C987; }
.tag.tag-feat { background: var(--brass); border-color: var(--brass); color: #1B1408; }
.card-ver { display: flex; align-items: center; gap: 5px; margin-top: 3px; font: 700 12.5px/1.2 var(--font-display); color: var(--brass-text); }
.card-ver svg { width: 15px; height: 15px; flex: none; }
.card-over { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--amber); }

/* The small Featured bar that stays under the header while the normal rooms scroll. It takes no room in the page (height 0), so nothing jumps when it appears. */
.featured-pin { position: sticky; top: calc(var(--hdr-h) + 8px); height: 0; z-index: 5; }
.featured-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px;
  background: var(--evergreen); color: var(--page); box-shadow: 0 6px 18px rgba(19, 44, 37, .28);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.featured-pin.on .featured-bar { opacity: 1; visibility: visible; transform: none; }
.fbar-label { display: flex; align-items: center; gap: 5px; flex: none; font: 700 11.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #E7C795; }
.fbar-label .star { width: 14px; height: 14px; }
.fbar-items { display: flex; gap: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fbar-items::-webkit-scrollbar { display: none; }
.fbar-item { display: flex; align-items: center; gap: 8px; flex: none; color: var(--page); text-decoration: none; }
.fbar-item img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--brass); }
.fbar-item span { display: flex; flex-direction: column; min-width: 0; }
.fbar-item b { font: 650 13.5px/1.25 var(--font-display); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbar-item small { font-size: 12.5px; color: rgba(249, 246, 240, .78); }
@media (hover: hover) { .fbar-item:hover b { text-decoration: underline; text-underline-offset: 3px; } }

.pin.feat { z-index: 2; }
.pin.feat span { background: var(--brass); color: #1B1408; font-size: 14px; padding: 7px 11px; }
.pin.feat:hover span, .pin.feat.hover span { background: var(--brass); }
@media (min-width: 1024px) {
  .featured { padding: 20px; }
  .featured-head h2 { font-size: 21px; }
  .featured-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 3px; }
  .featured-track .card { flex: none; }
  .fbar-items { justify-content: space-between; flex: 1; }
}

/* ---------- Admin: the plan control in the listings table ---------- */
.tbl-plan select, .tbl-plan input { display: block; width: 132px; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: 600 13px var(--font-display); color: var(--text); }
.tbl-plan input { margin-top: 6px; font-weight: 500; }
.tbl-plan .plan-ended { color: var(--red); font-weight: 600; margin-top: 4px; }

/* ---------- Keeper pricing page (/host/plans) ----------
   One reading path: headline, how long, three paid plans (one recommended), the Free strip, then short sections in a single narrow column. */
.pp { max-width: 1120px; margin: 0 auto; padding: 28px 16px 88px; }
.pp-top { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pp-top .back-link { align-self: flex-start; margin-bottom: 8px; }
.pp-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 26px; padding: 0; list-style: none; font: 600 13.5px var(--font-display); color: var(--muted); }
.pp-steps li { display: flex; align-items: center; gap: 7px; }
.pp-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-style: normal; font-size: 12px; }
.pp-steps .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--evergreen-soft); color: var(--evergreen); stroke-width: 3; }
.pp-steps .on { color: var(--text); }
.pp-steps .on i { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.pp-top h1 { max-width: 16ch; font: 500 clamp(34px, 6vw, 56px)/1.05 var(--font-serif); letter-spacing: -0.02em; text-wrap: balance; }
.pp-lede { margin-top: 14px; max-width: 46ch; font-size: 18px; color: var(--ink-2); text-wrap: balance; }

.pp-pick-term { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.pp-pick-term > span { font: 700 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp-term { display: inline-flex; gap: 4px; padding: 4px; background: var(--linen); border-radius: 999px; }
.pp-term button { display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 18px; border-radius: 999px; font: 600 15px var(--font-display); color: var(--ink-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.pp-term button[aria-pressed="true"] { background: var(--evergreen); color: #fff; box-shadow: 0 1px 3px rgba(19, 44, 37, .3); }
.pp-term em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #F3E3C6; color: var(--warm-text); }
.pp-term button[aria-pressed="true"] em { background: var(--brass); color: #1B1408; }

.pp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
.pp-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: #fff; border: 1px solid var(--border); border-radius: 24px; }
.pp-card h2 { font: 500 30px/1.1 var(--font-serif); letter-spacing: -0.01em; }
.pp-line { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.pp-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.pp-price b { font: 700 46px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pp-price span { font-size: 15px; color: var(--muted); }
.pp-total { margin-top: 8px; min-height: 1.5em; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-card .btn, .pp-free .btn { min-height: 54px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 700; gap: 8px; }
.pp-card .btn { margin-top: 20px; }
.pp-card .btn .i, .pp-free .btn .i { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.pp-card .btn:hover .i, .pp-free .btn:hover .i { translate: 4px 0; }
.btn-brass { background: var(--brass); color: #1B1408; }
.btn-brass:hover { background: #C99A5B; }
.pp-above { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); font: 700 12px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pp-points { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15.5px; line-height: 1.4; color: var(--text); }
.pp-points li { display: flex; gap: 10px; align-items: flex-start; }
.pp-points .i { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--evergreen-soft); color: var(--evergreen); stroke-width: 3.2; }
/* The one recommended plan is the only filled card. */
.pp-pick { background: var(--evergreen); border-color: var(--evergreen); color: var(--page); box-shadow: 0 18px 40px -18px rgba(19, 44, 37, .55); }
.pp-pick h2, .pp-pick .pp-price b, .pp-pick .pp-points { color: #fff; }
.pp-pick .pp-line { color: rgba(249, 246, 240, .88); }
.pp-pick .pp-price span, .pp-pick .pp-total, .pp-pick .pp-above { color: rgba(249, 246, 240, .68); }
.pp-pick .pp-above { border-top-color: rgba(249, 246, 240, .18); }
.pp-pick .pp-points .i { background: rgba(231, 199, 149, .2); color: #E7C795; }
.pp-flag { position: absolute; top: 22px; right: 20px; padding: 6px 11px; border-radius: 999px; background: var(--brass); color: #1B1408; font: 700 12px/1 var(--font-display); letter-spacing: .04em; }

.pp-free { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; padding: 22px 24px; border: 1.5px dashed var(--border-strong); border-radius: 24px; }
.pp-free h2 { font: 500 24px/1.1 var(--font-serif); }
.pp-free h2 span { margin-left: 6px; font: 600 15px var(--font-display); color: var(--muted); }
.pp-free p { margin-top: 6px; max-width: 62ch; font-size: 15px; color: var(--ink-2); }
.pp-free .btn { flex: none; background: #fff; }
.pp-soon { display: flex; gap: 9px; align-items: flex-start; margin: 20px auto 0; max-width: 68ch; font-size: 14px; color: var(--muted); }
.pp-soon .i { flex: none; width: 16px; height: 16px; margin-top: 3px; }

/* Everything below the plans sits in one narrow column. */
.pp-sec { max-width: 760px; margin: 72px auto 0; }
.pp-sec > h2 { font: 500 30px/1.15 var(--font-serif); letter-spacing: -0.01em; }
.pp-sub { margin: 8px 0 20px; color: var(--muted); font-size: 16px; }

.pp-rank { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pp-rank li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.pp-rank i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--linen); font: 700 14px var(--font-display); font-style: normal; color: var(--ink-2); }
.pp-rank b { display: block; font: 650 16.5px var(--font-body); }
.pp-rank small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.pp-rank em { padding: 5px 11px; border-radius: 999px; background: var(--linen); font: 700 12.5px/1 var(--font-display); font-style: normal; color: var(--ink-2); }
.pp-rank .pp-rank-premium { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.pp-rank .pp-rank-premium small { color: rgba(249, 246, 240, .74); }
.pp-rank .pp-rank-premium i, .pp-rank .pp-rank-premium em { background: var(--brass); color: #1B1408; }
.pp-rank .pp-rank-free { background: transparent; border-style: dashed; }

.pp-extras { background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.pp-extra { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; }
.pp-extra + .pp-extra { border-top: 1px solid var(--border); }
.pp-extra h3 { font: 650 17px var(--font-body); }
.pp-extra div p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.pp-xprice { flex: none; display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.pp-xprice b { font: 700 22px var(--font-display); color: var(--text); letter-spacing: -0.02em; }

.pp-compare > summary, .pp-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.pp-compare > summary::-webkit-details-marker, .pp-q > summary::-webkit-details-marker { display: none; }
.pp-compare > summary { padding: 18px 22px; border: 1px solid var(--border-strong); border-radius: 16px; background: #fff; font: 650 16px var(--font-body); }
.pp-compare > summary .i, .pp-q > summary .i { flex: none; width: 18px; height: 18px; transition: transform .2s var(--ease); }
.pp-compare[open] > summary .i, .pp-q[open] > summary .i { transform: rotate(90deg); }
.pp-compare .tbl-wrap { margin-top: 14px; }
.pl-tbl { min-width: 720px; }
.pl-tbl thead th { background: var(--evergreen); color: #fff; font-size: 14px; }
.pl-tbl tbody th { padding: 12px 16px; border-top: 1px solid var(--border); text-align: left; font: 650 14.5px var(--font-body); color: var(--text); min-width: 190px; }
.pl-tbl td { vertical-align: top; }
.pl-tbl .pl-group th { padding: 8px 16px; background: var(--surface); font: 700 12px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--brass-text); }
.pl-yes { font-weight: 700; color: var(--evergreen); }
.pl-no { color: var(--muted); }
.pp-faq > h2 { margin-bottom: 10px; }
.pp-q { border-bottom: 1px solid var(--border); }
.pp-q > summary { padding: 18px 0; font: 650 16.5px var(--font-body); }
.pp-q p { padding: 0 0 18px; max-width: 62ch; color: var(--ink-2); }

@media (min-width: 640px) {
  .pp-free { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .pp-extra { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .pp-xprice { flex-direction: column; align-items: flex-end; gap: 0; }
}
@media (min-width: 900px) {
  .pp { padding: 48px 24px 112px; }
  .pp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
  .pp-card { padding: 32px 28px; }
  .pp-line { min-height: 2.9em; }
  .pp-pick { margin-block: -12px; padding-block: 44px; }
  .pp-free { margin-top: 28px; }
}
@media (max-width: 639px) {
  .pp-term { display: flex; width: 100%; max-width: 420px; }
  .pp-term button { flex: 1; flex-direction: column; justify-content: center; gap: 1px; min-height: 54px; padding: 6px 8px; font-size: 14px; }
  .pp-term em, .pp-term button[aria-pressed="true"] em { padding: 0; background: none; color: var(--brass-text); }
  .pp-term button[aria-pressed="true"] em { color: #E7C795; }
  .pp-rank li { grid-template-columns: 32px minmax(0, 1fr); }
  .pp-rank em { grid-column: 2; justify-self: start; }
}

/* ---------- Plan limits: Free reply count, renter number after an answer, Call and Text on paid listings ---------- */
.pc-reach { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pc-reach .btn { min-height: 46px; }
.pc-reach .i { width: 17px; height: 17px; }
.pc-num { margin-top: 10px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.pc-num a { font-weight: 700; color: var(--evergreen); font-variant-numeric: tabular-nums; }
.cb-act { display: flex; align-items: center; gap: 8px; }
.cb-call { width: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
.cb-call .i { width: 19px; height: 19px; }
.host-quota { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.host-quota span { flex: 1; }
.host-quota .i { flex: none; width: 17px; height: 17px; color: var(--evergreen); }
.host-quota a { flex: none; font-weight: 700; color: var(--evergreen); }
.host-quota.out { background: var(--warm); color: var(--warm-text); }
.host-quota.out .i, .host-quota.out a { color: var(--warm-text); }
.inq-nonum { align-self: center; font-size: 13.5px; color: var(--muted); }
.msg-hint { margin: 0 4px 8px; font-size: 13.5px; color: var(--muted); }
.msg-hint a { font-weight: 700; color: var(--evergreen); }
.msg-nonum { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.msg-nonum .i { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.msg-lock { flex: none; margin: 0 12px 14px; padding: 18px; border: 1px solid var(--brass); border-radius: 18px; background: #fff; }
.msg-lock h3 { font: 500 21px/1.2 var(--font-serif); letter-spacing: -0.01em; }
.msg-lock p { margin: 8px 0 14px; max-width: 56ch; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) { .msg-lock { margin: 0 24px 20px; padding: 22px; } }

.ed-drop[hidden] { display: none; }

/* Keeper landing: one clear button */
.lp-ctas .btn-lg { min-height: 60px; padding: 0 34px; font-size: 17px; font-weight: 700; box-shadow: 0 10px 24px -12px rgba(19, 44, 37, .6); }
.lp-ctas .btn-lg .i { transition: translate .2s var(--ease); }
.lp-ctas .btn-lg:hover .i { translate: 4px 0; }
.lp-fine { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Admin leads board: cards can be dragged from column to column */
.lead[draggable="true"] { cursor: grab; }
.lead[draggable="true"]:active { cursor: grabbing; }
.lead.dragging { opacity: .35; }
.col { transition: box-shadow .15s, background-color .15s; }
.col.over { box-shadow: inset 0 0 0 2px var(--evergreen); }
.col-empty { border: 1.5px dashed var(--border-strong); border-radius: 12px; text-align: center; }

/* The celebration after a Keeper sends a listing: evergreen and brass, a live 3D medallion, foil confetti */
.cele .dlg-backdrop { background: rgba(9, 20, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cele .dlg {
  position: relative; color: #F6F0E5; border: 1px solid rgba(217, 177, 102, .28);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(217, 177, 102, .2), rgba(217, 177, 102, 0) 70%),
    linear-gradient(180deg, #1D3F35 0%, #132C25 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.cele .dlg-head { position: absolute; top: 6px; right: 6px; z-index: 3; padding: 0; border: 0; }
.cele .dlg-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cele .dlg-head .icon-btn { color: rgba(246, 240, 229, .75); background: transparent; }
.cele .dlg-head .icon-btn:hover { background: rgba(246, 240, 229, .1); color: #F6F0E5; }
.cele .dlg-body { padding: 8px 28px 26px; }
.cele .dlg-foot { border-top: 1px solid rgba(246, 240, 229, .12); padding-top: 16px; }
.cele .dlg-foot .btn { min-height: 52px; font-size: 16px; }
.cele-body { text-align: center; }
.cele-coin { position: relative; width: 210px; height: 210px; margin: 6px auto 2px; }
.cele-coin canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.cele-coin.live canvas { opacity: 1; }
/* Until the 3D medallion is ready (or if it cannot load): a plain brass disc with a check. */
.cele-coin-still { position: absolute; inset: 55px; display: grid; place-items: center; border-radius: 50%; color: #1B1408;
  background: radial-gradient(circle at 35% 30%, #F0D49A, #C79A4B 55%, #8A6431); transition: opacity .4s ease; }
.cele-coin-still .i { width: 40px; height: 40px; stroke-width: 2.4; }
.cele-coin.live .cele-coin-still { opacity: 0; }
.cele-body h3 { font: 500 30px/1.15 var(--font-serif); letter-spacing: -0.02em; color: #FBF7EF; text-wrap: balance; }
.cele-body > p { margin: 12px auto 0; max-width: 40ch; color: rgba(246, 240, 229, .82); }
.cele-body > p b { color: #F0D49A; font-weight: 600; overflow-wrap: anywhere; }
.cele-ask { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(217, 177, 102, .3); }
.cele-ask p { font-size: 14.5px; color: rgba(246, 240, 229, .65); }
.cele-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.cele-ways .btn { min-height: 44px; color: #F6F0E5; background: rgba(246, 240, 229, .06); border: 1px solid rgba(246, 240, 229, .28); }
.cele-ways .btn:hover { background: rgba(246, 240, 229, .12); border-color: rgba(246, 240, 229, .5); }
.cele-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
@media (min-width: 768px) {
  .cele .dlg { width: min(520px, 100%); }
  .cele .dlg-body { padding: 14px 44px 30px; }
  .cele-coin { width: 240px; height: 240px; }
  .cele-coin-still { inset: 64px; }
  .cele-body h3 { font-size: 34px; }
}

/* ---------- Keeper home (/host): full screen. A menu on the left, one quiet column of content, rows not cards.
   Colour is kept for meaning: brass = a renter is waiting, the status dots, nothing else. ---------- */
.page-in:has(> .kh) { display: flex; flex-direction: column; }
.host-wrap.kh { max-width: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; background: #fff; }
.kh-nav { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 5; }
.kh-brand, .kh-nav-foot, .kh-nav .kh-add { display: none; }
.kh-tabs { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.kh-tabs::-webkit-scrollbar { display: none; }
.kh-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 12px; background: none; border: 0; border-bottom: 2px solid transparent; font: 600 15px var(--font-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.kh-tabs button .i { display: none; width: 18px; height: 18px; }
.kh-tabs button[aria-selected="true"] { color: var(--evergreen); border-bottom-color: var(--evergreen); }
.kh-tabs button:focus-visible { outline: none; box-shadow: inset var(--ring); }
.kh-tabs .n { font-style: normal; font-weight: 500; color: var(--muted); }
.count.brass { background: var(--brass); color: #1B1408; }

.kh-page { flex: 1; min-width: 0; padding: 24px 16px 72px; }
.kh-solo .kh-page { width: 100%; max-width: 760px; margin: 0 auto; }
.kh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kh-head h1 { margin: 0; font: 500 30px/1.1 var(--font-serif); letter-spacing: -0.025em; color: var(--navy); }
.kh-sum { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.kh-add .i { width: 18px; height: 18px; }
.kh-narrow { max-width: 720px; }

/* The four numbers: plain type on the page, hairlines between */
.kh-nums { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kh-nums > * { display: block; padding: 16px 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
.kh-nums > :nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
.kh-nums > :nth-child(n+3) { border-top: 1px solid var(--border); }
.kh-nums button { cursor: pointer; }
.kh-nums button:hover span { color: var(--evergreen); text-decoration: underline; text-underline-offset: 3px; }
.kh-nums b { display: block; font: 500 34px/1 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.kh-nums span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.kh-sec { margin-top: 36px; }
.kh-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kh h2 { font: 650 13px var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.kh h2 span { letter-spacing: 0; color: var(--text); }
.kh h2.kh-group { margin-top: 28px; }
.kh-sec > h2.kh-group:first-child, .kh-sec > .host-quota + h2.kh-group { margin-top: 0; }
.kh-sec > .host-quota { margin: 0 0 24px; }
.kh-more { padding: 0; background: none; border: 0; font: 600 14.5px var(--font-body); color: var(--evergreen); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.kh-muted { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.kh-muted.small { font-size: 13.5px; }
.kh-muted a { color: var(--evergreen); font-weight: 600; }

/* Rows: to do, messages, links. One line under each, no boxes. */
.kq-list, .km-list, .kh-links, .kt ul { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 10px; border-top: 1px solid var(--border); }
.kq-list > li, .km-list > li, .kh-links > li, .kt-r { border-bottom: 1px solid var(--border); }
.kq { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.kq div, .kh-links div { flex: 1; min-width: 0; }
.kq b, .kh-links b { display: block; font: 650 16px/1.35 var(--font-body); color: var(--text); overflow-wrap: anywhere; }
.kq small, .kh-links small { display: block; margin-top: 1px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.kq small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kq .btn { flex: none; min-width: 84px; }
.kq-clear { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--ink-2); }
.kq-clear .i { flex: none; width: 18px; height: 18px; color: var(--green); }

/* Listings table */
.kt { margin-top: 10px; }
.kt ul { margin-top: 0; }
.kt-h { display: none; }
.kt-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: 'img name st' 'nums nums nums' 'act act act'; align-items: center; gap: 10px 14px; padding: 14px 0; }
.kt-img { grid-area: img; display: grid; place-items: center; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface); color: var(--muted); }
.kt-img img { width: 100%; height: 100%; object-fit: cover; }
.kt-img .i { width: 20px; height: 20px; }
.kt-name { grid-area: name; min-width: 0; }
.kt-name a { display: block; font: 650 16px/1.3 var(--font-body); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kt-name small, .kt-st small { display: block; margin-top: 1px; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-st { grid-area: st; font: 600 14px var(--font-body); text-align: right; }
.kt-st span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.kt-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kt-st small { font-weight: 400; }
.kt-nums { grid-area: nums; display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.kt-n b { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.kt-n b.none { font-weight: 400; color: var(--border-strong); }
.kt-n em { font-style: normal; }
.kt-n:has(.none) { display: none; }
.kt-r .kt-nums:not(:has(b:not(.none))) { display: none; }
.kt-dot { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--brass); vertical-align: 1px; }
.kt-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.kt-act .btn { margin-left: 8px; min-width: 92px; }
.kt-ic { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.kt-ic:hover { background: var(--surface); color: var(--text); }
.kt-ic[data-del]:hover { background: #F7E4E1; color: var(--red); }
.kt-ic .i { width: 18px; height: 18px; }
.kh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kh-chips button { min-height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: 600 14px var(--font-body); color: var(--ink-2); cursor: pointer; }
.kh-chips button span { margin-left: 2px; font-weight: 500; color: var(--muted); }
.kh-chips button[aria-pressed="true"] { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.kh-chips button[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }

/* Messages */
.km { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--text); text-decoration: none; }
.km:hover .km-top b { text-decoration: underline; text-underline-offset: 3px; }
.km-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink-2); font: 700 13px var(--font-display); }
.km-av .i { width: 18px; height: 18px; }
.km-b { flex: 1; min-width: 0; display: block; }
.km-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.km-top b { flex: none; max-width: 60%; font: 600 16px var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km.wait .km-top b { font-weight: 750; }
.km-room { min-width: 0; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-snip { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km.wait .km-snip { color: var(--text); }
.km time { flex: none; min-width: 64px; text-align: right; font-size: 13px; color: var(--muted); }
.km-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--brass); color: #1B1408; font: 700 12px var(--font-body); white-space: nowrap; }
.km-tag.off { background: var(--surface); color: var(--muted); }

/* Plan and account */
.kp-name { margin-top: 12px; font: 500 26px/1.2 var(--font-serif); color: var(--navy); }
.kp-bar { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.kp-bar i { display: block; height: 100%; border-radius: 6px; background: var(--evergreen); }
.kp-row { margin-top: 12px; }
.kp-row b { display: block; font-size: 16px; }
.kp-row small { color: var(--muted); font-size: 14px; }
.kp .btn { margin-top: 16px; }
.kh-links a { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--text); text-decoration: none; }
.kh-links a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.kh-links a > .i { flex: none; width: 18px; height: 18px; color: var(--muted); }
.kh .host-keeper { margin-top: 0; }
.kh .outbox { margin-top: 10px; }

@media (max-width: 560px) {
  .km time { display: none; }
  .km-top { flex-direction: column; gap: 0; }
  .km-top b { max-width: 100%; }
  .kq { flex-wrap: wrap; gap: 10px; }
  .kq div { flex: 1 1 100%; }
}
@media (min-width: 768px) {
  .kh-page { padding: 36px 32px 96px; }
  .kh-head h1 { font-size: 38px; }
  .kh-nums { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
  .kh-nums > * { padding: 20px 0 20px 24px; }
  .kh-nums > :first-child { padding-left: 0; }
  .kh-nums > :nth-child(n+2) { border-left: 1px solid var(--border); }
  .kh-nums > :nth-child(n+3) { border-top: 0; }
  .kh-nums b { font-size: 40px; }
  .kh-sec { margin-top: 44px; }
  /* The table gets its columns */
  .kt-h, .kt-r { display: grid; grid-template-columns: 72px minmax(0, 1fr) 150px 216px auto; grid-template-areas: 'img name st nums act'; align-items: center; gap: 0 20px; }
  .kt-h { grid-template-columns: 72px minmax(0, 1fr) 150px 216px 228px; grid-template-areas: none; padding: 0 0 10px; font: 650 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .kt-h .kt-hl { grid-column: span 2; }
  .kt-h .kt-nums { grid-area: auto; font-size: 12px; }
  .kt-h .r { text-align: right; }
  .kt-r { grid-template-columns: 72px minmax(0, 1fr) 150px 216px 228px; padding: 12px 0; }
  .kt-img { width: 72px; height: 54px; }
  .kt-st { text-align: left; }
  .kt-nums { display: grid; grid-template-columns: repeat(3, 72px); gap: 0; font-size: 15px; }
  .kt-n { text-align: right; }
  .kt-n:has(.none) { display: block; }
  .kt-r .kt-nums:not(:has(b:not(.none))) { display: grid; }
  .kt-n em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .kt-n b { font-weight: 500; }
}
/* Wide screens: the menu becomes a column that fills the left side */
@media (min-width: 1024px) {
  .host-wrap.kh { flex-direction: row; }
  .kh-nav { position: sticky; top: var(--kh-top, 81px); z-index: 1; align-self: flex-start; flex: none; flex-direction: column; align-items: stretch; gap: 0; width: 264px; height: calc(100vh - var(--kh-top, 81px) - var(--kh-extra, 0px)); padding: 28px 16px 20px; border-bottom: 0; background: linear-gradient(180deg, #1D3F35 0%, #152F27 100%); color: #F6F0E5; }
  .kh-brand { display: block; padding: 0 12px; font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #E0BC78; }
  .kh-tabs { flex: none; flex-direction: column; gap: 2px; margin-top: 14px; overflow: visible; }
  .kh-tabs button { justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; color: rgba(246, 240, 229, .78); font-size: 15.5px; }
  .kh-tabs button .i { display: block; }
  .kh-tabs button span { flex: 1; text-align: left; }
  .kh-tabs button:hover { background: rgba(246, 240, 229, .07); color: #F6F0E5; }
  .kh-tabs button[aria-selected="true"] { background: rgba(246, 240, 229, .12); color: #FBF7EF; }
  .kh-tabs button:focus-visible { box-shadow: 0 0 0 2px #E7C784; }
  .kh-tabs .n { color: rgba(246, 240, 229, .55); }
  .kh-nav .kh-add { display: inline-flex; margin: 22px 0 0; }
  .kh-head .kh-add { display: none; }
  .kh-nav-foot { display: block; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(246, 240, 229, .14); font-size: 13.5px; color: rgba(246, 240, 229, .6); }
  .kh-nav-foot a { display: block; margin-bottom: 4px; color: rgba(246, 240, 229, .85); font-weight: 600; }
  .kh-nav-foot span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kh-page { padding: 44px 56px 96px; }
  .kh-page > * { max-width: 1280px; }
  .kh-page > .kh-narrow { max-width: 720px; }
  .kh-head h1 { font-size: 42px; }
}

/* The way back to the Keeper home (or the account page): the same link on every page opened from it */
.kh-back { display: flex; width: max-content; white-space: nowrap; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 10px -12px; padding: 0 14px 0 12px; border-radius: 999px; font: 600 14.5px var(--font-body); color: var(--evergreen); text-decoration: none; }
.kh-back:hover { background: var(--evergreen-soft); }
.kh-back .i { width: 18px; height: 18px; }
.doc .kh-back { margin-bottom: 18px; }

/* Inbox, second pass: every part sits in its own container so the eye knows where to read. The list is a column of
   white cards on a soft ground, the open conversation is a white sheet, their words are grey and yours are green. */
.inbox { max-width: none; background: var(--surface); }
.msg-side { background: var(--surface); }
.msg-list { gap: 8px; }
.msg-row { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.msg-row:hover { background: #fff; border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.msg-row.on { background: #fff; border-color: var(--evergreen); box-shadow: inset 4px 0 0 var(--evergreen), var(--shadow-hover); }
.msg-row.waiting:not(.on) { border-color: var(--warm-border); background: #FFFDF8; }
.msg-main { background: #fff; }
.msg-head { background: #fff; }
.msg-flow { background: #fff; }
.bub.theirs .bub-text { background: var(--surface); border-color: transparent; }
.msg-day span { background: var(--surface); }
.msg-box { background: #fff; }
.msg-box textarea { background: var(--page); }
.msg-box textarea:focus { background: #fff; }
.msg-quick button { background: var(--page); }
.msg-pick { background: #fff; }
.msg-box-row { position: relative; }
.emo-btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.emo-btn:hover, .emo-btn[aria-expanded="true"] { background: var(--surface); color: var(--evergreen); }
.emo-btn .i { width: 22px; height: 22px; }
.emo { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 6; display: grid; grid-template-columns: repeat(8, 40px); gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-pop); }
.emo[hidden] { display: none; }
.emo button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.emo button:hover, .emo button:focus-visible { background: var(--surface); outline: none; }
@media (max-width: 420px) { .emo { grid-template-columns: repeat(7, 40px); } }
@media (min-width: 900px) {
  .inbox { grid-template-columns: 380px 1fr; }
  .msg-side, .inbox.is-open .msg-side { padding: 24px 18px; }
}
@media (min-width: 1200px) {
  .msg-info { background: var(--page); }
}
@media (min-width: 1600px) {
  .inbox { grid-template-columns: 440px 1fr; }
  .msg-cols { grid-template-columns: 1fr 380px; }
  .msg-side, .inbox.is-open .msg-side { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { .msg-row { transition: none; } }

/* Inbox: reactions on a message, and the emoji picker in groups */
.bub > div { min-width: 0; }
.bub-wrap { position: relative; display: flex; align-items: center; gap: 4px; }
.bub.mine .bub-wrap { flex-direction: row-reverse; }
.bub-wrap .bub-text { margin-top: 3px; min-width: 0; }
.bub-react { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.bub-react:hover, .bub-react[aria-expanded="true"] { background: var(--surface); color: var(--evergreen); }
.bub-react .i { width: 18px; height: 18px; }
@media (hover: hover) {
  .bub-react { opacity: 0; transition: opacity .12s; }
  .bub:hover .bub-react, .bub-react:focus-visible, .bub-react[aria-expanded="true"] { opacity: 1; }
}
.bub-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -6px; padding-left: 10px; position: relative; z-index: 1; }
.bub-reacts:empty { display: none; }
.bub.mine .bub-reacts { justify-content: flex-end; padding: 0 44px 0 0; }
.bub.theirs .bub-reacts { padding-right: 38px; }
.rx { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 7px; border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-card); font-size: 15px; line-height: 1; cursor: pointer; }
.rx b { font: 700 12px var(--font-display); color: var(--ink-2); }
.rx.mine { border-color: var(--evergreen); background: var(--evergreen-soft); }
.rx-bar { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 7; display: flex; gap: 2px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-pop); animation: rx-in .14s var(--ease); }
.bub.mine .rx-bar { left: auto; right: 0; }
.rx-bar.below { bottom: auto; top: calc(100% + 4px); }
.rx-bar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .12s var(--ease); }
.rx-bar button:hover, .rx-bar button:focus-visible { transform: scale(1.25) translateY(-2px); outline: none; background: var(--surface); }
.rx-bar button[aria-pressed="true"] { background: var(--evergreen-soft); }
@keyframes rx-in { from { opacity: 0; transform: translateY(6px) scale(.92); } }
.emo { display: block; width: 356px; max-width: calc(100vw - 24px); max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 10px; }
.emo p { position: sticky; top: -6px; z-index: 1; margin: 0 -10px; padding: 8px 12px 4px; background: #fff; font: 650 11.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.emo div { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emo button { width: 100%; aspect-ratio: 1; height: auto; }
@media (prefers-reduced-motion: reduce) { .rx-bar { animation: none; } .rx-bar button { transition: none; } .rx-bar button:hover, .rx-bar button:focus-visible { transform: none; } }

/* Keeper home, third pass: a soft ground with white cards, like the inbox. Each card answers one question, the
   content keeps a comfortable width in the middle of the screen, and icons say what each number is. */
.host-wrap.kh { background: var(--surface); }
.kh-page > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.kh-page > .kh-narrow { max-width: 760px; }
.kn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.kn { display: flex; align-items: flex-start; gap: 12px; padding: 16px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); }
button.kn { cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
button.kn:hover { border-color: var(--evergreen); box-shadow: var(--shadow-hover); }
.kn-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--ink-2); }
.kn-ic.green { background: var(--evergreen-soft); color: var(--evergreen); }
.kn-ic.brass { background: var(--brass); color: #1B1408; }
.kn-ic .i { width: 20px; height: 20px; }
.kn-b { min-width: 0; display: block; }
.kn-b b { display: block; font: 500 32px/1 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.kn-b span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.kn-b small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.kh-cols { display: grid; gap: 16px; margin-top: 16px; }
.kh-col { min-width: 0; display: grid; gap: 16px; align-content: start; }
.kcard { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); }
.kcard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kh .kcard-h h2 { display: flex; align-items: center; gap: 8px; font: 500 22px/1.2 var(--font-serif); letter-spacing: -0.015em; text-transform: none; color: var(--navy); }
.kcard-empty { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--evergreen-soft); color: var(--evergreen); }
.kcard-empty .i { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.kcard-empty p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.kcard-empty b { color: var(--evergreen); }
.kcard .kq-list { margin-top: 8px; border: 0; padding: 0; box-shadow: none; background: none; border-radius: 0; }
.kcard .kq-list > li { border-bottom: 0; }
.kcard .kq + .kq { border-top: 1px solid var(--border); }
.kcard .kq { padding: 12px 0; }
.kq-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--warm); color: var(--warm-text); }
.kq-ic .i { width: 18px; height: 18px; }
.kcard .host-keeper { margin-top: 14px; }

/* A renter waiting: who, about which place, what they said */
.kw-list { display: grid; gap: 10px; margin-top: 14px; }
.kw { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--warm-border); border-radius: 16px; background: #FFFDF8; }
.kw .km-av { background: var(--evergreen); color: #F6F0E5; }
.kw-b { flex: 1; min-width: 0; }
.kw-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kw-top b { font: 650 16px var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-top time { flex: none; font-size: 13px; color: var(--muted); }
.kw-room { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-msg { margin-top: 8px; padding: 0; border: solid var(--surface); border-width: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface); font-size: 15px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kw .btn { flex: none; align-self: center; }

/* A listing on the home page: photo, status, and where it is on the way to renters */
.kc-list { display: grid; gap: 12px; margin-top: 14px; }
.kc { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; }
.kc-img { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--muted); }
.kc-img img { width: 100%; height: 100%; object-fit: cover; }
.kc-img .i { width: 26px; height: 26px; }
.kc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kc-top h3 { min-width: 0; font: 650 16.5px/1.3 var(--font-body); color: var(--text); overflow-wrap: anywhere; }
.kc-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface); font: 650 12.5px var(--font-body); white-space: nowrap; }
.kc-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kc-pill.st-live { background: var(--evergreen-soft); }
.kc-pill.st-review { background: var(--warm); }
.kc-pill.st-changes { background: #F7E4E1; }
.kc-meta { margin-top: 2px; font-size: 14px; color: var(--muted); }
.kc-note { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.kc-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.kc-nums span { display: inline-flex; align-items: center; gap: 5px; }
.kc-nums .i { width: 15px; height: 15px; color: var(--brass-text); }
.kc-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.kc-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ks { display: flex; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ks li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ks li + li::before { content: ''; width: 22px; height: 2px; margin: 0 8px; border-radius: 2px; background: var(--border-strong); }
.ks li.done + li::before { background: var(--evergreen); }
.ks i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; }
.ks i .i { width: 10px; height: 10px; stroke-width: 3.2; color: #fff; }
.ks li.done { color: var(--evergreen); }
.ks li.done i { border-color: var(--evergreen); background: var(--evergreen); }
.ks li.on { color: var(--text); font-weight: 650; }
.ks li.on i { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(168, 101, 15, .16); }
.ks.bad li.on { color: var(--red); }
.ks.bad li.on i { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180, 50, 42, .14); }

/* The other tabs: the same lists, each inside a white card */
.kh .kt, .kh .kh-sec > .km-list, .kh .kh-links, .kh .kp, .kh .kq-clear { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); }
.kh .kt { padding: 16px 20px 4px; }
.kh .kh-sec > .km-list, .kh .kh-links { padding: 2px 20px; }
.kh .kp { padding: 20px; }
.kh .kt ul { border-top: 1px solid var(--border); }
.kh .kt-r:last-child, .kh .kh-sec > .km-list > li:last-child, .kh .kh-links > li:last-child { border-bottom: 0; }
.kh .kh-sec > .km-list, .kh .kh-links { border-top: 1px solid var(--border); }
.kt-n b.none { visibility: hidden; }
.kh-sec { margin-top: 28px; }
.kh .kh-sec:first-child, .kh-head + .kh-sec { margin-top: 22px; }
.kh .outbox li { background: #fff; }

@media (max-width: 480px) {
  .kw { flex-wrap: wrap; }
  .kw-b { flex: 1 1 calc(100% - 56px); }
  .kw .btn { margin-left: 52px; }
  .kc-top { flex-wrap: wrap; gap: 4px 10px; }
  .ks { flex-wrap: wrap; row-gap: 4px; font-size: 12px; }
  .ks li { gap: 4px; }
  .kc { grid-template-columns: 72px minmax(0, 1fr); }
  .kc-img { width: 72px; height: 72px; }
  .ks li + li::before { width: 8px; margin: 0 4px; }
}
@media (min-width: 768px) {
  .kn-row { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
  .kcard { padding: 24px; }
  .kt-h .kt-nums { display: grid; }
}
@media (min-width: 1100px) {
  .kh-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
}
@media (min-width: 1024px) { .kh-page > * { max-width: 1120px; } .kh-page > .kh-narrow { max-width: 760px; } }
@media (prefers-reduced-motion: reduce) { button.kn { transition: none; } }

/* Keeper home, fourth pass. Listings: a gallery of large photo cards. Messages: the inbox itself, inside the page. */
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 4px; }
.lc { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.lc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(23, 34, 29, .12); }
.lc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--linen); overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lc:hover .lc-img img { transform: scale(1.04); }
.lc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 44, 37, .34) 0%, rgba(19, 44, 37, 0) 34%); pointer-events: none; }
.lc-img.none { background: radial-gradient(90% 90% at 80% 0%, rgba(217, 177, 102, .35), rgba(217, 177, 102, 0) 60%), linear-gradient(160deg, #1D3F35, #132C25); }
.lc-img.none::after { display: none; }
.lc-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: rgba(246, 240, 229, .55); }
.lc-ph .i { width: 34px; height: 34px; }
.lc-ph small { font-size: 13px; }
.lc-pill { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .96); font: 650 13px var(--font-body); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.lc-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lc-ring { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: flex; align-items: baseline; justify-content: center; width: 58px; height: 58px; padding-top: 17px; border-radius: 50%; background: conic-gradient(#E7C784 calc(var(--p) * 1%), rgba(255, 255, 255, .28) 0); color: #FBF7EF; }
.lc-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #17352C; }
.lc-ring b, .lc-ring small { position: relative; }
.lc-ring b { font: 500 22px/1 var(--font-serif); }
.lc-ring small { font-size: 12px; color: rgba(246, 240, 229, .7); }
.lc-del { position: absolute; z-index: 2; top: 10px; right: 10px; background: rgba(255, 255, 255, .94) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.lc-del:hover { color: var(--red) !important; }
.lc-b { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.lc-b h3 { font: 500 23px/1.2 var(--font-serif); letter-spacing: -0.015em; color: var(--navy); overflow-wrap: anywhere; }
.lc-meta { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.lc .ks { margin-top: 14px; }
.lc-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lc-nums span { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.lc-nums span + span { padding-left: 14px; border-left: 1px solid var(--border); }
.lc-nums b { font: 500 24px/1 var(--font-serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.lc-say { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.lc.st-changes .lc-say { padding: 10px 12px; border-radius: 12px; background: #F7E4E1; color: #7A211B; }
.lc.st-draft .lc-say { font-weight: 600; color: var(--text); }
.lc-act { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; }
.lc-act .btn { flex: 1; min-height: 46px; }
.lc-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer; }
.lc-ic:hover { border-color: var(--evergreen); color: var(--evergreen); }
.lc-ic .i { width: 18px; height: 18px; }
.lc-new { background: none; border: 2px dashed var(--border-strong); box-shadow: none; }
.lc-new:hover { border-color: var(--evergreen); background: #fff; }
.lc-new a { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 260px; padding: 24px; text-align: center; text-decoration: none; color: var(--text); }
.lc-new span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brass); color: #1B1408; }
.lc-new span .i { width: 24px; height: 24px; }
.lc-new b { font: 500 22px/1.2 var(--font-serif); color: var(--navy); }
.lc-new small { max-width: 26ch; font-size: 14px; line-height: 1.45; color: var(--muted); }
.kh .kh-chips { margin-bottom: 20px; }

/* The inbox inside the Keeper home */
.kh-page.kh-full { padding: 0; display: flex; flex-direction: column; }
.kh-page.kh-full > * { max-width: none; margin: 0; }
.kh-page.kh-full > .kh-head { display: none; }
.kh-inbox { flex: 1; min-width: 0; }
.kh-inbox .inbox { margin: 0; }
.kh-inbox .msg-tabs { flex-wrap: wrap; overflow: visible; }
@media (min-width: 900px) {
  .kh-inbox .inbox { grid-template-columns: 360px 1fr; }
  .kh-inbox .msg-side { border-left: 0; }
}
@media (min-width: 1024px) and (max-width: 1499px) {
  .kh-inbox .msg-cols { grid-template-columns: 1fr; }
  .kh-inbox .msg-info { display: none; }
  .kh-inbox .msg-view { display: inline-flex; }
}
@media (min-width: 1700px) { .kh-inbox .inbox { grid-template-columns: 400px 1fr; } }
@media (min-width: 1024px) { .kh-page.kh-full > * { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .lc, .lc-img img { transition: none; } .lc:hover { transform: none; } .lc:hover .lc-img img { transform: none; } }

/* Listing editor, in the Keeper home look: an evergreen column with the six steps, the form on a white sheet over
   a soft ground, and a live preview of the listing on wide screens. */
.page-in:has(> .ed) { display: flex; flex-direction: column; }
.ed { flex: 1; max-width: none; margin: 0; background: var(--surface); }
.ed-side { padding: 14px 16px 16px; background: linear-gradient(180deg, #1D3F35 0%, #152F27 100%); color: #F6F0E5; }
.ed-side .kh-back { margin-bottom: 4px; color: #F6F0E5; }
.ed-side .kh-back:hover { background: rgba(246, 240, 229, .1); }
.ed-eyebrow { display: none; font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #E0BC78; }
.ed-title { margin-top: 2px; color: #FBF7EF; }
.ed-side-foot { margin-top: 12px; }
.ed-done { font-size: 13.5px; color: rgba(246, 240, 229, .78); }
.ed-side .ed-prog { height: 6px; margin-top: 8px; background: rgba(246, 240, 229, .16); }
.ed-side .ed-prog i { background: #E0BC78; }
.ed-auto { display: none; }
.ed-main { padding: 16px 12px calc(96px + env(safe-area-inset-bottom)); }
.ed-sheet { padding: 6px 18px 22px; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-card); }
.ed-step { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--warm); font: 650 12.5px var(--font-body); letter-spacing: .04em; color: var(--warm-text); }
.ed-form h1 { margin-top: 12px; }
.ed-sheet input[type="text"], .ed-sheet input[type="tel"], .ed-sheet input[type="number"], .ed-sheet input:not([type]), .ed-sheet textarea, .ed-sheet select { background: var(--page); }
.ed-sheet input:focus, .ed-sheet textarea:focus, .ed-sheet select:focus { background: #fff; }
.ed-sheet .ed-room, .ed-sheet .ed-confirm, .ed-sheet .ed-drop { background: var(--page); }
.ed-live { display: none; }
@media (min-width: 1024px) {
  .ed { display: flex; gap: 0; padding: 0; }
  .ed-side { position: sticky; top: var(--ed-top, 81px); align-self: flex-start; flex: none; display: flex; flex-direction: column; width: 300px; height: calc(100vh - var(--ed-top, 81px) - var(--ed-extra, 0px)); padding: 24px 18px 22px; overflow-y: auto; }
  .ed-eyebrow { display: block; margin-top: 18px; padding: 0 12px; }
  .ed-title { margin-top: 6px; padding: 0 12px; font-size: 26px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ed-nav { margin-top: 22px; }
  .ed-nav button { min-height: 48px; color: rgba(246, 240, 229, .8); font-size: 15.5px; }
  .ed-nav button:hover { background: rgba(246, 240, 229, .07); color: #F6F0E5; }
  .ed-nav button[aria-current="step"] { background: #F6F0E5; color: #17221D; box-shadow: none; }
  .ed-n { width: 28px; height: 28px; background: rgba(246, 240, 229, .12); color: #F6F0E5; }
  .ed-nav button[aria-current="step"] .ed-n { background: var(--evergreen); color: #F6F0E5; }
  .ed-nav button.is-done .ed-n { background: #E0BC78; color: #1B1408; }
  .ed-side-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid rgba(246, 240, 229, .14); }
  .ed-auto { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; line-height: 1.45; color: rgba(246, 240, 229, .62); }
  .ed-auto .i { flex: none; width: 15px; height: 15px; margin-top: 2px; color: #E0BC78; }
  .ed-main { flex: 1; min-width: 0; max-width: none; padding: 36px 40px 80px; }
  .ed-sheet { max-width: 760px; margin: 0 auto; padding: 30px 44px 28px; border-radius: 26px; }
  .ed-form { padding-top: 0; }
  .ed-form h1 { font-size: 40px; }
  .ed-bar { bottom: 16px; margin: 36px -16px 0; background: #fff; }
}
@media (min-width: 1400px) {
  .ed-live { display: block; position: sticky; top: calc(var(--ed-top, 81px) + 36px); align-self: flex-start; flex: none; width: 340px; margin: 36px 40px 0 0; }
  .ed-main { padding-right: 32px; }
  .ed-sheet { margin: 0 0 0 auto; }
  .ed-live-h { font: 650 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .ed-lv { margin-top: 12px; background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(23, 34, 29, .1); }
  .ed-lv-img { position: relative; aspect-ratio: 4 / 3; background: var(--linen); }
  .ed-lv-img img { width: 100%; height: 100%; object-fit: cover; }
  .ed-lv-img.none { background: radial-gradient(90% 90% at 80% 0%, rgba(217, 177, 102, .35), rgba(217, 177, 102, 0) 60%), linear-gradient(160deg, #1D3F35, #132C25); }
  .ed-lv-img span { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: rgba(246, 240, 229, .6); }
  .ed-lv-img span .i { width: 32px; height: 32px; }
  .ed-lv-img small { font-size: 13px; }
  .ed-lv-img i { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(23, 34, 29, .72); color: #fff; font: 600 12.5px var(--font-display); font-style: normal; }
  .ed-lv-b { display: grid; gap: 4px; padding: 16px 18px 18px; }
  .ed-lv-b > b { font: 500 22px/1.2 var(--font-serif); letter-spacing: -0.015em; color: var(--navy); overflow-wrap: anywhere; }
  .ed-lv-b span { font-size: 14.5px; color: var(--muted); }
  .ed-lv-b p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
  .ed-lv-b p b { font: 650 18px var(--font-body); color: var(--text); }
  .ed-lv-b .ghost { color: var(--border-strong); font-style: italic; }
  .ed-live-n { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
}
@media (min-width: 1700px) { .ed-live { width: 380px; margin-right: 64px; } .ed-sheet { max-width: 820px; } }

/* Admin workspace in the Keeper home look: an evergreen menu, a soft ground, white cards. "Today" lists the
   team's work for the day. */
.page-in:has(> .adm) { display: flex; flex-direction: column; }
.adm { flex: 1; display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; background: var(--surface); }
.adm-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 4px; background: #fff; border-bottom: 1px solid var(--border); }
.adm-nav .kh-brand, .adm-nav .kh-nav-foot, .adm-nav .adm-review { display: none; }
.adm-tabs { flex: 1; margin-top: 0; border-bottom: 0; }
.adm-tabs a { gap: 8px; min-height: 50px; padding: 0 12px; margin-bottom: 0; }
.adm-tabs a .i { display: none; width: 18px; height: 18px; }
.adm-tabs i.hot { background: var(--brass); color: #1B1408; font-weight: 700; }
.adm-page { flex: 1; min-width: 0; padding: 22px 16px 80px; }
.adm-head { flex-wrap: wrap; align-items: flex-end; }
.adm h1 { margin: 0; }
.adm-sub { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; }
.adm-search:focus-within { border-color: var(--evergreen); box-shadow: var(--ring); }
.adm-search .i { flex: none; width: 18px; height: 18px; color: var(--muted); }
.adm-search input { width: 220px; max-width: 46vw; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--text); }
.adm-tools .btn .i { width: 16px; height: 16px; }
.adm [data-hide] { display: none !important; }
.adm-none { margin-top: 16px; color: var(--muted); }
.adm .adm-stats.kn-row { margin-top: 0; }
.adm .board { grid-auto-columns: minmax(232px, 1fr); }
.adm .adm-stats a.kn { display: flex; text-decoration: none; padding: 16px; border-radius: 18px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.adm .adm-stats a.kn:hover { border-color: var(--evergreen); box-shadow: var(--shadow-hover); }
.adm .adm-stats .kn-b b { font: 500 32px/1 var(--font-serif); }
.adm .adm-stats .kn-b span { font-size: 13.5px; }
.adm .kcard-h h2, .adm .col h2 { text-transform: none; }
.adm .kcard-h h2 { display: flex; align-items: center; gap: 8px; font: 500 22px/1.2 var(--font-serif); letter-spacing: -0.015em; color: var(--navy); }
.adm .kh-more { font-size: 14.5px; }

/* One thing to do: who or what, a line about it, how to reach them, the button */
.aq-list { display: grid; margin-top: 10px; }
.aq { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.aq + .aq { border-top: 1px solid var(--border); }
.aq-pic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--ink-2); font: 700 16px var(--font-display); }
.aq-pic img { width: 100%; height: 100%; object-fit: cover; }
.aq-pic .i { width: 20px; height: 20px; }
.aq-n { font: 700 13px var(--font-display); color: var(--brass-text); }
.aq-b { flex: 1; min-width: 0; }
.aq-b b { display: block; font: 650 15.5px/1.3 var(--font-body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-b small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.aq-b em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-style: normal; color: var(--ink-2); }
.aq-flag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--surface); font: 650 12px var(--font-body); color: var(--ink-2); white-space: nowrap; }
.aq-flag.late { background: #F7E4E1; color: var(--red); }
.aq-act { flex: none; display: flex; align-items: center; gap: 4px; }
.aq-act .btn { margin-left: 6px; }
.adm-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); }
.adm-ic:hover { background: var(--surface); color: var(--evergreen); }
.adm-ic .i { width: 17px; height: 17px; }

/* The older parts, lifted onto cards */
.adm .col { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.adm .col h2 { font: 500 19px/1.2 var(--font-serif); }
.adm .col h2 i { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--surface); font: 700 12px var(--font-display); color: var(--ink-2); }
.adm .col[data-stage="moved_in"] { background: #fff; border-color: var(--evergreen); }
.adm .lead { background: var(--page); box-shadow: none; }
.adm .lead:hover { border-color: var(--border-strong); }
.adm .tbl-wrap { box-shadow: var(--shadow-card); border-radius: 20px; }
.adm .tbl th { background: #fff; border-bottom: 1px solid var(--border); font: 650 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.adm .tbl tbody tr:hover td { background: var(--page); }
.adm .msg { border-radius: 20px; box-shadow: var(--shadow-card); }
.adm .host-empty-line { background: #fff; border-style: solid; box-shadow: var(--shadow-card); }

@media (max-width: 560px) {
  .aq { flex-wrap: wrap; }
  .aq-b { flex: 1 1 calc(100% - 60px); }
  .aq-act { margin-left: 58px; }
  .aq-flag { margin-left: 58px; }
}
@media (min-width: 768px) { .adm-page { padding: 32px 28px 90px; } .adm-body { margin-top: 26px; } }
@media (min-width: 1024px) {
  .adm { flex-direction: row; }
  .adm-nav { position: sticky; top: var(--kh-top, 81px); align-self: flex-start; flex: none; flex-direction: column; align-items: stretch; gap: 0; width: 264px; height: calc(100vh - var(--kh-top, 81px)); padding: 28px 16px 20px; border-bottom: 0; background: linear-gradient(180deg, #1D3F35 0%, #152F27 100%); color: #F6F0E5; }
  .adm-nav .kh-brand, .adm-nav .kh-nav-foot { display: block; }
  .adm-nav .adm-review { display: inline-flex; margin-top: 22px; }
  .adm-nav .adm-review .i { width: 18px; height: 18px; }
  .adm-tabs { flex: none; flex-direction: column; gap: 2px; margin-top: 14px; overflow: visible; }
  .adm-tabs a { gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; color: rgba(246, 240, 229, .78); }
  .adm-tabs a .i { display: block; }
  .adm-tabs a span { flex: 1; }
  .adm-tabs a:hover { background: rgba(246, 240, 229, .07); color: #F6F0E5; }
  .adm-tabs a[aria-current="page"] { background: rgba(246, 240, 229, .12); color: #FBF7EF; }
  .adm-tabs i { background: rgba(246, 240, 229, .12); color: rgba(246, 240, 229, .8); }
  .adm-page { padding: 40px 48px 96px; }
  .adm-head, .adm-body { max-width: 1480px; margin-left: auto; margin-right: auto; }
  .adm h1 { font-size: 42px; }
}
@media (min-width: 1100px) { .adm-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* Admin, second pass: fewer things per row, one job per page. */
.adm .tbl td a.btn-primary { color: #fff; }
.adm .tbl td a.btn-ghost { color: var(--text); }
.aq-call { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px; font: 600 14px var(--font-body); color: var(--evergreen); text-decoration: none; white-space: nowrap; }
.aq-call:hover { background: var(--evergreen-soft); }
.aq-call .i { width: 15px; height: 15px; }
.adm-quiet { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.adm-body > .adm-quiet { margin-top: 18px; }
.adm-sum { margin-bottom: 22px; }
.adm-sum li { display: block; }
.adm-sum .kn { height: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Filter chips (with a dot in the stage's colour on Leads) */
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.adm-chips button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: 600 14px var(--font-body); color: var(--ink-2); cursor: pointer; }
.adm-chips button span { font-weight: 500; color: var(--muted); }
.adm-chips button i { width: 9px; height: 9px; border-radius: 50%; background: var(--lead, var(--muted)); }
.adm-chips button[aria-pressed="true"] { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.adm-chips button[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
.st-new { --lead: #B98B4E; --lead-bg: #FFF8EA; }
.st-contacted { --lead: #4E7FB9; --lead-bg: #F1F6FC; }
.st-viewing { --lead: #7A5FB0; --lead-bg: #F5F1FB; }
.st-moved_in { --lead: #2D7A4B; --lead-bg: #EAF4EE; }
.st-closed { --lead: #8C918C; --lead-bg: #F3F2EF; }

/* Leads: one row each, tinted by stage */
.lr-wrap { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.lr-h { display: none; }
.lr-list { display: grid; }
.adm .lead.lr { display: grid; gap: 10px; margin: 0; padding: 16px 18px 16px 22px; border: 0; border-radius: 0; background: var(--lead-bg, #fff); box-shadow: inset 5px 0 0 var(--lead, var(--border)); }
.adm .lead.lr + .lr { border-top: 1px solid var(--border); }
.lr.st-closed > :not(.lr-stage) { opacity: .62; }
.lr-who, .lr-room { display: grid; gap: 1px; min-width: 0; align-content: start; }
.lr-who b, .lr-room b { font: 650 15.5px/1.3 var(--font-body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-who a { font: 600 14px var(--font-body); color: var(--evergreen); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-who a + a { font-weight: 400; color: var(--muted); }
.lr-who a:hover { text-decoration: underline; }
.lr-room small { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-room small.ours { color: var(--red); font-weight: 600; }
.lr-msg { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lr-stage select { width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid var(--lead, var(--border-strong)); border-radius: 999px; background: #fff; font: 650 14px var(--font-body); color: var(--text); cursor: pointer; }
.adm .lead .lr-note { margin: 0; min-height: 40px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .8); resize: vertical; }
@media (min-width: 1200px) {
  .lr-h, .adm .lead.lr { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(170px, 1.2fr) minmax(200px, 2fr) 158px minmax(160px, 1.2fr); gap: 0 20px; align-items: center; }
  .lr-h { padding: 12px 18px 12px 22px; border-bottom: 1px solid var(--border); font: 650 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .adm .lead.lr { padding: 14px 18px 14px 22px; }
  .lr-msg { -webkit-line-clamp: 2; }
}

/* Listings table, fewer columns */
.adm .tbl-l { min-width: 860px; }
.adm .tbl td small { margin-top: 2px; }
.tbl-num b { font: 500 20px/1 var(--font-serif); color: var(--navy); }
.tbl-none { color: var(--border-strong); }
.adm .tbl-main img, .adm .tbl-noimg { width: 64px; height: 48px; border-radius: 10px; }

/* Review: one listing, everything on one card */
.rvc { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-card); }
.rvc + .rvc { margin-top: 20px; }
.rvc-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rvc-n { font: 650 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); }
.adm .rvc h2 { margin-top: 4px; font: 500 30px/1.15 var(--font-serif); letter-spacing: -0.02em; color: var(--navy); overflow-wrap: anywhere; }
.rvc-meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.rvc-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.rvc-photos a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface); }
.rvc-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.rvc-photos a:hover img { transform: scale(1.04); }
.rvc-photos i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19, 44, 37, .55); color: #fff; font: 600 22px var(--font-display); font-style: normal; }
.rvc-cols { display: grid; gap: 22px; margin-top: 22px; }
.rvc h3 { font: 650 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rvc-main h3 + * { margin-top: 8px; }
.rvc-main > * + h3 { margin-top: 22px; }
.rvc-rooms { display: grid; gap: 8px; }
.rvc-rooms li { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--page); }
.rvc-rooms span { flex: 1; font-weight: 600; color: var(--text); }
.rvc-rooms b { font: 500 20px/1 var(--font-serif); color: var(--navy); }
.rvc-rooms small { min-width: 88px; text-align: right; font-size: 13.5px; color: var(--muted); }
.rvc-desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.rvc-facts { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--border); }
.rvc-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.rvc-facts dt { color: var(--muted); }
.rvc-facts dd { color: var(--text); overflow-wrap: anywhere; }
.rvc-facts a { margin-left: 6px; font-weight: 600; color: var(--evergreen); }
.rvc-side { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 18px; background: var(--page); border: 1px solid var(--border); }
.rvc-keeper { display: grid; gap: 4px; }
.rvc-keeper b { margin-top: 6px; font: 650 17px var(--font-body); color: var(--text); }
.rvc-keeper a { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--font-body); color: var(--evergreen); text-decoration: none; overflow-wrap: anywhere; }
.rvc-keeper a:hover { text-decoration: underline; }
.rvc-keeper .i { flex: none; width: 16px; height: 16px; }
.rvc-check { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--ink-2); }
.rvc-check li { display: flex; align-items: flex-start; gap: 8px; }
.rvc-check .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--brass-text); }
.rvc-note { display: grid; gap: 6px; font: 650 14.5px var(--font-body); color: var(--text); }
.rvc-note small { font-weight: 400; color: var(--muted); }
.rvc-note textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; font: 400 15px/1.45 var(--font-body); color: var(--text); resize: vertical; }
.rvc-note textarea:focus { outline: 0; border-color: var(--evergreen); box-shadow: var(--ring); }
.rvc-side .btn { min-height: 50px; }
.rvc-fine { font-size: 13px; text-align: center; color: var(--muted); }
@media (min-width: 700px) {
  .rvc { padding: 30px 32px; }
  .rvc-photos { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: 380px; }
  .rvc-photos a { aspect-ratio: auto; min-height: 0; }
  .rvc-photos a:first-child { grid-row: span 2; }
  .rvc-photos.n1 { grid-template-columns: 1fr; } .rvc-photos.n2 { grid-template-columns: 2fr 1fr; } .rvc-photos.n2 a:nth-child(2) { grid-row: span 2; } .rvc-photos.n3 { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1100px) { .rvc-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; } .rvc-side { position: sticky; top: calc(var(--kh-top, 81px) + 20px); } }

/* Insights */
.ab { display: grid; gap: 10px; margin-top: 14px; }
.ab li { display: grid; grid-template-columns: 22px minmax(90px, 1.1fr) minmax(60px, 1.4fr) 44px; align-items: center; gap: 10px; font-size: 14.5px; }
.ab-n { font: 700 12.5px var(--font-display); color: var(--muted); }
.ab-l { color: var(--text); font-weight: 600; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-bar { height: 8px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: 8px; background: var(--brass); }
.ab b { text-align: right; font: 500 18px/1 var(--font-serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.av { display: block; width: 100%; height: 110px; margin-top: 16px; }
.av rect { fill: var(--evergreen); }
.av rect.zero { fill: var(--linen-line); }
.av-axis { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rvc-photos img { transition: none; } .rvc-photos a:hover img { transform: none; } }

/* The side menu folds to a strip of icons on wide screens */
.nav-tog { display: none; }
@media (min-width: 1024px) {
  .kh-nav, .adm-nav { transition: width .22s var(--ease), padding .22s var(--ease); }
  .nav-tog { position: absolute; top: 20px; right: 12px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(246, 240, 229, .1); color: #F6F0E5; cursor: pointer; }
  .nav-tog:hover { background: rgba(246, 240, 229, .2); }
  .nav-tog:focus-visible { outline: 2px solid #E7C784; outline-offset: 2px; }
  .nav-tog .i { width: 16px; height: 16px; transition: transform .22s var(--ease); }
  .nav-min .kh-nav, .nav-min .adm-nav { width: 76px; padding-left: 12px; padding-right: 12px; }
  .nav-min .nav-tog { position: static; margin: 0 auto 4px; }
  .nav-min .nav-tog .i { transform: rotate(180deg); }
  .nav-min .kh-brand, .nav-min .kh-nav-foot, .nav-min .kh-tabs button > span, .nav-min .adm-tabs a > span, .nav-min .kh-nav .kh-add span { display: none; }
  .nav-min .kh-tabs, .nav-min .adm-tabs { margin-top: 10px; }
  .nav-min .kh-tabs button, .nav-min .adm-tabs a { position: relative; justify-content: center; gap: 0; padding: 0; }
  .nav-min .kh-tabs button .i, .nav-min .adm-tabs a .i { width: 20px; height: 20px; }
  .nav-min .kh-tabs .count, .nav-min .kh-tabs .n, .nav-min .adm-tabs i { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: 10.5px; line-height: 17px; text-align: center; }
  .nav-min .kh-tabs .n, .nav-min .adm-tabs i:not(.hot) { display: none; }
  .nav-min .kh-nav .kh-add { width: 48px; min-width: 0; padding: 0; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .kh-nav, .adm-nav, .nav-tog .i { transition: none; } }

/* The renter's account page */
.kh-solo .kh-page { max-width: 1080px; }
.rh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-tiles .rh-find { grid-column: 1 / -1; }
.rh-tile:not(.rh-find) { flex-wrap: wrap; }
.rh-tile:not(.rh-find) > .i { display: none; }
a.rh-tile { align-items: center; color: inherit; text-decoration: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
a.rh-tile:hover { border-color: var(--evergreen); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.rh-tile .kn-b { flex: 1; }
.rh-tile > .i { flex: none; width: 18px; height: 18px; color: var(--muted); }
.rh-tile .kn-b small { color: var(--brass-text); font-weight: 650; }
.rh-find { background: var(--evergreen); border-color: var(--evergreen); }
.rh-find .kn-ic { background: rgba(246, 240, 229, .14); color: #F6F0E5; }
.rh-find .kn-b b { font-size: 22px; line-height: 1.15; color: #fff; }
.rh-find .kn-b span { color: rgba(246, 240, 229, .82); }
.rh-find > .i { color: #E7C784; }
a.rh-find:hover { border-color: var(--evergreen); }
.rh .kcard-h h2 { font: 500 22px/1.2 var(--font-serif); letter-spacing: -0.015em; text-transform: none; color: var(--navy); }
.rh a.kh-more { text-decoration: underline; }

.ra-list { margin-top: 6px; }
.ra-list li + li { border-top: 1px solid var(--border); }
.ra { display: flex; gap: 14px; padding: 14px 0; color: inherit; text-decoration: none; }
.ra-list li:last-child .ra { padding-bottom: 2px; }
.ra-img { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--muted); }
.ra-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ra:hover .ra-img img { transform: scale(1.05); }
.ra-img .i { width: 24px; height: 24px; }
.ra-b { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; }
.ra-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ra-top b { min-width: 0; font: 500 19px/1.2 var(--font-serif); letter-spacing: -0.01em; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra:hover .ra-top b { text-decoration: underline; text-underline-offset: 3px; }
.ra-top time { flex: none; font-size: 13px; color: var(--muted); }
.ra-meta { font-size: 13.5px; color: var(--muted); }
.ra-snip { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra.wait .ra-snip { font-weight: 600; color: var(--text); }
.ra-state { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font: 600 13px var(--font-body); color: var(--muted); }
.ra-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.ra-state.new { color: var(--brass-text); }
.ra-state.new i { background: var(--brass); box-shadow: 0 0 0 4px rgba(185, 139, 78, .18); }

.rs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.rs { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.rs-img { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--muted); }
.rs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.rs:hover .rs-img img { transform: scale(1.05); }
.rs b { font: 500 17px/1.25 var(--font-serif); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs > span:last-child { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-list li:nth-child(3) { display: none; }

.rh-empty { display: grid; justify-items: center; gap: 12px; margin-top: 14px; padding: 26px 18px; border-radius: 16px; background: var(--page, #FAF7F0); border: 1px dashed var(--border-strong); text-align: center; }
.rh-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--evergreen-soft); color: var(--evergreen); }
.rh-empty .i { width: 22px; height: 22px; }
.rh-empty p { max-width: 380px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rh-empty b { display: block; font: 500 19px/1.3 var(--font-serif); color: var(--navy); }

.rh-me { text-align: center; }
.rh-av { display: grid; place-items: center; width: 68px; height: 68px; margin: 4px auto 12px; border-radius: 50%; background: var(--evergreen); color: #E7C784; font: 500 26px/1 var(--font-serif); box-shadow: 0 0 0 5px var(--evergreen-soft); }
.rh-me h2 { font: 500 24px/1.2 var(--font-serif); letter-spacing: -0.015em; text-transform: none; color: var(--navy); overflow-wrap: anywhere; }
.rh-me > p { margin-top: 4px; min-height: 1em; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.rh-links { margin-top: 16px; border-top: 1px solid var(--border); text-align: left; }
.rh-links li + li { border-top: 1px solid var(--border); }
.rh-links a { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--text); text-decoration: none; }
.rh-links li:last-child a { padding-bottom: 2px; }
.rh-links div { flex: 1; min-width: 0; }
.rh-links b { display: block; font: 650 15.5px var(--font-body); }
.rh-links small { display: block; font-size: 13.5px; color: var(--muted); }
.rh-links a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rh-links a > .i { flex: none; width: 17px; height: 17px; color: var(--muted); }
.rh-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--evergreen); }
.rh-ic .i { width: 19px; height: 19px; }

.rh-keeper { display: grid; justify-items: start; gap: 4px; padding: 20px; border-radius: 20px; background: var(--linen); border: 1px solid var(--linen-line, var(--border)); color: var(--text); text-decoration: none; transition: box-shadow .15s var(--ease); }
.rh-keeper:hover { box-shadow: var(--shadow-hover); }
.rh-keeper .rh-ic { margin-bottom: 8px; background: #fff; }
.rh-keeper b { font: 500 20px/1.2 var(--font-serif); color: var(--navy); }
.rh-keeper small { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.rh-keeper .btn { margin-top: 12px; }

@media (min-width: 700px) {
  .rh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rh-tiles .rh-find { grid-column: auto; }
  .rh-tile:not(.rh-find) { flex-wrap: nowrap; }
  .rh-tile:not(.rh-find) > .i { display: block; }
  .rs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-list li:nth-child(3) { display: block; }
  .ra-img { width: 96px; height: 96px; }
}
@media (min-width: 1000px) { .rh-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .ra-img img, .rs-img img, a.rh-tile { transition: none; } .ra:hover .ra-img img, .rs:hover .rs-img img, a.rh-tile:hover { transform: none; } }
