/* =====================================================================
   Kikut Alpin Lodge – kikutalpinlodge.no
   Visuell profil: Ull, Tåke, Reinlav, Trevirke, Tjern. Lora + Open Sans.
   Ingen eksterne ressurser. Fontene ligger i assets/fonts.
   ===================================================================== */

/* Fonter (selvhostet, SIL Open Font License) ---------------------------- */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }

/* Tokens ---------------------------------------------------------------- */
:root {
  --ull: #f7f3ed;
  --taake: #e9f0eb;
  --reinlav: #6a8d73;
  --reinlav-dark: #55755d;
  --reinlav-soft: #dfe8e1;
  --trevirke: #b79567;
  --trevirke-dark: #9a7b52;
  --trevirke-light: #d8c4a4;
  --tjern: #151d1d;
  --ink: #1f2725;
  --muted: #5f6a66;
  --white: #ffffff;
  --line: rgba(21, 29, 29, 0.12);
  --line-2: rgba(21, 29, 29, 0.28);
  --shadow: 0 12px 34px rgba(21, 29, 29, 0.08);
  --shadow-lg: 0 28px 70px rgba(21, 29, 29, 0.16);
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Grunnlag ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--ull); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--reinlav-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tjern); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; color: var(--tjern); margin: 0 0 0.5em; letter-spacing: -0.008em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.1vw, 4.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
strong { font-weight: 600; }
::selection { background: var(--reinlav-soft); }
:focus-visible { outline: 2px solid var(--reinlav); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--tjern); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 4px; }
.skip-link:focus { left: 8px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--white { background: var(--white); }
.section--tight-top { padding-top: clamp(12px, 2vw, 28px); }
.section--tight-bottom { padding-bottom: clamp(12px, 2vw, 28px); }
.section--tjern { background: var(--tjern); color: rgba(247, 243, 237, 0.85); }
.section--tjern h2, .section--tjern h3 { color: var(--white); }

.kicker { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.section-head--wide > div { max-width: none; }
.section-head--row p { margin: 0; max-width: 440px; flex: 1 1 300px; }

/* Knapper --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; padding: 0.88em 1.6em; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--reinlav); color: #fff; border-color: var(--reinlav); }
.btn--primary:hover { background: var(--reinlav-dark); border-color: var(--reinlav-dark); color: #fff; }
.btn--dark { background: var(--tjern); color: #fff; border-color: var(--tjern); }
.btn--dark:hover { background: #2a3535; border-color: #2a3535; color: #fff; }
.btn--outline { background: transparent; color: var(--tjern); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--tjern); color: var(--tjern); background: rgba(255, 255, 255, 0.5); }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn--light { background: #fff; color: var(--tjern); border-color: #fff; }
.btn--light:hover { background: var(--ull); color: var(--tjern); }
.btn--sm { padding: 0.68em 1.25em; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--tjern); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Topp / meny ----------------------------------------------------------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(247, 243, 237, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(21, 29, 29, 0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); transition: height 0.3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 58px; }
.brand img { height: 26px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand img { height: 23px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { font-size: 0.9rem; font-weight: 600; color: var(--tjern); text-decoration: none; padding: 8px 14px; border-radius: 999px; line-height: 1.2; transition: background 0.25s, color 0.25s; }
.nav a:not(.btn):hover { background: rgba(21, 29, 29, 0.06); }
.nav a[aria-current="page"] { background: rgba(21, 29, 29, 0.07); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--tjern); cursor: pointer; }
  .nav-toggle span { position: relative; width: 16px; height: 2px; background: var(--tjern); display: block; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--tjern); transition: transform 0.25s; }
  .nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
  .nav { position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; height: auto; background: var(--ull); flex-direction: column; align-items: stretch; padding: 24px var(--gutter) 40px; gap: 6px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease); overflow: auto; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.is-scrolled .nav { top: calc(58px + env(safe-area-inset-top, 0px)); }
  .nav a:not(.btn) { font-family: var(--font-head); font-size: 1.7rem; font-weight: 500; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn):hover, .nav a[aria-current="page"] { background: none; color: var(--reinlav-dark); }
  .nav .btn { margin: 20px 0 0; align-self: flex-start; }
  .site-header__cta { display: none; }
}

/* Magasin-hero (forside) ------------------------------------------------ */
.mag-hero { position: relative; }
.mag-hero__photo { position: relative; overflow: hidden; }
.mag-hero__photo img { width: 100%; height: clamp(420px, 68vh, 780px); object-fit: cover; object-position: 50% 42%; transform-origin: 50% 45%; }
.mag-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 29, 29, 0.18) 0%, rgba(21, 29, 29, 0) 30%, rgba(21, 29, 29, 0) 62%, rgba(21, 29, 29, 0.38) 100%); pointer-events: none; }
.mag-hero__body { position: relative; z-index: 2; }
.mag-hero h1 { margin: -1.55em 0 0.35em; font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1.02; max-width: 14ch; }
.mag-hero h1 .w { color: #fff; text-shadow: 0 2px 26px rgba(21, 29, 29, 0.35); }
.mag-hero h1 .fx { font-style: italic; font-weight: 400; color: var(--trevirke); }
.mag-hero__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding-bottom: clamp(28px, 4vw, 48px); }
.mag-hero__row--single { grid-template-columns: minmax(0, 1fr); }
.mag-hero__aside { border-left: 1px solid var(--line-2); padding-left: clamp(22px, 3vw, 44px); padding-bottom: 6px; }
.mag-hero__aside .facts-dl { margin: 0; }
.mag-hero__row p { font-family: var(--font-head); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--ink); max-width: 30em; margin-bottom: 1.4rem; }
@media (max-width: 860px) {
  .mag-hero__photo img { height: clamp(360px, 58vh, 560px); }
  .mag-hero h1 { margin-top: -0.95em; max-width: none; }
  .mag-hero__row { grid-template-columns: 1fr; }
  .mag-hero__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 20px; }
}
@media (max-width: 480px) { .mag-hero__facts { gap: 10px; } .mag-hero__facts b { font-size: 1.2rem; } .mag-hero__facts span { font-size: 0.74rem; } }

