/* ============================================================================
   Flatmir — Taker web app (design prototype)
   A real web layout: sticky header + chip bar, Airbnb-style split
   (card list left, sticky map right), responsive down to mobile
   (full-width list + a floating Map/List switch). No device frame.
   Loyal to the findings: muted vector base map + our own price-pill overlay,
   freshness front-and-center, no login anywhere, contact = Telegram deep-link.
   ========================================================================== */

:root {
  --bg:        #FBFAF7;
  --card:      #FFFFFF;
  --ink:       #191713;
  --sub:       #6E695E;
  --faint:     #9A9486;
  --line:      #E9E4DA;
  --line-2:    #DCD5C8;
  --wash:      #F3F0E9;
  --accent:    #C2492B;   /* clay */
  --accent-2:  #A63A20;
  --tg:        #229ED9;   /* Telegram blue — used ONLY on the contact action */
  --tg-2:      #1C8CBF;
  --green:     #1F7A46;
  --green-bg:  #E8F3EC;
  --amber:     #A87514;
  --amber-bg:  #F7EEDC;

  --display: "Bricolage Grotesque", "Georgia", serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;

  --sh-1: 0 1px 2px rgba(25,23,19,.06), 0 3px 10px rgba(25,23,19,.07);
  --sh-2: 0 4px 12px rgba(25,23,19,.10), 0 12px 32px rgba(25,23,19,.12);
  --sh-3: 0 24px 70px rgba(25,23,19,.25);

  --r-s: 10px; --r-m: 14px; --r-l: 18px;
  --hdr-h: 64px; --search-h: 84px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
/* CRITICAL: the `hidden` attribute must always win, even over classes that set
   their own display (flex/grid). Without this, overlays like the lightbox render
   invisibly over the whole page and block every click. */
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0; height: 100%;
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: #F3D9CF; }

/* ================================ HEADER ================================ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(14px, 2.5vw, 32px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.2px; flex: none; }
.hdr__logo b { font-weight: 800; color: var(--accent); }
.hdr__mark { width: 22px; height: 22px; color: var(--accent); fill: currentColor; stroke: none; }

/* centered type tabs — Homes/Experiences/Services pattern */
.hdr__tabs { display: flex; gap: 2px; margin-inline: auto; align-self: stretch; }
.ttab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 15px; font-size: 14.5px; font-weight: 600; color: var(--sub);
  transition: color .15s;
}
.ttab svg { width: 20px; height: 20px; opacity: .75; transition: opacity .15s, transform .18s var(--ease); }
.ttab:hover { color: var(--ink); }
.ttab:hover svg { opacity: 1; transform: translateY(-1px); }
.ttab.is-on { color: var(--ink); font-weight: 700; }
.ttab.is-on svg { opacity: 1; color: var(--accent); }
.ttab.is-on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--ink);
}

.hdr__nav { display: flex; align-items: center; gap: 6px; flex: none; }
.hdr__navlink { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--sub); transition: background .15s, color .15s; }
.hdr__navlink:hover { background: var(--wash); color: var(--ink); }
/* language switcher — hidden until a second catalog exists (see i18n.js) */
.hdr__lang { appearance: none; -webkit-appearance: none; border: none; background: transparent; padding: 9px 10px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px; color: var(--sub); cursor: pointer; transition: background .15s, color .15s; }
.hdr__lang:hover { background: var(--wash); color: var(--ink); }
.hdr__cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: #fff; background: var(--accent); box-shadow: var(--sh-1);
  transition: background .15s, transform .15s var(--ease);
}
.hdr__cta:hover { background: var(--accent-2); }
.hdr__cta:active { transform: scale(.97); }
.hdr__cta svg { width: 15px; height: 15px; }

