/* homehunt.ch — design system
   One blue (#1F4E79), warm neutrals, Hanken Grotesk + JetBrains Mono.
   Tokens mirror the brand colors.css. */

:root {
  --hh-blue: #1F4E79;
  --hh-blue-press: #173A5A;
  --hh-blue-tint: #ECF1F6;

  --hh-ink: #1C1C1A;
  --hh-ink-2: #57544E;
  --hh-muted: #8A867E;

  --hh-canvas: #FAFAF9;
  --hh-surface: #FFFFFF;
  --hh-surface-2: #F4F3F1;
  --hh-line: #E7E5E1;

  --hh-success: #2E7D5B;
  --hh-danger: #B23A48;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 28, 26, 0.06);
  --shadow: 0 6px 24px rgba(28, 28, 26, 0.08);
  --shadow-lg: 0 18px 50px rgba(28, 28, 26, 0.12);

  --font-ui: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--hh-ink);
  background: var(--hh-canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--hh-blue); text-decoration: none; }
a:hover { color: var(--hh-blue-press); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
small { color: var(--hh-muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- layout */
.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.muted { color: var(--hh-muted); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hh-blue);
}
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* -------------------------------------------------------------------- nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hh-line);
}
.site-header__bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}
.brand-lockup { height: 30px; width: auto; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--hh-ink-2); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--hh-ink); }
.site-nav .active { color: var(--hh-blue); }
.nav-toggle { display: none; }

/* --- richer brand lockup + nav actions (reference home) --- */
.brand { display: flex; align-items: center; gap: .55rem; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; display: block; flex-shrink: 0; }
.brand__word { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--hh-ink); }
.brand__word .tld { color: var(--hh-blue); }

.site-header__bar { gap: 1.4rem; }
.primary-nav { display: flex; gap: 1.5rem; align-items: center; margin-left: .8rem; }
.primary-nav a { color: var(--hh-ink-2); font-weight: 600; font-size: .96rem; }
.primary-nav a:hover { color: var(--hh-ink); }
.primary-nav a.active { color: var(--hh-blue); }

.site-actions { display: flex; align-items: center; gap: .85rem; margin-left: auto; }
.lang { position: relative; }
.lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; color: var(--hh-ink-2); font-weight: 600; font-size: .9rem; padding: .4rem .2rem; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary svg { width: 16px; height: 16px; }
.lang__menu { position: absolute; right: 0; top: 110%; background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .35rem; min-width: 150px; z-index: 60; }
.lang__menu a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: 7px; font-size: .9rem; font-weight: 600; color: var(--hh-ink-2); }
.lang__menu a:hover { background: var(--hh-surface-2); }
.lang__menu a.is-active { color: var(--hh-blue); }
.lang__menu a .soon { font-size: .68rem; color: var(--hh-muted); font-weight: 600; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--hh-ink-2); position: relative; }
.icon-btn:hover { background: var(--hh-surface-2); color: var(--hh-ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--hh-blue); border: 2px solid var(--hh-canvas); }
.signin-link { font-weight: 600; font-size: .95rem; color: var(--hh-ink); }
.list-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .85rem; border: 1px solid var(--hh-line); border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--hh-ink); background: var(--hh-surface); }
.list-btn:hover { border-color: var(--hh-blue); color: var(--hh-blue); }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hh-line); display: grid; place-items: center; color: var(--hh-ink-2); background: var(--hh-surface); }
.avatar-btn:hover { border-color: var(--hh-blue); color: var(--hh-blue); }
.avatar-btn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  background: var(--hh-surface-2); color: var(--hh-ink);
}
.btn:hover { background: var(--hh-line); }
.btn--primary { background: var(--hh-blue); color: #fff; }
.btn--primary:hover { background: var(--hh-blue-press); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--hh-line); }
.btn--ghost:hover { background: var(--hh-surface-2); }
.btn--block { width: 100%; }
.btn--sm { padding: .45rem .8rem; font-size: .85rem; }

