:root {
  color-scheme: light dark;
  /* Mursten-palette. Værdierne er appens egne — se Color.brandOrange og
     Color.appBackground i FIndHome/ContentView.swift. Holdes i sync, så
     site og app læses som ét mærke. ALDRIG grøn accent. */
  --bg: #F5F4F2;
  --fg: #2B2A27;
  --muted: #6C6A64;
  --card: #FFFFFF;
  --line: #E7E4DD;
  --accent: #A82438;
  --accent-soft: rgba(168, 36, 56, 0.09);
}

/* Mørke værdier ét sted, brugt to gange: når systemet siger mørk og
   brugeren ikke har valgt lys, og når brugeren selv vælger mørk. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161618;
    --fg: #ECE9E3;
    --muted: #A6A39C;
    --card: #212123;
    --line: #323235;
    --accent: #C93A4C;
    --accent-soft: rgba(201, 58, 76, 0.15);
  }
}

:root[data-theme="dark"] {
  --bg: #161618;
  --fg: #ECE9E3;
  --muted: #A6A39C;
  --card: #212123;
  --line: #323235;
  --accent: #C93A4C;
  --accent-soft: rgba(201, 58, 76, 0.15);
}

* { box-sizing: border-box; }

/* Skal stå FØR alt der sætter display. Ellers vinder fx .grid { display: grid }
   over hidden-attributten, og et "skjult" element bliver stående. */
[hidden] { display: none !important; }

/* Synlig fokus-markering på ALT der kan nås med tastatur.
   Flere steder i arket står "outline: none" på et inputfelt, fordi rammen
   ligger på beholderen. Uden dette kan en tastaturbruger ikke se, hvor de
   er — og det gælder også hvis nogen senere fjerner en outline et nyt sted. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16.5px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 0 80px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { margin: 0 0 9px; color: var(--fg); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); font-weight: 500; text-underline-offset: 2px; }

section {
  margin: 14px 0;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Intro/opdateret-dato lige efter h1 står frit, ikke i et kort */
main > p { color: var(--muted); }

main:not(.site) > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 28px 0 8px;
}

main:not(.site) > nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  background: var(--card);
}

main:not(.site) > nav a:hover { border-color: var(--accent); color: var(--accent); }

