:root {
  --ink: #17231f;
  --muted: #61716a;
  --paper: #f7f4ed;
  --white: #fff;
  --brand: #1f6b59;
  --brand-dark: #12483c;
  --sand: #d9c9ab;
  --line: #d9dfda;
  --shadow: 0 20px 60px rgba(23, 35, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(23,35,31,.08);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--white);
  font-family: "Playfair Display", serif; font-size: 23px; font-weight: 700;
}
.brand strong { display: block; letter-spacing: .15em; font-size: 14px; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--brand); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--white); font-weight: 700; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); background: var(--brand-dark); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.button-full { width: 100%; }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: end;
  padding: 120px clamp(22px, 7vw, 110px) 90px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18,72,60,.35), rgba(18,72,60,.02)),
    radial-gradient(circle at 70% 30%, #8fb9ab 0, #376e60 35%, #17362f 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
}
.hero::before { width: 520px; height: 520px; right: -120px; top: 80px; }
.hero::after { width: 300px; height: 300px; right: 140px; top: 190px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,27,22,.68), rgba(9,27,22,.1) 70%); }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
.eyebrow.dark { color: var(--brand); }
h1, h2 { font-family: "Playfair Display", serif; line-height: 1.08; margin: 0 0 20px; }
h1 { font-size: clamp(52px, 7vw, 92px); max-width: 760px; }
h2 { font-size: clamp(36px, 5vw, 58px); }
h3 { margin: 0 0 10px; font-size: 20px; }
.hero-lead { max-width: 680px; font-size: clamp(18px, 2vw, 24px); color: rgba(255,255,255,.88); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.hero-badges span { padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.text-link { font-weight: 700; }
.total-price-banner {
  position: absolute; z-index: 2; right: clamp(20px, 6vw, 90px); bottom: 36px;
  width: min(390px, calc(100% - 40px)); padding: 20px 24px; border-radius: 18px;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow);
}
.total-price-banner strong, .total-price-banner span { display: block; }
.total-price-banner strong { font-size: 18px; }
.total-price-banner span { color: var(--muted); font-size: 14px; }

.section, .section-narrow { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 100px 0; }
.section-narrow { padding: 42px 0; }
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.quick-facts article { text-align: center; padding: 8px 20px; border-right: 1px solid var(--line); }
.quick-facts article:last-child { border-right: 0; }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { font-family: "Playfair Display", serif; font-size: 28px; }
.quick-facts span { color: var(--muted); }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.split-section p { color: var(--muted); font-size: 18px; }
.check-list { padding: 0; margin: 30px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li::before { content: "✓"; color: var(--brand); margin-right: 10px; font-weight: 800; }

.image-card {
  min-height: 260px; border-radius: 26px; overflow: hidden; position: relative;
  display: flex; align-items: end; padding: 20px;
  color: var(--white); font-weight: 700; box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, transparent 40%, rgba(17,40,33,.75)),
    linear-gradient(135deg, #b8d0c8, #2f695a);
}
.image-card span { position: relative; z-index: 1; }
.image-card-main { min-height: 540px; }
.gallery { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 18px; padding-top: 0; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

.feature-section { background: var(--paper); width: 100%; padding-inline: max(20px, calc((100vw - 1200px)/2)); }
.section-heading { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { background: var(--white); border-radius: 20px; padding: 30px; border: 1px solid rgba(23,35,31,.06); }
.feature-grid p { color: var(--muted); margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #e6f0ec; color: var(--brand); margin-bottom: 22px; font-weight: 800; }

.included-section { width: 100%; padding-inline: max(20px, calc((100vw - 1200px)/2)); background: var(--brand-dark); color: var(--white); }
.included-section > div:first-child { max-width: 760px; }
.included-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.included-grid div { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.08); }
.included-grid strong { color: #9fd7c4; }
.fine-print { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 24px; }

.booking-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 90px); align-items: start; }
.booking-copy { position: sticky; top: 120px; }
.booking-copy > p { color: var(--muted); }
.booking-highlights { display: grid; gap: 10px; margin-top: 26px; }
.booking-highlights span::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.booking-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); background: var(--white); }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.two-columns { grid-template-columns: repeat(2, 1fr); }
.three-columns { grid-template-columns: repeat(3, 1fr); }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.checkbox-row { grid-template-columns: 22px 1fr; align-items: center; margin: 10px 0 20px; font-weight: 500; }
.checkbox-row input { width: 18px; min-height: auto; }
.price-box { padding: 20px; border-radius: 18px; background: var(--paper); margin-bottom: 20px; }
.price-box > div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.price-total { margin-top: 12px; padding-top: 18px !important; border-top: 1px solid var(--line); font-size: 20px; }
.price-box small { display: block; color: var(--muted); margin-top: 8px; }
.form-note { text-align: center; color: var(--muted); font-size: 12px; }

.location-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; background: var(--paper); width: 100%; padding-inline: max(20px, calc((100vw - 1200px)/2)); }
.map-card { min-height: 440px; }
.distance-list { list-style: none; padding: 0; margin: 30px 0 0; }
.distance-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { color: var(--muted); }