/* ====================== SEARCH PILL (segmented bar) ===================== */
.searchrow {
  position: sticky; top: var(--hdr-h); z-index: 55;
  height: var(--search-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(14px, 2.5vw, 32px);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.spill {
  display: flex; align-items: center;
  width: min(680px, 100%); height: 54px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: var(--sh-1); transition: box-shadow .2s var(--ease);
}
.spill:hover { box-shadow: var(--sh-2); }
.spill__part {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0 22px; border-radius: 999px; cursor: pointer;
  transition: background .15s;
}
.spill__part:hover { background: var(--wash); }
.spill__part:active { background: var(--line); }
.spill__l { font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--ink); }
.spill__v { font-size: 13.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spill__v.is-set { color: var(--ink); font-weight: 650; }
.spill__div { flex: none; width: 1px; height: 28px; background: var(--line-2); }

.spill__part--where { position: relative; padding-right: 42px; }
.spill__x {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--wash);
  display: grid; place-items: center; transition: background .15s;
}
.spill__x:hover { background: var(--line); }
.spill__x svg { width: 11px; height: 11px; }

.spill__part--filters {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 12px; padding-right: 8px;
  flex: 1.15 1 0;
}
.spill__part--filters .spill__l { grid-area: 1 / 1; align-self: end; }
.spill__part--filters .spill__v { grid-area: 2 / 1; align-self: start; }
.spill__go {
  grid-area: 1 / 2 / 3 / 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-1); transition: background .15s, transform .15s var(--ease);
}
.spill__part--filters:hover .spill__go { background: var(--accent-2); }
.spill__part--filters:active .spill__go { transform: scale(.94); }
.spill__go svg { width: 17px; height: 17px; }

/* ============================ MAIN SPLIT LAYOUT ========================= */
.main {
  display: flex;
  height: calc(100dvh - var(--hdr-h) - var(--search-h));
}
.listpane {
  width: min(54%, 980px); min-width: 420px;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 22px clamp(14px, 2vw, 28px) 0;
}
.mappane { flex: 1; position: relative; background: var(--wash); min-width: 0; }
#map { position: absolute; inset: 0; }

.listpane__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.listpane__title { margin: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 25px); font-weight: 700; letter-spacing: -.3px; }
.sort { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.sort__label { font-size: 13px; color: var(--faint); }
.sort select {
  font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 7px 10px; cursor: pointer;
}
.listpane__note { margin: 6px 0 18px; font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 8px; }
.listpane__note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ------------------------------- cards grid ----------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 26px 20px; padding-bottom: 30px; }

.card { text-align: left; border-radius: var(--r-l); position: relative; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px);} }
.card__media { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/3; background: var(--wash); box-shadow: inset 0 0 0 1px rgba(25,23,19,.05); }
.card__track { display: flex; height: 100%; transition: transform .35s var(--ease); }
.card__img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.card.is-hot .card__media { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(25,23,19,.05); }

/* gallery arrows — appear on card hover (desktop), hidden at the ends */
.card__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9); box-shadow: var(--sh-1);
  opacity: 0; transition: opacity .15s, background .15s, transform .12s var(--ease);
}
.card__nav--prev { left: 9px; } .card__nav--next { right: 9px; }
.card__nav svg { width: 15px; height: 15px; color: var(--ink); }
.card__nav:hover { background: #fff; }
.card__nav:active { transform: translateY(-50%) scale(.9); }
.card:hover .card__nav:not([hidden]) { opacity: 1; }
@media (hover: none) { .card__nav { display: none; } }  /* touch = swipe + dots */

/* dot indicators */
.card__dots { position: absolute; left: 0; right: 0; bottom: 9px; z-index: 3;
  display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card__dot { width: 6px; height: 6px; border-radius: 50%; pointer-events: auto;
  background: rgba(255,255,255,.65); box-shadow: 0 0 2px rgba(0,0,0,.35);
  transition: transform .15s, background .15s; }
.card__dot.is-on { background: #fff; transform: scale(1.25); }

.badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.94); box-shadow: var(--sh-1); backdrop-filter: blur(3px);
}
.badge--fresh { color: var(--green); }
.badge--aging { color: var(--amber); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card__type {
  position: absolute; top: 10px; right: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: rgba(25,23,19,.66); padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(3px);
}
.card__body { padding: 11px 4px 0; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-weight: 700; font-size: 15px; letter-spacing: -.1px; }
.card__price { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.card__price small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--faint); }
.card__meta { margin-top: 3px; color: var(--sub); font-size: 13px; }
.card__meta b { font-weight: 600; color: var(--sub); }
.card__avail { display: inline-block; margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--sub); background: var(--wash); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

/* ------------------------------ skeletons ------------------------------- */
.sk { border-radius: var(--r-l); }
.sk__media { aspect-ratio: 4/3; border-radius: var(--r-l); }
.sk__l1 { height: 15px; width: 70%; margin: 12px 0 8px; border-radius: 6px; }
.sk__l2 { height: 12px; width: 45%; border-radius: 6px; }
.sk__media, .sk__l1, .sk__l2 {
  background: linear-gradient(100deg, var(--wash) 40%, #ECE7DD 50%, var(--wash) 60%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------ empty state ----------------------------- */
.emptystate { text-align: center; padding: 60px 20px; }
.emptystate__art { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--accent); }
.emptystate h2 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.emptystate p { color: var(--sub); margin: 0 0 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 12px; padding: 12px 20px; transition: transform .15s var(--ease), background .15s; }
.btn:active { transform: scale(.97); }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--wash); }