/* Ingress med initial + faktaliste ------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.intro__text p { font-size: 1.12rem; line-height: 1.7; }
.intro--center { display: block; max-width: 760px; text-align: center; }
.intro--center p { font-family: var(--font-head); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--tjern); margin-bottom: 1.1em; text-wrap: pretty; }
.dropcap::first-letter { font-family: var(--font-head); font-weight: 500; font-size: 4.3em; float: left; line-height: 0.82; margin: 0.06em 0.1em 0 0; color: var(--tjern); }
.intro__facts { border-left: 1px solid var(--line-2); padding-left: clamp(22px, 3vw, 44px); }
.facts-dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-items: baseline; }
.facts-dl dt { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tjern); }
.facts-dl dd { margin: 0; color: var(--ink); }
.facts-dl dd img { height: 22px; width: auto; display: block; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 24px; }
}

/* Leilighetskort -------------------------------------------------------- */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ucard { position: relative; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 24px 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.ucard[data-unit-card] { cursor: pointer; }
.ucard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ucard__tag { position: absolute; left: -8px; top: 42px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--trevirke); color: var(--tjern); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 20px 7px 14px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.ucard__tag--sold { background: var(--tjern); color: var(--ull); }
.ucard__plan { margin-top: 8px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.ucard__plan img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.ucard:hover .ucard__plan img { transform: scale(1.035); }
.ucard__media { margin-top: 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.ucard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ucard:hover .ucard__media img { transform: scale(1.03); }
.ucard h3 { margin: 4px 0 0; font-size: 1.3rem; }
.ucard__facts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ull); }
.ucard__facts li { padding: 10px 6px 9px; text-align: center; border-left: 1px solid var(--line); }
.ucard__facts li:first-child { border-left: 0; }
.ucard__facts b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.45rem; line-height: 1.1; color: var(--tjern); font-variant-numeric: tabular-nums; }
.ucard__facts span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.ucard--cta .btn-row { margin-top: 4px; }
.ucard__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.ucard__price b { font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; color: var(--tjern); }
.ucard__price small { font-size: 0.78rem; color: var(--muted); }
.ucard__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ucard--sold { opacity: 0.75; }
.ucard--cta { background: var(--reinlav-dark); border-color: var(--reinlav-dark); color: #fff; justify-content: center; align-items: flex-start; }
.ucard--cta h3 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.ucard--cta p { color: rgba(255, 255, 255, 0.86); margin: 0 0 18px; }
@media (max-width: 1000px) { .units { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .units { grid-template-columns: 1fr; } }

/* Detaljvisning (modal) ------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(21, 29, 29, 0.62); backdrop-filter: blur(6px); animation: fade 0.3s; }
.modal__panel { position: absolute; inset: clamp(12px, 3vh, 36px) auto auto 50%; transform: translateX(-50%); width: min(1180px, 100% - 24px); max-height: calc(100% - 2 * clamp(12px, 3vh, 36px)); overflow: auto; background: var(--ull); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: rise 0.45s var(--ease); }
.modal__close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--tjern); display: grid; place-items: center; box-shadow: var(--shadow); }
.modal__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); padding: clamp(20px, 3vw, 40px); }
.modal__plans { display: grid; gap: 14px; }
.modal__plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }
.modal__plan img { width: 100%; height: auto; max-height: 460px; object-fit: contain; cursor: zoom-in; }
.modal__plan figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; }
.modal__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modal__gallery .modal__gallery-lead { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.modal__gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.modal__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.modal__gallery figure:hover img { transform: scale(1.04); }
.modal__gallery-note { font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; }
.modal__body .modal__gallery { margin-top: 22px; }
.modal__body h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 0.3em; }
.fact-grid { list-style: none; margin: 20px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fact-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 92px; }
.fact-grid b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.5rem; line-height: 1.1; color: var(--tjern); font-variant-numeric: tabular-nums; }
.fact-grid b.txt { font-size: 1.12rem; line-height: 1.2; }
.fact-grid span { display: block; font-size: 0.86rem; line-height: 1.35; color: var(--muted); margin-top: 6px; }
.modal__note { font-size: 0.78rem; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 420px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.spec-table th { text-align: left; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-top: 1px solid var(--line); width: 42%; vertical-align: top; }
.spec-table td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.price-box { margin: 6px 0 18px; }
.price-box b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 2rem; color: var(--tjern); line-height: 1.1; }
.price-box span { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.price-box small { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) { .modal__grid { grid-template-columns: 1fr; } .modal__panel { inset: 8px auto auto 50%; width: calc(100% - 16px); max-height: calc(100% - 16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 18px) scale(0.985); } }

/* Lightbox -------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(21, 29, 29, 0.9); display: none; place-items: center; padding: 24px; animation: fade 0.25s; }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 80vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(247, 243, 237, 0.8); font-size: 0.82rem; line-height: 1.45; text-align: center; max-width: min(92vw, 820px); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 0; font-size: 1.4rem; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); border: 0; font-size: 1.8rem; line-height: 1; color: var(--tjern); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.lightbox__nav:hover { background: #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox--single .lightbox__nav { display: none; }
@media (max-width: 600px) { .lightbox__nav { width: 40px; height: 40px; top: auto; bottom: 18px; transform: none; } .lightbox img { max-height: 76vh; } }

/* Skiltstolpen ----------------------------------------------------------- */
.post-section .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.post-scene { position: relative; }
.post-scene__photo { border-radius: var(--radius-lg); overflow: hidden; }
.post-scene__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-scene__post { position: absolute; right: -5%; bottom: -5%; width: 54%; max-width: 370px; filter: drop-shadow(0 16px 22px rgba(21, 29, 29, 0.28)); }
.post-scene__post svg { width: 100%; height: auto; overflow: visible; display: block; }
.post-text p { color: var(--muted); font-size: 1.08rem; }
.post-scene__post .board { transform-box: fill-box; transform-origin: center; transition: transform 0.3s var(--ease); }
.post-scene__post .board:hover { transform: translateX(3px); }
.post-scene__post .tt { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; }
.post-scene__post .ts { font-family: var(--font-head); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; }
.post-scene__post .tn { font-family: var(--font-head); font-style: italic; font-size: 12px; fill: var(--muted); }
@media (max-width: 860px) {
  .post-section .grid { grid-template-columns: 1fr; }
  .post-scene__post { right: 2%; bottom: -4%; width: 58%; min-width: 190px; }
  .post-scene__photo img { aspect-ratio: 4 / 3.6; }
  .post-scene { margin-bottom: 24px; }
}

/* Fordeler --------------------------------------------------------------- */
.benefits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pass { background: #fff; border: 1px solid var(--trevirke); border-radius: var(--radius); padding: 30px 32px; position: relative; box-shadow: var(--shadow); }
.pass::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--trevirke-light); border-radius: 3px; pointer-events: none; }
.pass__mark { width: 46px; color: var(--trevirke); opacity: 0.8; flex: none; }
.pass__mark svg { width: 100%; height: auto; display: block; }
.pass__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.pass__head h3 { margin: 0 0 2px; font-size: 1.45rem; }
.pass__head span { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--trevirke-dark); }
.pass ul { list-style: none; margin: 0; padding: 0; }
.pass li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pass li:last-child { border-bottom: 0; }
.pass li b { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; color: var(--reinlav-dark); }
.pass__foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