/* ------------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .65rem; border-radius: 999px;
  background: var(--hh-surface-2); border: 1px solid var(--hh-line);
  font-size: .82rem; color: var(--hh-ink-2); font-weight: 600;
}
.chip--blue { background: var(--hh-blue-tint); border-color: transparent; color: var(--hh-blue); }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 6px;
}
.tag--rent { background: var(--hh-blue-tint); color: var(--hh-blue); }
.tag--sale { background: var(--hh-surface-2); color: var(--hh-ink-2); }

/* ------------------------------------------------------------------- forms */
label { font-size: .82rem; font-weight: 600; color: var(--hh-ink-2); display: block; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; font-family: var(--font-ui); font-size: .95rem; color: var(--hh-ink);
  padding: .6rem .7rem; border: 1px solid var(--hh-line); border-radius: var(--radius-sm);
  background: var(--hh-surface); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--hh-blue);
  box-shadow: 0 0 0 3px var(--hh-blue-tint);
}
.field { margin-bottom: .9rem; }
.field--error input, .field--error select { border-color: var(--hh-danger); }
.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--hh-danger); font-size: .82rem; }
.helptext { font-size: .78rem; color: var(--hh-muted); margin-top: .25rem; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--hh-surface); border: 1px solid var(--hh-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel {
  background: var(--hh-surface); border: 1px solid var(--hh-line);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2rem);
}

/* --------------------------------------------------------------- listing card */
.listing-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.listing {
  display: flex; flex-direction: column; background: var(--hh-surface);
  border: 1px solid var(--hh-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.listing:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listing__media { position: relative; aspect-ratio: 3 / 2; background: var(--hh-surface-2); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; }
.listing__media-empty {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--hh-muted); background: var(--hh-blue-tint);
}
.listing__media-empty svg { width: 44px; height: 44px; opacity: .55; }
.listing__badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .4rem; }
.listing__fav {
  position: absolute; top: .55rem; right: .55rem; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 999px; border: none;
  background: rgba(255,255,255,.9); cursor: pointer; box-shadow: var(--shadow-sm);
}
.listing__fav svg { width: 18px; height: 18px; stroke: var(--hh-ink-2); fill: none; }
.listing__fav.is-on svg { fill: var(--hh-blue); stroke: var(--hh-blue); }
.listing__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.listing__price { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--hh-ink); }
.listing__price span { font-size: .8rem; color: var(--hh-muted); font-weight: 500; }
.listing__title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.listing__title a { color: var(--hh-ink); }
.listing__title a:hover { color: var(--hh-blue); }
.listing__meta { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--hh-ink-2); font-size: .85rem; margin-top: auto; }
.listing__meta b { font-family: var(--font-mono); font-weight: 600; color: var(--hh-ink); }
.listing__loc { color: var(--hh-muted); font-size: .85rem; }

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero__title { max-width: 16ch; }
.hero__lead { font-size: 1.15rem; color: var(--hh-ink-2); max-width: 52ch; }

/* Photo hero — full-bleed image with a legibility overlay and white text. */
.hero--photo {
  position: relative;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 62%;
  color: #fff;
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.2rem, 5vw, 4rem);
  margin-top: -1px;
}
.hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(177deg, rgba(20,28,38,.62) 0%, rgba(20,28,38,.30) 38%, rgba(20,28,38,.72) 100%);
}
.hero--photo > .wrap { position: relative; z-index: 1; }
.hero--photo .hero__title { color: #fff; text-shadow: 0 1px 30px rgba(0,0,0,.25); }
.hero--photo .hero__lead { color: rgba(255,255,255,.92); }
.hero--photo .eyebrow { color: #BFD4E8; }
.hero--photo .stat b { color: #fff; }
.hero--photo .stat span { color: rgba(255,255,255,.78); }
.hero--photo .searchbar { box-shadow: var(--shadow-lg); }
.searchbar {
  margin-top: 1.8rem; background: var(--hh-surface); border: 1px solid var(--hh-line);
  border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow);
}
.searchbar__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .7rem; align-items: end; }
.seg { display: inline-flex; background: var(--hh-surface-2); border-radius: 999px; padding: .25rem; gap: .2rem; margin-bottom: 1rem; }
.seg button, .seg a {
  border: none; background: transparent; padding: .4rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--hh-ink-2); cursor: pointer;
}
.seg .is-on { background: var(--hh-surface); color: var(--hh-blue); box-shadow: var(--shadow-sm); }