.listfoot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 18px 4px 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.listfoot__link { font-size: 12.5px; font-weight: 600; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.listfoot__link:hover { color: var(--ink); }

/* ================================= MAP UI =============================== */
.maplibregl-map { font-family: var(--body); }
.maplibregl-ctrl-attrib { font-size: 10px !important; background: rgba(251,250,247,.8) !important; border-radius: 8px 0 0 0; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--sh-1) !important; }

/* price pills — OUR overlay; identical no matter the base map (the seam) */
.pin {
  display: inline-block; padding: 7px 11px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(25,23,19,.14), var(--sh-1);
  transition: transform .16s var(--ease), background .16s, color .16s;
  cursor: pointer; user-select: none;
}
.pin:hover, .pin.is-hover { transform: scale(1.08); z-index: 5; box-shadow: 0 0 0 1px rgba(25,23,19,.2), var(--sh-2); }
.pin.is-seen { background: #EFEBE2; color: var(--sub); }
.pin.is-on { background: var(--ink); color: #fff; transform: scale(1.12); box-shadow: var(--sh-2); }

.maparea {
  position: absolute; z-index: 6; top: 14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13.5px;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--sh-2);
  animation: drop .3s var(--ease);
}
.maparea svg { width: 15px; height: 15px; }
@keyframes drop { from { opacity: 0; transform: translateX(-50%) translateY(-8px);} }

/* "you are here" dot (geolocation on open / Near-me button) */
.youdot { width: 16px; height: 16px; border-radius: 50%; background: #2f7ef5;
  border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(47,126,245,.35), var(--sh-1); }
.youdot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(47,126,245,.4); animation: youpulse 2.4s ease-out infinite; }
@keyframes youpulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* data-source badge — always visible; answers LIVE vs DEMO at a glance */
.srcbadge {
  position: fixed; left: 14px; bottom: 14px; z-index: 72;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  box-shadow: var(--sh-2); border: 1px solid transparent;
}
.srcbadge--live { background: var(--green-bg); color: var(--green); border-color: #CBE5D4; }
.srcbadge--demo { background: var(--amber-bg); color: var(--amber); border-color: #E8D9B8; }

/* fullscreen map (the #fsBtn fab) — the pane covers the whole viewport */
body.map-fs .mappane { display: block; position: fixed; inset: 0; z-index: 70; width: auto; height: auto; }
body.map-fs .switchview { display: none; }

.mapfabs { position: absolute; z-index: 6; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 9px; }
.mapfab { width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-1); display: grid; place-items: center; transition: transform .15s var(--ease); }
.mapfab:active { transform: scale(.92); }
.mapfab svg { width: 19px; height: 19px; }

/* mini-card (pin tap) */
.minicard {
  position: absolute; z-index: 7; left: 14px; right: auto; bottom: 16px;
  width: min(330px, calc(100% - 28px));
  background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh-2);
  overflow: hidden; animation: rise .3s var(--ease);
}
.minicard__x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--sh-1); font-size: 13px; display: grid; place-items: center; }
.minicard__link { display: grid; grid-template-columns: 118px 1fr; }
.minicard__img { width: 100%; height: 100%; min-height: 96px; object-fit: cover; }
.minicard__body { padding: 10px 12px; }
.minicard__title { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.minicard__meta { color: var(--sub); font-size: 12px; margin-top: 2px; }
.minicard__price { font-family: var(--display); font-weight: 700; font-size: 15px; margin-top: 6px; }
.minicard__price small { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--faint); }

