/* Foyer: designsystem for de offentlige sidene.
   Varmt, rolig og ekte: papirhvitt underlag, Foyer-grønt som bærende farge,
   gult kun som liten aksent. Ingen Webflow-avhengigheter. */

:root {
  --green: #0f4f49;
  --green-deep: #0a3a35;
  --green-soft: #e3ece8;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --white: #fffdf9;
  --ink: #1c2321;
  --muted: #5d6662;
  --line: #e2dbcf;
  --accent: #f2c744;
  --accent-ink: #3b2f05;
  --amber: #b9770e;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(28, 35, 33, .05), 0 8px 24px rgba(28, 35, 33, .06);
}

/* ---------- Grunnlag (kun på sider med body.site) ---------- */
body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.site *, body.site *::before, body.site *::after { box-sizing: border-box; }
body.site img { max-width: 100%; display: block; }
body.site a { color: inherit; }
body.site h1, body.site h2, body.site h3, body.site h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
body.site p { margin: 0; }
body.site ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: block;
}
.lead { font-size: 19px; color: var(--muted); line-height: 1.6; }

.section { padding: 96px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff !important; }
.btn-primary:hover { background: var(--green-deep); }
.btn-accent { background: var(--accent); color: var(--accent-ink) !important; }
.btn-accent:hover { background: #e9bb2f; }
.btn-ghost { background: transparent; color: var(--green) !important; border-color: rgba(15, 79, 73, .3); }
.btn-ghost:hover { border-color: var(--green); background: rgba(15, 79, 73, .04); }
.btn-light { background: #fff; color: var(--green) !important; }
.btn-light:hover { background: var(--paper); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.link-arrow { color: var(--green); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigasjon ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  font-family: var(--sans);
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-nav-logo { display: block; line-height: 0; }
.site-nav-logo img { height: 26px; width: auto; }
.site-nav-links { display: flex; align-items: center; gap: 30px; }
.site-nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav-links a:hover { color: var(--green); }
.site-nav-links a.btn { color: #fff; }
.site-nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.site-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.site-nav.open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .site-nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--green); font-variation-settings: "opsz" 96, "SOFT" 100; }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-proof { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.hero-proof .faces { display: flex; }
.hero-proof .faces img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; margin-left: -10px; background: var(--paper-2); }
.hero-proof .faces img:first-child { margin-left: 0; }
.hero-proof strong { color: var(--ink); font-weight: 600; }
.stars { color: var(--amber); letter-spacing: 1px; }

.hero-photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 520px; }
.hero-photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.hero-photos figure:first-child { grid-row: span 2; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 253, 249, .92); color: var(--ink);
  font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
}

/* ---------- Fakta-stripe ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact h3 { font-family: var(--sans) !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0 !important; margin-bottom: 4px !important; }
.fact p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Boligkort ---------- */
.homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.home { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.home-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 14px; }
.home-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home:hover .home-img img { transform: scale(1.03); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 253, 249, .94); color: var(--muted);
}
.badge.available { background: var(--accent); color: var(--accent-ink); }
.badge.coming { background: #fff; color: var(--green); }
.home-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home h3 { font-size: 21px; }
.home-price { font-weight: 600; white-space: nowrap; font-size: 15px; }
.home-sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.home-tags { color: var(--muted); font-size: 14px; margin-top: 8px; }
.home-tags span + span::before { content: "·"; margin: 0 7px; color: #b5aea2; }

/* ---------- Kart ---------- */
.map-card { margin-top: 64px; display: grid; grid-template-columns: 300px 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.map-card-side { padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.map-card-side h3 { font-size: 24px; margin-bottom: 10px; }
.map-card-side p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
#route-sidebar { overflow-y: auto; max-height: 300px; margin: 0 -28px; border-top: 1px solid var(--line); }
#route-sidebar .prop-item { padding: 12px 28px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .15s; }
#route-sidebar .prop-item:hover { background: var(--paper); }
#route-sidebar .prop-item.active { background: var(--green-soft); }
#route-sidebar .prop-distances { display: none; padding-top: 8px; }
#route-sidebar .prop-item.active .prop-distances { display: block; }
#overview-map { height: 460px; min-width: 0; background: var(--paper-2); }

/* ---------- Slik fungerer det ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { counter-reset: step; margin: 8px 0 36px !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--green); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px;
}
.steps h3 { font-family: var(--sans) !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: 0 !important; margin-bottom: 3px !important; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Anmeldelser ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.review blockquote { margin: 14px 0 22px; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); flex: 1; font-variation-settings: "opsz" 24; }
.review-who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.review-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.review-who strong { display: block; font-weight: 600; }
.review-who span { color: var(--muted); font-size: 14px; }
.review-summary { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 36px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.review-summary b { color: var(--ink); font-weight: 600; }

/* ---------- Inkludert / standard ---------- */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.included-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.included-card h3 { font-size: 24px; margin-bottom: 6px; }
.included-card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.checks li { position: relative; padding: 11px 0 11px 32px; border-top: 1px solid var(--line); font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f4f49' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks li small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Om oss ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: var(--paper-2); }
.person h3 { font-size: 22px; }
.person .role { color: var(--green); font-size: 14px; font-weight: 600; margin: 2px 0 8px; display: block; }
.person p { color: var(--muted); font-size: 15.5px; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 48px; align-items: end; }
.about-intro h2 { font-size: clamp(30px, 4vw, 42px); }
.about-intro p { color: var(--muted); font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h4 { font-family: var(--sans) !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.4 !important; }
.faq summary::after {
  content: ""; flex: 0 0 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f4f49' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; font-size: 16px; }

/* ---------- CTA-bånd ---------- */
.cta-band { background: var(--green); color: #fff; border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff !important; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px !important; }
.cta-band p { color: rgba(255, 255, 255, .78); font-size: 17px; }
.cta-band .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; font-family: var(--sans); color: var(--muted); font-size: 15px; background: var(--paper); border-top: 1px solid var(--line); }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer img { height: 24px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--sans) !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .08em !important; color: var(--ink) !important; font-weight: 700 !important; margin: 0 0 14px !important; }
.site-footer a { color: var(--ink); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--green); }
.site-footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Boligside ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 24px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs span { margin: 0 8px; color: #b5aea2; }
.pd-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.pd-title h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 8px !important; }
.pd-title p { color: var(--muted); font-size: 17px; }
.pd-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 460px; border-radius: var(--radius); overflow: hidden; position: relative; }
.pd-gallery button { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--paper-2); overflow: hidden; display: block; width: 100%; height: 100%; }
.pd-gallery button:first-child { grid-row: span 2; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.pd-gallery button:hover img { opacity: .92; }
.pd-gallery .all-photos {
  position: absolute; right: 14px; bottom: 14px; width: auto; height: auto;
  background: #fff; color: var(--ink); font: 600 14px var(--sans);
  padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow); cursor: pointer;
}
.pd-gallery.count-1 { grid-template-columns: 1fr; }
.pd-gallery.count-2, .pd-gallery.count-3, .pd-gallery.count-4 { grid-template-columns: 2fr 1fr; }
.pd-gallery.count-2 button:first-child { grid-row: span 2; }

.pd-layout { display: grid; grid-template-columns: 1fr 340px; gap: 64px; padding: 48px 0 96px; align-items: start; }
.pd-section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.pd-section:last-child { border-bottom: 0; }
.pd-section h2 { font-size: 26px; margin-bottom: 18px !important; }
.pd-section p { color: #3c4542; margin-bottom: 14px; font-size: 17px; }
.pd-section p:last-child { margin-bottom: 0; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.pd-features div { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.pd-features .ic { width: 22px; text-align: center; font-size: 17px; }
.pd-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.pd-info div { padding: 12px 0; border-top: 1px solid var(--line); }
.pd-info dt { font-size: 13.5px; color: var(--muted); }
.pd-info dd { margin: 0; font-weight: 500; }
.pd-tenants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pd-tenant { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.pd-tenant .av { width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-tenant strong { display: block; font-size: 15px; font-weight: 600; }
.pd-tenant span { font-size: 13.5px; color: var(--muted); }
.pd-note { color: var(--amber) !important; font-weight: 500; font-size: 15px !important; }

.pd-aside { position: sticky; top: 96px; }
.pd-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.pd-card .price { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.pd-card .period { color: var(--muted); font-size: 15px; }
.pd-card .incl { font-size: 14.5px; color: var(--muted); margin: 14px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.pd-card .btn { width: 100%; }
.pd-card .contact { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.pd-card .contact a { color: var(--green); font-weight: 600; text-decoration: none; }
.pd-status { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); margin-bottom: 14px; }
.pd-status.available { background: var(--accent); color: var(--accent-ink); }
.pd-status.coming { background: var(--green-soft); color: var(--green); }

#property-map { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.pd-mobile-bar { display: none; }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(12, 16, 15, .94); z-index: 10000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close { top: 18px; right: 18px; font-size: 20px !important; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }

.see-also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Enkle tekstsider ---------- */
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 48px 0 24px !important; }
.prose h2 { font-size: 24px; margin: 36px 0 12px !important; }
.prose p, .prose li { color: #3c4542; margin-bottom: 12px; }

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .homes { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr 300px; gap: 40px; }
}

@media (max-width: 860px) {
  body.site { font-size: 16px; }
  .section { padding: 72px 0; }
  .site-nav-toggle { display: block; }
  .site-nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .site-nav.open .site-nav-links { display: flex; }
  .site-nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav-links a.btn { margin-top: 16px; border-bottom: 0; padding: 14px 24px; }

  .hero { padding: 24px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { height: 360px; order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 22px 16px 22px 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  .map-card { grid-template-columns: 1fr; }
  .map-card-side { border-right: 0; border-bottom: 1px solid var(--line); }
  #route-sidebar { display: none; }
  #overview-map { height: 340px; }

  .steps-grid, .about-intro, .included { grid-template-columns: 1fr; gap: 32px; }
  .steps-photo { aspect-ratio: 16 / 10; }
  .reviews { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 28px; }
  .person { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
  .person img { margin: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-grid > :first-child { grid-column: span 2; }

  .pd-gallery { height: 300px; grid-template-columns: 1fr !important; grid-template-rows: 1fr; margin: 0 -24px; border-radius: 0; }
  .pd-gallery button:not(:first-child) { display: none; }
  .pd-gallery button.all-photos { display: block; }
  .pd-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .pd-aside { display: none; }
  .pd-features, .pd-info { grid-template-columns: 1fr; }
  .see-also { grid-template-columns: 1fr; }
  .pd-mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 16px;
  }
  .pd-mobile-bar .price { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
  .pd-mobile-bar .period { font-size: 13px; color: var(--muted); }
  body.has-mobile-bar .site-footer { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .homes { grid-template-columns: 1fr; }
  .hero-photos { height: 300px; gap: 8px; }
  .hero-actions .btn { flex: 1; }
  .faq details p { padding-right: 0; }
  .pd-gallery { margin: 0 -20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

section[id], [id="boliger"] { scroll-margin-top: 80px; }
@media (max-width: 860px) { .pd-features-list { grid-template-columns: 1fr !important; } }
body.site h1, body.site h2 { text-wrap: balance; }
body.site p { text-wrap: pretty; }
@media (max-width: 560px) {
  .hero-photos { height: 280px; }
  .hero-photos figure:not(:first-child) figcaption { display: none; }
  .hero-photos figcaption { white-space: nowrap; font-size: 12px; }
  .hero-proof { font-size: 14px; }
}
.team-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 860px) { .team-2 { grid-template-columns: 1fr; } }

/* Team: daglig leder fremhevet, resten mindre */
.team-lead { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.team-lead img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); background: var(--paper-2); }
.team-lead h3 { font-size: clamp(28px, 3.4vw, 36px); margin: 4px 0 16px !important; }
.team-lead .role, .person-small .role { color: var(--green); font-size: 14px; font-weight: 600; display: block; }
.team-lead p { color: var(--muted); font-size: 17px; margin-bottom: 12px; max-width: 480px; }
.team-lead .link-arrow { display: inline-block; margin-top: 8px; }
.team-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.person-small { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.person-small img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.person-small h3 { font-size: 20px; }
.person-small .role { margin: 2px 0 6px; }
.person-small p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .team-lead { grid-template-columns: 1fr; gap: 24px; }
  .team-lead img { aspect-ratio: 1 / 1; }
  .team-rest { grid-template-columns: 1fr; }
}

/* ---------- Interesseskjema ---------- */
body.funnel { min-height: 100vh; display: flex; flex-direction: column; }
.funnel-top { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.funnel-top-inner { max-width: 640px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.funnel-logo { line-height: 0; }
.funnel-count { font-size: 14px; color: var(--muted); }
.funnel-close { font-size: 15px; color: var(--muted) !important; text-decoration: none; }
.funnel-close:hover { color: var(--ink) !important; }
.funnel-progress { height: 3px; background: var(--line); }
.funnel-progress span { display: block; height: 100%; background: var(--green); transition: width .4s ease; }

.funnel-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px 140px; }
.funnel-main h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 10px !important; }
.funnel-lead { color: var(--muted); font-size: 17px; margin-bottom: 32px !important; }

.funnel-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); }
.funnel-bar-inner { max-width: 592px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.funnel-bar .btn { min-width: 180px; }
.funnel-back { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.funnel-back:hover { color: var(--ink); }
.funnel-bar-inner > :only-child { margin-left: auto; }

/* Valglister (boliger, rom) */
.pick-group { margin-bottom: 22px; }
.pick-group-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; }
.pick-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; border-top: 1px solid var(--line); transition: background .15s; }
.pick:first-child { border-top: 0; }
.pick:hover { background: var(--paper); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c9c1b4; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; transition: all .15s; background: #fff; }
.pick input:checked ~ .pick-check, .pick.selected .pick-check { background: var(--green); border-color: var(--green); color: #fff; }
.pick input:focus-visible ~ .pick-check { outline: 2px solid var(--green); outline-offset: 2px; }
.pick-thumb { width: 60px; height: 46px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--paper-2); }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-info { flex: 1; min-width: 0; }
.pick-name { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.pick-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 1px; }
.pick-side { font-size: 14px; color: var(--muted); white-space: nowrap; text-align: right; }
.pick-side b { color: var(--ink); font-weight: 600; }
.pick.disabled { cursor: default; opacity: .55; }
.pick.disabled:hover { background: transparent; }
.pick-tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.pick-tag.free { background: var(--green-soft); color: var(--green); }
.pick-list.single { margin-bottom: 28px; }

/* Skjemafelt */
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 79, 73, .12); }
.field input::placeholder, .field textarea::placeholder { color: #a39b8f; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.segmented { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; padding: 9px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.segmented button.selected { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.form-error { background: #fbeaea; color: #8a2b2b; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 14px; font-weight: 500; }
.chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.chip.plain { padding: 7px 14px; }

/* Visning */
.options { display: grid; gap: 10px; }
.option { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; transition: border-color .15s, background .15s; text-align: left; font: inherit; color: inherit; width: 100%; }
.option:hover { border-color: #c9c1b4; }
.option.selected { border-color: var(--green); background: #fbfdfc; box-shadow: 0 0 0 3px rgba(15, 79, 73, .08); }
.option strong { display: block; font-size: 16px; margin-bottom: 3px; }
.option span { color: var(--muted); font-size: 15px; }

/* Takk */
.thanks { text-align: center; padding-top: 24px; }
.thanks img.face { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin: 0 auto 24px; }
.thanks p { color: var(--muted); font-size: 17px; max-width: 440px; margin: 0 auto 8px !important; }
.thanks .contact-card { display: inline-block; margin: 28px 0 32px; padding: 16px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.thanks .contact-card strong { display: block; }
.thanks .contact-card a { color: var(--green); font-weight: 600; text-decoration: none; }

@media (max-width: 560px) {
  .funnel-main { padding: 32px 20px 130px; }
  .funnel-top-inner { padding: 0 20px; }
  .funnel-bar .btn { flex: 1; min-width: 0; }
  .pick-thumb { width: 50px; height: 40px; }
  .pick { padding: 13px 14px; gap: 12px; }
  .funnel-count { display: none; }
}

/* Interesseskjema v2 */
.fsec { margin-bottom: 36px; }
.fsec-title { font-size: 22px !important; margin-bottom: 14px !important; }
.homes-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.homes-pick[hidden] { display: none; }
.homes-pick .pick { padding: 10px 12px; gap: 10px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.homes-pick .pick:first-child { grid-column: 1 / -1; }
.homes-pick .pick:has(input:checked) { border-color: var(--green); background: #fbfdfc; }
.homes-pick .pick-thumb { width: 48px; height: 40px; }
.homes-pick .pick-name { font-size: 15px; }
.homes-pick .pick-sub { font-size: 13px; }
.homes-pick .pick-check { width: 20px; height: 20px; font-size: 12px; }
.picked { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.picked img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.picked div { flex: 1; min-width: 0; }
.picked strong { display: block; font-weight: 600; }
.picked span { font-size: 14px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--green); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.rooms-for { margin-top: 16px; }
.rooms-for .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.room-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.room-chip input { position: absolute; opacity: 0; pointer-events: none; }
.room-chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14.5px; cursor: pointer; transition: all .15s; }
.room-chip input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 600; }
.room-chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field.invalid input[type], .field.invalid textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
.field.invalid::after { content: "Må fylles ut"; display: block; color: #a8322a; font-size: 13.5px; margin-top: 6px; }
.check-rows { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; font-size: 16px; }
.check-row + .check-row { border-top: 1px solid var(--line); }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row input:checked ~ .pick-check { background: var(--green); border-color: var(--green); color: #fff; }
.check-row input:focus-visible ~ .pick-check { outline: 2px solid var(--green); outline-offset: 2px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg3 input { position: absolute; opacity: 0; pointer-events: none; }
.seg3 span { display: block; text-align: center; padding: 11px 8px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .15s; }
.seg3 input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg3 input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 1px; }
.funnel-next-hint { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .funnel-next-hint { display: none; }
  .seg3 span { font-size: 14px; padding: 11px 4px; }
  .homes-pick { grid-template-columns: 1fr; }
}
.pick-sub b.free { color: var(--green); font-weight: 600; }
.field .check-row { display: flex; font-weight: 400; font-size: 16px; margin: 0; }
.field .seg3 label { display: block; margin: 0; font-weight: 500; }
.field .room-chip { display: inline-block; margin: 0; font-weight: 400; }

/* Interesse v3: én side */
.funnel-top { border-bottom: 1px solid var(--line); }
.funnel-main { padding-bottom: 72px; }
.q { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.q legend, .q > label { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 12px; padding: 0; font-variation-settings: "opsz" 48; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 15.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; line-height: 1.3; }
.choice span:hover { border-color: #c9c1b4; }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.q.invalid .choice span, .q.invalid input[type] { border-color: #c0392b; }
.q.invalid::after { content: attr(data-err); display: block; color: #a8322a; font-size: 13.5px; margin-top: 6px; }
.btn-wide { width: 100%; padding: 16px 24px; font-size: 17px; margin-top: 4px; }
.fine { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 14px !important; }
.fine a { color: var(--muted); }
.picked { margin-bottom: 28px; }
@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; }
  .choice span { justify-content: flex-start; text-align: left; min-height: 52px; padding: 12px 16px; }
}
.site-nav-links a.site-nav-lang { color: var(--muted); font-size: 14px; }
.pd-lives { margin-top: 12px !important; font-size: 16px !important; color: var(--ink) !important; }
.pd-lives .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f9b6e; display: inline-block; margin-right: 8px; vertical-align: 1px; }
.pd-lives strong { font-weight: 600; }

/* ---------- Finpuss, runde 2 ---------- */
html { scroll-behavior: smooth; }
body.site :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
body.site ::selection { background: var(--green-soft); }

.hero h1 { font-size: clamp(42px, 5.4vw, 66px); line-height: 1.04; }
.hero .lead { color: #4b5451; max-width: 500px; }
.eyebrow { color: #2f6b5f; }

.fact h3 { font-size: 17px !important; }
.fact p { color: #59625e; }

.home-sub { line-height: 1.45; }
.home:hover h3 { color: var(--green); }
.home h3 { transition: color .2s; }
.home-img { box-shadow: 0 1px 2px rgba(28, 35, 33, .06); }

.included-card h3 { margin-bottom: 14px !important; }
.checks li:first-child { border-top: 0; padding-top: 4px; }
.checks li:first-child::before { top: 8px; }

.review { transition: border-color .2s; }
.review blockquote::before { content: "«"; }
.review blockquote::after { content: "»"; }

.steps-photo { box-shadow: 0 1px 2px rgba(28, 35, 33, .06); }
.cta-band { box-shadow: 0 20px 40px -24px rgba(10, 58, 53, .5); }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-photos { order: 0; height: 280px; margin-top: 8px; }
  .hero h1 { font-size: clamp(38px, 10vw, 48px); }
}
@media (max-width: 560px) {
  .hero-photos { height: 240px; }
}
@media (max-width: 560px) {
  .homes { gap: 14px; }
  .home { flex-direction: row; align-items: center; gap: 14px; }
  .home-img { width: 112px; flex-shrink: 0; aspect-ratio: 1 / 1; margin-bottom: 0; border-radius: 12px; }
  .home > :not(.home-img) { min-width: 0; }
  .home-body { flex: 1; min-width: 0; }
  .home h3 { font-size: 19px; }
  .home-sub { font-size: 14px; }
  .badge { top: 6px; left: 6px; font-size: 11px; padding: 3px 8px; }
}

/* ---------- Mer enn et rom ---------- */
.extras { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.extra-feature { background: var(--green); color: #fff; border-radius: 20px; overflow: hidden; }
.extra-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.extra-feature-text { padding: 26px 28px 30px; }
.extra-feature h3 { color: #fff !important; font-size: 26px; margin-bottom: 10px !important; }
.extra-feature p { color: rgba(255, 255, 255, .82); font-size: 16.5px; }
.extra-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.extra-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.extra-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.extra-list h3 { font-family: var(--sans) !important; font-size: 16.5px !important; font-weight: 700 !important; letter-spacing: 0 !important; margin: 2px 0 4px !important; line-height: 1.3 !important; }
.extra-list p { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 960px) {
  .extras { grid-template-columns: 1fr; gap: 36px; }
  .extra-feature { display: grid; grid-template-columns: 1fr 1fr; }
  .extra-feature img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 560px) {
  .extra-feature { display: block; }
  .extra-feature img { aspect-ratio: 4 / 3; }
  .extra-list { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Interesseskjema v4: samtale med Torunn ---------- */
body.iq-body { min-height: 100vh; }
.iq { display: grid; grid-template-columns: 42% 58%; min-height: 100vh; }
.iq-side { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--green-deep); }
.iq-side img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.iq-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 30, 27, .78) 0%, rgba(10, 30, 27, .1) 45%, rgba(10, 30, 27, 0) 100%); }
.iq-quote { position: absolute; left: 40px; right: 40px; bottom: 40px; margin: 0; z-index: 1; color: #fff; }
.iq-quote blockquote { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.01em; font-variation-settings: "opsz" 72, "SOFT" 60; }
.iq-quote figcaption { font-size: 14px; color: rgba(255, 255, 255, .78); }

.iq-main { display: flex; flex-direction: column; min-width: 0; }
.iq-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px; }
.iq-logo img { height: 30px; width: auto; }
.iq-cancel { color: var(--muted) !important; text-decoration: none; font-size: 15px; }
.iq-cancel:hover { color: var(--ink) !important; }
.iq-progress { height: 3px; background: var(--line); margin: 0 48px; border-radius: 3px; overflow: hidden; }
.iq-progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .45s ease; }
body:not(.iq-js) .iq-progress { display: none; }

.iq-form { width: 100%; max-width: 560px; margin: 0 auto; padding: 48px 32px 64px; flex: 1; display: flex; flex-direction: column; }

.iq-hello { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 36px; }
.iq-hello img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex-shrink: 0; }
.iq-bubble { background: var(--white); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 14px 18px; }
.iq-bubble p { font-size: 16px; line-height: 1.5; }
.iq-bubble span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.iq-js .iq-form:not(.iq-first) .iq-intro, .iq-js .iq-form:not(.iq-first) .iq-home { display: none; }
.iq-intro { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.iq-intro h1 { font-family: var(--sans) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase; color: #2f6b5f !important; margin-bottom: 8px !important; font-variation-settings: normal !important; }
.iq-intro p { color: var(--muted); font-size: 16.5px; max-width: 440px; }
.iq-signoff { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; color: var(--ink); margin-top: 18px !important; }
.iq-signoff img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }

.iq-home { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px dashed #cfc6b8; border-radius: var(--radius-sm); margin: -16px 0 28px; }
.iq-home img { width: 48px; height: 38px; border-radius: 6px; object-fit: cover; }
.iq-home div { flex: 1; min-width: 0; }
.iq-home strong { display: block; font-size: 15px; font-weight: 600; }
.iq-home span { font-size: 13px; color: var(--muted); }
.iq-link { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--green); cursor: pointer; padding: 4px 0; }

.iq-step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.iq-js .iq-step { display: none; margin: 0; }
.iq-js .iq-step.is-active { display: block; animation: iqIn .35s ease; }
@keyframes iqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.iq-count { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px !important; font-variation-settings: normal; line-height: 1.4; }
.iq-step legend { display: block; padding: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 24px; font-variation-settings: "opsz" 96, "SOFT" 50; }
.iq-sub { color: var(--muted); margin: -12px 0 24px !important; }

.iq-choices { display: grid; gap: 10px; }
.iq-choice input { position: absolute; opacity: 0; pointer-events: none; }
.iq-choice-box { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 18px 56px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; position: relative; transition: border-color .15s, background .15s, transform .1s; }
.iq-choice-box::before { content: ""; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid #c9c1b4; background: #fff; transition: all .15s; }
.iq-choice-box strong { font-size: 17px; font-weight: 600; }
.iq-choice-box small { font-size: 14.5px; color: var(--muted); }
.iq-choice-box:hover { border-color: #bdb4a6; }
.iq-choice-box:active { transform: scale(.995); }
.iq-choice input:checked + .iq-choice-box { border-color: var(--green); background: #f4f9f7; }
.iq-choice input:checked + .iq-choice-box::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.iq-choice input:focus-visible + .iq-choice-box { outline: 2px solid var(--green); outline-offset: 2px; }
.iq-step.is-invalid .iq-choice-box { border-color: #d9a49e; }

.iq-field { margin-bottom: 18px; }
.iq-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.iq-field input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 16px; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.iq-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 79, 73, .12); }
.iq-field input::placeholder { color: #a39b8f; }
.iq-hint { display: block; font-size: 14px; color: var(--muted); margin-top: 7px; }
.iq-err { display: none; font-size: 13.5px; color: #a8322a; margin-top: 6px; }
.iq-field.is-invalid input { border-color: #c0392b; }
.iq-field.is-invalid .iq-err { display: block; }
.iq-field.is-invalid .iq-hint { display: none; }
.iq-submit { width: 100%; padding: 17px 24px; font-size: 17px; margin-top: 8px; }
.iq-fine { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 14px !important; }
.iq-fine a { color: var(--muted); }
.iq-error { margin-bottom: 24px; }

.iq-nav { display: none; }
.iq-js .iq-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.iq-back { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; padding: 8px 0; }
.iq-back:hover { color: var(--ink); }
.iq-next { min-width: 140px; }
.iq-next[hidden] { display: none; }

@media (max-width: 960px) {
  .iq { grid-template-columns: 1fr; }
  .iq-side { display: none; }
  .iq-top { padding: 16px 20px; }
  .iq-progress { margin: 0 20px; }
  .iq-form { padding: 28px 20px 48px; }
  .iq-hello { margin-bottom: 28px; }
  .iq-hello img { width: 44px; height: 44px; }
  .iq-bubble p { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .iq-js .iq-step.is-active { animation: none; }
}
.iq-done { justify-content: center; }
.iq-done h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 28px !important; }
.iq-check { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 18px !important; }
.iq-bubble span a { color: var(--green); font-weight: 600; text-decoration: none; }
.iq-done-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.iq-done-text { color: var(--muted); font-size: 17px; max-width: 460px; margin: -12px 0 24px !important; }
.iq-contact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 36px; max-width: 420px; }
.iq-contact img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.iq-contact strong { display: block; font-weight: 600; }
.iq-contact span { font-size: 14px; color: var(--muted); }
.iq-contact a { color: var(--green); font-weight: 600; text-decoration: none; }

/* Husønske-steget */
.iq-homes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.iq-home-opt[hidden] { display: none; }
.iq-home-opt input { position: absolute; opacity: 0; pointer-events: none; }
.iq-home-all { grid-column: 1 / -1; }
.iq-home-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; min-height: 60px; }
.iq-home-all .iq-home-box { padding: 14px 16px; }
.iq-home-box:hover { border-color: #bdb4a6; }
.iq-home-box img { width: 48px; height: 40px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.iq-home-txt { min-width: 0; }
.iq-home-txt strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.iq-home-txt small { display: block; font-size: 13px; color: var(--muted); }
.iq-tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c9c1b4; background: #fff; flex-shrink: 0; position: relative; transition: all .15s; }
.iq-home-opt input:checked + .iq-home-box { border-color: var(--green); background: #f4f9f7; }
.iq-home-opt input:checked + .iq-home-box .iq-tick { background: var(--green); border-color: var(--green); }
.iq-home-opt input:checked + .iq-home-box .iq-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.iq-home-opt input:focus-visible + .iq-home-box { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 560px) { .iq-homes { grid-template-columns: 1fr; } }

/* Telefon med landskode */
.iq-phone { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s, box-shadow .15s; position: relative; }
.iq-phone:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 79, 73, .12); }
.iq-phone select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6662' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 8px center / 14px no-repeat; font: inherit; font-size: 17px; color: transparent; width: 112px; flex-shrink: 0; padding: 0 26px 0 14px; cursor: pointer; border-right: 1px solid var(--line); border-radius: 12px 0 0 12px; position: relative; z-index: 1; }
.iq-phone select:focus { outline: none; }
.iq-phone select option { color: var(--ink); }
.iq-cc { position: absolute; left: 0; top: 0; bottom: 0; width: 90px; white-space: nowrap; display: flex; align-items: center; padding-left: 14px; font-size: 17px; color: var(--ink); pointer-events: none; z-index: 0; }
.iq-cc[hidden] { display: none; }
.iq-phone input { border: 0 !important; box-shadow: none !important; border-radius: 0 12px 12px 0 !important; flex: 1; min-width: 0; }
.iq-field.is-invalid .iq-phone { border-color: #c0392b; }

/* Husvalg: store bildefliser, ett per adresse */
.iq-houses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.iq-house[hidden] { display: none; }
.iq-house input { position: absolute; opacity: 0; pointer-events: none; }
.iq-house-card { display: block; cursor: pointer; }
.iq-house-img { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--paper-2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.iq-house-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.iq-house-card:hover .iq-house-img img { transform: scale(1.03); }
.iq-house-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 1.5px solid rgba(28, 35, 33, .15); transition: all .15s; }
.iq-house-name { display: block; font-weight: 600; font-size: 16px; margin-top: 10px; }
.iq-house-kind { display: block; font-size: 14px; color: var(--muted); }
.iq-house input:checked + .iq-house-card .iq-house-img { outline-color: var(--green); }
.iq-house input:checked + .iq-house-card .iq-house-check { background: var(--green); border-color: var(--green); }
.iq-house input:checked + .iq-house-card .iq-house-check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.iq-house input:focus-visible + .iq-house-card .iq-house-img { outline-color: var(--green); }
.iq-next.btn-ghost { min-width: 140px; }

/* Takk-side: personlig hilsen fra Torunn */
.iq-side-torunn::after { display: none; }
.iq-side-torunn img { opacity: 1; }
.iq-done-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 600; padding: 7px 14px 7px 11px; border-radius: 999px; margin-bottom: 28px !important; }
.iq-letter { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px 34px 28px; box-shadow: 0 1px 2px rgba(28, 35, 33, .04), 0 12px 32px -18px rgba(28, 35, 33, .18); }
.iq-letter-face { display: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; margin-bottom: 18px; }
.iq-letter h1 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 16px !important; }
.iq-letter p { font-size: 17px; line-height: 1.65; color: #3c4542; margin-bottom: 12px !important; }
.iq-sign { margin-top: 22px !important; margin-bottom: 0 !important; }
.iq-sign span { display: block; font-size: 15px; color: var(--muted); }
.iq-sign em { display: block; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.1; color: var(--green); font-variation-settings: "opsz" 144, "SOFT" 100; margin-top: 2px; }
.iq-letter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.iq-letter-actions .btn { gap: 9px; }
.iq-done-more { margin-top: 26px !important; font-size: 15px; }
@media (max-width: 960px) {
  .iq-letter-face { display: block; }
  .iq-letter { padding: 26px 22px 22px; }
}
body.site .iq-letter .iq-letter-face { display: none; }
@media (max-width: 960px) { body.site .iq-letter .iq-letter-face { display: block; } }
/* Signatur: håndskrift i mørk blekk, litt skrått, som en ekte signatur */
.iq-sign em { font-family: "Mrs Saint Delafield", cursive !important; font-style: normal; font-weight: 400; font-size: 58px; line-height: 1; color: #1f2b3d; font-variation-settings: normal; transform: rotate(-4deg); transform-origin: left center; margin: 6px 0 -6px 4px; letter-spacing: 0; }
/* Signatur som e-postsignatur: bilde, navn og tittel */
.iq-sign-regards { margin: 20px 0 10px !important; color: #3c4542; }
.iq-sign { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
body.site .iq-sign img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.iq-sign strong { display: block; font-weight: 600; font-size: 15.5px; }
.iq-sign span { display: block; font-size: 14px; color: var(--muted); }
body.site .iq-sig { width: auto; height: 52px; margin: 2px 0 14px -2px; }
.iq-sign-regards { margin-bottom: 4px !important; }
/* Takk-brevet: korte linjer, god luft, lett å skumme */
.iq-letter { max-width: 460px; }
.iq-letter h1 { margin-bottom: 18px !important; }
.iq-letter p { font-size: 18px !important; line-height: 1.5 !important; margin-bottom: 10px !important; color: var(--ink) !important; }
.iq-letter p.iq-sign-regards { margin-top: 22px !important; color: var(--muted) !important; font-size: 16px !important; }

/* ---------- Kart, versjon 2: kart i full bredde, adresser som knapper ---------- */
.map-block { margin-top: 72px; }
.map-head { max-width: 560px; margin-bottom: 20px; }
.map-head h3 { font-size: 26px; margin-bottom: 8px !important; }
.map-head p { color: var(--muted); font-size: 17px; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map-wrap #overview-map { height: 500px; }
.map-panel { position: absolute; top: 16px; left: 16px; width: 300px; background: var(--white); border-radius: 14px; padding: 16px; box-shadow: 0 2px 6px rgba(28, 35, 33, .08), 0 12px 32px -12px rgba(28, 35, 33, .25); z-index: 2; }
.map-panel-label { font-size: 13.5px; color: var(--muted); margin-bottom: 10px !important; }
#route-sidebar.map-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: none; overflow: visible; margin: 0; border: 0; }
.map-chips .prop-item { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: all .15s; }
.map-chips .prop-item:hover { border-color: #bdb4a6; background: #fff; }
.map-chips .prop-item.active { background: var(--green); border-color: var(--green); color: #fff; }
.map-dist:empty { display: none; }
.map-dist { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.map-dist-loading { font-size: 14px; color: var(--muted); }
.map-dist-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px !important; }
.map-dist ul { margin: 0; padding: 0; list-style: none; }
.map-dist li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 5px 0; color: var(--ink); }
.map-dist li span:last-child { color: var(--muted); white-space: nowrap; }
.map-dist li.primary { font-weight: 600; }
.map-dist li.primary span:last-child { color: var(--green); }
.map-dist-link { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--green) !important; text-decoration: none; }
.map-dist-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .map-block { margin-top: 56px; }
  .map-wrap { display: flex; flex-direction: column-reverse; }
  .map-wrap #overview-map { height: 320px; }
  .map-panel { position: static; width: auto; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); }
  #route-sidebar.map-chips { display: flex; }
}
#route-sidebar.map-chips .prop-item { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
#route-sidebar.map-chips .prop-item:hover { border-color: #bdb4a6; background: #fff; }
#route-sidebar.map-chips .prop-item.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Kartmerker ---------- */
.fmap-pin { position: absolute; transform: translate(-50%, -50%); cursor: default; }
.fmap-home { cursor: pointer; z-index: 3; }
.fmap-house { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(10, 40, 36, .35); transition: transform .15s; }
.fmap-home:hover .fmap-house, .fmap-home.is-active .fmap-house { transform: scale(1.12); }
.fmap-home.is-active .fmap-house { background: var(--accent); color: var(--accent-ink); }
.fmap-label { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font: 600 13px var(--sans); padding: 5px 10px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.fmap-home:hover .fmap-label, .fmap-home.is-active .fmap-label { opacity: 1; }
.fmap-home:hover, .fmap-home.is-active { z-index: 5; }
.fmap-nmbu { z-index: 2; }
.fmap-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font: 700 13px var(--sans); letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0, 0, 0, .25); white-space: nowrap; }
.fmap-poi { z-index: 1; }
.fmap-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: #8d8679; box-shadow: 0 0 0 2px #fff; }
.fmap-poi-label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 12px var(--sans); color: #6b655b; text-shadow: 0 0 3px #fff, 0 0 3px #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.has-active .fmap-poi-label { opacity: 1; }
@media (max-width: 860px) { .has-active .fmap-poi-label { opacity: 0; } .fmap-house { width: 30px; height: 30px; } }

/* Kart: navn alltid synlige, uten overlapp */
.fmap-label { left: calc(100% + 6px); bottom: auto; top: 50%; transform: translateY(-50%); opacity: 1; background: #fff; color: var(--ink); font: 600 12.5px var(--sans); padding: 4px 9px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.12); }
.fmap-home.lbl-left .fmap-label { left: auto; right: calc(100% + 6px); }
.fmap-home.lbl-hide .fmap-label { opacity: 0; }
.fmap-home.lbl-hide:hover .fmap-label { opacity: 1; }
.fmap-home.is-active .fmap-label, .fmap-home.is-hover .fmap-label { background: var(--ink); color: #fff; opacity: 1; }
.fmap-home.is-hover .fmap-house { transform: scale(1.12); }
.fmap-home.is-hover { z-index: 5; }
.fmap-home:focus-visible { outline: none; }
.fmap-home:focus-visible .fmap-house { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green); }
#route-sidebar.map-chips .prop-item.is-hover { border-color: var(--green); background: #fff; }
.fmap-timepin { z-index: 4; pointer-events: none; }
.fmap-time { display: inline-block; white-space: nowrap; background: var(--green); color: #fff; font: 700 13px var(--sans); padding: 6px 11px; border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(10, 40, 36, .3); }
.fmap-home.lbl-top .fmap-label { left: 50%; right: auto; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); }
.fmap-home.lbl-bottom .fmap-label { left: 50%; right: auto; bottom: auto; top: calc(100% + 6px); transform: translateX(-50%); }
@media (max-width: 560px) { .fmap-label { font-size: 11.5px; padding: 3px 7px; } .fmap-tag { font-size: 12px; padding: 6px 10px; } }