/* ============================ reference home hero ============================ */
.home-hero { position: relative; overflow: hidden; background: var(--hh-canvas); }
.home-hero__media {
  position: absolute; left: 0; right: 0; top: -14%; height: 128%; z-index: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: right center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* White-to-transparent fade so the left content stays readable on canvas. */
.home-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--hh-canvas) 0%, var(--hh-canvas) 30%,
    rgba(250,250,249,.92) 42%, rgba(250,250,249,.55) 58%, rgba(250,250,249,0) 76%);
}
.home-hero__inner { position: relative; z-index: 1; padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2.4rem, 5vw, 4rem); }
.home-hero__content { max-width: 720px; }

.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--hh-surface); border: 1px solid var(--hh-line);
  color: var(--hh-blue); font-weight: 600; font-size: .85rem;
  padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.badge svg { width: 15px; height: 15px; }
.home-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.7rem); line-height: 1.04; margin: 1.1rem 0 0;
  letter-spacing: -0.03em; max-width: 16ch;
}
.home-hero h1 .accent { color: var(--hh-blue); }
.home-hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--hh-ink-2); margin-top: 1.1rem; max-width: 46ch; }

/* search panel */
.searchpanel {
  margin-top: 1.8rem; background: var(--hh-surface); border: 1px solid var(--hh-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 760px; overflow: hidden;
}
.searchpanel__tabs { display: flex; gap: .25rem; padding: .35rem .9rem 0; border-bottom: 1px solid var(--hh-line); }
.searchpanel__tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: .98rem; color: var(--hh-ink-2);
  padding: .85rem .65rem; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.searchpanel__tab:hover { color: var(--hh-ink); }
.searchpanel__tab.is-active { color: var(--hh-blue); border-bottom-color: var(--hh-blue); }
.searchpanel__form { padding: 1.1rem; }
.searchpanel__row { display: grid; grid-template-columns: 2fr 1.1fr 1.1fr auto; gap: .8rem; align-items: end; }
.searchpanel__row label { font-size: .78rem; font-weight: 700; color: var(--hh-ink-2); margin-bottom: .35rem; }
.searchpanel .input-icon { position: relative; }
.searchpanel .input-icon svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--hh-muted); pointer-events: none; }
.searchpanel .input-icon input { padding-left: 2.1rem; }
.searchpanel__form .btn { height: 46px; padding-inline: 1.4rem; }
.searchpanel__popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .9rem; }
.searchpanel__popular .label { font-size: .82rem; color: var(--hh-muted); font-weight: 600; }
.pop-chip { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--hh-line); background: var(--hh-surface); font-size: .85rem; font-weight: 600; color: var(--hh-ink-2); }
.pop-chip:hover { border-color: var(--hh-blue); color: var(--hh-blue); }

/* hero stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.6rem; margin-top: 1.8rem; }
.hero-stats .stat b { font-family: var(--font-mono); font-size: 1.7rem; display: block; color: var(--hh-ink); letter-spacing: -0.01em; }
.hero-stats .stat span { color: var(--hh-muted); font-size: .85rem; }

@media (max-width: 860px) {
  .home-hero__media::after { background: linear-gradient(180deg, rgba(250,250,249,.82) 0%, rgba(250,250,249,.9) 55%, var(--hh-canvas) 100%); }
  .searchpanel__row { grid-template-columns: 1fr 1fr; }
  .searchpanel__form .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .searchpanel__row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- stat strip */
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.stat b { font-family: var(--font-mono); font-size: 1.6rem; display: block; color: var(--hh-blue); }
.stat span { color: var(--hh-muted); font-size: .85rem; }

