:root {
  --paper: #eef1f0;
  --surface: #ffffff;
  --ink: #142126;
  --muted: #55646a;
  --line: #c9d2d0;
  --accent: #1d4a66;
  --accent-ink: #ffffff;
  --ledig: #1d7348;
  --snart: #8a5800;
  --udlejet: #66727a;
  --radius-img: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); font-size: 17px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* top */
.top { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.top-contact { color: var(--ink); font-weight: 500; }

/* forside */
.intro { padding: clamp(32px, 7vw, 88px) 0 clamp(28px, 5vw, 56px); max-width: 46rem; }
.intro h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 20px; }
.intro p { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 34rem; }
.rows { list-style: none; margin: 0 0 80px; padding: 0; border-top: 2px solid var(--ink); }
.row { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 4vw, 48px); padding: clamp(18px, 3vw, 32px) 0; color: inherit; text-decoration: none; align-items: center; }
.row-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius-img); }
.row-addr { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 14px 0 6px; }
.row a:hover .row-addr { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.row-city { margin: 0 0 14px; color: var(--muted); font-size: 1.1rem; }
.row-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.row-facts span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.row-rent { margin: 0; font-weight: 700; font-size: 1.15rem; }
.empty { padding: 40px 0 80px; color: var(--muted); }

/* status */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pill-ledig { color: var(--ledig); }
.pill-snart { color: var(--snart); }
.pill-udlejet { color: var(--udlejet); }

/* ejendomsside */
.prop-head { padding-top: clamp(16px, 4vw, 40px); padding-bottom: clamp(20px, 3vw, 32px); }
.crumb { margin: 0 0 18px; font-size: 0.95rem; }
.crumb a { color: var(--muted); }
.addr { font-size: clamp(2.6rem, 8.5vw, 6.4rem); line-height: 0.92; letter-spacing: -0.05em; font-weight: 800; margin: 0; text-wrap: balance; }
.city { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 10px 0 0; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; }
.lede { font-size: 1.2rem; max-width: 38rem; margin: 22px 0 0; }

.hero { display: grid; gap: 8px; position: relative; margin-bottom: clamp(28px, 5vw, 56px); }
.hero-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(320px, 52vw, 600px); }
.hero-3 .hero-btn:first-child { grid-row: 1 / 3; }
.hero-2 { grid-template-columns: 1fr 1fr; height: clamp(260px, 40vw, 520px); }
.hero-1 { height: clamp(260px, 52vw, 600px); }
.hero-btn { padding: 0; border: 0; background: var(--line); overflow: hidden; border-radius: var(--radius-img); min-height: 0; }
.hero-btn img { width: 100%; height: 100%; object-fit: cover; }
.all-photos { position: absolute; right: calc(var(--gutter) + 14px); bottom: 14px; background: var(--surface); border: 1px solid var(--ink); border-radius: 4px; padding: 8px 14px; font-weight: 600; font-size: 0.95rem; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: 80px; }
.block { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--line); max-width: 44rem; }
.block:last-child { border-bottom: 0; }
.block h2, .prose h2 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
.prose h2 { margin-top: 32px; }
.prose p { margin: 0 0 14px; }
.prose > :first-child { margin-top: 0; }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; column-gap: 32px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.ticks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.ticks li { padding: 6px 0 6px 26px; position: relative; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.85em; width: 12px; height: 6px; border-left: 2px solid var(--ledig); border-bottom: 2px solid var(--ledig); transform: rotate(-45deg); }

.plan { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-img); padding: 12px; }
.note { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.grid button { padding: 0; border: 0; background: var(--line); border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.grid button:hover img { opacity: .85; }

.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.docs li:last-child { border-bottom: 1px solid var(--line); }
.docs a { font-weight: 600; }
.docs span { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }

.side { position: sticky; top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 0 0 8px 8px; padding: 24px; }
.rent { margin: 14px 0 18px; display: flex; flex-direction: column; }
.rent-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rent-per { color: var(--muted); margin-top: 6px; }
.money { margin: 0 0 18px; }
.money div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.money dt { color: var(--muted); }
.money dd { margin: 0; font-weight: 600; }
.money .sum { border-top: 2px solid var(--ink); }
.money .sum dt { color: var(--ink); font-weight: 600; }
.avail { margin: 0 0 18px; }
.cta { display: block; text-align: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 15px 18px; border-radius: 6px; }
.cta:hover { background: #163a51; }
.phone { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d1518; color: #fff; }
.lb::backdrop { background: #0d1518; }
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.lb-close { background: none; border: 1px solid #ffffff55; color: #fff; border-radius: 4px; padding: 6px 14px; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 0 64px 20px; }
.lb figure img { max-height: calc(100dvh - 120px); width: auto; object-fit: contain; border-radius: 4px; }
.lb figcaption { padding-top: 10px; color: #c9d2d0; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: #ffffff1a; border: 0; color: #fff; width: 48px; height: 64px; font-size: 2rem; border-radius: 4px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { background: #ffffff33; }

/* footer */
.foot { border-top: 2px solid var(--ink); width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); margin: 0 auto; padding: 24px 0 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; }
.foot div { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot span { color: var(--muted); }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
  .row a { grid-template-columns: 1fr; }
  .hero-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: clamp(320px, 90vw, 560px); }
  .hero-3 .hero-btn:first-child { grid-row: auto; grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .ticks { columns: 1; }
  .lb figure { padding: 0 8px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .all-photos { right: calc(var(--gutter) + 10px); bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