/* Møblering (Nova Solo) --------------------------------------------------- */
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.partner__media { position: relative; min-height: 300px; }
.partner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner__media .seal { position: absolute; left: 18px; top: 18px; }
.partner--reverse .partner__media { order: 2; }
.partner__text { padding: clamp(26px, 3.5vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.partner__text h2 { margin-bottom: 0.5em; }
.partner__text p { margin: 0 0 16px; color: var(--ink); max-width: 60ch; }
.partner__side { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; margin-top: 8px; }
.seal { width: clamp(150px, 16vw, 184px); height: auto; display: block; filter: drop-shadow(0 10px 22px rgba(21, 29, 29, 0.22)); }
.seal__minst { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--trevirke-dark); }
.seal__pct { font-family: var(--font-head); font-size: 60px; font-weight: 500; fill: var(--trevirke); }
.seal__sub { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--trevirke-dark); }
.partner__logo { height: 78px; width: auto; display: block; flex: none; margin-left: auto; }
@media (max-width: 860px) { .partner { grid-template-columns: minmax(0, 1fr); } .partner__media { min-height: 240px; aspect-ratio: 4 / 3; } .partner--reverse .partner__media { order: 0; } .seal { width: 140px; } .partner__logo { height: 62px; } }

/* CTA-bånd --------------------------------------------------------------- */
.cta-band { background: var(--reinlav-dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 38em; }

/* Salgsteam + skjema ------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.person { text-decoration: none; color: inherit; }
.person__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; max-width: 300px; }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s var(--ease); }
.person:hover .person__img img { transform: scale(1.03); }
.person h3 { margin: 14px 0 2px; font-size: 1.2rem; }
.person p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.person a { display: block; text-decoration: none; color: var(--tjern); font-weight: 600; font-size: 0.95rem; }
.person a:hover { color: var(--reinlav-dark); }
.people--compact { grid-template-columns: 1fr 1fr; }
.people--compact .person { display: flex; gap: 14px; align-items: center; }
.people--compact .person__img { width: 72px; aspect-ratio: 1; border-radius: 50%; flex: none; }
.people--compact h3 { margin: 0 0 2px; font-size: 1.05rem; }
.people--compact p { margin: 0 0 4px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .people { gap: 14px; } .people--compact { grid-template-columns: 1fr; } .person h3 { font-size: 1.05rem; } }

.form h2 { font-size: 1.8rem; }
.form .form-intro { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 2px; border: 0; border-bottom: 1.5px solid var(--line-2); background: transparent; font: inherit; font-size: 1rem; color: var(--tjern); border-radius: 0; transition: border-color 0.25s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--reinlav); }
.checkbox, .field label.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 18px 0 0; text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--reinlav); flex: none; }
.form .btn { margin-top: 22px; }
.form-status { margin-top: 12px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.is-error { color: #a5372f; }
.honey { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Bunntekst --------------------------------------------------------------- */
.site-footer { background: var(--tjern); color: rgba(247, 243, 237, 0.8); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: 0.92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--trevirke-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand img { height: 96px; width: auto; margin-bottom: 16px; }
.footer-skigeilo { display: block; margin-top: 12px; }
.footer-skigeilo img { height: 26px; width: auto; display: block; opacity: 0.92; }
.footer-skigeilo:hover img { opacity: 1; }
.footer-note { margin: 22px 0 0; font-size: 0.76rem; line-height: 1.55; color: rgba(247, 243, 237, 0.55); max-width: 80ch; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 0.82rem; color: rgba(247, 243, 237, 0.6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Samtykkebanner ---------------------------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px 22px; max-width: 560px; margin-inline: auto; font-size: 0.9rem; animation: rise-up 0.5s var(--ease); }
.consent p { margin: 0 0 14px; }
@keyframes rise-up { from { opacity: 0; transform: translateY(16px); } }

/* Generelle blokker (undersider) ----------------------------------------- */
.page-hero { position: relative; }
.page-hero__photo { overflow: hidden; }
.page-hero__photo img { width: 100%; height: clamp(300px, 46vh, 520px); object-fit: cover; }
.page-hero__body { padding-top: clamp(28px, 4vw, 48px); }
.page-hero__body h1 { max-width: 16ch; }
.page-hero__body .lead { max-width: 40em; }
.page-title { padding-top: clamp(40px, 6vw, 72px); }
.page-title h1 { max-width: 18ch; }
.page-title .lead { max-width: 42em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media:hover img { transform: scale(1.025); }
.split__text p { color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.feature__num { font-family: var(--font-head); font-size: 2.2rem; color: var(--trevirke); line-height: 1; margin-bottom: 14px; }
.feature h3 { font-size: 1.25rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature--img { padding: 0; overflow: hidden; }
.feature__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.feature__body { padding: 24px 28px 28px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.duo__img { border-radius: var(--radius-lg); overflow: hidden; }
.duo__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.duo__item:hover .duo__img img { transform: scale(1.025); }
.duo h3 { margin: 20px 0 8px; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.duo p { margin: 0; color: var(--ink); }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* «Alle leilighetene har» -------------------------------------------------- */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.spec-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line-2); font-size: 1.02rem; }
.spec-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-2); }
.spec-list li::before { content: "◆"; font-size: 0.55rem; color: var(--trevirke); transform: translateY(-2px); }
@media (max-width: 700px) { .spec-list { grid-template-columns: 1fr; } .spec-list li:nth-last-child(2) { border-bottom: 0; } }

.split--list .spec-list { grid-template-columns: 1fr; margin-top: 8px; }
.split--list .spec-list li:nth-last-child(2) { border-bottom: 0; }
.benefit-list { list-style: none; margin: 8px 0 0; padding: 0; }
.benefit-list li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.benefit-list b { line-height: 1; }
.benefit-list li:last-child { border-bottom: 1px solid var(--line-2); }
.benefit-list b { font-family: var(--font-head); font-weight: 500; font-size: 1.6rem; color: var(--reinlav-dark); }
.benefit-list p { margin: 0; }
.benefit-list small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.people--wide { margin-top: 0; }
.people--wide .person__img { max-width: none; }

/* Sitat ----------------------------------------------------------------- */
.quote-block { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: clamp(32px, 5vw, 56px) 0; text-align: center; }
.quote-block p { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--tjern); max-width: 26em; margin: 0 auto 18px; text-wrap: balance; }
.quote-block cite { font-style: normal; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--trevirke-dark); }

/* Håndskisse ------------------------------------------------------------- */
.sketch { position: relative; }
.sketch svg { width: 100%; height: auto; overflow: visible; }
.sketch .k { fill: none; stroke: var(--tjern); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sketch .k2 { fill: none; stroke: var(--tjern); stroke-width: 0.9; stroke-linecap: round; opacity: 0.7; }
.sketch .dim { fill: none; stroke: var(--trevirke); stroke-width: 0.9; }
.sketch .glass { fill: rgba(255, 255, 255, 0.55); }
.sketch .torv { fill: none; stroke: var(--reinlav); stroke-width: 4.5; stroke-linecap: round; opacity: 0.9; }
.sketch text { font-family: var(--font-head); font-style: italic; font-size: 12px; fill: var(--muted); }
.sketch .k-ghost { opacity: 0.35; stroke-width: 0.8; }
.sketch .hatch path { opacity: 0.35; }
.sketch path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sketch.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sketch.is-drawn .d2 path, .sketch.is-drawn path.d2 { transition-delay: 0.5s; }
.sketch.is-drawn .d3 path { transition-delay: 1s; }
.sketch.is-drawn .d4 path { transition-delay: 1.5s; }
.sketch.is-drawn .d5 path { transition-delay: 2s; }
.sketch text { opacity: 0; transition: opacity 0.8s 2.6s; }
.sketch.is-drawn text { opacity: 1; }
.sketch__cap { font-family: var(--font-head); font-style: italic; color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

/* Galleri ---------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .span-2 { grid-column: span 2; }
.gallery .row-2 { grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }

.figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.figure img { width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 2px 0; }

/* Reisekart --------------------------------------------------------------- */
.travel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.travel-map { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 2.5vw, 30px); }
.travel-map svg { width: 100%; height: auto; display: block; }
.travel-map .road { fill: none; stroke: var(--trevirke); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.travel-map .rail { fill: none; stroke: var(--tjern); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.travel-map .rail-dash { fill: none; stroke: #fff; stroke-width: 1.2; stroke-dasharray: 7 7; }
.travel-map .city { fill: var(--tjern); }
.travel-map .city-o { fill: #fff; stroke: var(--tjern); stroke-width: 2; }
.travel-map .here { fill: var(--reinlav); stroke: #fff; stroke-width: 3; }
.travel-map text { font-family: var(--font-body); font-size: 14px; fill: var(--tjern); font-weight: 600; }
.travel-map text.t { font-family: var(--font-head); font-size: 13px; font-style: italic; font-weight: 400; fill: var(--muted); }
.travel-map .coast { fill: rgba(21, 29, 29, 0.05); stroke: none; }
.travel-map .legend { font-size: 11px; fill: var(--muted); font-weight: 400; }
.travel-map .contour path { fill: none; stroke: var(--trevirke); stroke-width: 1; opacity: 0.5 !important; }
.travel-map .contour path:nth-child(2) { opacity: 0.4 !important; } .travel-map .contour path:nth-child(3) { opacity: 0.32 !important; } .travel-map .contour path:nth-child(4) { opacity: 0.24 !important; } .travel-map .contour path:nth-child(5) { opacity: 0.16 !important; }
.travel-map .here-ring { fill: rgba(106, 141, 115, 0.18); stroke: var(--reinlav); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) { .travel-map .here-ring { animation: pulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; } @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.45; } } }
.travel-list { list-style: none; margin: 18px 0 0; padding: 0; }
.travel-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.travel-list li:last-child { border-bottom: 1px solid var(--line-2); }
.travel-list b { font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; color: var(--tjern); }
.travel-list span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .travel { grid-template-columns: 1fr; } }

/* Leilighetsvelger (bilde per bygg + situasjonsplan) --------------------- */
.velger { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.velger__stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--tjern); box-shadow: var(--shadow); }
.velger__stage img.velger__img { width: 100%; height: auto; display: block; transition: opacity 0.4s; }
.velger__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.velger__svg .unit { cursor: pointer; outline: none; }
.velger__svg .unit polygon { fill: rgba(255, 255, 255, 0); stroke: #fff; stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linejoin: miter; transition: fill 0.3s, stroke 0.3s; }
.velger__svg .unit:hover polygon, .velger__svg .unit:focus-visible polygon { fill: rgba(255, 255, 255, 0.12); }
.velger__svg .unit.is-active polygon { stroke-width: 4.5; fill: rgba(255, 255, 255, 0.1); }
.velger__svg .unit .tag { fill: rgba(255, 255, 255, 0.94); stroke: var(--tjern); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill 0.3s; }
.velger__svg .unit:hover .tag, .velger__svg .unit.is-active .tag { fill: var(--trevirke); }
.velger__svg .unit text { font-family: var(--font-body); font-size: 50px; font-weight: 700; fill: var(--tjern); letter-spacing: 0.03em; pointer-events: none; }
.velger__svg .unit--res polygon { stroke-dasharray: 14 10; }
.velger__bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.velger__bar .chip { border: 1.5px solid var(--line-2); background: transparent; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--tjern); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.velger__bar .chip:hover, .velger__bar .chip.is-active { background: var(--tjern); color: #fff; border-color: var(--tjern); }
.velger__hint { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.velger__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; min-height: 200px; position: sticky; top: calc(var(--nav-h) + 16px); }
.velger__panel h3 { margin: 0 0 4px; }
.velger__panel .kicker { margin-bottom: 4px; }
.ulist { display: grid; gap: 10px; }
.uitem { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ull); cursor: pointer; transition: border-color 0.25s, transform 0.25s var(--ease); text-align: left; font: inherit; color: inherit; width: 100%; }
.uitem:hover, .uitem.is-active { border-color: var(--reinlav); transform: translateX(3px); }
.uitem img { width: 74px; height: 56px; object-fit: contain; background: #fff; border-radius: 4px; }
.uitem b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; }
.uitem small { color: var(--muted); font-size: 0.8rem; }
.uitem .p { font-family: var(--font-head); font-size: 1rem; white-space: nowrap; }
.velger__fade { animation: fade 0.5s; }
.plan-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.plan-map img { width: 100%; display: block; }
.plan-map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plan-map .plan-unit polygon { fill: rgba(255, 255, 255, 0.55); stroke: #fff; stroke-width: 2.5; stroke-linejoin: miter; transition: fill 0.3s; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 3px rgba(21, 29, 29, 0.35)); }
.plan-map .plan-unit.is-active polygon { fill: rgba(255, 255, 255, 0.78); }
.plan-map .lbl { font-family: var(--font-body); font-weight: 700; font-size: 15px; fill: var(--tjern); pointer-events: none; }
.plan-map .lbl-bg { fill: #fff; stroke: var(--tjern); stroke-width: 1.2; pointer-events: none; }
.plan-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.plan-legend span { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend i { width: 18px; height: 13px; display: inline-block; border: 1.5px solid #fff; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), var(--reinlav); box-shadow: 0 0 0 1px var(--line); }
.velger__title { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.velger__plan { background: var(--ull); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 12px; }
.velger__plan img { max-height: 210px; width: 100%; object-fit: contain; cursor: zoom-in; }
.facts-dl--tight { gap: 6px 16px; margin-bottom: 16px; font-size: 0.92rem; }
.facts-dl--tight dt { font-size: 0.7rem; }
.velger__links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.velger__links .link-arrow, .velger__all { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--tjern); display: inline-flex; align-items: center; gap: 8px; }
.velger__all { margin-top: 14px; }
.velger__all::after, .velger__links .link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.velger__all:hover::after, .velger__links .link-arrow:hover::after { transform: translateX(4px); }
.velger__mini { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--reinlav-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.plan-map .lbl--units { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; fill: var(--tjern); }
.plan-map .plan-unit .lbl-bg { filter: drop-shadow(0 2px 4px rgba(21, 29, 29, 0.25)); }
.plan-wrap { max-width: 860px; margin: clamp(28px, 4vw, 48px) auto 0; }
.plan-wrap p { color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 960px) { .velger { grid-template-columns: 1fr; } .velger__panel { position: static; } .plan-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .uitem { grid-template-columns: 64px 1fr; } .uitem .p { grid-column: 2; margin-top: -6px; } .velger__svg .unit .tag, .velger__svg .unit text { transform: scale(1.9); transform-box: fill-box; transform-origin: center; } }

/* Høydekurver (bakgrunn) --------------------------------------------------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: var(--trevirke); stroke-width: 1; opacity: 0.28; }
.has-contours { position: relative; overflow: hidden; }
.has-contours > .container { position: relative; }

/* Avsløring ved rulling ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: no-preference) {
  .mag-hero__photo img.kb { animation: kenburns 9s var(--ease) forwards; }
  @keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .sketch path { stroke-dashoffset: 0; } .sketch text { opacity: 1; transition: none; }
  .btn, .ucard, .split__media img, .gallery img { transition: none; }
  html { scroll-behavior: auto; }
}

/* Prose (personvern) ---------------------------------------------------------- */
.prose h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

/* Lange overskriftsord skal få plass også på de minste mobilskjermene. */
@media (max-width: 360px) {
  .mag-hero[aria-label="Kikut Alpin Lodge"] h1, .page-title h1 { font-size: 2.25rem; }
  .prose h1 { font-size: 1.75rem; }
}

/* FAQ ---------------------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--line-2); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-size: 1.15rem; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--tjern); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--trevirke); transition: transform 0.3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 14px; }

.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ull); color: var(--reinlav-dark); }