/* ------------------------------------------------------------ canton links */
.canton-links { display: flex; flex-wrap: wrap; gap: .55rem; }

/* ===================== buy/search: filters above, map right ================= */
.search-page { --hdr: 68px; --fbar: 74px; }
.filterbar {
  position: sticky; top: var(--hdr); z-index: 30;
  background: var(--hh-surface); border-bottom: 1px solid var(--hh-line);
  box-shadow: var(--shadow-sm);
}
.filterbar__inner {
  display: flex; gap: .55rem; align-items: center;
  padding: .8rem clamp(1rem, 3vw, 2rem); flex-wrap: nowrap; overflow-x: auto;
}
.filterbar__inner::-webkit-scrollbar { height: 0; }
.filterbar__inner > * { flex: 0 0 auto; }
.filterbar .seg { margin: 0; }
.filterbar input, .filterbar select { height: 42px; padding-block: 0; background: var(--hh-surface); }
.filterbar .f-where { position: relative; flex: 1 1 240px; min-width: 190px; }
.filterbar .f-where svg { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--hh-muted); }
.filterbar .f-where input { padding-left: 2rem; width: 100%; }
.filterbar .f-num { width: 104px; }
.filterbar .f-sel { width: 144px; }
.filterbar .f-sel > select, .filterbar .f-num > input { width: 100%; }
.filterbar .btn { height: 42px; }
.filterbar label.fb-lbl { display: block; font-size: .68rem; font-weight: 700; color: var(--hh-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .15rem .1rem; }

.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0 .7rem; flex-wrap: wrap;
}
.results-bar h1 { font-size: 1.15rem; margin: 0; }
.results-bar .muted { font-weight: 500; }

.search-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
@media (min-width: 1500px) { .search-split { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); } }
.search-list { padding: 0 clamp(1rem, 3vw, 2rem) 2.5rem; }
.search-list .listing-grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 1rem; }
.search-map {
  position: sticky; top: calc(var(--hdr) + var(--fbar));
  height: calc(100vh - var(--hdr) - var(--fbar));
  border-left: 1px solid var(--hh-line); background: var(--hh-surface-2);
}
.search-map #map { width: 100%; height: 100%; }

/* price-pill markers */
.price-pin {
  display: inline-block; transform: translate(-50%, -100%);
  background: var(--hh-surface); color: var(--hh-blue);
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
  padding: .25rem .5rem; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--hh-blue); box-shadow: var(--shadow);
  cursor: pointer;
}
.price-pin.is-active, .price-pin:hover { background: var(--hh-blue); color: #fff; }
.leaflet-popup-content { margin: 0; }
.map-pop { width: 210px; }
.map-pop img { width: 100%; height: 116px; object-fit: cover; display: block; }
.map-pop__b { padding: .5rem .65rem .6rem; }
.map-pop__price { font-family: var(--font-mono); font-weight: 700; color: var(--hh-ink); }
.map-pop__title { font-size: .85rem; font-weight: 600; color: var(--hh-ink); line-height: 1.25; margin-top: .15rem; }
.map-pop__loc { font-size: .78rem; color: var(--hh-muted); }

.map-toggle-mobile { display: none; }

@media (max-width: 980px) {
  .search-split { grid-template-columns: 1fr; }
  .search-map { display: none; }
  .search-map.is-shown { display: block; position: fixed; inset: var(--hdr) 0 0 0; height: auto; z-index: 40; border: none; }
  .map-toggle-mobile { display: inline-flex; }
}

/* legacy left-sidebar layout (kept for reference, unused) */
.results-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.4rem; align-items: start; }
.filters { position: sticky; top: 84px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results-head h1 { font-size: 1.3rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 0; gap: 0; }
.map-pane { position: sticky; top: 84px; height: calc(100vh - 104px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hh-line); }
#map, #detail-map { width: 100%; height: 100%; }
#detail-map { height: 340px; border-radius: var(--radius); }
.with-map { grid-template-columns: 1fr 1fr; }
.with-map .listing-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* --------------------------------------------------------------- detail page */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; gap: .5rem; border-radius: var(--radius-lg); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery > :first-child { grid-row: span 2; grid-column: 1; }
.gallery--single { grid-template-columns: 1fr; grid-auto-rows: clamp(280px, 45vw, 460px); }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; margin-top: 1.8rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--hh-line); border: 1px solid var(--hh-line); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--hh-surface); padding: .9rem 1rem; }
.spec b { font-family: var(--font-mono); font-size: 1.1rem; display: block; }
.spec span { color: var(--hh-muted); font-size: .8rem; }
.amenities { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-card { position: sticky; top: 84px; }
.price-big { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--hh-ink); }
.price-big span { font-size: 1rem; color: var(--hh-muted); font-weight: 500; }