footer { padding: 52px clamp(20px, 5vw, 70px); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; background: #101915; color: var(--white); }
footer a { display: block; color: rgba(255,255,255,.72); margin-bottom: 8px; }
footer p { color: rgba(255,255,255,.6); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 16px; }
.footer-brand small { color: rgba(255,255,255,.58); }

::backdrop { background: rgba(7,20,16,.7); backdrop-filter: blur(4px); }
dialog { width: min(540px, calc(100% - 30px)); border: 0; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.dialog-close { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }

@media (max-width: 900px) {
  nav { display: none; }
  .site-header .button-small { display: none; }
  .hero { min-height: 680px; padding-bottom: 150px; }
  .total-price-banner { left: 20px; right: auto; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-facts article:nth-child(2) { border-right: 0; }
  .quick-facts article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-section, .booking-section, .location-section, .faq-section { grid-template-columns: 1fr; }
  .booking-copy { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery .tall, .gallery .wide { grid-column: auto; grid-row: auto; }
  .gallery .image-card { min-height: 260px; }
}

@media (max-width: 600px) {
  .brand small { display: none; }
  .hero { min-height: 650px; padding-top: 90px; }
  h1 { font-size: 48px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .quick-facts { width: calc(100% - 28px); }
  .quick-facts strong { font-size: 22px; }
  .section { width: calc(100% - 28px); padding: 72px 0; }
  .feature-section, .included-section, .location-section { width: 100%; padding-inline: 14px; }
  .feature-grid, .included-grid, .gallery { grid-template-columns: 1fr; }
  .two-columns, .three-columns { grid-template-columns: 1fr; }
  .booking-card { padding: 20px; }
  footer { grid-template-columns: 1fr; }
}

/* Version 2: priskalender og bookingflow */
.prototype-notice {
  display: grid;
  gap: 2px;
  margin: 24px 0;
  padding: 15px 17px;
  border-radius: 14px;
  background: #fff4d8;
  border: 1px solid #efdca6;
  font-size: 13px;
}
.prototype-notice span { color: #786940; }
.season-price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.season-price-list div { display: flex; justify-content: space-between; gap: 14px; }
.season-price-list span { color: var(--muted); }

.calendar-shell {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfa;
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-align: center;
}
.calendar-toolbar strong { display: block; text-transform: capitalize; font-size: 18px; }
.calendar-kicker { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.calendar-nav:disabled { opacity: .3; cursor: not-allowed; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.calendar-week-heading { color: #929b95; font-weight: 600; }
.calendar-week-number {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #8a938d;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.calendar-spacer { min-height: 52px; }
.calendar-day {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.calendar-day span { font-size: 14px; font-weight: 700; }
.calendar-day small { font-size: 9px; font-weight: 800; }
.calendar-day.season-peak small { color: #9b4f2f; }
.calendar-day.season-high small { color: #8a6b1e; }
.calendar-day.season-low small { color: var(--brand); }
.calendar-day:hover { border-color: var(--brand); }
.calendar-day.selected { background: #dcece6; border-color: #9cc5b7; border-radius: 0; }
.calendar-day.range-start, .calendar-day.range-end { background: var(--brand); color: var(--white); border-radius: 12px; }
.calendar-day.range-start small, .calendar-day.range-end small { color: rgba(255,255,255,.8); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.peak { background: #c67b59; }
.legend-dot.high { background: #d6b24f; }
.legend-dot.low { background: #69a691; }
.legend-dot.selected { background: var(--brand); }
.date-summary-row input { background: var(--paper); }
.booking-message {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e8f3ef;
  color: var(--brand-dark);
  font-size: 13px;
}
.booking-message.error { background: #fff0ed; color: #8b3527; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.booking-dialog { width: min(680px, calc(100% - 30px)); max-height: min(900px, calc(100vh - 30px)); overflow: auto; }
.booking-progress {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-right: 42px;
}
.booking-progress span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8ece9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.booking-progress span.active { background: var(--brand); color: var(--white); }
.booking-progress i { height: 2px; flex: 1; background: #e8ece9; }
.dialog-step { display: none; }
.dialog-step.active { display: block; }
.dialog-summary {
  display: grid;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.dialog-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.dialog-summary div:last-child { border-bottom: 0; }
.dialog-summary span { color: var(--muted); }
.dialog-summary strong { text-align: right; }
.dialog-note { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.split-actions { justify-content: space-between; }
.button-secondary { background: #e8efec; color: var(--brand-dark); }
.button-secondary:hover { background: #dce8e3; }
.guest-details-form { display: grid; gap: 16px; }
.terms-row { margin: 14px 0; }
.success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 24px 0;
  border-radius: 50%;
  background: #dcefe8;
  color: var(--brand);
  font-size: 34px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .season-price-list { grid-template-columns: 1fr; }
  .calendar-shell { padding: 12px; }
  .calendar-weekdays, .calendar-grid { grid-template-columns: 28px repeat(7, minmax(0, 1fr)); gap: 3px; }
  .calendar-week-number { min-height: 48px; font-size: 9px; }
  .calendar-week-heading { font-size: 9px; }
  .calendar-day { min-height: 48px; border-radius: 9px; }
  .calendar-day span { font-size: 12px; }
  .calendar-day small { font-size: 8px; }
  .dialog-summary div { display: grid; gap: 3px; }
  .dialog-summary strong { text-align: left; }
}
.calendar-day.unavailable { opacity: .28; cursor: not-allowed; }
.calendar-day.unavailable:hover { border-color: transparent; }

/* Version 3: tydelig valglogik i kalenderen */
.calendar-day.restricted {
  opacity: .34;
  cursor: not-allowed;
  background: #f2f3f0;
  color: #8f9690;
}
.calendar-day.restricted:hover { border-color: transparent; }
.calendar-day.restricted small { color: #9ca29d; }
.calendar-guidance {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4f1;
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.45;
}

.holiday-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(42, 76, 64, 0.14);
  border-radius: 14px;
  background: rgba(236, 242, 238, 0.72);
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.holiday-note strong {
  color: var(--ink);
}

.holiday-note[hidden] {
  display: none;
}


/* Version 11: valgfrie tilvalg i bookingflowet */
.add-ons-form { display: grid; gap: 20px; }
.add-on-fieldset { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; border: 0; }
.add-on-fieldset legend { margin-bottom: 10px; font-weight: 800; }
.option-card {
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.option-card:has(input:checked) { border-color: var(--brand); background: #f0f7f4; }
.option-card input { width: 18px; min-height: auto; }
.option-card span { display: grid; gap: 3px; }
.option-card small, .add-on-selects small, .mid-stay-cleaning small { color: var(--muted); font-weight: 500; }
.option-card b { white-space: nowrap; }
.add-on-selects { margin: 0; }
.mid-stay-cleaning { padding: 16px; border-radius: 14px; background: var(--paper); }
.mid-stay-cleaning[hidden] { display: none; }
.add-on-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-radius: 14px;
  background: var(--brand-dark);
  color: var(--white);
  font-size: 17px;
}
.form-error { min-height: 18px; margin: -8px 0 0; color: #8b3527; text-align: left; }
.dialog-summary .summary-total { background: #eef5f2; font-size: 17px; }
.dialog-summary .summary-total span, .dialog-summary .summary-total strong { color: var(--brand-dark); }

@media (max-width: 600px) {
  .option-card { grid-template-columns: 22px 1fr; }
  .option-card b { grid-column: 2; }
}
