/* Goldilocks — Airbnb's layout and type, with a gold accent instead of their pink. */
:root {
  --ink: #222222;
  --ink-2: #6A6A6A;
  --ink-3: #929292;
  --line: #DDDDDD;
  --line-2: #EBEBEB;
  --soft: #F7F7F7;
  --white: #FFFFFF;
  --gold: #D4880F;
  --gold-grad: linear-gradient(to right, #E8A825 0%, #D98E12 50%, #C9740A 100%);
  --brand: #2D3D2D;
  --brand-grad: linear-gradient(to right, #3F573F 0%, #2D3D2D 100%);
  --cream: #F4EFE6;
  --good: #008A05;
  --bad: #C13515;
  --ok: #2E8540;
  --part: #E09B1B;
  --no: #C8402A;
  --shadow-card: 0 6px 16px rgb(0 0 0 / .12);
  --shadow-pill: 0 3px 12px rgb(0 0 0 / .10);
  --shadow-pin: 0 2px 4px rgb(0 0 0 / .18), 0 0 0 1px rgb(0 0 0 / .08);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom);
  --safe-t: env(safe-area-inset-top);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--white); color: var(--ink);
  font: 15px/1.43 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input:not([type=checkbox]):not([type=range]), select, textarea {
  width: 100%; padding: 14px 12px; border: 1px solid #B0B0B0; border-radius: 8px; background: var(--white);
  font-size: 16px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea { resize: vertical; line-height: 1.45; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; flex: none; fill: currentColor; }
.ic.stroke { fill: none; stroke: currentColor; stroke-width: 2.2; }
.hint { color: var(--ink-2); font-size: 14px; margin: 0; }
.error { color: var(--bad); margin: 0; }
.link { text-decoration: underline; font-weight: 600; text-underline-offset: 2px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-grad); color: var(--white);
  font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 8px; transition: transform .1s; }
.btn-primary:active, .btn-dark:active { transform: scale(.97); }
.btn-primary[disabled] { opacity: .6; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--white);
  font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 8px; }
.iconbtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.iconbtn:hover { background: var(--soft); }

/* ---------- sign in ---------- */
/* ---------- welcome + onboarding: the brand's cream and green ---------- */
#welcome, #onboard { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--cream); color: var(--brand);
  padding: calc(16px + var(--safe-t)) 20px calc(28px + var(--safe-b)); }
#welcome { display: grid; align-content: start; justify-items: center; }
#welcome > * { width: 100%; max-width: 440px; }
.w-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.w-mark, .ob-done-mark { font: italic 600 34px/1 Fraunces, Georgia, serif; letter-spacing: -0.03em; color: var(--brand); }
.w-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.w-hero { margin: 14px 0 26px; }
.w-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px rgb(45 61 45 / .18); background: #D9D2C3; }
.w-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-photo figcaption { position: absolute; right: 12px; top: 8px; font-size: 10px; }
.w-photo figcaption a { color: rgb(255 255 255 / .85); text-decoration: none; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.w-card { position: absolute; left: 12px; bottom: 12px; width: min(196px, 56%); padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .94);
  backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgb(0 0 0 / .18); color: var(--ink); font-size: 12px; }