/* ----------------------------------------------------- list-a-property form */
.amenities-pick ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.amenities-pick li { margin: 0; }
.amenities-pick label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem; color: var(--hh-ink-2); background: var(--hh-surface-2); border: 1px solid var(--hh-line); border-radius: 999px; padding: .35rem .7rem; cursor: pointer; margin: 0; }
.amenities-pick input { width: auto; }
.amenities-pick input:checked + span,
.amenities-pick label:has(input:checked) { color: var(--hh-blue); }
.img-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.img-preview__item { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hh-line); }
.img-preview__item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview__item .cover-tag { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 700; text-transform: uppercase; background: var(--hh-blue); color: #fff; padding: .1rem .35rem; border-radius: 5px; }

/* --------------------------------------------------------------- video block */
.video-block { margin-top: .8rem; }
.video-block video { width: 100%; border-radius: var(--radius); background: #000; display: block; max-height: 460px; }
.detail-video-tag { display: inline-flex; align-items: center; gap: .35rem; }

/* play badge on gallery cover when a listing has video */
.has-video-badge { position: absolute; left: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .4rem; background: rgba(18,18,16,.66); color: #fff; font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.has-video-badge svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ lightbox */
.gallery img, .lightbox-trigger { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(16,18,22,.93); align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; border-radius: 999px; display: grid; place-items: center; }
.lightbox__close { top: 1.1rem; right: 1.2rem; width: 44px; height: 44px; font-size: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.6rem; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__count { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-family: var(--font-mono); font-size: .85rem; }

/* ------------------------------------------------------------------ alerts */
.messages { position: fixed; top: 80px; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: 360px; }
.toast { padding: .75rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .9rem; background: var(--hh-surface); border-left: 4px solid var(--hh-blue); }
.toast.success { border-color: var(--hh-success); }
.toast.error { border-color: var(--hh-danger); }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--hh-line); background: var(--hh-surface); margin-top: 3rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer a { color: var(--hh-ink-2); display: block; padding: .2rem 0; font-size: .92rem; }
.site-footer a:hover { color: var(--hh-blue); }
.site-footer__legal { border-top: 1px solid var(--hh-line); padding: 1.2rem 0; color: var(--hh-muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- utilities */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--hh-muted); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; align-items: center; }
.pagination a, .pagination span { padding: .5rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--hh-line); font-size: .9rem; font-family: var(--font-mono); }
.pagination .current { background: var(--hh-blue); color: #fff; border-color: var(--hh-blue); }
.prose { max-width: 70ch; }
.prose p { color: var(--hh-ink-2); }
.divider { height: 1px; background: var(--hh-line); border: none; margin: 1.5rem 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .map-pane { display: none; }
  .with-map { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .searchbar__row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery > :first-child { grid-column: span 2; grid-row: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--hh-surface); border-bottom: 1px solid var(--hh-line); padding: 1rem; gap: 1rem; }
  .site-nav.open { display: flex; }
  .searchbar__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery > :first-child { grid-column: auto; }
  .stats { gap: 1.5rem; }
}