.mapfail { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--sub); background: var(--wash); padding: 20px; }

/* ======================= FLOATING LIST/MAP SWITCH ======================= */
.switchview {
  position: fixed; z-index: 58; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: none; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px;
  padding: 13px 20px; border-radius: 999px; box-shadow: var(--sh-2);
}
.switchview svg { width: 17px; height: 17px; }
.switchview:active { transform: translateX(-50%) scale(.96); }

/* ============================== DETAIL PAGE ============================= */
.detail {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  opacity: 0; transform: translateY(14px); transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.detail.is-open { opacity: 1; transform: none; }

.detail__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 12px clamp(14px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.detail__backbtn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 8px 14px 8px 8px; border-radius: 999px; }
.detail__backbtn:hover { background: var(--wash); }
.detail__backbtn svg { width: 18px; height: 18px; }
.detail__baractions { margin-left: auto; display: flex; gap: 6px; }
.iconbtn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; padding: 8px 13px; border-radius: 999px; color: var(--sub); }
.iconbtn:hover { background: var(--wash); color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; }

.detail__wrap { max-width: 1120px; margin: 0 auto; padding: 18px clamp(14px, 4vw, 40px) 90px; }

/* photo mosaic (desktop) / strip (mobile) */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 190px 190px; gap: 10px; border-radius: var(--r-l); overflow: hidden; }
.mosaic button { position: relative; overflow: hidden; padding: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease), filter .3s; }
.mosaic button:hover img { transform: scale(1.04); filter: brightness(.96); }
.mosaic button:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__more {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.94); padding: 7px 12px; border-radius: 999px; box-shadow: var(--sh-1); pointer-events: none;
}

.detail__cols { display: grid; grid-template-columns: 1fr 360px; gap: 44px; margin-top: 26px; }