.w-card-h { display: grid; margin-bottom: 6px; }
.w-card-h b { font-size: 14px; }
.w-card-h span { color: var(--ink-2); font-size: 11px; }
.w-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.w-card li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.w-card em { margin-left: auto; font-style: normal; font-weight: 600; }
i.d { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
i.d.ok { background: var(--ok); } i.d.part { background: var(--part); } i.d.no { background: var(--no); }
.w-h { margin: 26px 0 0; font: italic 600 clamp(38px, 10.5vw, 56px)/1.04 Fraunces, Georgia, serif; letter-spacing: -0.03em; text-wrap: balance; }
.w-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: #4E5B4C; }
.w-actions { display: grid; gap: 12px; }
.w-actions h2 { font-size: 22px; margin-bottom: 4px; }
.w-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 14px; font-weight: 600; font-size: 16px; transition: transform .1s; }
.w-btn:active { transform: scale(.98); }
.w-btn[disabled] { opacity: .6; }
.w-primary { background: var(--brand-grad); color: #fff; }
.w-google { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgb(45 61 45 / .18), 0 2px 6px rgb(45 61 45 / .06); }
.w-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); min-height: 46px; }
.w-small { margin: 4px 0 0; text-align: center; color: #4E5B4C; font-size: 15px; }
.w-back { justify-self: center; text-decoration: none; font-weight: 500; color: #4E5B4C; }
#welcome .field-group { border-color: rgb(45 61 45 / .25); background: #fff; border-radius: 14px; }
#welcome .field-group input + input { border-top-color: rgb(45 61 45 / .15) !important; }
.w-or { display: flex; align-items: center; gap: 12px; color: #6B7768; font-size: 13px; }
.w-or::before, .w-or::after { content: ""; flex: 1; height: 1px; background: rgb(45 61 45 / .15); }
.w-email { display: grid; gap: 10px; }
#welcome input { background: #fff; border: 1px solid rgb(45 61 45 / .22); border-radius: 14px; min-height: 54px; padding: 0 16px; }
#welcome input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(45 61 45 / .12); }
.w-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FBEDE9; color: #9A3322; font-size: 14px; line-height: 1.45; }
.w-msg.ok { background: #E9F3EA; color: #23652F; }
.w-msg .w-link { color: inherit; }
.w-small { line-height: 1.5; }
.w-sent-icon { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--brand); box-shadow: 0 2px 8px rgb(45 61 45 / .1); }
.w-sub-s { margin: 0; color: #4E5B4C; font-size: 16px; line-height: 1.5; }
.w-sub-s b { color: var(--brand); word-break: break-all; }
.w-feats { display: grid; gap: 14px; margin-top: 40px; }
.w-feat { padding: 18px; border-radius: 20px; background: rgb(255 255 255 / .55); box-shadow: 0 0 0 1px rgb(45 61 45 / .08); }
.w-feat b { display: block; font-size: 16px; margin-top: 14px; }
.w-feat p { margin: 4px 0 0; color: #4E5B4C; font-size: 14px; }
.w-mini { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 64px; }
.w-mini > span:not(.av) { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.w-mini-route { display: grid; gap: 6px; }
.w-mini-route .ic { width: 16px; height: 16px; color: var(--brand); }
.w-mini-route em { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 700; }
.w-mini .av { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--cream); }
.w-mini .av + .av { margin-left: -14px; }
.w-mini-both em { margin-left: 8px; font-style: normal; font-weight: 600; color: #B5552B; }

#onboard { display: grid; grid-template-rows: auto 1fr auto; padding-bottom: 0; }
#onboard > * { width: 100%; max-width: 520px; margin: 0 auto; }
.ob-top { display: grid; grid-template-columns: 40px 1fr 48px; align-items: center; gap: 12px; height: 44px; }
.ob-top .w-link { text-decoration: none; font-weight: 500; color: #4E5B4C; justify-self: end; }
.ob-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.ob-back .ic { width: 16px; height: 16px; }
.ob-back[disabled] { visibility: hidden; }
.ob-bar { height: 4px; background: rgb(45 61 45 / .12); border-radius: 4px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; transition: width .3s; }
.ob-body { padding: 26px 0 24px; }
.ob-step { display: grid; gap: 12px; align-content: start; animation: ob-in .25s ease-out; }
@keyframes ob-in { from { opacity: 0; transform: translateY(8px); } }
.ob-kicker { margin: 0; font-weight: 600; color: #C9740A; }
.ob-step h2 { font: italic 600 32px/1.1 Fraunces, Georgia, serif; letter-spacing: -0.02em; }
.ob-step h3 { font-size: 17px; margin-top: 18px; }
.ob-step .hint { margin: -4px 0 4px; color: #4E5B4C; font-size: 15px; }
#onboard input:not([type=range]), #onboard select { background: #fff; border-color: rgb(45 61 45 / .25); border-radius: 12px; }
.ob-choices { display: grid; gap: 12px; }
.ob-choice { text-align: left; display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgb(45 61 45 / .15); }
.ob-choice b { font-size: 17px; }
.ob-choice span { color: #4E5B4C; }
.ob-choice.on { box-shadow: 0 0 0 2px var(--brand); background: #FBF8F2; }
.ob-results { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(45 61 45 / .12); }
.ob-results:empty { display: none; }
.ob-results li { padding: 12px 14px; cursor: pointer; }
.ob-results li + li { border-top: 1px solid var(--line-2); }
.ob-results li span { color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chips button, .ob-chips span { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(45 61 45 / .2); font-size: 14px; font-weight: 500; }
.ob-chips button.on, .ob-chips span { background: var(--brand); color: #fff; box-shadow: none; }
.ob-chips span b { margin-left: 8px; cursor: pointer; font-weight: 400; opacity: .8; }
.ob-big { font: italic 600 48px/1 Fraunces, Georgia, serif; margin-top: 8px; }
#ob-budget { width: 100%; accent-color: var(--brand); }
.ob-mortgage { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff; color: #4E5B4C; }
.ob-mortgage b { color: var(--brand); }
.ob-card { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(45 61 45 / .12); }
.ob-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soft-seg { display: grid; grid-template-columns: 1fr 1fr; background: rgb(45 61 45 / .08); border-radius: 12px; padding: 3px; }
.soft-seg button { border-radius: 9px; font-weight: 500; color: #4E5B4C; }
.soft-seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.ob-journeys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-journeys li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; }
.ob-journeys .ic { width: 20px; height: 20px; }
.ob-journeys li > span:first-child { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.ob-journeys small { display: block; color: var(--ink-3); }
.ob-journeys button { color: var(--ink-3); font-size: 14px; }
.ob-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ob-tiles button { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(45 61 45 / .12); font-weight: 500; font-size: 14px; line-height: 1.25; }
.ob-tiles .ic { width: 22px; height: 22px; color: var(--brand); }
.ob-tiles button.on { background: var(--brand); color: #fff; box-shadow: none; }
.ob-tiles button.on .ic { color: #fff; }
.ob-foot { position: sticky; bottom: 0; padding: 14px 0 calc(16px + var(--safe-b)); background: linear-gradient(to bottom, rgb(244 239 230 / 0), var(--cream) 30%); }
.ob-foot .w-btn { width: 100%; }
[data-step="done"] { justify-items: center; text-align: center; padding-top: 18vh; }
.ob-done-mark { font-size: 64px; animation: ob-pulse 1.4s ease-in-out infinite; }
@keyframes ob-pulse { 50% { opacity: .45; } }
@media (min-width: 1280px) { .w-card { left: 20px; bottom: 20px; width: 220px; font-size: 13px; padding: 12px 14px; } .w-card-h b { font-size: 15px; } }
@media (min-width: 700px) { .ob-tiles { grid-template-columns: repeat(3, 1fr); } #welcome { padding-top: 32px; } }
@media (min-width: 950px) {
  /* Header, then the hero centred in whatever height is left (spacer rows), then the features.
     Spacer rows shrink to 0 on short screens, so nothing is ever pushed off the top. */
  #welcome { grid-template-columns: 1fr minmax(0, 480px) minmax(0, 620px) 1fr; column-gap: clamp(40px, 5vw, 72px);
    grid-template-rows: auto 1fr auto auto auto 1fr auto; justify-items: stretch; align-content: stretch; padding: 20px 48px 36px; }
  #welcome > * { max-width: none; }
  #welcome .w-top { grid-column: 2 / 4; grid-row: 1; }
  .w-hero { display: contents; }
  .w-h { grid-column: 2; grid-row: 3; margin: 24px 0 0; font-size: clamp(48px, 4.6vw, 68px); }
  .w-sub { grid-column: 2; grid-row: 4; margin: 18px 0 30px; font-size: 18px; }
  #w-start, #w-form, #w-sent { grid-column: 2; grid-row: 5; align-self: start; max-width: 420px; }
  .w-photo { grid-column: 3; grid-row: 3 / 6; align-self: center; margin: 24px 0; aspect-ratio: 5 / 4; }
}
.field-group { display: grid; border: 1px solid #B0B0B0; border-radius: 8px; overflow: hidden; }
.field-group input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 18px 12px !important; }
.field-group input + input { border-top: 1px solid #B0B0B0 !important; }

/* ---------- header (phone) ---------- */
#app { height: 100%; }
.header { position: fixed; z-index: 800; top: 0; left: 0; right: 0; background: var(--white); padding-top: var(--safe-t); }
.header-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.logo, .toptabs, .search-d { display: none; }
.search { flex: 1; min-width: 0; display: flex; justify-content: center; text-align: center; background: var(--white);
  border-radius: 999px; padding: 10px 20px; box-shadow: 0 3px 10px rgb(0 0 0 / .1), 0 0 0 .5px rgb(0 0 0 / .08); }
.search-m { display: grid; line-height: 1.3; min-width: 0; }
.search-m b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-m span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filterbtn { width: 40px; height: 40px; border: 1px solid var(--line); }
.filterbtn .ic { width: 16px; height: 16px; }
.chips-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; border-bottom: 1px solid var(--line-2); }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; white-space: nowrap; background: var(--white); transition: border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }
.chip .ic { width: 14px; height: 14px; }

.main { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: #EEF0EC; }

/* results: bottom sheet on phones */
.results { position: absolute; z-index: 700; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b));
  background: var(--white); border-radius: 24px 24px 0 0; box-shadow: 0 -4px 20px rgb(0 0 0 / .08);
  display: flex; flex-direction: column; transition: height .35s cubic-bezier(.2,.8,.2,1); }
.results[data-size="min"] { height: 84px; }
.results[data-size="mid"] { height: 44%; }
.results[data-size="max"] { height: calc(100% - var(--tabbar) - var(--safe-b) - var(--head-h, 130px)); border-radius: 0; }
.grip { width: 100%; padding: 12px 0 6px; display: grid; place-items: center; flex: none; cursor: grab; touch-action: none; }
.grip span { width: 40px; height: 4px; border-radius: 2px; background: #C6C6C6; }
.results-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 24px 18px; flex: none; }
.results-head h2 { font-size: 16px; font-weight: 600; }
.results-head select { display: none; }
/* max-content rows: on short screens auto rows squash scrollable children (the compare table) to 0 */
.cards { flex: 1; overflow-y: auto; padding: 0 24px 32px; display: grid; gap: 32px; align-content: start; grid-auto-rows: max-content;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* tab bar */
.tabbar { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + var(--safe-b));
  padding-bottom: var(--safe-b); background: var(--white); border-top: 1px solid var(--line-2); display: flex; justify-content: center; }
.tabbar button { flex: 1; max-width: 96px; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar button.on { color: var(--brand); }

/* ---------- card ---------- */
.card { display: grid; gap: 2px; cursor: pointer; }
.photos { position: relative; aspect-ratio: 20 / 19; border-radius: 16px; overflow: hidden; background: var(--soft); margin-bottom: 10px; }
.photos .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photos .track::-webkit-scrollbar { display: none; }
.photos .track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; opacity: 0; transition: opacity .35s; }
.photos .track img.in { opacity: 1; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #F4EFE6, #E9E1D2); color: #B9A988; }
.ph .ic { width: 48px; height: 48px; fill: none; stroke: currentColor; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .6); }
.dots i.on { background: var(--white); }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / .92);
  display: grid; place-items: center; box-shadow: 0 1px 4px rgb(0 0 0 / .18); opacity: 0; transition: opacity .2s; }
.arrow .ic { width: 12px; height: 12px; }
.arrow.l { left: 12px; } .arrow.r { right: 12px; }
.card:hover .arrow { opacity: 1; }
@media (hover: none) { .arrow { display: none; } }
.badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--white);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 1px 4px rgb(0 0 0 / .14); }
.badge .ic { width: 13px; height: 13px; color: var(--gold); }
.heart { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; }
.heart .ic { width: 26px; height: 26px; fill: rgb(0 0 0 / .5); stroke: var(--white); stroke-width: 2.4; transition: transform .15s; }
.heart.on .ic { fill: var(--gold); }
.heart:active .ic { transform: scale(.85); }
.card .l1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 15px; }
.card .l1 .m { font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.card .l1 .m .ic { width: 12px; height: 12px; color: var(--gold); }
.card .l2, .card .l3 { color: var(--ink-2); font-size: 15px; }
.card .l3 { display: flex; flex-wrap: wrap; gap: 0 10px; }
.card .l3 span { display: inline-flex; align-items: center; gap: 4px; }
.card .l3 .ic { width: 13px; height: 13px; }
.card .l4 { margin-top: 4px; font-size: 15px; }
.card .l4 b { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.card .why { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ink-2); background: var(--soft); border-radius: 4px; padding: 2px 6px; justify-self: start; }
.card.hot .photos { box-shadow: 0 0 0 2px var(--ink); }

.empty { text-align: center; padding: 32px 8px; display: grid; gap: 12px; justify-items: center; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--ink-2); margin: 0; max-width: 360px; }

/* row of mini cards: "worth a look", "places like this" */
.row-sec { display: grid; gap: 14px; }
.row-sec h3 { font-size: 22px; font-weight: 600; }
.row-sec .hint { margin-top: -8px; }
.row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 4px; }
.row::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 70%; max-width: 260px; scroll-snap-align: start; cursor: pointer; display: grid; gap: 2px; }
.mini .photos { aspect-ratio: 1; margin-bottom: 8px; border-radius: 12px; }
.mini .l1 { font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.mini .l2 { color: var(--ink-2); font-size: 14px; }
.mini .miss { font-size: 13px; color: var(--bad); }

/* taste panel on Saved */
.taste { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow-card); }
.taste h3 { font-size: 20px; }
.taste ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.taste li { display: flex; gap: 10px; align-items: baseline; }
.taste li .ic { width: 14px; height: 14px; color: var(--gold); transform: translateY(2px); }
.taste .ai { white-space: pre-line; color: var(--ink); }
.taste .areas { display: grid; gap: 10px; }
.taste .area { border-top: 1px solid var(--line-2); padding-top: 10px; }
.taste .area b { display: block; }

/* ---------- map ---------- */
.maplibregl-ctrl-attrib { font-size: 10px; }
.pin { font: 700 14px/1 var(--font); background: var(--white); color: var(--ink); padding: 7px 10px; border-radius: 999px; box-shadow: var(--shadow-pin);
  white-space: nowrap; cursor: pointer; transition: transform .15s; }
.pin:hover, .pin.hot { transform: scale(1.08); background: var(--ink); color: var(--white); z-index: 2; }
.pin.loved { background: var(--ink); color: var(--white); }
.pin.loved::before { content: "♥ "; color: #F2B53A; }
.anchor-pin { display: grid; justify-items: center; pointer-events: none; }
.anchor-pin b { order: -1; margin-bottom: 4px; background: var(--ink); color: var(--white); font: 600 12px/1 var(--font); padding: 6px 9px; border-radius: 8px; white-space: nowrap; }
.anchor-pin span { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: var(--white); display: grid; place-items: center;
  border: 3px solid var(--white); box-shadow: var(--shadow-pin); }
.anchor-pin span .ic { width: 16px; height: 16px; }

/* ---------- priorities sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .5); display: flex; align-items: flex-end; animation: fade .2s; }
.modal-card { background: var(--white); width: 100%; height: calc(100% - var(--safe-t) - 12px); border-radius: 12px 12px 0 0; display: flex; flex-direction: column;
  animation: up .35s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.modal-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); text-align: center; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-head .ic { width: 14px; height: 14px; }
.modal-body { flex: 1; overflow-y: auto; padding: 0 24px 32px; -webkit-overflow-scrolling: touch; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px calc(var(--safe-b) + 16px); border-top: 1px solid var(--line-2); }
.fsec { padding: 28px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 14px; }
.fsec h4 { font-size: 20px; font-weight: 600; }
.fsec .hint { margin-top: -6px; }
.ask textarea { min-height: 96px; }
.ask .btn-primary { justify-self: start; }
.budget output { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills button, .pills .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; background: var(--white); }
.pills button:hover { border-color: var(--ink); }
.pills button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft); }
.pills .pill .x { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: 12px; }
.prios { display: grid; }
.prio { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line-2); align-items: center; }
.prio:first-child { border-top: 0; }
.prio .pi { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.prio .pi .ic { width: 18px; height: 18px; }
.prio .pt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: center; }
.prio .pt b { font-weight: 600; }
.prio .pt .target { color: var(--ink-2); font-size: 14px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.prio .pt .target input { width: 44px !important; padding: 3px 4px !important; text-align: center; font-size: 14px; border-radius: 6px; border-color: var(--line) !important; }
.prio { padding: 14px 0; }
.prio .pi { width: 36px; height: 36px; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border-radius: 10px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line-2); }
.levels button { padding: 6px 4px; font-size: 13px; color: var(--ink-2); border-radius: 8px; }
.levels button.on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.prio:not(.off) .levels button.on { background: var(--ink); color: var(--white); }
.prio.off .pt b { color: var(--ink-3); }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; padding: 10px 12px !important; }
.inline-add .btn-dark { padding: 10px 16px; font-size: 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.toggle > span { display: grid; gap: 2px; }
.toggle input { display: none; }
.toggle i { flex: none; width: 48px; height: 32px; border-radius: 999px; background: #B0B0B0; position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s; }
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { transform: translateX(16px); }
.anchors { list-style: none; margin: 0; padding: 0; display: grid; }
.anchors li { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.anchors li:first-child { border-top: 0; }
.anchors .av { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.anchors .av .ic { width: 18px; height: 18px; }
.anchors .t { font-weight: 600; }
.anchors .s { color: var(--ink-2); font-size: 14px; }
.anchors .limit { grid-row: span 2; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.anchors .limit input { width: 52px; padding: 6px 4px !important; text-align: center; font-weight: 600; font-size: 15px !important; border-color: var(--line) !important; }
.anchors .must { grid-column: 2; justify-self: start; display: inline-flex; margin-top: 8px; background: var(--soft); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line-2); }
.anchors .must button { font-size: 13px; padding: 5px 12px; border-radius: 999px; color: var(--ink-2); }
.anchors .must button.on { color: var(--ink); font-weight: 600; background: var(--white); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.anchors .del { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; font-size: 13px; color: var(--ink-2); text-decoration: underline; }
.addj summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; padding: 10px 0; }
.addj summary::-webkit-details-marker { display: none; }
.addj summary .ic { width: 14px; height: 14px; }
.anchor-form { display: grid; gap: 12px; padding-top: 8px; }
.mins { display: flex; align-items: center; gap: 10px; }
.mins input { width: 80px !important; text-align: center; font-weight: 600; }
.credits { margin-top: 24px !important; font-size: 12px; line-height: 1.5; }
#signout { margin-top: 16px; font-size: 14px; }

/* ---------- one place ---------- */
.page { position: fixed; inset: 0; z-index: 950; background: var(--white); display: flex; flex-direction: column; animation: fade .2s; }
.page-head { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--safe-t) + 14px) 20px 0; pointer-events: none; }
.page-head > * { pointer-events: auto; }
.page-head.solid { background: var(--white); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); pointer-events: auto; }
.page-head.solid .link-back, .page-head.solid .textbtn { box-shadow: none; }
.link-back, .textbtn { width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .92); display: grid; place-items: center;
  box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.link-back .ic, .textbtn .ic { width: 16px; height: 16px; }
.page-actions { display: flex; gap: 12px; }
.textbtn span { display: none; }
.heartbtn.on .ic { fill: var(--gold); stroke: var(--gold); }
.page-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gallery { position: relative; height: 46vh; min-height: 280px; background: var(--soft); }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery .count { position: absolute; right: 16px; bottom: 40px; background: rgb(34 34 34 / .7); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.gallery .credit { position: absolute; left: 16px; bottom: 40px; color: rgb(255 255 255 / .9); font-size: 10px; text-shadow: 0 1px 2px rgb(0 0 0 / .6); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-body { position: relative; margin-top: -24px; background: var(--white); border-radius: 24px 24px 0 0; padding: 32px 24px 40px; }
.page-main > h1 { font-size: 28px; font-weight: 600; text-align: center; line-height: 1.15; }
.page-main > .where { text-align: center; color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.page-main > .facts { text-align: center; color: var(--ink-2); font-size: 15px; }
.stats { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 28px 0 8px; padding: 0 4px; }
.stats > div { text-align: center; display: grid; justify-items: center; }
.stats .big { font-size: 22px; font-weight: 700; line-height: 1.1; }
.stats .small { font-size: 12px; font-weight: 600; text-decoration: underline; }
.stats .mid { display: flex; align-items: center; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 700; font-size: 16px; line-height: 1.1; text-align: center; }
.stats .mid .ic { width: 16px; height: 26px; color: var(--gold); }
.stats .mid .ic.flip { transform: scaleX(-1); }
.psec { padding: 32px 0; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.psec:first-of-type { margin-top: 24px; }
.psec h2 { font-size: 22px; font-weight: 600; }
.feature { display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: center; }
.feature > .ic { width: 22px; height: 22px; }
.feature b { display: block; font-weight: 500; font-size: 16px; }
.feature span { color: var(--ink-2); font-size: 14px; }
.feature .v { font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; }
.matchlist { display: grid; gap: 12px; }
.mrow { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; }
.mrow .ic { width: 16px; height: 16px; }
.mrow.ok .ic { color: var(--good); }
.mrow.no .ic { color: var(--bad); }
.mrow.part .ic { color: var(--gold); }
.mrow .lvl { display: block; font-size: 13px; color: var(--ink-2); }
.mrow.s > i { width: 8px; height: 8px; border-radius: 50%; margin: 8px 7px 0; background: var(--ink-3); }
.mrow.s .v { color: var(--ink); font-weight: 600; white-space: nowrap; }
.strip .dim b { color: var(--ink-3); }
.strip.prices b { font-size: 16px; }
.more-prios summary .cnt { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.more-prios[open] summary { margin-bottom: 4px; }
.more-prios .prio:first-of-type { border-top: 1px solid var(--line-2); }

.pbox { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.pbox b { display: block; font-size: 22px; font-weight: 600; }
.pbox span { color: var(--ink-2); font-size: 14px; }
.pbox.dim b { color: #B0B0B0; }
.school { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; }
.school .n { font-weight: 500; font-size: 16px; }
.school .m { color: var(--ink-2); font-size: 14px; grid-column: 1; }
.grade { grid-row: span 2; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); color: var(--ink); }
.grade.Outstanding { background: var(--ink); color: var(--white); border-color: var(--ink); }
.grade.Requires, .grade.Inadequate { color: var(--bad); border-color: #F0C8BE; }
.grade.none { color: var(--ink-2); }
.blurb { margin: 0; font-size: 16px; line-height: 1.55; }
.verdict { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.verdict button { padding: 12px 6px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; }
.verdict button.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.page-side { display: none; }
.reserve { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px calc(var(--safe-b) + 14px);
  border-top: 1px solid var(--line); background: var(--white); }
.reserve .price b { font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.reserve .price span { display: block; color: var(--ink-2); font-size: 14px; }
.reserve .btn-primary { text-decoration: none; padding: 14px 28px; }

.toast { position: fixed; z-index: 2000; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 20px); transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow-card); max-width: calc(100% - 32px); }

/* ---------- household ---------- */
.av-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--white); font-size: 11px; font-weight: 700;
  margin-right: 6px; vertical-align: -4px; border: 1.5px solid var(--white); flex: none; }
.card .l1 .av-dot { margin-right: 2px; }
.card .l1 .av-dot:last-of-type { margin-right: 6px; }
.chip .av-dot { margin-right: 0; width: 18px; height: 18px; }
.household { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.household li { display: flex; align-items: center; gap: 4px; }
.household li > span:nth-child(2) { flex: 1; }
.household .av-dot { width: 32px; height: 32px; font-size: 14px; margin-right: 10px; }
.people { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.people b { color: var(--ink); }

/* ---------- chat ---------- */
.chat { position: fixed; inset: 0; z-index: 960; background: var(--white); display: flex; flex-direction: column; animation: fade .2s; }
.chat-head { display: grid; grid-template-columns: 36px 1fr 36px; gap: 12px; align-items: center; padding: calc(var(--safe-t) + 12px) 16px 12px; border-bottom: 1px solid var(--line-2); }
.chat-head .link-back, .chat-head .textbtn { box-shadow: none; background: none; }
.chat-title { display: grid; text-align: center; line-height: 1.25; }
.chat-title b { font: italic 600 24px/1 Fraunces, Georgia, serif; color: var(--brand); }
.chat-title span { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
.msg { max-width: 86%; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 18px 18px 4px 18px; }
.msg.assistant { align-self: flex-start; background: var(--soft); padding: 12px 14px; border-radius: 18px 18px 18px 4px; }
.msg.thinking { color: var(--ink-2); }
.msg.thinking i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.msg.thinking i:nth-child(2) { animation-delay: .2s; } .msg.thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.changes { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; }
.changes span { font-size: 12.5px; background: #EEF3EC; color: var(--brand); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.chat .row { margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; }
.chat .mini { width: 46%; max-width: 200px; }
.chat-hello { margin: auto 0; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px 8px; }
.chat-hello h2 { font: italic 600 34px/1 Fraunces, Georgia, serif; color: var(--brand); }
.chat-hello p { color: var(--ink-2); margin: 0; max-width: 340px; }
.chat-input { border-top: 1px solid var(--line-2); padding: 10px 12px calc(var(--safe-b) + 10px); display: grid; gap: 8px; background: var(--white); }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chat-chips:empty { display: none; }
.chat-chips button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; background: var(--white); }
.chat-box { display: flex; align-items: flex-end; gap: 8px; border: 1px solid #B0B0B0; border-radius: 24px; padding: 4px 4px 4px 16px; }
.chat-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chat-box textarea { border: 0 !important; box-shadow: none !important; padding: 9px 0 !important; resize: none; max-height: 140px; line-height: 1.4; }
.send { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-grad); color: var(--white); display: grid; place-items: center; flex: none; }
.send .ic { width: 14px; height: 14px; }
.send[disabled] { opacity: .4; }

/* ---------- desktop ---------- */
@media (min-width: 950px) {
  :root { --head: 152px; }
  .header { border-bottom: 1px solid var(--line-2); }
  .header-row { display: grid; grid-template-columns: 1fr auto 1fr; padding: 16px 48px; height: 88px; }
  .logo { display: flex; align-items: center; text-decoration: none; color: var(--brand); font: italic 600 38px/1 Fraunces, Georgia, serif; letter-spacing: -0.03em; }
  .search { padding: 0 8px 0 0; justify-content: flex-start; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 12px rgb(0 0 0 / .05); border: 1px solid var(--line); height: 64px; }
  .search:hover { box-shadow: var(--shadow-card); }
  .search-m { display: none; }
  .search-d { display: flex; align-items: center; height: 100%; }
  .search-d .seg { display: grid; text-align: left; padding: 0 24px; border-right: 1px solid var(--line); line-height: 1.3; min-width: 150px; }
  .search-d .seg:nth-child(3) { border: 0; }
  .search-d .seg b { font-size: 12px; font-weight: 600; }
  .search-d .seg span { font-size: 14px; color: var(--ink-2); white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
  .search-d .go { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-grad); color: var(--white); display: grid; place-items: center; margin-left: 8px; }
  .search-d .go .ic { width: 16px; height: 16px; }
  .filterbtn { display: none; }
  .toptabs { display: flex; justify-content: flex-end; gap: 4px; }
  .toptabs button { padding: 12px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; }
  .toptabs button:hover { background: var(--soft); }
  .toptabs button.on { font-weight: 700; }
  .chips-row { padding: 14px 48px 16px; border: 0; }
  .chips-row > :first-child { margin-left: auto; } .chips-row > :last-child { margin-right: auto; }
  .tabbar { display: none; }
  .main { top: var(--head); display: grid; grid-template-columns: minmax(560px, 60%) 1fr; }
  #map { position: relative; grid-column: 2; grid-row: 1; margin: 0 24px 24px 0; border-radius: 16px; overflow: hidden; }
  .results, .results[data-size] { position: relative; grid-column: 1; grid-row: 1; height: auto; bottom: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
  .grip { display: none; }
  .results-head { justify-content: space-between; padding: 24px 48px 20px; }
  .results-head select { display: block; width: auto; padding: 8px 32px 8px 14px; border-radius: 999px; font-size: 14px; border-color: var(--line); appearance: none;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
  .cards { padding: 0 48px 48px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 24px; }
  .cards > .row-sec, .cards > .taste, .cards > .empty { grid-column: 1 / -1; }
  .row { margin: 0; padding: 0 0 4px; }
  .mini { width: 220px; }
  .modal { align-items: center; justify-content: center; }
  .modal-card { width: 680px; height: auto; max-height: calc(100vh - 80px); border-radius: 12px; box-shadow: 0 8px 28px rgb(0 0 0 / .28); animation: up2 .3s cubic-bezier(.2,.8,.2,1); }
  @keyframes up2 { from { transform: translateY(40px); opacity: 0; } }

  /* place page: Airbnb listing */
  .page-head { position: static; padding: 24px 80px 0; max-width: 1280px; width: 100%; margin: 0 auto; }
  .link-back, .textbtn { background: none; box-shadow: none; }
  .link-back:hover { background: var(--soft); }
  .textbtn { width: auto; height: auto; display: inline-flex; gap: 8px; padding: 8px 10px; border-radius: 8px; font-weight: 600; text-decoration: underline; }
  .textbtn:hover { background: var(--soft); }
  .textbtn span { display: inline; }
  .page-scroll { padding: 0 80px; }
  .page-scroll > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .gallery { height: 440px; margin-top: 16px; border-radius: 12px; overflow: hidden; background: none; }
  .gallery .grid5 { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 100%; }
  .gallery .grid5 img, .gallery .grid5 .ph { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
  .gallery .grid5 > :first-child { grid-row: span 2; }
  .gallery .count, .gallery .credit { bottom: 16px; }
  .page-body { margin-top: 0; border-radius: 0; padding: 32px 0 80px; display: grid; grid-template-columns: 1fr 370px; gap: 80px; }
  .page-main > h1, .page-main > .where, .page-main > .facts { text-align: left; }
  .page-main > h1 { font-size: 26px; }
  .page-main > .where { margin-top: 4px; font-size: 22px; color: var(--ink); font-weight: 500; }
  .stats { border: 1px solid var(--line); border-radius: 12px; padding: 20px 8px; margin-top: 24px; }
  .page-side { display: block; }
  .side-card { position: sticky; top: 32px; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card); display: grid; gap: 16px; }
  .side-card .price b { font-size: 22px; font-weight: 600; }
  .side-card .price span { color: var(--ink-2); margin-left: 6px; }
  .side-card .btn-primary { text-decoration: none; width: 100%; }
  .reserve { display: none; }
  .toast { bottom: 32px; }
  .chat { left: auto; width: 460px; box-shadow: -8px 0 32px rgb(0 0 0 / .12); }
  .chat-head { padding-top: 16px; }
  .chat-input { padding-bottom: 14px; }
}

/* ---------- Kin's picks ---------- */
.picks-intro { display: grid; gap: 16px; justify-items: center; text-align: center; }
.picks-intro p { margin: 0; color: var(--ink-2); max-width: 400px; font-size: 15px; }
.seg2 { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg2 button { padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg2 button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12), 0 0 0 .5px rgb(0 0 0 / .06); }
.rank { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--white);
  font: 700 12px/1 var(--font); margin-right: 8px; }
.badge .rank { margin-right: 2px; }

/* status: one dot, three colours, used everywhere a place is held against your list */
.score i, .compare td i, .key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-3); }
.ok > b > i, .ok > i, td.ok i { background: var(--ok); }
.part > b > i, .part > i, td.part i { background: var(--part); }
.no > b > i, .no > i, td.no i { background: var(--no); }
.score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin-top: 12px; padding: 14px 16px; background: var(--soft); border-radius: 12px; }
.score > div { display: grid; gap: 1px; min-width: 0; }
.score span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.score .no b { color: var(--no); }
.card .say { margin: 12px 0 0; font-size: 15px; color: var(--ink); line-height: 1.45; }
.card .bestfor { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.card .bestfor::before { content: "Best for: "; font-weight: 600; color: var(--ink); }
.cards > .pick + .pick { border-top: 1px solid var(--line-2); padding-top: 32px; }

.compare { overflow-x: auto; margin: 0 -24px; padding: 0 24px; scrollbar-width: thin; }
.compare table { border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 100%; }
.compare th, .compare td { padding: 12px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.compare thead th { font-size: 12px; font-weight: 600; color: var(--ink-2); position: sticky; top: 0; background: var(--white); padding-top: 4px; }
.compare thead th .ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.compare tbody th { position: sticky; left: 0; background: var(--white); z-index: 1; font-weight: 400; box-shadow: 1px 0 0 var(--line-2); }
.compare tbody th b { display: flex; align-items: center; font-weight: 600; }
.compare tbody th small { display: none; color: var(--ink-2); font-size: 12px; margin-left: 30px; white-space: normal; max-width: 170px; line-height: 1.3; }
.compare tbody tr { cursor: pointer; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--soft); }
.compare td { font-weight: 500; }
.compare td i { margin-right: 7px; vertical-align: 1px; }
.compare td.no { color: var(--no); }
.key { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.cards > .key { margin-bottom: -20px; }
.pin.pick { background: var(--brand); color: var(--white); }
.pin.pick:hover, .pin.pick.hot { background: var(--ink); }

/* ---------- written-up place page ---------- */
.toc { position: sticky; z-index: 4; top: calc(var(--safe-t) + 60px); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 24px -24px 0; padding: 10px 24px; background: var(--white); border-bottom: 1px solid var(--line-2); }
.toc::-webkit-scrollbar { display: none; }
.toc button { flex: none; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.toc button:hover { border-color: var(--ink); }
.toc button.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
#toc + #dossier-top > .psec:first-child { border-top: 0; }
.psec h3 { font-size: 17px; font-weight: 600; margin-top: 8px; }
.lede { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.take .gg { display: grid; gap: 12px; }
.take .gg > div { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 12px; }
.take .gg h3 { margin: 0 0 2px; font-size: 15px; }
.take .gets { background: #F1F6EF; }
.take .gives { background: #FBF1EE; }
.take .score { margin-top: 0; }
.mrow { align-items: start; }
.mrow > .ic { margin-top: 3px; }
.mrow span { line-height: 1.4; }
.clamp p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.clamp.open p { display: block; }
.more-btn { margin-top: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: 15px; }
.fine { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.area-map { position: relative; height: 340px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.map-zoom { position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--white); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-pill); }
.legend { display: grid; gap: 14px; }
.legend a { color: inherit; text-decoration: none; }
.legend .sw { width: 22px; height: 5px; border-radius: 3px; display: block; }
.legend .feature b { font-size: 15px; }
/* a row of numbers: big figure over a small label, split by hairlines */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; }
.strip > div { display: grid; gap: 2px; padding: 14px 12px; text-align: center; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.strip span { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.steps li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; position: relative; }
.steps li > .ic { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--soft); position: relative; z-index: 1; }
.steps li:not(.tot) + li:not(.tot)::before { content: ""; position: absolute; left: 17px; top: -12px; height: 24px; width: 2px; background: var(--line); }
.steps b { display: block; font-weight: 500; font-size: 16px; }
.steps span { color: var(--ink-2); font-size: 14px; }
.steps .v { color: var(--ink); font-weight: 600; white-space: nowrap; }
.steps .tot { grid-template-columns: 1fr auto; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 14px; }
.steps .tot b { font-weight: 600; }
.steps .tot .v { font-size: 20px; font-weight: 700; }
/* events: swipe sideways on a phone, a grid on a desk */
.evts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px 6px; scroll-padding-inline: 24px; }
.evts::-webkit-scrollbar { display: none; }
.evt { flex: none; width: 78%; max-width: 320px; scroll-snap-align: start; display: grid; gap: 6px; align-content: start;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.evt .when { justify-self: start; font-size: 12px; font-weight: 600; color: var(--brand); background: #EEF3EC; padding: 3px 8px; border-radius: 6px; }
.evt b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.evt b a, .list b a { color: inherit; text-decoration: none; }
.evt b a::after, .list b a::after { content: " ↗"; color: var(--ink-3); font-weight: 400; }
.evt p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.list { display: grid; }
.list > div, .list > a { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.list > :last-child { border-bottom: 0; }
.list > div > .ic { width: 20px; height: 20px; margin-top: 1px; }
.list b { font-weight: 600; }
.list p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.list.plain > a { grid-template-columns: 1fr auto; align-items: center; color: inherit; text-decoration: none; }
.list.plain b { font-weight: 500; }
.list.plain .grade { grid-row: auto; }
.sales { display: grid; }
.sales > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.sales > div.xtra { display: none; }
.psec.all .sales > div.xtra { display: flex; }
.sales span { font-weight: 500; }
.sales small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
.sales b { font-weight: 600; white-space: nowrap; }
.btn-line { justify-self: start; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--ink); font-weight: 600; font-size: 14px; }
.btn-line:hover { background: var(--soft); }
.notes { display: grid; gap: 16px; }
.notes > div { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; line-height: 1.45; font-size: 15px; }
.notes i { width: 22px; height: 22px; border-radius: 50%; background: #FBF0DC; color: #87560A; font: 700 13px/22px var(--font); text-align: center; font-style: normal; }
.notes .ic { width: 22px; height: 22px; padding: 3px; }
.src details summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; }
.src details summary::-webkit-details-marker { display: none; }
.src summary span { color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.src details[open] summary { margin-bottom: 14px; }
.srcs { display: grid; gap: 8px; margin-bottom: 12px; }
.srcs a { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 950px) {
  .cards > .picks-intro, .cards > .compare, .cards > .compare + .key, .cards > .key + .hint { grid-column: 1 / -1; }
  .cards > .pick + .pick { border-top: 0; padding-top: 0; }
  .compare { margin: 0; padding: 0; }
  .compare tbody th small { display: block; }
  .toptabs button { white-space: nowrap; }
  .cards:has(> .pick) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .take .gg { grid-template-columns: 1fr 1fr; }
  .area-map { height: 420px; }
  .toc { top: 0; margin: 24px 0 0; padding: 12px 0; }
  .evts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; overflow: visible; }
  .evt { width: auto; max-width: none; }
}
