/* Budkoll. Ett typsnitt, hårfina linjer, mycket luft. Foton och prislinjalen bär sidan. */
/* Geist (variabel, SIL OFL) ligger på egen domän. Reservtypsnittet är Arial justerat till Geists mått så att texten inte hoppar när Geist laddats. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104.45%; ascent-override: 96.22%; descent-override: 28.24%; line-gap-override: 0%; }
:root {
  --ink: #111417;
  --text: #24292D;
  --muted: #646C72;
  --faint: #697076; /* minst 4,5:1 mot både vit och --soft */
  --line: #E4E6E3;
  --bg: #FFFFFF;
  --soft: #F5F5F2;
  --accent: #2B55E6;
  --accent-soft: #E8EDFD;
  --red: #CC3A3F;
  --green: #1D7F4E;
  --amber: #A56300;
  --f: "Geist", "Geist Fallback", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --r: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; font-weight: 500; height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2A3035; }
.btn--secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--secondary:hover { border-color: var(--muted); }
.btn--lg { height: 56px; padding: 0 26px; font-size: 17.5px; border-radius: 10px; gap: 10px; }
.btn svg { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.all-link { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 32px; height: 56px; border: 1px solid var(--line); border-radius: 10px; font-size: 16.5px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.all-link:hover { border-color: var(--muted); background: var(--soft); }
.all-link svg { width: 18px; height: 18px; transition: transform .15s; }
.all-link:hover svg { transform: translateX(3px); }
.more { font-weight: 500; text-decoration: none; color: var(--accent); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand b { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Home hero */
.hero { padding-block: 72px 0; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.035em; max-width: 17ch; }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 58ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { margin-top: 20px; font-size: 15px; color: var(--muted); }
.figure { margin: 56px 0 0; }
.figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); }
.figure figcaption, .credit { margin-top: 10px; font-size: 13px; color: var(--faint); }
.figure figcaption a, .credit a { text-decoration: none; }
.figure figcaption a:hover, .credit a:hover { text-decoration: underline; }

/* Sections */
.section { padding-block: 96px; }
.section + .section { border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); border-top: 0 !important; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.sec-head p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
.card__img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__img .tag { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(17,20,23,.6); padding: 3px 8px; border-radius: 5px; }
.card:hover .card__img img { transform: scale(1.03); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 21px; }
.card .meta { font-size: 14.5px; color: var(--muted); margin-top: -10px; }
.card .est { margin-top: 4px; }
.card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14.5px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Verdict as plain coloured text */
.verdict { font-size: 14px; font-weight: 500; white-space: nowrap; }
.verdict.good { color: var(--green); }
.verdict.fair { color: var(--muted); }
.verdict.high { color: var(--red); }
.verdict.sold { justify-self: start; color: #fff; background: var(--ink); padding: 2px 8px; border-radius: 5px; font-size: 13px; }

/* Valuation chart */
.est { position: relative; }
.est__stage { position: relative; border-bottom: 1px solid var(--ink); }
.est--mini .est__stage { height: 30px; border-bottom-color: #C9CDCB; }
.est--big .est__stage { height: calc(var(--rows) * 30px + 92px); }
.est__curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30px; overflow: visible; }
.est--big .est__curve { height: 92px; }
.est__line { position: absolute; bottom: 0; width: 0; top: 0; border-left: 1.5px solid var(--ink); transform: translateX(-.75px); }
/* Streckad med gradient, inte border: iOS Safari tappar de flesta strecken i en streckad border på ett element utan bredd. */
.est__line.max { border-left: 0; width: 1.5px; background: repeating-linear-gradient(to bottom, var(--red) 0 4px, transparent 4px 7px); }
.est__line.bid { border-left-color: var(--amber); }
.est--big .est__line { top: calc(var(--row) * 30px + 26px); }
.est--big .est__line::after { content: ""; position: absolute; left: -4.5px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.est--big .est__line.max::after { left: -2.75px; background: var(--red); }
.est--big .est__line.bid::after { background: var(--amber); }
.est__tag { position: absolute; top: calc(var(--row) * 30px); transform: translateX(-50%); height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; background: var(--ink); color: rgba(255,255,255,.75); }
.est__tag b { color: #fff; font-weight: 600; }
.est__tag.max { background: #FBEAEA; color: #A8474B; }
.est__tag.max b { color: #B83338; } /* mörkare än --red: 4,5:1 mot den rosa etiketten */
.est__tag.bid { background: #FDF1DE; color: #8A5A10; }
.est__tag.bid b { color: var(--amber); }
.est__line.sold { border-left: 2px solid var(--green); }
.est--big .est__line.sold::after { background: var(--green); }
.est__tag.sold { background: #E4F2EA; color: #1B5E3D; }
.est__tag.sold b { color: #17663F; }
.est__tag.l { transform: translateX(-12px); }
.est__tag.r { transform: translateX(calc(-100% + 12px)); }
.est__axis { position: relative; height: 30px; }
.est__axis i { position: absolute; top: 0; width: 1px; height: 4px; background: #B9BEBB; }
.est__axis i.M { height: 7px; background: var(--ink); }
.est__axis span { position: absolute; top: 10px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.est__axis em { position: absolute; right: 0; top: 10px; transform: translateX(calc(100% + 8px)); font-style: normal; font-size: 12px; color: var(--faint); }
.est__range { position: absolute; bottom: 0; height: 34px; border-top: 1.5px solid var(--accent); }
.est__range::before, .est__range::after { content: ""; position: absolute; top: -5px; width: 1.5px; height: 9px; background: var(--accent); }
.est__range::before { left: 0; } .est__range::after { right: 0; }
.est__range span { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font-size: 13px; color: var(--accent); white-space: nowrap; }
.est__range span b { font-weight: 600; }
.est--big { padding-bottom: 38px; }
.est--big .est__axis { margin-bottom: 0; }

/* Explainer for the ruler */
.explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.explain .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 52px 24px 28px; }
.explain .panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.explain .panel-title b { font-size: 17px; color: var(--ink); font-weight: 600; }
.keys { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.keys li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; }
.keys i { display: inline-block; justify-self: center; }
.keys .k-ask { width: 2px; height: 16px; background: var(--ink); }
.keys .k-band { width: 24px; height: 12px; border-radius: 12px 12px 0 0; background: linear-gradient(rgba(43,85,230,.3), rgba(43,85,230,.06)); border: 1.5px solid var(--accent); border-bottom: 0; }
.keys .k-max { width: 0; height: 16px; border-left: 1.5px dashed var(--red); }
.keys b { color: var(--ink); font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Signup */
.signup { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.signup h2 { font-size: 26px; letter-spacing: -0.025em; }
.signup p { color: var(--muted); margin-top: 6px; }
.signup > div { flex: 1 1 360px; }
.signup form { display: flex; gap: 8px; flex: 0 1 440px; }
.signup input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.signup input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.signup .ok { font-weight: 500; color: var(--green); }

/* Kontaktformulär (/om#kontakt) */
.contact { display: grid; gap: 6px; margin-top: 20px; }
.contact label { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 10px; }
.contact label span { font-weight: 400; color: var(--muted); }
.contact textarea, .contact input { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.contact textarea { resize: vertical; min-height: 140px; }
.contact input { height: 46px; }
.contact textarea:focus, .contact input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.contact .btn { justify-self: start; margin-top: 14px; }
.contact .btn:disabled { opacity: .6; cursor: default; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__status { font-size: 15px; color: var(--muted); min-height: 1.6em; }
.contact__status.err { color: var(--red); }
.contact .ok { font-weight: 500; color: var(--green); }

/* Page header for inner pages */
.page-head { padding-block: 64px 40px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -0.035em; }
.page-head p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 60ch; }

/* List page */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14.5px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters select { font: inherit; font-size: 14.5px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.filters .search { flex: 0 1 240px; min-width: 0; height: 40px; padding: 0 16px; font: inherit; font-size: 15.5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.filters .search:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.filters .search + .chips { margin-right: auto; }
.rows { display: grid; padding-bottom: 64px; }
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr) 250px; gap: 32px; padding-block: 32px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; }
.row:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.row .card__img { aspect-ratio: 4 / 3; }
.row :is(h2, h3) { font-size: 24px; }
.sold-list { margin-top: 72px; }
.sold-list > h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.sold-list > p { margin-top: 8px; }
.sold-list .row h3 { font-size: 22px; }
.row .meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.row .lede { margin-top: 12px; }
.row .side { display: grid; gap: 12px; }
.row .side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.row .side dt { color: var(--muted); }
.row .side dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); }
.empty { padding: 48px 0; color: var(--muted); }

/* Object page */
.obj-head { padding-block: 40px 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.obj-head h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.035em; margin-top: 10px; }
.obj-head .meta { margin-top: 8px; color: var(--muted); font-size: 17px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-top: 32px; height: clamp(300px, 46vw, 540px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--soft); }
.gallery figure:first-child { grid-row: 1 / 3; border-radius: var(--r) 6px 6px var(--r); }
.gallery figure:nth-child(2) { border-top-right-radius: var(--r); }
.gallery figure:nth-child(3) { border-bottom-right-radius: var(--r); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.one figure:first-child { grid-row: auto; border-radius: var(--r); }
.gallery.two { grid-template-rows: 1fr; }
.gallery.two figure:first-child { grid-row: auto; }
.gallery.two figure:nth-child(2) { border-radius: 6px var(--r) var(--r) 6px; }
.gallery .map { background: #F2F1EC; }
.gallery .map a { display: block; height: 100%; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(17,20,23,.72); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .01em; pointer-events: none; backdrop-filter: blur(6px); }
.gallery .plan { background: #fff; border: 1px solid var(--line); }
.gallery .plan img { object-fit: contain; padding: 12px; }
.gallery-note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.gallery-note a { text-decoration: none; }
.gallery-note a:hover { text-decoration: underline; }
.obj-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.obj-top .lede { font-size: 20px; color: var(--ink); line-height: 1.5; letter-spacing: -0.01em; }
.obj-top .verdict { display: inline-block; margin-bottom: 12px; font-size: 15px; }
.sold-note { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 15.5px; line-height: 1.55; }
.sold-note b { color: var(--ink); }
.sold-note a { margin-left: 4px; color: var(--muted); }
.keyfigs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.keyfigs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyfigs div:nth-child(odd) { padding-right: 16px; }
.keyfigs span { display: block; font-size: 13.5px; color: var(--muted); }
.keyfigs b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
.keyfigs b.red { color: var(--red); }
.obj-ruler { margin-top: 48px; padding: 28px 56px 24px 28px; border: 1px solid var(--line); border-radius: var(--r); }
.obj-ruler .legend { margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; }
.legend .la { width: 2px; height: 13px; background: var(--ink); }
.legend .lb { width: 18px; height: 10px; border-radius: 3px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.legend .lm { width: 0; height: 13px; border-left: 2px dotted var(--red); }
.legend .lbid { width: 2px; height: 13px; background: var(--amber); }
.legend .lsold { width: 2px; height: 13px; background: var(--green); }
.facts-line { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.facts-line b { color: var(--ink); font-weight: 500; }

.obj-body { max-width: 820px; padding-block: 24px 64px; }
.blk { padding-block: 48px; border-top: 1px solid var(--line); }
.blk h2 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 20px; }
.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pros h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pros h3.plus { color: var(--green); }
.pros h3.minus { color: var(--red); }
.pros ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 16px; }
dl.insp { margin: 0; }
.insp div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 16px; }
.insp div:first-child { border-top: 1px solid var(--line); }
.insp dt { font-weight: 500; color: var(--ink); }
.insp dt small { display: block; font-size: 13px; font-weight: 500; margin-top: 2px; }
.insp dt small.ok { color: var(--green); } .insp dt small.risk { color: var(--red); } .insp dt small.check { color: var(--amber); }
.insp dd { margin: 0; }
.note-box { margin-top: 24px; padding: 18px 20px; background: var(--soft); border-radius: var(--r); font-size: 16px; }
.note-box b { color: var(--ink); }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th { font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
.r { text-align: right; white-space: nowrap; }
td.nw { white-space: nowrap; color: var(--muted); }
tr.sum td { font-weight: 600; color: var(--ink); border-bottom: 0; }
tr.self td { color: var(--accent); font-weight: 500; }
.note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.bids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.bids div { padding: 16px 16px 16px 0; }
.bids span { display: block; font-size: 13.5px; color: var(--muted); }
.bids b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; }
.bids .max b { color: var(--red); }
ol.todo { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
ol.todo li { padding-left: 6px; }
ol.todo li::marker { color: var(--muted); }
.source { font-size: 14px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
.source a { color: var(--accent); }
.section.related { margin-top: 64px; padding-block: 56px 96px; border-top: 1px solid var(--line); }

/* Prose pages */
.prose { max-width: 680px; padding-bottom: 96px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
.prose dl { margin: 12px 0 0; }
.prose dt { font-weight: 600; color: var(--ink); margin-top: 16px; }
.prose dd { margin: 2px 0 0; color: var(--muted); }
.prose details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.prose details p { margin-top: 8px; color: var(--muted); }
.prose .figure { margin: 8px 0 0; }
.prose .figure img { aspect-ratio: 16 / 9; }
.credits { margin-top: 12px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }

/* Områden, träffsäkerhet och guider */
.page-head .crumbs { margin-bottom: 14px; }
.area-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.area-links a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; text-decoration: none; color: var(--text); background: #fff; }
.area-links a:hover { border-color: var(--muted); color: var(--ink); }
.area-links span { color: var(--faint); font-size: 13px; }
.figure--area { margin: 0 0 40px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; border-top: 1px solid var(--ink); }
.stats div { padding: 16px 20px 18px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 13.5px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stats dd.n { font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--faint); margin-top: 2px; }
.area-sec { margin-top: 56px; }
.area-sec > h2 { font-size: clamp(26px, 2.8vw, 32px); letter-spacing: -0.03em; }
.area-sec > p { margin-top: 8px; }
.area-sec > p a { color: var(--accent); }
.area-sec .rows { padding-bottom: 0; }
.page-source { margin: 56px 0 96px; max-width: 760px; }
.prose--wide { max-width: 900px; margin-top: 32px; }
.prose .note-box { margin-top: 0; }
.prose .tbl { margin-top: 16px; }
.prose table a { color: var(--accent); text-decoration: none; }
.prose table a:hover { text-decoration: underline; }
table.acc td small { display: block; font-size: 13px; color: var(--muted); }
.example { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); }
.example__title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.example table { font-size: 15px; }
.example td { padding-block: 9px; }
.prose .example + p, .prose .tbl + p { margin-top: 16px; }
.prose .example + p { margin-top: 24px; }
.fixes li b { color: var(--ink); font-weight: 600; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-item { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.guide-item:hover { border-color: var(--muted); }
.guide-item:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.guide-item h2 { font-size: 21px; }
.guide-item p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
main > .container > .area-sec:last-child { margin-bottom: 96px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-block: 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explain, .obj-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row { grid-template-columns: 200px minmax(0, 1fr); }
  .row .side { grid-column: 2; }
  .stats, .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 4px 18px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero { padding-top: 44px; }
  .hero .actions .btn--primary { flex: 1 1 100%; }
  .hero .actions .btn--secondary { display: none; }
  .filters .search { flex-basis: 100%; }
  .figure { margin-top: 36px; }
  .figure img { aspect-ratio: 4 / 3; }
  .section { padding-block: 64px; }
  .section.related { margin-top: 40px; padding-block: 40px 64px; }
  .sec-head { flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .cards, .steps, .pros { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .row .side { grid-column: auto; }
  .row .card__img { aspect-ratio: 3 / 2; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery figure { aspect-ratio: 4 / 3; border-radius: var(--r) !important; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:nth-child(n+2) { display: none; }
  .gallery.two figure:nth-child(2) { display: block; }
  .insp div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bids { grid-template-columns: 1fr 1fr; }
  .signup form { flex: 1 1 100%; }
  .obj-ruler { padding: 20px 40px 16px 16px; }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .stats dd { font-size: 24px; }
  .stats div { padding-right: 12px; }
}

/* Snart till salu: inget utgångspris än */
.verdict.none { color: var(--muted); }
.keyfigs b.muted { color: var(--faint); font-weight: 500; }
.ask-guide { margin-top: 20px; padding: 22px 24px; border-radius: var(--r); background: var(--soft); font-size: 15.5px; line-height: 1.55; }
.ask-guide > p { margin: 0; }
.ask-guide b { color: var(--ink); }
.ask-guide .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.ask-scale { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ask-scale li { padding: 12px 14px; border-radius: 8px; background: var(--bg); border-top: 3px solid var(--line); }
.ask-scale li.good { border-top-color: var(--green); }
.ask-scale li.fair { border-top-color: var(--muted); }
.ask-scale li.high { border-top-color: var(--red); }
.ask-scale span { display: block; font-size: 13.5px; font-weight: 500; }
.ask-scale .good span { color: var(--green); }
.ask-scale .fair span { color: var(--muted); }
.ask-scale .high span { color: var(--red); }
.ask-scale b { display: block; margin-top: 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ask-scale small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .ask-scale { grid-template-columns: 1fr; } }

/* Startsidans karta: Lidingö (site/img/lidingo.svg) med en prick per analyserat hus, inbäddad i hero-ytan.
   Texten har en egen kolumn till vänster; bara kartbilden tonas ut, prickar och namn ligger skarpa ovanpå. */
.hero--map { position: relative; overflow: hidden; padding-block: 88px 104px; }
.hero--map > .container { position: relative; z-index: 2; pointer-events: none; }
.hero--map > .container > * { max-width: 520px; }
.hero--map > .container a, .hero--map > .container button { pointer-events: auto; }
.hero--map h1 { font-size: clamp(36px, 4.2vw, 56px); }
.hero__map { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); left: max(470px, calc(50% - 210px)); width: min(1000px, 70vw); }
.hm__map { position: relative; }
.hm__map > img { display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.hm__dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.hm__dot::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(17,20,23,.25); transition: transform .15s ease; }
.hm__dot.good::before { background: var(--green); }
.hm__dot.fair::before { background: #5B6670; }
.hm__dot.high::before { background: var(--red); }
.hm__dot.none::before { background: #fff; box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 2px #fff, 0 1px 3px rgba(17,20,23,.25); }
.hm__dot.sold { z-index: 1; }
.hm__dot.sold::before { width: 7px; height: 7px; background: var(--ink); opacity: .55; }
.hm__dot:hover, .hm__dot:focus-visible { z-index: 5; outline: none; }
.hm__dot:hover::before, .hm__dot:focus-visible::before { transform: scale(1.5); }
.hm__tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); display: none; min-width: 190px; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.45; white-space: nowrap; pointer-events: none; text-align: left; }
.hm__tip > b { display: block; color: #fff; font-size: 14.5px; font-weight: 600; }
.hm__tip small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.6); font-size: 12.5px; }
.hm__tip span { display: block; }
.hm__tip span b { color: #fff; font-weight: 600; }
.hm__dot:hover .hm__tip, .hm__dot:focus-visible .hm__tip { display: block; }
.hm__area { position: absolute; transform: translate(-50%, -50%); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A3A9AD; text-decoration: none; white-space: nowrap; z-index: 1; pointer-events: none; }
a.hm__area { color: #7B8288; pointer-events: auto; }
a.hm__area:hover { color: var(--ink); }
@media (max-width: 960px) {
  .hero--map { padding-bottom: 8px; display: flex; flex-direction: column-reverse; }
  .hero--map > .container > * { max-width: none; }
  .hero__map { position: relative; top: auto; transform: none; left: auto; width: auto; margin-top: 8px; overflow: hidden; }
  .hm__map > img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
                           mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
  span.hm__area { display: none; }
}
/* Mobil: zooma in på ön (fastlandet i kanterna skärs bort), mindre prickar men samma tryckyta. */
@media (max-width: 680px) {
  .hm__map { width: 150%; margin-left: -15%; }
  .hm__area { font-size: 10px; }
  .hm__dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .hm__dot::before { width: 9px; height: 9px; box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(17,20,23,.25); }
  .hm__tip { min-width: 0; }
}

/* Startsidan med flera kommuner: hela Storstockholm (site/img/storstockholm.svg) över hela heron, tonad mot texten. */
.hm__kommun { font-size: 12.5px; letter-spacing: .1em; color: #8D959B; }
.hero--region .hm__dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.hero--region .hm__dot::before { width: 8px; height: 8px; }
.hero--region .hm__map { width: var(--hm-mwidth); margin-left: var(--hm-mleft); }
@media (min-width: 961px) {
  .hero--region { min-height: min(760px, 56vw); display: flex; align-items: center; }
  .hero--region > .container { width: 100%; }
  .hero--region .hero__map { left: 0; width: 100%; }
  .hero--region .hm__map { width: var(--hm-width); margin-left: var(--hm-left); }
  .hero--region .hm__map > img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
                                         mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .hero--region::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #fff 0, rgba(255,255,255,.94) 28%, rgba(255,255,255,.6) 44%, rgba(255,255,255,0) 60%); }
}

/* Listsidan med flera kommuner: kommunval och karta som zoomar till vald kommun (bbox i houses/_kommuner.json). */
.kommuner { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.kommuner button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
.kommuner button span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.kommuner button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.kommuner button[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.kommuner ~ .area-links { margin-top: 12px; }
.vmap { position: relative; aspect-ratio: 2.5; overflow: hidden; border-radius: 14px; background: #E6EDF3; border: 1px solid var(--line); margin-bottom: 24px; }
.vmap__layer { position: absolute; transition: left .6s ease, top .6s ease, width .6s ease, height .6s ease; }
.vmap__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vmap__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #5B6670; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(17,20,23,.3); transition: opacity .3s, transform .15s; }
.vmap__dot.good { background: var(--green); }
.vmap__dot.high { background: var(--red); }
.vmap__dot.none { background: #fff; box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 2px #fff, 0 1px 3px rgba(17,20,23,.3); }
.vmap__dot:hover { transform: scale(1.5); z-index: 3; }
.vmap__dot.dim { opacity: .25; pointer-events: none; }
.vmap__label { position: absolute; transform: translate(-50%, -50%); border: 0; background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5B6670; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 2; }
.vmap.is-all .vmap__label { opacity: 1; pointer-events: auto; }
.vmap__label:hover { color: var(--ink); }
.row[hidden], .sold-list[hidden], .area-links[hidden] { display: none; }
@media (max-width: 700px) {
  .vmap { aspect-ratio: 1.5; }
  .kommuner { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; }
  .kommuner button { flex: none; }
}

/* Om-sidan */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.about-hero { padding-block: 80px 88px; background: radial-gradient(1000px 420px at 85% 30%, var(--accent-soft), transparent 70%); }
.about-hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-hero h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.035em; max-width: 14ch; }
.about-hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 52ch; }
.about-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.about-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(17,20,23,.04), 0 12px 32px -12px rgba(17,20,23,.12); overflow: hidden; }
.about-stat { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.about-stat:nth-child(odd) { border-right: 1px solid var(--line); }
.about-stat:nth-last-child(-n+2) { border-bottom: 0; }
.about-stat dt { font-size: 14px; color: var(--muted); }
.about-stat dd { margin: 6px 0 0; display: grid; gap: 4px; }
.about-stat b { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.about-stat span { font-size: 13.5px; color: var(--faint); line-height: 1.4; }
.about-stat a { color: var(--accent); text-decoration: none; }
.about-stat a:hover { text-decoration: underline; }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.why li { padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
.why__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.why h3 { font-size: 20px; }
.why p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about-split h2, .ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #E3F2EA; color: var(--green); }
.promise--not .ticks svg { background: var(--soft); color: var(--muted); }
.promise--not .ticks span { color: var(--muted); }
.ticks b { color: var(--ink); font-weight: 600; }
.ticks a, .contact-notes a, .about-credits a { color: var(--accent); }
.about-split--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.about-split--contact > div > .muted { margin-top: 12px; }
.contact-notes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; font-size: 15.5px; color: var(--muted); }
.contact-notes li { padding-left: 16px; border-left: 2px solid var(--line); }
.contact-notes b { display: block; color: var(--ink); font-weight: 600; }
.contact--card { margin-top: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 28px 22px; }
.about-credits { padding-block: 56px 72px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.about-credits h2 { font-size: 18px; letter-spacing: -0.01em; }
.about-credits p { margin-top: 8px; max-width: 70ch; }
.about-credits .credits { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 28px; font-size: 13.5px; }
.about-credits .credits span { color: var(--text); }
.about-credits .credits span::after { content: ":"; }
@media (max-width: 960px) {
  .about-hero .container, .about-split, .about-split--contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .why { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 680px) {
  .about-hero { padding-block: 44px 56px; }
  .about-hero .actions .btn--primary { flex: 1 1 100%; }
  .about-stat { padding: 18px; }
  .about-stat b { font-size: 28px; }
  .why li { padding: 22px; }
      .contact--card { padding: 10px 18px 18px; }
}