.detail__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tag--fresh { color: var(--green); background: var(--green-bg); }
.tag--aging { color: var(--amber); background: var(--amber-bg); }
.tag--type { color: var(--sub); background: var(--wash); text-transform: uppercase; letter-spacing: .4px; font-size: 10.5px; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.detail__title { font-family: var(--display); font-weight: 800; letter-spacing: -.5px; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; margin: 10px 0 4px; }
.detail__sub { color: var(--sub); font-size: 15px; }
.detail__views { color: var(--faint); font-size: 12.5px; margin-top: 4px; }

.facts { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.fact { flex: 1 1 120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; }
.fact svg { width: 20px; height: 20px; color: var(--accent); }
.fact b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; margin-top: 8px; }
.fact span { font-size: 12px; color: var(--faint); }

.hr { border: 0; height: 1px; background: var(--line); margin: 24px 0; }
.detail__desc { font-size: 15.5px; line-height: 1.7; color: #38342C; margin: 0; }
.detail h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.amenities span { font-size: 13px; font-weight: 600; color: var(--sub); background: var(--card); border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px; }

.locmap { height: 230px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--wash); position: relative; }
.locmap__dot { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(194,73,43,.14); border: 2px solid rgba(194,73,43,.5); pointer-events: none; }
.locnote { font-size: 12.5px; color: var(--faint); margin-top: 9px; }

/* right rail: sticky contact card (desktop) */
.contact { position: sticky; top: 84px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-2); padding: 22px; }
.contact__price { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.4px; }
.contact__price small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--faint); letter-spacing: 0; }
.contact__fresh { display: flex; align-items: center; gap: 7px; margin: 10px 0 18px; font-size: 13px; font-weight: 600; color: var(--green); }
.contact__fresh i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tgbtn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--tg); color: #fff; font-weight: 700; font-size: 15.5px;
  border-radius: var(--r-m); padding: 15px; box-shadow: 0 8px 22px rgba(34,158,217,.35);
  transition: background .15s, transform .15s var(--ease);
}
.tgbtn:hover { background: var(--tg-2); }
.tgbtn:active { transform: scale(.98); }
.tgbtn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.contact__how { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--sub); }
.contact__how b { color: var(--ink); }
.contact__report { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; text-align: center; font-size: 13px; font-weight: 600; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.contact__report:hover { color: var(--accent); }

/* mobile sticky contact bar */
.contactbar { display: none; position: fixed; z-index: 72; left: 0; right: 0; bottom: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  align-items: center; gap: 14px; }
.contactbar .contact__price { font-size: 20px; }
.contactbar .tgbtn { flex: 1; padding: 13px; }

/* ================================ MODALS ================================ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(20,18,14,.44); opacity: 0; transition: opacity .25s; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__card {
  position: relative; width: min(560px, 100%); max-height: min(86dvh, 720px); overflow-y: auto;
  background: var(--bg); border-radius: 22px; box-shadow: var(--sh-3);
  padding: 22px 24px; opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.modal.is-open .modal__card { opacity: 1; transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal__title { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 0; }
.modal__x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); }
.modal__x svg { width: 15px; height: 15px; }

.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup > label { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); margin-bottom: 11px; }
.fhint { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--line-2); margin-left: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font-size: 13.5px; font-weight: 600; background: var(--card); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 15px; transition: all .14s var(--ease); }
.opt:active { transform: scale(.95); }
.opt.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opts--cur { margin-bottom: 12px; }
.opts--cur .opt { font-size: 12.5px; padding: 8px 13px; }

/* dual-thumb price range slider */
.prslider { position: relative; height: 30px; margin: 2px 6px 10px; }
.prslider__track {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%);
  border-radius: 4px;
  background: linear-gradient(to right,
    var(--line) var(--lo), var(--ink) var(--lo),
    var(--ink) var(--hi), var(--line) var(--hi));
}
.prslider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 30px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.prslider input[type="range"]:focus-visible { outline: none; }
.prslider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink); box-shadow: var(--sh-1);
}
.prslider input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.06); }
.prslider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink); box-shadow: var(--sh-1);
}
.pricerow { display: flex; align-items: center; gap: 10px; }
.pricerow input { width: 110px; font: inherit; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card); color: var(--ink); }
.pricerow input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.pricerow span { color: var(--faint); }
.pricehint { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }
.modal__foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.modal__clear { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.modal__apply { margin-left: auto; background: var(--ink); color: var(--bg); font-weight: 700; padding: 13px 22px; border-radius: 12px; transition: transform .15s var(--ease); }
.modal__apply:active { transform: scale(.97); }

/* how-it-works / list-your-place shared bits */
.steps { display: grid; gap: 14px; margin: 14px 0 4px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px; }
.step__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wash); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 17px; }
.step b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.step p { margin: 0; font-size: 13.5px; color: var(--sub); line-height: 1.55; }
.modal__note { font-size: 12.5px; color: var(--faint); line-height: 1.55; margin: 14px 0 0; }
.tgbtn--modal { margin-top: 16px; }

/* report radios */
.radios { display: grid; gap: 8px; margin: 6px 0 2px; }
.radio { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.radio input { accent-color: var(--accent); width: 16px; height: 16px; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--wash); }

/* =============================== LIGHTBOX =============================== */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(16,14,11,.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 84dvh; border-radius: 12px; box-shadow: var(--sh-3); }
.lightbox__x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox__x svg { width: 17px; height: 17px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; }

/* ================================= TOAST ================================ */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1180px) {
  .detail__cols { grid-template-columns: 1fr 320px; gap: 30px; }
}