/* Diskret tilbage-til-oversigt-link i toppen af hvert dokument */
.back {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.back:hover { color: var(--accent); }



/* ═══════════════════════════════════════════════════════════════════════
   FORSIDEN

   Alt herunder er scoped til .site, så de juridiske dokumenter ovenfor
   er urørt. Farverne kommer fra de samme tokens, så en ændring i
   paletten rammer begge.

   Ingen JavaScript. Content-Security-Policy forbyder scripts helt, og
   alt herunder kan gøres i CSS alene — inklusive scroll-animationer og
   FAQ-udfoldning (<details>).
   ═══════════════════════════════════════════════════════════════════════ */

.site {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.wrap {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}
.wrap--narrow { width: min(760px, calc(100% - 44px)); }

/* ── Topbjælke ───────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
@supports not (backdrop-filter: blur(1px)) {
  .topbar { background: var(--bg); }
}

.topbar > .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand svg { width: 24px; height: 24px; color: var(--accent); }

.topbar .spacer { flex: 1; }

.topbar .pill {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 9vw, 104px) 0 clamp(20px, 4vw, 40px);
}

/* Brand-skær bag mærket. Samme greb som rolleskiftet i appen, så de to
   flader føles beslægtede. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 50%;
  translate: -50% 0;
  width: min(900px, 130%);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 42%,
              color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 8.5vw, 78px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 32ch;
  margin: 0 auto;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}


.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 620;
  font-size: 16px;
}
.badge-soon svg { width: 17px; height: 17px; }

.actions small { color: var(--muted); font-size: 13.5px; }

/* ── Telefonen ───────────────────────────────────────────────────────── */

.device {
  position: relative;
  width: min(330px, 78vw);
  margin: clamp(32px, 6vw, 56px) auto 0;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg,
              color-mix(in srgb, var(--fg) 22%, transparent),
              color-mix(in srgb, var(--fg) 8%, transparent));
  box-shadow: 0 32px 70px -28px color-mix(in srgb, var(--fg) 55%, transparent),
              0 2px 8px color-mix(in srgb, var(--fg) 12%, transparent);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

/* ── Sektioner ───────────────────────────────────────────────────────── */

.band { padding: clamp(56px, 9vw, 104px) 0; }
.band--tint { background: var(--card); border-block: 1px solid var(--line); }

.eyebrow-c {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.band h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 4.4vw, 40px);
  font-weight: 660;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Kun afsnit UDEN egen klasse. Reglen ramte før alt i et bånd og vandt på
   specificitet over fx .detail-price, så prisen blev tegnet dæmpet grå i
   stedet for i brandfarven. */
.band > .wrap > p:not([class]) {
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* Trinnene */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 30px 34px;
  margin-top: 44px;
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18.5px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.step p { margin: 0; color: var(--muted); line-height: 1.6; }

/* De to roller */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.card {
  padding: clamp(24px, 3.4vw, 34px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.band--tint .card { background: var(--bg); }

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.card > p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }

.ticks { margin: 0; padding: 0; list-style: none; }

.ticks li {
  position: relative;
  padding-left: 27px;
  margin-bottom: 9px;
  line-height: 1.5;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  rotate: -45deg;
  border-radius: 1px;
}

.note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.note strong { color: var(--fg); }

/* Sikkerhedsafsnittet skal veje mere end de andre — det er det eneste
   sted på siden hvor en læser kan tabe penge. */
.warn {
  margin-top: 34px;
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 20px;
}
.warn p { margin: 0 0 12px; line-height: 1.62; }
.warn p:last-child { margin-bottom: 0; }
.warn strong { color: var(--accent); }

/* FAQ — <details> klarer udfoldningen uden en linje JavaScript */
.faq { margin-top: 34px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 2px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  transition: rotate 0.2s;
}
.faq details[open] summary::after { rotate: -135deg; }
.faq summary:hover { color: var(--accent); }

.faq .answer { padding: 0 2px 20px; color: var(--muted); line-height: 1.62; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── Bund ────────────────────────────────────────────────────────────── */

.site-footer {
  padding: clamp(40px, 6vw, 64px) 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 22px;
}
.site-footer .links a { color: var(--fg); text-decoration: none; font-weight: 500; }
.site-footer .links a:hover { color: var(--accent); }
.site-footer p { margin: 0 0 5px; }

/* ── Bevægelse ───────────────────────────────────────────────────────────
   Indhold toner op når det kommer i syne. animation-timeline: view() er
   CSS alene — ingen IntersectionObserver, intet script. Browsere uden
   understøttelse springer animationen over og viser indholdet med det
   samme, hvilket er den rigtige fallback.
   ──────────────────────────────────────────────────────────────────────── */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes reveal {
      from { opacity: 0; translate: 0 22px; }
      to   { opacity: 1; translate: 0 0; }
    }
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   BOLIGSØGNING (/boliger)
   ═══════════════════════════════════════════════════════════════════════ */

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.band--search { padding-top: clamp(30px, 5vw, 52px); }

.search-h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 670;
  letter-spacing: -0.03em;
}

.search-lede {
  max-width: 54ch;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  height: 54px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.searchbar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.searchbar svg { flex: none; width: 19px; height: 19px; color: var(--muted); }

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 16.5px;
}
.searchbar input:focus { outline: none; }
.searchbar input::-webkit-search-cancel-button { filter: grayscale(1) opacity(0.5); }

.search-status {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.listing {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.listing:hover { border-color: var(--accent); transform: translateY(-2px); }
.listing:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.listing-media {
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Uden billede skal kortet ikke kollapse — mærket står i stedet */
.listing-media--empty {
  background:
    radial-gradient(circle at 50% 46%,
      color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%),
    color-mix(in srgb, var(--fg) 6%, transparent);
}

.listing-body { padding: 15px 17px 18px; }

.listing-price {
  margin: 0 0 4px;
  font-size: 18.5px;
  font-weight: 660;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.listing-price span { font-size: 14px; font-weight: 500; color: var(--muted); }

.listing-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 580;
  letter-spacing: -0.005em;
  /* Annoncetitler er brugerskrevne og kan være lange — to linjer, så
     kortene i rækken beholder samme højde. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-where,
.listing-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.listing-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta { margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ── Detalje-arket ───────────────────────────────────────────────────── */

.sheet {
  width: min(620px, calc(100% - 28px));
  max-height: min(88vh, 940px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.sheet::backdrop { background: rgb(0 0 0 / 0.45); backdrop-filter: blur(3px); }

.sheet-inner { position: relative; max-height: inherit; overflow-y: auto; }

.sheet-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 54px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  color: var(--fg);
  cursor: pointer;
}
.sheet-close svg { width: 16px; height: 16px; }

.sheet-body { padding: 0 clamp(18px, 3.6vw, 28px) clamp(22px, 3.6vw, 30px); }

.gallery {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * clamp(18px, 3.6vw, 28px)) 20px;
  padding: 0 clamp(18px, 3.6vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery img {
  flex: none;
  width: min(300px, 78%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
}

.sheet-head { margin-bottom: 20px; }
.sheet-head .listing-price { font-size: 24px; }
.sheet-head h2 {
  margin: 4px 0 4px;
  font-size: 23px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}
.facts dt,
.facts dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.facts dt { color: var(--muted); padding-right: 22px; }
.facts dd { text-align: right; font-weight: 520; }

.sheet-desc {
  margin: 0 0 20px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.sheet-cta {
  margin: 0;
  padding: 15px 17px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
}

.pill--link { text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.pill--link:hover { color: var(--accent); border-color: var(--accent); }

.ghost {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 560;
  font-size: 15.5px;
  text-decoration: none;
}
.ghost:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Filtre på søgesiden ─────────────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin-top: 14px;
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field > span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-left: 2px;
}

.field select {
  appearance: none;
  padding: 10px 34px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  /* Pilen tegnes i baggrunden, så vi ikke behøver et ikon-element. Farven
     er hårdkodet grå, fordi en data-URI ikke kan læse CSS-variabler — den
     fungerer på både lys og mørk flade. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8781' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
}
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.clear {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}
.clear:hover { border-color: var(--accent); color: var(--accent); }

.search-count {
  margin: 22px 0 0;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.search-count + .search-status { margin-top: 10px; }

/* ── Sociale links i bunden ──────────────────────────────────────────── */

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 20px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 17px; height: 17px; flex: none; }

/* ═══════════════════════════════════════════════════════════════════════
   FORSIDEN, SØGE-FØRST

   Det første man møder er en søgning og rigtige boliger — ikke en
   app-knap. Derfor er heltemotivet lavere, venstrestillet og tættere på
   indholdet under det.
   ═══════════════════════════════════════════════════════════════════════ */

.hero--search { padding: clamp(34px, 6vw, 76px) 0 clamp(24px, 3.4vw, 40px); }

.hero--search h1 {
  max-width: 16ch;
  margin: 0 0 14px;
  font-size: clamp(36px, 6.6vw, 62px);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero--search .lede {
  max-width: 48ch;
  margin: 0 0 26px;
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  padding: 6px 6px 6px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -22px color-mix(in srgb, var(--fg) 70%, transparent);
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft),
              0 10px 30px -22px color-mix(in srgb, var(--fg) 70%, transparent);
}
.hero-search > svg { flex: none; width: 20px; height: 20px; color: var(--muted); }

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
}
.hero-search input:focus { outline: none; }

.hero-search button {
  flex: none;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 620;
  cursor: pointer;
}
.hero-search button:hover { filter: brightness(1.08); }

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 9px;
  margin-top: 18px;
}
.cities a {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 520;
  text-decoration: none;
}
.cities a:hover { border-color: var(--accent); color: var(--accent); }

/* Boligrækken skal ligge tæt på søgningen — den er sidens indhold */
.band--flush { padding-top: clamp(18px, 2.6vw, 30px); }

.row-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.row-head h2 { margin: 0; font-size: clamp(21px, 3vw, 27px); }
.row-head .ghost { margin-left: auto; white-space: nowrap; }

.empty-note {
  max-width: 54ch;
  margin: 18px 0 0;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 16px;
  line-height: 1.6;
  color: var(--fg);
}

/* App-afsnittet nederst: tekst og telefon side om side */
.band--app { border-top: 1px solid var(--line); }

.app-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.app-split .device { margin: 0; width: min(290px, 82%); }
.app-split h2 { margin-bottom: 14px; }
.app-note { margin: 18px 0 16px; font-size: 14.5px; color: var(--muted); }
.band--app .badge-soon { margin: 0; }

/* Bunden: selskabet skal stå tydeligt adskilt fra produktet. Kara
   Technologies driver flere tjenester; Mursten er én af dem. */
.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.site-footer .legal strong { color: var(--fg); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   KORT
   ═══════════════════════════════════════════════════════════════════════ */

.viewbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.viewbar .search-count { margin: 0; }

.viewtoggle {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.viewtoggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 560;
  cursor: pointer;
}
.viewtoggle button svg { width: 16px; height: 16px; }
.viewtoggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.mapview {
  height: clamp(420px, 62vh, 720px);
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}
.mapview.map-failed {
  display: grid;
  place-items: center;
  padding: 24px;
  height: auto;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

/* Prisen som markør. Et tal er mere brugbart end en nål, når man leder
   efter noget man har råd til. */
.pin {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.28);
  cursor: pointer;
}
.pin--dot {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 3px solid #fff;
}

.sheet-map {
  height: 230px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.map-note {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Sprogvælger i topbjælken */
.langtoggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  margin-right: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.langtoggle button {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 660;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.langtoggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ── Genereret boligside ─────────────────────────────────────────────── */

.band--listing { padding-top: clamp(22px, 4vw, 40px); }

.crumbs {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 4px; }

.band--listing h1 {
  margin: 0 0 6px;
  font-size: clamp(27px, 4.4vw, 38px);
  font-weight: 660;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.band--listing .listing-where {
  margin: 0 0 14px;
  font-size: 16.5px;
  white-space: normal;
}

.detail-price {
  margin: 0 0 26px;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.gallery--page { margin: 0 0 28px; padding: 0; }
.gallery--page img { width: min(360px, 84%); }

.band--listing h2 {
  margin: 30px 0 12px;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.band--listing .ticks { margin-bottom: 8px; }

.back-link { margin: 30px 0 0; font-size: 15px; }
.back-link a { color: var(--accent); text-decoration: none; font-weight: 550; }
.back-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Kortene er links — fjern standardstilen, behold semantikken */
a.listing { text-decoration: none; color: inherit; }

.sheet-h {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.sheet-body .ticks { margin-bottom: 6px; }
.sheet-body .back-link { margin: 24px 0 20px; }

/* "Ny" på en annonce lagt op inden for tre dage */
.listing-media { position: relative; }
.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.22);
}


:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Tilstandsvælger i topbjælken */
.themetoggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  margin-right: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.themetoggle button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.themetoggle button svg { width: 15px; height: 15px; }
.themetoggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Et fritstående note-afsnit uden for et kort */
.note--standalone {
  max-width: 60ch;
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
  font-size: 16px;
}
