/* BoligPortal demo. Colors, sizes and type are taken from the Claude Design
   files (boligportal-huslejesikring-demo); one breakpoint at 700px, the same
   switch the design uses between its desktop and mobile artboards. */

:root {
  --orange: #FC673D;
  --orange-edge: #E33F1C;
  --orange-light: #FFF6F3;
  --orange-soft: #FDB49F;
  --text: #1F1F1F;
  --meta: #7D7D7D;
  --page: #F7F7F7;
  --card: #FFFFFF;
  --line: #EAEAEA;
  --field: #DEDEDE;
  --green: #25A842;
  --green-light: #E9F6EC;
  --footer: #202020;
  --sherpa: #6A3DE8;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }
body.white { background: #FFFFFF; }
main { flex: 1; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font-family: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; width: 100%; }
.page-pad { padding: 28px clamp(16px, 4vw, 40px) 80px; }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--meta); }

/* Buttons and links */
.btn { appearance: none; margin: 0; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 20px; border-radius: 6px; background: var(--orange); box-shadow: inset 0 -2px 0 var(--orange-edge); color: #FFFFFF; text-decoration: none; font-size: 16px; font-weight: 600; }
.btn:hover { background: #F4592E; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--orange-soft); box-shadow: none; cursor: default; pointer-events: none; }
.btn-ghost { display: flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; background: #FFFFFF; }
.link-quiet { font-size: 15px; color: var(--meta); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.back-link { align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.orange-link { color: var(--orange); text-decoration: none; }
.pill { padding: 3px 10px; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange); font-size: 14px; font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--orange-light); color: var(--orange-edge); font-size: 14px; font-weight: 700; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.check-circle { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-light); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); min-width: 0; }
.field input, .input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF; font-size: 15px; color: var(--text); }
.field input:focus, .input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.field.big input { height: 48px; padding: 0 14px; border-radius: 8px; font-size: 16px; }
.field.big { font-weight: 600; }
.field.big input { font-weight: 400; }
.field input[readonly], .locked { background: var(--page); }
.locked { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; font-size: 15px; }
.field-error { font-size: 13px; color: #C4311A; font-weight: 500; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.checkbox input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.choice { appearance: none; margin: 0; cursor: pointer; height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF; color: var(--text); font-size: 15px; }
.choice[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-light); font-weight: 600; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--page); font-size: 14px; line-height: 1.5; }
.note svg { flex: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }

/* Sherpa markers: shown only with ?sherpa=1, so the demo looks like the real site by default */
.sherpa-area { position: relative; border-radius: 12px; }
body:not(.marks) .sherpa-tag, body:not(.marks) .sherpa-chip { display: none !important; }
.marks .sherpa-area { outline: 2px dashed var(--sherpa); outline-offset: 7px; }
.marks .sherpa-tag { display: block; position: absolute; top: -21px; left: 20px; z-index: 1; padding: 4px 10px; border-radius: 6px; background: var(--sherpa); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.marks .sherpa-chip { display: inline-block; padding: 2px 6px; border: 1px dashed var(--sherpa); border-radius: 4px; background: #F1ECFF; color: #4F25C4; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Header */
.site-header { width: 100%; }
.bar { background: #FFFFFF; border-bottom: 1px solid var(--line); height: 73px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.plain .bar { background: var(--page); border-color: var(--page); }
.logo { display: flex; align-items: center; gap: 7px; color: var(--orange); text-decoration: none; }
.logo span { font-size: 25px; font-weight: 600; letter-spacing: -0.015em; }
.nav { display: flex; align-items: center; gap: 15px; font-size: 16px; }
.nav a { display: flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.nav .icon { justify-content: center; width: 28px; height: 40px; }
.nav .sep { width: 1px; height: 20px; background: #ACACAC; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.lang button { appearance: none; border: 0; margin: 0; padding: 4px; background: transparent; cursor: pointer; font-size: 14px; color: var(--meta); }
.lang button[aria-pressed="true"] { color: var(--text); font-weight: 600; }
.lang .slash { color: #ACACAC; }
@media (min-width: 700px) { .mobile-only { display: none !important; } }
.menu-btn { appearance: none; border: 0; margin: 0 -10px 0 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text); }
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { appearance: none; border: 0; margin: 0; padding: 0; position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); cursor: pointer; }
.sheet nav { position: absolute; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-radius: 8px 8px 0 0; padding: 12px 16px 16px; display: flex; flex-direction: column; font-size: 16px; }
.sheet nav a { display: flex; align-items: center; justify-content: space-between; height: 40px; color: var(--text); text-decoration: none; }
.sheet nav .rule { height: 1px; margin: 6px -16px; background: var(--line); }

/* Footer */
.site-footer { background: var(--footer); color: #C9C9C9; width: 100%; }
.footer-in { max-width: 1108px; margin: 0 auto; padding: 72px 16px 64px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: 185px 277px 1fr 1fr; gap: 36px 24px; }
.footer-cols .col { display: flex; flex-direction: column; gap: 12px; }
.footer-cols .col.social { align-items: flex-end; }
.footer-head { margin: 0 0 4px; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; color: #8C8C90; }
.footer-cols a { font-size: 15px; line-height: 20px; color: #D2D2D2; text-decoration: none; }
.store { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border: 1px solid #A6A6A6; border-radius: 6px; background: #000000; color: #FFFFFF !important; }
.store span { white-space: nowrap; }
.store small { display: block; font-size: 7px; letter-spacing: 0.04em; line-height: 1; }
.store b { display: block; font-size: 14px; font-weight: 600; line-height: 1; }
.socials { display: flex; gap: 8px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid #5B5B5E; border-radius: 4px; color: #FFFFFF; }
.footer-bottom { border-top: 1px solid #3A3A3C; padding-top: 22px; display: flex; flex-direction: column; gap: 22px; }
.footer-brand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand .mark { display: flex; align-items: center; gap: 7px; color: #9A9A9E; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.footer-brand button { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #D2D2D2; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-bottom p { font-size: 14px; line-height: 1.55; color: #9A9A9E; }

/* Listing card */
.lcard { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); }
.lcard .photo { position: relative; display: block; height: 232px; background: var(--line); }
.lcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.lcard .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.lcard .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.lcard .dots i:first-child { width: 7px; height: 7px; background: #FFFFFF; }
.lcard .heart { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; display: none; align-items: center; justify-content: center; }
.lcard .body { display: flex; flex-direction: column; padding: 18px 16px 16px; }
.lcard .title { font-size: 16px; line-height: 22px; font-weight: 600; }
.lcard .place { font-size: 14px; line-height: 20px; color: var(--meta); }
.lcard .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; }
.lcard .price { font-size: 16px; line-height: 22px; font-weight: 700; }
.lcard .date { font-size: 13px; color: var(--meta); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 20px; }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 15px; color: var(--meta); }
.crumbs a { color: var(--meta); text-decoration: none; display: flex; }
.crumbs .here { color: var(--text); }

/* ---------- Home ---------- */
.hero { position: relative; z-index: 2; margin: 0 20px; height: 680px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; text-align: center; }
.hero .bg { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: #2B211B; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg .m { display: none; }
.hero .sub { position: relative; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--orange); }
.hero h1 { position: relative; font-size: 60px; line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; color: #FFFFFF; text-wrap: balance; }
.search { position: relative; width: 100%; max-width: 642px; margin-top: 22px; }
.search input { display: block; width: 100%; height: 55px; padding: 0 20px; border: 0; border-radius: 8px; outline: none; background: #FFFFFF; font-size: 16px; color: var(--text); }
.suggest { position: absolute; top: 67px; left: 0; right: 0; z-index: 5; padding: 4px 0; list-style: none; background: #FFFFFF; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); text-align: left; }
.suggest a { display: flex; align-items: center; gap: 12px; height: 47px; padding: 0 20px; color: var(--text); text-decoration: none; font-size: 16px; }
.suggest a:hover, .suggest a:focus { background: var(--page); }
.cats { margin: 16px 20px 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; padding: 24px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; min-width: 0; }
.ico-box { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 8px; background: var(--page); color: var(--orange); }
.cat .t { margin-top: 26px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.cat .c { font-size: 16px; line-height: 1.4; color: var(--meta); }
.sec { padding: 168px 16px 0; }
.sec-in { max-width: 1248px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.h2 { font-size: 46px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.cities { width: 100%; margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.city { position: relative; display: block; height: 320px; border-radius: 12px; overflow: hidden; text-decoration: none; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%); }
.city .n { position: absolute; left: 24px; bottom: 24px; font-size: 20px; font-weight: 600; color: #FFFFFF; }
.panel { margin: 168px 20px 0; background: #FFFFFF; border-radius: 16px; padding: 48px 40px 80px; }
.panel-in { max-width: 1244px; margin: 0 auto; display: flex; flex-direction: column; }
.panel-top { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.panel-img { position: relative; flex: 0 0 608px; height: 558px; border-radius: 12px; overflow: hidden; background: #2A2520; }
.panel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-img .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%); }
.panel-text { flex: 1 1 420px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 82px; }
.panel-text .h2 { line-height: 1.3; }
.panel-text .lead { line-height: 1.45; }
.tools { position: relative; margin: -124px 0 0 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tool { display: flex; flex-direction: column; min-height: 248px; padding: 24px; background: #F4F4F4; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.tool .ico-box { background: #FFFFFF; color: var(--text); }
.tool .t { margin-top: auto; padding-top: 28px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.tool .d { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--meta); }
.home-listings { width: 100%; margin-top: 30px; text-align: left; }
.pop { padding: 168px 16px 72px; }
.pop-in { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: 295px 314px 289px 187px 1fr; gap: 28px 8px; }
.pop-in div { display: flex; flex-direction: column; }
.pop-in .head { margin: 0 0 10px; min-height: 24px; font-size: 17px; line-height: 24px; color: var(--orange); }
.pop-in a { font-size: 15px; line-height: 30px; color: #373737; text-decoration: none; white-space: nowrap; }

/* ---------- Results ---------- */
.searchbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 28px; background: #FFFFFF; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05); }
.searchbar .loc { position: relative; flex: 0 0 320px; min-width: 0; }
.searchbar .loc svg { position: absolute; left: 12px; top: 10px; }
.searchbar .loc input { padding-left: 40px; font-size: 16px; }
.icon-btn { appearance: none; margin: 0; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #FFFFFF; color: var(--text); font-size: 16px; font-weight: 500; }
.results-main { padding: 24px 28px 56px; }
.results-cols { display: flex; gap: 48px; align-items: flex-start; }
.results-cols > div { flex: 1 1 0; min-width: 0; }
.results-h1 { margin-top: 20px; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.results-h1 small { font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--meta); }
.agent-banner { margin-top: 20px; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 8px; background: var(--orange); color: #FFFFFF; }
.agent-banner span { flex: 1; font-size: 16px; line-height: 1.4; font-weight: 500; }
.toggle { appearance: none; margin: 0; padding: 2px; flex: none; width: 34px; height: 20px; border: 0; border-radius: 999px; background: #C4311A; cursor: pointer; display: flex; align-items: center; }
.toggle i { width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform 0.15s; }
.toggle[aria-checked="true"] i { transform: translateX(14px); }
.toggle.grey { width: 32px; background: var(--field); }
.toggle.grey[aria-checked="true"] { background: var(--orange); }
.toggle.grey[aria-checked="true"] i { transform: translateX(12px); }
.results-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.map { position: sticky; top: 24px; }
.map-in { position: relative; width: 100%; aspect-ratio: 891 / 853; border-radius: 12px; overflow: hidden; background: #E9E5D9; }
.map-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map .pin { position: absolute; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.map .pin.hot { background: var(--orange); color: #FFFFFF; }
.map .cluster { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; border: 2px solid rgba(0, 0, 0, 0.12); font-size: 14px; font-weight: 500; }
.map .ctl { appearance: none; margin: 0; padding: 0; width: 38px; height: 38px; border: 0; border-radius: 6px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.map .credit { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); font-size: 12px; }

/* ---------- Listing ---------- */
.listing-main { padding: 36px 40px 80px; }
.listing-in { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; }
.listing-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.text-btn { appearance: none; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--text); }
.gallery { margin-top: 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 290px 290px; gap: 8px; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 2; }
.gallery-m { position: relative; margin-top: 16px; height: 260px; border-radius: 12px; overflow: hidden; display: none; }
.gallery-m img { width: 100%; height: 100%; object-fit: cover; }
.gallery-m span { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(31, 31, 31, 0.7); color: #FFFFFF; font-size: 13px; font-weight: 500; }
.listing-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: 'a s' 'b s'; gap: 48px 42px; align-items: start; }
.area-a { grid-area: a; min-width: 0; display: flex; flex-direction: column; }
.area-s { grid-area: s; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.area-b { grid-area: b; min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.listing-h1 { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.addr { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--meta); }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 8px; }
.fact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fact .v { margin-top: 12px; font-size: 16px; line-height: 1.45; white-space: pre-line; }
.fact .k { font-size: 14px; line-height: 1.5; color: var(--meta); }
.fact .badge { margin-top: 12px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: #DFBF2A; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.side-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rent-card { padding: 18px 18px 20px; display: flex; flex-direction: column; }
.rent-card .big { margin-top: 6px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kv .k { font-size: 14px; color: var(--meta); }
.kv .v { font-size: 16px; }
.h3 { font-size: 18px; font-weight: 600; }
.desc p { font-size: 16px; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.feature.off { color: var(--meta); text-decoration: line-through; }
.costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; }
.costs > div { display: flex; flex-direction: column; padding: 18px 0; }
.costs > div:first-child { border-right: 1px solid var(--line); padding-right: 16px; }
.costs > div:last-child { padding-left: 16px; }
.costs .head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.costs .line { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 15px; }
.costs .line span:first-child { color: var(--meta); }
.costs .line span:last-child { font-size: 16px; }
.costs .total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.costs .total span:last-child { font-size: 16px; font-weight: 600; }
.gallery-link { position: relative; display: block; height: 192px; border-radius: 12px; overflow: hidden; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.gallery-link .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 100%); }
.gallery-link .t { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; color: #FFFFFF; font-size: 16px; font-weight: 600; }
.sticky-cta { display: none; }

/* ---------- Contract, purchase, receipt ---------- */
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .side-col { flex: 1 1 340px; min-width: 0; }
.box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; }
.box h2 { font-size: 19px; font-weight: 700; }
.rows .r { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows .r span:last-child { font-weight: 600; text-align: right; }
.parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.party { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 10px; background: var(--page); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
.party .name { font-size: 17px; font-weight: 700; }
.party .kv2 { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.party .kv2 span:first-child { color: var(--meta); }
.party .kv2 span:last-child { font-weight: 600; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.doc .t { flex: 1; display: flex; flex-direction: column; }
.doc .t b { font-size: 15px; font-weight: 600; }
.doc .t small { font-size: 13px; color: var(--meta); }
.sign-box { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.signer { display: flex; gap: 12px; align-items: flex-start; }
.signer .t { display: flex; flex-direction: column; }
.signer .t b { font-size: 15px; font-weight: 600; }
.signer .t small { font-size: 13px; color: var(--meta); }
.pending-dot { flex: none; width: 18px; height: 18px; margin: 2px; border-radius: 50%; border: 2px dashed #ACACAC; }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px; border-radius: 10px; background: var(--page); text-align: center; }
.waiting b { font-size: 16px; }
.waiting span { font-size: 14px; }
.small-meta { font-size: 13px; line-height: 1.5; color: var(--meta); }
.checkout-skel { height: 240px; border-radius: 10px; background: linear-gradient(90deg, var(--page) 25%, #FFFFFF 50%, var(--page) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.checkout-skel:not([hidden]) + iframe { position: absolute; opacity: 0; pointer-events: none; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .checkout-skel { animation: none; } }
.divider { height: 1px; background: var(--line); }
.emp-pill { padding: 4px 12px; border-radius: 999px; background: var(--orange-light); color: var(--orange-edge); font-size: 14px; font-weight: 600; }
.summary-rows { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.summary-rows .kv span:last-child { font-weight: 600; text-align: right; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-error { padding: 12px 14px; border-radius: 8px; background: #FDECEA; color: #8C1D10; font-size: 14px; line-height: 1.5; }

/* ---------- Signed page and the offer ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.steps .num { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: #FFFFFF; font-size: 14px; font-weight: 700; }
.steps .when { margin-top: auto; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--page); font-size: 13px; font-weight: 600; }
.offer { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.offer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.offer-head h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.offer-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 22px; }
.bullet { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.bullet svg { flex: none; margin-top: 1px; }
.offer-cols { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.offer-cols > .left { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.offer-cols > .right { flex: 1.2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.date-wrap { position: relative; }
.date-wrap input { padding-right: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.plan { appearance: none; margin: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 6px; background: #FFFFFF; text-align: left; color: var(--text); cursor: pointer; }
.plan[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-light); }
.plan .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; }
.plan .name { font-size: 16px; line-height: 22px; font-weight: 600; }
.plan .pr { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.plan .pr b { font-size: 16px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.plan .pr small { font-size: 13px; line-height: 18px; }
.plan .skel { display: block; width: 84px; height: 18px; margin-top: 2px; border-radius: 4px; background: linear-gradient(90deg, #EAEAEA, #F4F4F4, #EAEAEA); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.plan .skel.s { width: 56px; height: 12px; margin-top: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.plan .what { font-size: 14px; line-height: 20px; }
.plan .covers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; line-height: 16px; }
.plan .covers span { display: flex; align-items: center; gap: 4px; }
.plan .covers .off { color: var(--meta); }
.plan .covers .off s { text-decoration: line-through; }
.plan .covers i { width: 1px; height: 12px; background: var(--field); }
.plan .covers .sherpa-chip { margin-left: auto; }
.loading-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--meta); }
.summary { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.summary b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.summary span { font-size: 14px; line-height: 1.5; color: var(--meta); }
.refusal { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); }
.refusal .head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.refusal p { font-size: 15px; line-height: 1.55; }
.marks .refusal { outline: 1px dashed var(--sherpa); outline-offset: 4px; }
.refusal .sherpa-chip { position: absolute; top: -12px; right: 16px; }
.fineprint { margin-top: 4px; text-align: center; font-size: 13px; line-height: 1.55; color: var(--meta); }
.fineprint a { color: var(--orange); }
.declined { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; font-size: 15px; }

/* ---------- Min side ---------- */
.acct-head { background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 40px) 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: -1px; }
.tabs a { flex: none; display: flex; align-items: center; height: 52px; padding: 0 16px; border-bottom: 3px solid transparent; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a[aria-current="page"] { border-color: var(--orange); font-weight: 700; }
.portal-shell { background: #FFFFFF; border: 1px solid var(--field); border-radius: 12px; overflow: hidden; }
#portal-frame { min-height: 420px; }
#portal-frame iframe { display: block; width: 100%; border: 0; }
.portal-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(18px, 2.6vw, 28px); }

/* ---------- How it works ---------- */
.dark-hero { background: var(--text); color: #FFFFFF; padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 40px); }
.dark-hero .in { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.dark-hero .tag { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.dark-hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.dark-hero p { max-width: 720px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, 0.85); text-wrap: pretty; }
.dark-hero .stat { font-size: 15px; color: var(--orange); font-weight: 600; }
.btn-dark { display: flex; align-items: center; height: 40px; padding: 0 26px; border-radius: 6px; background: #373737; color: #FFFFFF; text-decoration: none; font-size: 16px; font-weight: 600; }
.hiw-sec { padding: clamp(56px, 6vw, 88px) clamp(16px, 4vw, 40px); }
.hiw-sec .in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.hiw-h2 { text-align: center; font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.hiw-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.hiw-steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.hiw-steps .n { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #FFFFFF; font-size: 17px; font-weight: 700; }
.hiw-steps b { font-size: 18px; line-height: 1.3; }
.hiw-steps span { font-size: 15px; line-height: 1.55; }
.code-card { flex: 1.3 1 460px; min-width: 0; border-radius: 12px; background: var(--footer); overflow: hidden; }
.code-card .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.code-card pre { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; color: #E6EBF5; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.role { display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.role .h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 3px solid; }
.role .h b { font-size: 22px; }
.role .h span { font-size: 14px; color: var(--meta); }
.role ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.role li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.role li svg { flex: none; margin-top: 2px; }


/* Signed-in header (as on boligportal.dk when logged in) */
.btn-outline { height: 36px; padding: 0 14px; border: 1px solid var(--text); border-radius: 6px; }
.nav .icon { position: relative; }
.badge { position: absolute; top: 6px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 2px solid #FFFFFF; }
.menu-btn { position: relative; }
.menu-btn .badge { top: 8px; right: 8px; }
.account { position: relative; }
.account-btn { appearance: none; margin: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 16px; color: var(--text); }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 240px; padding: 8px 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; }
.account-menu .who { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account-menu .who b { font-size: 15px; }
.account-menu .who span { font-size: 13px; color: var(--meta); overflow-wrap: anywhere; }
.account-menu a { padding: 9px 16px; font-size: 15px; color: var(--text); text-decoration: none; }
.account-menu a:hover, .account-menu a:focus { background: var(--page); }
.account-menu a:last-child { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.sheet .who { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.sheet .who span { display: flex; flex-direction: column; }
.sheet .who small { font-size: 13px; color: var(--meta); overflow-wrap: anywhere; }

/* Modal (Kontakt udlejer), copied from boligportal.dk */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.5); }
.modal-box { width: 100%; max-width: 834px; background: #FFFFFF; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 30px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 22px; font-weight: 700; }
.modal-close { appearance: none; border: 0; background: transparent; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text); margin-right: -8px; }
.modal-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 8px; }
.modal-body textarea { width: 100%; min-height: 320px; padding: 14px 16px; border: 2px solid var(--field); border-radius: 8px; background: var(--page); font-family: inherit; font-size: 17px; line-height: 1.55; color: var(--text); resize: vertical; }
.modal-body textarea:focus { outline: none; border-color: #1F4FC9; background: #FFFFFF; }
.modal-foot { padding: 20px 30px 22px; border-top: 1px solid var(--line); }
.modal-foot .btn { width: 100%; height: 46px; }
.modal-sent { padding: 36px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* Messages (Beskeder) */
.inbox { max-width: 1120px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 340px minmax(0, 1fr); background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 640px; }
.threads { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.threads h2 { padding: 20px 20px 14px; font-size: 20px; font-weight: 700; }
.thread-item { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.thread-item[aria-current="true"] { background: var(--orange-light); box-shadow: inset 3px 0 0 var(--orange); }
.thread-item img { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.thread-item .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.thread-item .t b { font-size: 15px; }
.thread-item .t span { font-size: 13px; color: var(--meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item.muted { opacity: 0.55; }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.convo-head img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; }
.convo-head .t { display: flex; flex-direction: column; }
.convo-head .t b { font-size: 16px; }
.convo-head .t span { font-size: 14px; color: var(--meta); }
.messages { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; background: #FAFAFA; }
.day { align-self: center; font-size: 12px; font-weight: 600; color: var(--meta); text-transform: uppercase; letter-spacing: 0.04em; margin: 6px 0; }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 4px; }
.msg .bubble { padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.msg small { font-size: 12px; color: var(--meta); }
.msg.them { align-self: flex-start; }
.msg.them .bubble { background: #FFFFFF; border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--orange-light); border: 1px solid #FBD5C8; border-top-right-radius: 4px; }
.contract-card { align-self: flex-start; width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #FFFFFF; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; }
.contract-card .top { display: flex; gap: 12px; align-items: flex-start; }
.contract-card .top .t { display: flex; flex-direction: column; gap: 2px; }
.contract-card .top b { font-size: 16px; }
.contract-card .top .t > span { font-size: 14px; color: var(--meta); }
.composer { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
.composer input { flex: 1; }
.typing { align-self: flex-start; font-size: 13px; color: var(--meta); font-style: italic; }

/* Contract sections (Typeformular A) */
.lease-doc { display: flex; flex-direction: column; }
.lease-doc details { border-top: 1px solid var(--line); }
.lease-doc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 16px; font-weight: 600; }
.lease-doc summary::-webkit-details-marker { display: none; }
.lease-doc summary .chev { transition: transform 0.15s; flex: none; }
.lease-doc details[open] summary .chev { transform: rotate(180deg); }
.lease-doc .sec-body { padding: 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.lease-doc .sec-body .r { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 12px; border-radius: 6px; background: var(--page); }
.lease-doc .sec-body .r span:last-child { font-weight: 600; text-align: right; }
.read-progress { font-size: 13px; color: var(--meta); }
.mitid { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.55); }
.mitid-box { width: 100%; max-width: 420px; background: #FFFFFF; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.mitid-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #0060E6; color: #FFFFFF; font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.mitid-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.mitid-body .btn { background: #0060E6; box-shadow: none; }
.mitid-body .btn:hover { background: #0051C2; }
.mitid-body .field input { height: 44px; }

@media (max-width: 699px) {
  .inbox { grid-template-columns: minmax(0, 1fr); border-radius: 0; border-left: 0; border-right: 0; }
  .threads { display: none; }
  .msg { max-width: 88%; }
  .messages { padding: 16px; }
  .convo-head, .composer { padding-left: 16px; padding-right: 16px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: 12px 12px 0 0; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .modal-body textarea { min-height: 200px; font-size: 16px; }
}


/* Account area (Min side), as on boligportal.dk when signed in */
.acct-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, #172A5E 240px, var(--page) 240px); }
.acct-side { position: sticky; top: 0; height: 100vh; background: #172A5E; color: #FFFFFF; display: flex; flex-direction: column; overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 28px 20px 22px; }
.side-logo { display: flex; align-items: center; gap: 8px; color: #FFFFFF; text-decoration: none; font-size: 27px; font-weight: 600; letter-spacing: -0.015em; }
.side-menu-btn { display: none; appearance: none; border: 0; background: transparent; color: #FFFFFF; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.side-nav { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.side-group { display: flex; flex-direction: column; }
.side-bottom { padding-bottom: 18px; }
.side-link { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 20px; color: #FFFFFF; text-decoration: none; font-size: 16px; border-left: 4px solid transparent; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); }
.side-link[aria-current="page"] { background: #233F86; border-left-color: var(--orange); }
.side-section { appearance: none; border: 0; background: transparent; color: rgba(255, 255, 255, 0.85); cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 10px 24px 10px 24px; font-size: 13px; }
.side-lang { padding: 10px 24px 0; }
.side-lang .lang button { color: rgba(255, 255, 255, 0.6); }
.side-lang .lang button[aria-pressed="true"] { color: #FFFFFF; }
.acct-main { min-width: 0; padding: 56px clamp(16px, 4vw, 68px) 80px; display: flex; flex-direction: column; gap: 28px; background: var(--page); }
.acct-h1 { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.panel-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; }
.panel-card > .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 22px; border-bottom: 1px solid var(--line); }
.panel-card > .head h2 { font-size: 20px; font-weight: 600; }
.panel-card > .head p { font-size: 14px; color: var(--meta); margin-top: 6px; }
.panel-card > .body { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; }
.pill-green { padding: 3px 9px; border-radius: 999px; background: #25A842; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.link-orange { color: var(--orange); text-decoration: none; font-weight: 500; }
.table-wrap { margin: 0 calc(-1 * clamp(16px, 4vw, 68px)); background: #FFFFFF; overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pay-table th { text-align: left; font-weight: 400; color: var(--meta); padding: 16px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay-table td { padding: 20px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay-table th:first-child, .pay-table td:first-child { padding-left: clamp(16px, 4vw, 68px); }
.profile-grid { display: grid; grid-template-columns: 290px minmax(0, 620px); gap: 22px; align-items: start; }
.avatar-card { padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.avatar-big { position: relative; width: 104px; height: 104px; border-radius: 50%; background: #CFCFCF; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.avatar-big span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0 8px; background: rgba(0, 0, 0, 0.35); color: #FFFFFF; font-size: 11px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.q { display: flex; flex-direction: column; gap: 10px; }
.q > span { font-size: 14px; }
.input-grey { background: #F2F2F2 !important; color: #8A8A8A; }
.settings-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 0.9fr); gap: 22px; align-items: start; }
.settings-tabs { display: flex; flex-direction: column; gap: 4px; }
.settings-tabs a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: 16px; }
.settings-tabs a[aria-current="page"] { background: #EAEAEA; }
.switch-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.switch-row b { font-size: 17px; font-weight: 600; }
.switch-row p { font-size: 14px; color: var(--meta); margin-top: 4px; }
.switch { appearance: none; margin: 0; border: 0; flex: none; width: 36px; height: 20px; padding: 2px; border-radius: 999px; background: #D9D9D9; cursor: pointer; display: flex; align-items: center; }
.switch i { width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform 0.15s; }
.switch[aria-checked="true"] { background: #25A842; }
.switch[aria-checked="true"] i { transform: translateX(16px); }
.select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 4px; background: #FFFFFF; font-size: 15px; color: var(--text); }
.acct-main .inbox { max-width: none; margin: 0; }
/* Huslejesikring: the Sherpa portal fills everything right of the menu */
.acct-main.portal-full { padding: 0; gap: 0; }
.portal-full .sherpa-area, .portal-full .portal-shell { flex: 1; display: flex; flex-direction: column; border: 0; border-radius: 0; background: #FFFFFF; }
.portal-full #portal-frame { flex: 1; min-height: 100vh; }
.portal-full #portal-frame iframe { min-height: 100vh; }
.marks .portal-full .sherpa-area { outline-offset: -6px; }
.marks .portal-full .sherpa-tag { top: 12px; left: 24px; }

@media (max-width: 1100px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-tabs { flex-direction: row; flex-wrap: wrap; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); background: var(--page); }
  .acct-side { position: sticky; height: auto; z-index: 30; }
  .side-top { padding: 12px 16px; }
  .side-logo { font-size: 22px; }
  .side-logo svg { width: 28px; height: 28px; }
  .side-menu-btn { display: flex; }
  .side-nav { display: none; }
  .acct-side.open .side-nav { display: flex; }
  .acct-main { padding: 24px 16px 64px; }
  .table-wrap { margin: 0 -16px; }
}

/* Lease signing flow: four steps with the rent protection offer as step 3 */
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flow li { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 4px solid var(--line); font-size: 15px; color: var(--meta); }
.flow li.done { border-color: var(--green); color: var(--text); }
.flow li.now { border-color: var(--orange); color: var(--text); font-weight: 600; }
.flow .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #EAEAEA; color: var(--meta); }
.flow li.done .dot { background: var(--green); color: #FFFFFF; }
.flow li.now .dot { background: var(--orange); color: #FFFFFF; }
.flow-count { display: none; font-size: 13px; color: var(--meta); }
.step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.signed-line { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--green-light); color: #1D6B30; font-size: 15px; font-weight: 500; }
.emp-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 6px; background: var(--page); font-size: 15px; }
.emp-summary small { display: block; font-size: 13px; color: var(--meta); }

/* ---------- Mobile (the design's 390px artboards) ---------- */
@media (max-width: 699px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex; }
  .bar { height: 64px; padding: 0 20px; }
  .logo span { font-size: 23px; }
  .logo svg { width: 26px; height: 26px; }
  .lang button { padding: 0; min-width: 32px; height: 44px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols .col.social { align-items: flex-start; }
  .hero { margin: 0 16px; height: 720px; align-items: stretch; justify-content: flex-end; gap: 4px; padding: 0 22px 22px; text-align: left; }
  .hero .bg .d { display: none; }
  .hero .bg .m { display: block; }
  .hero .sub { font-size: 14px; }
  .hero h1 { font-size: 30px; line-height: 1.45; }
  .search { margin-top: 14px; }
  .cats { margin: 16px 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { padding: 18px; }
  .cat .t { margin-top: 18px; font-size: 17px; }
  .sec { padding-top: 72px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 16px; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city { height: 190px; }
  .city .n { left: 16px; bottom: 16px; font-size: 17px; }
  .panel { margin: 72px 16px 0; padding: 16px 16px 24px; }
  .panel-img { flex: 1 1 100%; height: 240px; }
  .panel-text { padding-top: 0; }
  .tools { margin: 24px 0 0; grid-template-columns: minmax(0, 1fr); }
  .tool { min-height: 200px; }
  .home-listings .lcard:nth-child(n+5) { display: none; }
  .pop { padding: 72px 16px 64px; }
  .pop-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pop-in div:nth-child(n+3) { display: none; }
  .searchbar { padding: 12px 16px; }
  .searchbar .loc { flex: 1 1 auto; }
  .results-main { padding: 16px 16px 56px; }
  .results-h1 { font-size: 26px; }
  .agent-banner { padding: 12px 14px; }
  .agent-banner span { font-size: 15px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .results-grid .lcard .heart { display: flex; }
  .listing-main { padding: 16px 16px 0; }
  .gallery { display: none; }
  .gallery-m { display: block; }
  .listing-grid { margin-top: 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'a' 's' 'b'; gap: 32px; }
  .listing-h1 { font-size: 26px; }
  .facts { margin-top: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-b { gap: 48px; padding-bottom: 48px; }
  .costs { grid-template-columns: minmax(0, 1fr); }
  .costs > div:first-child { border-right: 0; padding-right: 0; }
  .costs > div:last-child { padding-left: 0; border-top: 1px solid var(--line); }
  .listing-others .lcard:nth-child(n+3) { display: none; }
  .sticky-cta { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #FFFFFF; box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08); }
  .sticky-cta .p { display: flex; flex-direction: column; }
  .sticky-cta .p small { font-size: 13px; color: var(--meta); }
  .sticky-cta .p b { font-size: 20px; font-weight: 700; }
  .offer-head, .offer-body { padding-left: 16px; padding-right: 16px; }
  .flow li .label { display: none; }
  .flow li.now .label { display: inline; }
  .flow ol { grid-template-columns: auto auto auto auto; }
  .flow-count { display: block; }
}

/* ANV Nordic sells the insurance: its logo and a plain statement on every page with the offer */
.anv-logo { display: block; width: 132px; height: auto; }
.seller { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; padding: 16px 18px; border: 1px solid #D9DEE8; border-radius: 10px; background: #F7F8FA; font-size: 14px; line-height: 1.5; color: #1F1F1F; }
.seller .anv-logo { flex: none; margin-top: 3px; }
.seller > .stack { flex: 1 1 260px; }
.seller b { font-size: 15px; color: #002D72; }
.seller a { color: #002D72; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.seller-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--meta); }
.seller-line .anv-logo { width: 104px; }
.offer-head .sold-by { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.offer-head .sold-by .anv-logo { width: 116px; }

/* Demo settings (/demo/): the A/B switch */
.choice.mode { height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; text-align: left; font-weight: 400; }
.choice.mode b { font-size: 16px; }
.choice.mode span { font-size: 14px; color: var(--meta); }

/* Flow B: ANV Nordic's offer on the done page */
.anv-offer { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 32px); border-top: 4px solid #002D72; }
.anv-offer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.anv-tag { font-size: 13px; font-weight: 600; color: #002D72; background: #EEF2F8; border-radius: 999px; padding: 4px 10px; }
.anv-offer h2 { font-size: 22px; font-weight: 700; }
.anv-offer p { font-size: 15px; line-height: 1.55; }
.anv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.anv-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; background: #002D72; box-shadow: inset 0 -2px 0 #001B45; }
.anv-btn:hover { background: #00245C; }
.mail-form { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 20px 24px; }
.mail-form .field { flex: 1 1 280px; }
.mail-form .small-meta { flex-basis: 100%; }
.mail-form .small-meta a { margin-left: 4px; }
button.btn-ghost { cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; }