@media (max-width: 960px) {
  :root { --search-h: 74px; }
  .hdr { gap: 10px; }
  .hdr__navlink { display: none; }
  .ttab { padding: 0 10px; font-size: 13.5px; gap: 6px; }
  .ttab svg { width: 18px; height: 18px; }
  .spill { height: 48px; }
  .spill__part { padding: 0 16px; }
  .spill__part--where { padding-right: 38px; }
  .spill__go { width: 36px; height: 36px; }

  /* single-pane: list by default; map fills when body.map-mode */
  .main { display: block; height: auto; }
  .listpane { width: auto; min-width: 0; height: auto; overflow: visible; padding-bottom: 90px; }
  .mappane {
    display: none;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    top: calc(var(--hdr-h) + var(--search-h));
  }
  body.map-mode .mappane { display: block; }
  body.map-mode .listpane { display: none; }
  .switchview { display: inline-flex; }
  .minicard { left: 50%; transform: translateX(-50%); bottom: 92px; }

  /* detail: strip gallery + bottom contact bar */
  .mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; border-radius: var(--r-m); scrollbar-width: none; grid-template-rows: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic button { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/3; }
  .mosaic button:first-child { grid-column: auto; grid-row: auto; }
  .mosaic__more { display: none; }
  .detail__cols { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .contact { display: none; }
  .contactbar { display: flex; }
  .detail__wrap { padding-bottom: 130px; }
}

@media (max-width: 520px) {
  .hdr { padding: 0 12px; }
  .hdr__logo span { display: none; }        /* keep just the mark on tiny screens */
  .hdr__cta { padding: 9px 12px; font-size: 13px; }
  .hdr__cta svg { display: none; }
  .ttab { padding: 0 7px; font-size: 12.5px; gap: 5px; }
  .ttab svg { width: 16px; height: 16px; }
  .searchrow { padding: 0 10px; }
  .spill__part { padding: 0 12px; }
  .spill__part--where { padding-right: 34px; }
  .spill__l { font-size: 9.5px; letter-spacing: .5px; }
  .spill__v { font-size: 12.5px; }
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .facts { gap: 9px; }
  .fact { padding: 11px; }
}

/* ============================== where picker ============================= */
.wsearch { width: 100%; font: inherit; font-weight: 600; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); margin: 6px 0 12px; }
.wsearch:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.wlist { display: flex; flex-direction: column; max-height: 46dvh; overflow-y: auto; }
.wrow { display: flex; align-items: center; gap: 12px; text-align: left; padding: 9px 8px; border-radius: 12px; transition: background .13s; }
.wrow:hover { background: var(--wash); }
.wrow__ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--wash); display: grid; place-items: center; }
.wrow__ic svg { width: 18px; height: 18px; color: var(--accent); }
.wrow b { display: block; font-size: 14.5px; }
.wrow small { color: var(--faint); font-size: 12px; }
.wsec { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); padding: 12px 8px 4px; }
.wempty { color: var(--faint); font-size: 13.5px; padding: 8px; }

/* =========================== move-in cost card =========================== */
.costs { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 16px 10px; margin: 22px 0; }
.costs__title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); margin: 10px 0 2px; }
.costs__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.costs__row span { color: var(--sub); }
.costs__row b { font-weight: 700; text-align: right; }
.costs__row b.is-unknown { color: var(--amber); font-weight: 600; }
.costs__total { border-bottom: 0; border-top: 1.5px solid var(--ink); }
.costs__total b { font-family: var(--display); font-size: 17px; }
.costs__note { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 2px 0 8px; }

/* ========================= date-range calendar =========================== */
.cal__legend { display: flex; gap: 26px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.cal__legend span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); display: flex; flex-direction: column; gap: 3px; }
.cal__legend b { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }

.cal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 14px; }
.cal__month { flex: 1 1 232px; min-width: 232px; }
.cal__mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__mhead strong { font-size: 14.5px; font-weight: 700; }
.cal__nav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); font-size: 17px; line-height: 1; transition: background .14s var(--ease); }
.cal__nav:hover:not(:disabled) { background: var(--line); }
.cal__nav:disabled { opacity: .3; }
.cal__nav.is-ghost { visibility: hidden; }

.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow span { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: var(--faint); padding: 4px 0 6px; }
.cal__grid { row-gap: 2px; }

.cal__day { aspect-ratio: 1; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink); border-radius: 50%; position: relative; transition: background .12s var(--ease), color .12s var(--ease); }
.cal__day:hover:not(:disabled):not(.is-void) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal__day.is-void { pointer-events: none; }
.cal__day.is-off { color: var(--line-2); pointer-events: none; }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal__day.is-start, .cal__day.is-end { background: var(--ink); color: var(--bg); }
.cal__day.is-start.is-today::after, .cal__day.is-end.is-today::after { background: var(--bg); }
.cal__day.is-in { background: var(--wash); border-radius: 0; }

.cal__hint { font-size: 12.5px; color: var(--faint); line-height: 1.55; margin: 14px 0 0; }
.modal__apply:disabled { opacity: .45; }
.modal__apply:disabled:active { transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .06s !important; }
}
