:root {
  --pine: #193b32;
  --moss: #55705a;
  --cream: #f4f0e6;
  --gold: #e4b96d;
  --ink: #20312b;
  --muted: #78847a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Header ---------- */
header {
  height: 76px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbf9f4;
  border-bottom: 1px solid #e5e0d5;
}
.brand { display: flex; gap: 12px; align-items: center; font-weight: 800; letter-spacing: .02em; color: var(--pine); }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--pine); color: #f5e8c8; display: grid; place-items: center; font-size: 20px; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav a { color: #53645b; text-decoration: none; }
.nav a:hover { color: var(--pine); }
.join { border: 0; background: var(--pine); color: white; padding: 11px 17px; border-radius: 9px; font-weight: 700; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { min-height: 560px; padding: 92px 7vw 72px; background: #183a32; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero:before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,24,21,.78) 0%, rgba(9,24,21,.4) 40%, rgba(9,24,21,0) 70%); }
.hero-inner { max-width: 720px; position: relative; z-index: 2; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.map:has(.map-art):before, .map:has(.map-art) .stream, .map:has(.map-art) .path, .map:has(.map-art) .tp, .map:has(.map-art) .mc { display: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; color: #dfc896; font-size: 11px; font-weight: 800; }
.hero h1 { font-family: Georgia, serif; font-size: clamp(42px, 6vw, 70px); line-height: .98; letter-spacing: -.04em; margin: 18px 0; }
.hero p { color: #e2e7dc; max-width: 500px; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.primary, .secondary { border-radius: 9px; padding: 13px 18px; font-weight: 750; cursor: pointer; }
.primary { background: var(--gold); border: 0; color: #27362e; }
.secondary { background: #ffffff18; border: 1px solid #ffffff65; color: white; }
.status { display: flex; gap: 9px; align-items: center; margin-top: 28px; font-size: 12px; color: #e2e7dc; }
.dot { width: 8px; height: 8px; border-radius: 100%; background: #8fd49b; box-shadow: 0 0 0 4px #8fd49b22; }

/* Animasjoner i hero-scenen */
.smoke { fill: #e8e2d4; opacity: 0; animation: rise 6s ease-in infinite; }
.smoke:nth-of-type(2) { animation-delay: 2s; }
.smoke:nth-of-type(3) { animation-delay: 4s; }
@keyframes rise {
  0% { opacity: .5; transform: translate(0, 0) scale(.6); }
  100% { opacity: 0; transform: translate(14px, -70px) scale(2.2); }
}
.fly { fill: #ffe9a0; animation: blink 3.4s ease-in-out infinite; }
.fly:nth-of-type(2n) { animation-delay: 1.1s; }
.fly:nth-of-type(3n) { animation-delay: 2.2s; }
@keyframes blink { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .smoke, .fly { animation: none; }
  .smoke { opacity: .2; }
}

/* ---------- Innhold ---------- */
.main { max-width: 1180px; margin: auto; padding: 42px 24px 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 19px; }
.section-head h2 { font: 700 27px Georgia, serif; margin: 0 0 7px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.map-layout { display: grid; grid-template-columns: 1.65fr .8fr; gap: 18px; }

/* ---------- Kart ---------- */
.map { min-height: 340px; position: relative; overflow: hidden; border: 1px solid #d9ded1; border-radius: 16px; background: linear-gradient(145deg, #cdd8bf, #b6c6a7 45%, #d8d9bd); box-shadow: 0 8px 25px #253c2410; }
.map:before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(35deg, transparent 0 56px, #ffffff17 57px 60px), radial-gradient(ellipse at 72% 70%, #91aa84 0 18%, transparent 19%), radial-gradient(ellipse at 12% 13%, #8fa77c 0 17%, transparent 18%); }
.stream { position: absolute; left: 47%; top: -10%; height: 125%; width: 62px; background: #7aa8a1; border-radius: 50%; transform: rotate(25deg); opacity: .9; box-shadow: 0 0 0 9px #ffffff35; }
.path { position: absolute; width: 74%; height: 8px; background: #dbcda8; border: 1px solid #b7a986; border-radius: 50%; left: 11%; top: 53%; transform: rotate(-12deg); box-shadow: 0 0 0 2px #fff5; }
.tp { position: absolute; width: 26px; height: 52px; fill: #2f5a45; filter: drop-shadow(0 3px 2px #1d301f55); }
.mc { position: absolute; width: 70px; height: 48px; z-index: 1; filter: drop-shadow(0 5px 4px #1d301f66); }
.pin { position: absolute; border: 0; background: #fffdf5; color: var(--pine); padding: 8px 11px; border-radius: 10px; box-shadow: 0 4px 12px #152c2630; font-size: 12px; font-weight: 800; cursor: pointer; z-index: 2; transition: transform .15s; }
.pin:hover { transform: translateY(-3px); }
.pin span { display: block; color: #809087; font-size: 10px; font-weight: 500; margin-top: 2px; }
.pin.active { background: var(--pine); color: #fff; }
.pin.active span { color: #d4dfd6; }
.map-label { position: absolute; left: 16px; bottom: 14px; background: #fffdf0d9; padding: 7px 10px; border-radius: 7px; font-size: 10px; color: #566850; letter-spacing: .12em; font-weight: 800; }

/* ---------- Sidekort ---------- */
.side { display: flex; flex-direction: column; gap: 14px; }
.card { background: #fbfaf6; border: 1px solid #e6e3d8; border-radius: 15px; padding: 19px; }
.card h3 { font: 700 19px Georgia, serif; margin: 0 0 7px; }
.card p { margin: 0; color: #718077; font-size: 13px; line-height: 1.55; }
.cabin-icon { width: 100%; height: 91px; border-radius: 10px; margin: 13px 0; background: linear-gradient(170deg, #d6dfcc, #b5c8ad); display: grid; place-items: center; font-size: 43px; }
.tag { display: inline-block; margin-top: 13px; background: #e9eee2; color: #456149; border-radius: 99px; padding: 6px 10px; font-size: 11px; font-weight: 750; }

/* ---------- Arrangementer ---------- */
.events { margin-top: 42px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.event { background: #fbfaf6; border: 1px solid #e6e3d8; border-radius: 13px; padding: 16px; display: flex; gap: 13px; align-items: center; }
.date { width: 44px; height: 48px; border-radius: 9px; background: #e9eee2; color: #355944; display: grid; place-content: center; text-align: center; font-size: 10px; font-weight: 800; }
.date b { font-size: 18px; }
.event strong { font-size: 13px; }
.event small { display: block; color: #79857b; margin-top: 4px; }

/* ---------- Footer og toast ---------- */
.footer { padding: 23px 6vw; background: #193b32; color: #dfe8df; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: #1b3d33; color: white; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 28px #0003; transition: .25s; pointer-events: none; font-size: 13px; z-index: 9; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobil ---------- */
@media (max-width: 740px) {
  header { padding: 0 18px; }
  .nav a { display: none; }
  .hero { padding: 58px 24px; min-height: 520px; }
  .hero:before { background: rgba(9,24,21,.7); }
  .main { padding: 32px 16px 48px; }
  .map-layout { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
  .event-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; gap: 10px; flex-direction: column; }
  .footer { gap: 8px; flex-direction: column; align-items: flex-start; }
  .pin { font-size: 10px; padding: 7px 8px; }
}
