/* Billettvett: tokens, base and shared components.
   Colour roles, type and accent allowance: docs/brand/identity.md and docs/DIRECTION.md. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --surface: #ffffff;
  --mist: #f3f6f7;
  --ink: #1b1f24;
  --ink-2: #4b5563;
  --ink-3: #656d7a;
  --line: #d9dee3;
  --line-strong: #8a939c;
  --cala: #0a7c82;
  --cala-deep: #076369;
  --cala-tint: #e7f5f5;
  --good: #1f7a4d;
  --caution: #9a5b00;
  --bad: #b3261e;
  --focus: #1d4ed8;
  --deep: #14181d;
  --deep-meta: #9aa3ad;

  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, "Segoe UI", Arial, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, "Segoe UI", Arial, sans-serif;

  --radius-photo: 16px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --shadow-lift: 0 10px 24px -12px rgb(27 31 36 / 0.28), 0 2px 6px -2px rgb(27 31 36 / 0.1);

  --content: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 760;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 720;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  max-width: 70ch;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  flex: none;
  vertical-align: -0.15em;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-control);
  z-index: 50;
}
.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.98);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
/* The ticket mark beside the name (docs/brand/render/make-mark.mjs). */
.wordmark-mark {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 24px;
  margin-left: 8px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 560;
  color: var(--ink-2);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 1.35rem;
}
.icon-link:hover {
  background: var(--mist);
}

/* Resort switcher: a details element that works without JavaScript */
.resort-switcher {
  position: relative;
}
.resort-switcher > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  background: var(--surface);
}
.resort-switcher > summary::-webkit-details-marker {
  display: none;
}
.resort-switcher[data-selected] > summary {
  border-color: var(--cala);
  background: var(--cala-tint);
  color: var(--cala-deep);
}
.resort-switcher .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-lift);
}
.resort-switcher .menu p {
  padding: 8px 10px 4px;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.resort-switcher .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.resort-switcher .menu a,
.resort-switcher .menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.resort-switcher .menu a:hover,
.resort-switcher .menu button:hover {
  background: var(--mist);
}
.resort-switcher .menu [aria-pressed="true"] {
  background: var(--cala-tint);
  color: var(--cala-deep);
  font-weight: 650;
}

/* Header topic menu */
.nav-menu {
  position: relative;
}
.nav-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 560;
  color: var(--ink-2);
  cursor: pointer;
}
.nav-menu > summary::-webkit-details-marker {
  display: none;
}
.nav-menu > summary:hover,
.nav-menu[open] > summary {
  color: var(--ink);
}
.nav-menu .menu {
  position: absolute;
  left: -12px;
  top: calc(100% + 8px);
  width: 260px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-lift);
}
.nav-menu .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu .menu a {
  display: block;
  padding: 10px;
  border-radius: var(--radius-control);
  color: var(--ink);
  text-decoration: none;
}
.nav-menu .menu a:hover,
.nav-menu .menu a[aria-current="page"] {
  background: var(--mist);
}

/* Advertising label (Forbrukertilsynet) */
.annonse {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.annonse strong {
  color: var(--ink);
}

/* Page sections */
main {
  display: block;
}
.section {
  padding-block: clamp(40px, 6vw, 72px);
}
.section--mist {
  background: var(--mist);
  /* ink-3 on mist measures 4.45:1; this shade keeps small grey text at 4.5:1 or more there. */
  --ink-3: #5b626d;
}
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.section-head p {
  color: var(--ink-2);
}
.lead {
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-width: 60ch;
}
.meta {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Booking button: the reserved accent */
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  background: var(--cala);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn-book:hover {
  background: var(--cala-deep);
  text-decoration: none;
}
.btn-book:active {
  transform: translateY(1px);
}
.ad-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
}
.btn-quiet:hover {
  background: var(--mist);
}

/* Offer card */
.offers {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .offers--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.offer {
  display: grid;
  align-content: start;
  gap: 12px;
}
.offer-photo {
  margin: 0;
  border-radius: var(--radius-photo);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  transition: box-shadow 200ms var(--ease-out);
}
.offer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) {
  .offer:hover .offer-photo {
    box-shadow: var(--shadow-lift);
  }
}
.badge-pick {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--cala-tint);
  color: var(--cala-deep);
  font-size: 0.8125rem;
  font-weight: 650;
}
.offer-title a {
  text-decoration: none;
}
.offer-title a:hover {
  text-decoration: underline;
}
.offer .fits {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.price .amount {
  font-family: var(--font-display);
  font-weight: 760;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}
.price .per {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
}
.source {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.offer .actions {
  margin-top: 4px;
}
@media (max-width: 767px) {
  .offer .btn-book {
    width: 100%;
  }
}

/* Hero (home) */
.hero {
  padding-block: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 56px);
}
.hero-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }
}
.hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Official ticket row */
.official {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-photo);
  background: var(--mist);
}

/* Data tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
table.data th,
table.data td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  background: var(--mist);
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
table.data tbody tr + tr td,
table.data tbody tr + tr th {
  border-top: 1px solid var(--line);
}
table.data td.num,
table.data th.num {
  text-align: right;
  white-space: nowrap;
}
.saving {
  color: var(--good);
  font-weight: 650;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.chips legend {
  width: 100%;
  margin-bottom: 8px;
  font-weight: 650;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 560;
  cursor: pointer;
  background: var(--surface);
}
.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-weight: 650;
}
/* The accent marks the selected resort only (accent allowance, docs/DIRECTION.md). */
[data-resort-chooser] .chip input:checked + span {
  border-color: var(--cala);
  background: var(--cala-tint);
  color: var(--cala-deep);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Resort cards (home section 2) */
.resorts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.resort-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  text-decoration: none;
  background: var(--surface);
}
.resort-card:hover {
  border-color: var(--line-strong);
}
.resort-card strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.resort-card span {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Questions */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* Plus and minus are Phosphor icons in the faq macro; the open state shows the minus. */
.faq-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.faq-icon .icon-minus,
.faq details[open] .faq-icon .icon-plus {
  display: none;
}
.faq details[open] .faq-icon .icon-minus {
  display: inline-grid;
}
.faq details > div {
  padding: 0 0 18px;
  color: var(--ink-2);
}

/* Footer */
.site-footer {
  background: var(--deep);
  color: #fff;
  padding-block: 48px 32px;
  margin-top: 0;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.footer-grid h2 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  color: var(--deep-meta);
  font-size: 0.875rem;
  display: grid;
  gap: 6px;
}
.footer-note p {
  max-width: none;
}
.site-footer .wordmark {
  color: #fff;
}
.footer-tagline {
  margin-top: 10px;
  color: var(--deep-meta);
  font-size: 0.9375rem;
}

/* Sticky booking bar on phones */
.bookbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 -6px 20px -10px rgb(27 31 36 / 0.25);
  transform: translateY(110%);
  transition: transform 220ms var(--ease-out);
}
.bookbar[data-visible] {
  transform: translateY(0);
}
@media (max-width: 767px) {
  .bookbar {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Home and shared blocks (foundation, 2026-10-02) ---- */

.annonse-bar {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.annonse-bar p {
  max-width: var(--content);
  padding-block: 8px;
}
.annonse-bar strong {
  color: var(--ink);
  margin-right: 4px;
}
.annonse-bar a {
  color: var(--ink-2);
  white-space: nowrap;
}

.hero-grid {
  grid-template-areas: "copy" "pick" "chooser";
}
.hero-copy {
  grid-area: copy;
}
.hero-pick {
  grid-area: pick;
}
.hero-chooser {
  grid-area: chooser;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    grid-template-areas: "copy pick" "chooser pick";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 32px;
  }
  .hero-copy {
    padding-top: 24px;
  }
}

.chips legend {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.chooser-status {
  width: 100%;
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Offer card details */
.offer-photo {
  position: relative;
}
.offer-title {
  font-size: 1.1875rem;
  line-height: 1.25;
}
.offer--hero .offer-title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}
.offer--hero .offer-photo {
  aspect-ratio: 16 / 10;
}
@media (max-width: 767px) {
  .offer--hero .offer-photo {
    aspect-ratio: 16 / 9;
  }
  .offer--hero {
    gap: 8px;
  }
}
.offer .rating strong {
  font-weight: 700;
}
.offer .rating .icon {
  color: var(--ink);
}
.pickup-here {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
}
.pickup-here[hidden] {
  display: none;
}
.offer .actions {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.offer .actions .ad-label {
  margin-top: 0;
}

/* Tables */
.inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.muted {
  color: var(--ink-3);
}
table.data tbody th {
  font-weight: 650;
  text-align: left;
}
table.data tr.is-selected th,
table.data tr.is-selected td {
  background: var(--mist);
}
table.data tr.is-selected th a {
  text-decoration-thickness: 2px;
}
.row-place,
.row-sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-3);
}
.row-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  /* "Offisiell side" and "Se hos Viator" stay on one line in the narrow booking column. */
  white-space: nowrap;
}
.ad-label--inline {
  display: inline;
  margin: 0;
}
.day-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.day-picker[hidden] {
  display: none;
}
.day-picker label {
  font-weight: 650;
}
.day-picker select {
  min-height: 44px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.day-status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #fdf1e1;
  color: var(--caution);
  font-size: 0.8125rem;
  font-weight: 650;
}
.day-status[hidden] {
  display: none;
}
tr.is-closed td,
tr.is-closed th > a {
  color: var(--ink-3);
}

/* Theme links */
.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
/* Jump links share the row between them, so three caves fill three columns with no empty slot. */
.jump .themes {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.themes a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
}
.themes a:hover {
  border-color: var(--line-strong);
}
.themes .icon {
  font-size: 1.5rem;
  color: var(--ink-2);
}

/* Method */
.method-points {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}
.method-points li {
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

/* Photo credits */
.credits {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.credits h2 {
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.credits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.credits a {
  color: var(--ink-2);
}

.not-found {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* Shared blocks (macros/blocks.njk) */
.official-price {
  font-size: 1.0625rem;
}
.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 75ch;
}
.fact-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.fact-source {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.fact-source a {
  color: var(--ink-2);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumbs a {
  color: var(--ink-2);
}
.gyg-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

/* Phone fold budget (Design Contract A2): H1, answer and the fold pick's booking button
   must fit in 390x844 without scrolling. */
@media (max-width: 767px) {
  .hero {
    padding-top: 16px;
  }
  .hero .lead {
    font-size: 1.0625rem;
  }
  .offer--hero .offer-photo {
    aspect-ratio: 2 / 1;
  }
}

/* Form fields (docs/DIRECTION.md): label above, 12 px radius, line-strong border, focus ring */
.field {
  display: grid;
  gap: 6px;
}
.field[hidden] {
  display: none;
}
.field label {
  font-weight: 650;
  font-size: 0.9375rem;
}
.field input,
.field select {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.field-error {
  color: var(--bad);
  font-size: 0.875rem;
}

/* Family calculator. minmax(0, 1fr) and min-width: 0 keep the form and the wide table from
   stretching the column past the phone width (the table scrolls inside .table-wrap instead). */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.calc > * {
  min-width: 0;
}
.calc-form {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  max-width: 820px;
}
.calc-form[hidden] {
  display: none;
}
.calc-summary {
  font-weight: 650;
}

/* Phone booking bar */
.bookbar[hidden] {
  display: none !important;
}
.bookbar-price {
  margin: 0;
}
.bookbar-price strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.bookbar-cta {
  margin: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
}
.bookbar-cta .ad-label {
  margin: 0;
}

.tool-chooser {
  display: grid;
  gap: 18px;
}
[data-tool][hidden],
[data-tool-empty][hidden],
[data-choice-for][hidden],
tr[hidden] {
  display: none;
}

/* Utility pages: one reading column */
.utility-wrap {
  display: grid;
  gap: 16px;
  max-width: 820px;
}
.utility-wrap h2 {
  margin-top: 28px;
}
.utility-wrap h3 {
  margin-top: 12px;
}
.credit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Search */
.search-form .field input {
  font-size: 1.0625rem;
}
.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.search-results a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.search-results p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.search-results mark {
  background: var(--mist);
  color: var(--ink);
  font-weight: 650;
}
[data-search-browse][hidden] {
  display: none;
}

/* Sections with several blocks under one H2 (lane request, parks): a .stack of .block items,
   each with its h3, its table or cards and its source line. */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 40px);
}
.stack > * {
  min-width: 0;
}
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.block > * {
  min-width: 0;
}

/* Grid children never grow past their track because of wide content. */
.hero-grid > *,
.offers > *,
.section-head > *,
.tool-chooser > * {
  min-width: 0;
}

/* Compact offer rows (lists on area and topic pages) */
/* Offer lists: photo cards in a grid, one column on phones, two from 768 px, three from 1200 px
   (contract offer card). Price and button sit at the foot of each card so a row shares a baseline. */
.offer-rows {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .offer-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .offer-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.offer-rows > [hidden] {
  display: none;
}
.offer-rows > div[data-tool] {
  display: grid;
}
.offer-row {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 200ms var(--ease-out);
}
@media (hover: hover) {
  .offer-row:hover {
    box-shadow: var(--shadow-lift);
  }
}
.offer-row .offer-photo {
  margin: 0;
  border-radius: 0;
}
.offer-row-main,
.offer-row-side {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 14px 16px 0;
}
.offer-row-side {
  padding-bottom: 16px;
}
.offer-row .btn-book {
  width: 100%;
}
.photo-credit {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-3);
}
/* A row without a photo (the fold pick beside a hero photo) stays a plain block. */
.offer-row--plain {
  grid-template-rows: auto auto;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.offer-row--plain:hover {
  box-shadow: none;
}
.offer-row--plain .offer-row-main,
.offer-row--plain .offer-row-side {
  padding-inline: 0;
}
.offer-row--plain .btn-book {
  width: auto;
}
@media (max-width: 767px) {
  .offer-row--plain .btn-book {
    width: 100%;
  }
}

/* Resort pages: copy and pick on the left, the resort photo on the right (desktop); on phones
   the pick comes before the photo so the booking button stays in the first screen. */
.area-hero .hero-grid {
  grid-template-areas: "copy" "pick" "photo";
}
.area-photo {
  grid-area: photo;
  margin: 0;
  border-radius: var(--radius-photo);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--mist);
}
.area-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.area-pick {
  display: grid;
  gap: 8px;
}
.area-pick .offer-rows {
  border-top: 0;
}
.area-pick .offer-row {
  padding-top: 4px;
}
@media (min-width: 960px) {
  .area-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    grid-template-areas: "copy photo" "pick photo";
    grid-template-rows: auto 1fr;
  }
  .area-pick .offer-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .area-pick .offer-row-side {
    justify-items: start;
    text-align: left;
  }
  .area-pick .offer-row-side .actions {
    justify-items: start;
  }
  .area-photo {
    aspect-ratio: 4 / 5;
    max-height: 640px;
  }
}

/* Area chooser cards (where-to-stay guide) */
.area-cards {
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.area-card {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.area-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.area-card strong {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}
.area-suits {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.area-facts {
  font-size: 0.875rem;
  font-weight: 650;
}
.area-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Phones: the fold pick drops its "Passer for" line so the booking button stays in the first
   screen; the line is in the full list further down. */
@media (max-width: 767px) {
  .area-pick .fits {
    display: none;
  }
}

/* Stacked tables on phones: site.js labels each cell with its column header and marks the table
   data-stacked; rows then read as a title (the row header) over label and value pairs. Tables
   with two columns stay as tables. */
@media (max-width: 640px) {
  table.data[data-stacked],
  table.data[data-stacked] tbody,
  table.data[data-stacked] tr,
  table.data[data-stacked] th,
  table.data[data-stacked] td {
    display: block;
  }
  table.data[data-stacked] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  table.data[data-stacked] tr {
    padding: 14px 16px;
  }
  table.data[data-stacked] tr[hidden] {
    display: none;
  }
  table.data[data-stacked] tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  table.data[data-stacked] tbody tr + tr td,
  table.data[data-stacked] tbody tr + tr th {
    border-top: 0;
  }
  table.data[data-stacked] th[scope="row"] {
    padding: 0 0 6px;
    font-weight: 650;
  }
  table.data[data-stacked] td {
    display: grid;
    grid-template-columns: minmax(7rem, 42%) 1fr;
    gap: 12px;
    padding: 4px 0;
    white-space: normal;
  }
  table.data[data-stacked] td.num {
    text-align: left;
  }
  table.data[data-stacked] td[data-label]::before {
    content: attr(data-label);
    color: var(--ink-3);
    font-size: 0.875rem;
  }
  .table-wrap:has(table.data[data-stacked]) {
    overflow-x: visible;
  }
}

/* Phone and tablet menu: the main navigation is hidden below 1024 px, so this details element
   carries the themes, the resorts guide, About and search. */
.mobile-menu {
  position: relative;
}
.mobile-menu > summary {
  list-style: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}
.mobile-menu > summary:hover,
.mobile-menu[open] > summary {
  background: var(--mist);
}
.mobile-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-lift);
}
.mobile-menu .menu ul {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}
.mobile-menu .menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu .menu a:hover,
.mobile-menu .menu a[aria-current="page"] {
  background: var(--mist);
}
.mobile-menu .menu-search {
  font-weight: 650;
}
.mobile-menu .menu-heading {
  margin: 10px 10px 2px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-3);
}
.header-tools .search-link {
  display: none;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
  .header-tools .search-link {
    display: inline-grid;
  }
}

/* Stacked phone tables: the wrapper site.js adds holds the whole value in the second column. */
table.data .cell {
  min-width: 0;
}

/* The "Vårt valg" status sits inline after the rating, never above a title. */
.rating .badge-pick {
  margin-left: 6px;
  vertical-align: middle;
}

/* Selects: the 12 px field with a Phosphor caret. */
.day-picker select,
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231b1f24'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

/* Cards in a grid share baselines: titles reserve two lines; tiles fill their grid cell. */
.offer:not(.offer--hero) .offer-title {
  min-height: 2.5em;
}
.themes li {
  display: flex;
}
.themes li > a {
  flex: 1;
}

/* The menu panel is fixed under the sticky header so it never runs off the left edge. */
.mobile-menu .menu {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 16px;
  left: 16px;
  width: auto;
}
@media (min-width: 600px) {
  .mobile-menu .menu {
    left: auto;
    width: 340px;
  }
}
.badge-pick {
  white-space: nowrap;
}

/* "Vis flere steder" under a drive-time table. */
.more-rows {
  margin-top: 12px;
}
.more-rows > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.more-rows > summary::-webkit-details-marker {
  display: none;
}
.more-rows[open] > summary {
  margin-bottom: 12px;
}

/* Place cards (macros/place.njk): resorts and attractions as photo cards that keep their numbers. */
.place-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.place-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.place-card[hidden] {
  display: none;
}
@media (hover: hover) {
  .place-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
  }
}
.place-link {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  color: var(--ink);
  text-decoration: none;
}
.place-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--mist);
}
.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.place-photo--none {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  font-size: 3.5rem;
  color: var(--ink-2);
}
.place-photo--none span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
}
.place-body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px 16px;
}
.place-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.place-link:hover .place-name {
  text-decoration: underline;
}
.place-meta {
  margin: 0;
  font-weight: 650;
}
.place-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.place-action {
  margin: 0;
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.btn-book--small {
  min-height: 44px;
  padding: 10px 16px;
}
/* The chosen resort's card carries the accent (accent allowance: the selected resort). */
.place-card.is-selected {
  border-color: var(--cala);
  box-shadow: 0 0 0 1px var(--cala);
}

/* Fact tiles (macros/blocks.njk factGrid). */
.fact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.fact-grid li {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--mist);
}
.section--mist .fact-grid li {
  background: var(--surface);
}

/* Chooser results hidden by tools.js stay hidden inside the card grid. */
.offer-rows > div[data-tool][hidden] {
  display: none;
}
/* The fold pick beside a hero photo is one plain block, never a grid column. */
.area-pick .offer-rows,
.hero-pick .offer-rows {
  grid-template-columns: minmax(0, 1fr);
}

/* Compact place cards: a small square photo beside the name and a count. Used for in-page jump
   cards (Båtturer's areas). On phones they become one sideways-scrolling row, so the jump set
   does not push the page's content down. */
.place-cards--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}
.place-cards--compact .place-card {
  grid-template-rows: auto;
  height: 100%;
  border-radius: var(--radius-control);
}
.place-cards--compact .place-link {
  grid-row: auto;
  grid-template-rows: none;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
}
.place-cards--compact .place-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}
.place-cards--compact .place-photo--none {
  font-size: 1.75rem;
}
.place-cards--compact .place-body {
  padding: 0;
  gap: 2px;
}
.place-cards--compact .place-name {
  font-size: 1rem;
}
.place-cards--compact .place-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}
@media (max-width: 639px) {
  .place-cards--compact {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
  }
  .place-cards--compact > li {
    scroll-snap-align: start;
  }
}

/* Grid cards share a baseline: the booking button sits at the foot of every offer card, and
   offer-row titles reserve two lines, so cards in one row line up whatever their text length. */
.offers > .offer:not(.offer--hero) {
  display: flex;
  flex-direction: column;
}
.offers > .offer:not(.offer--hero) .actions {
  margin-top: auto;
}

/* Entry times (macros/blocks.njk timetable): one row per season, the times in a plain row. Times keep
   proportional figures: tabular figures widen the full stop in "10.00". */
.timetable {
  margin: 0;
  display: grid;
  gap: 14px;
}
.timetable > div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 8px 20px;
  align-items: baseline;
}
.timetable dt {
  font-weight: 700;
}
.timetable dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
/* Plain times, not pills: outlined pills read as tappable slots like the filter chips. */
.timetable .time {
  font-weight: 600;
}
.timetable-note {
  margin: 12px 0 0;
}
@media (max-width: 639px) {
  .timetable > div {
    grid-template-columns: 1fr;
  }
}

/* Ways to get there (macros/blocks.njk specList): icon and label beside each fact. */
.spec-list {
  margin: 0;
  display: grid;
  gap: 16px;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 4px 20px;
}
.spec-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.spec-list dt .icon {
  font-size: 1.375rem;
}
.spec-list dd {
  margin: 0;
  max-width: 65ch;
}
@media (max-width: 639px) {
  .spec-list > div {
    grid-template-columns: 1fr;
  }
}

/* Things to remember before a visit (macros/blocks.njk checkList). */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px 40px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.check-list li {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: 12px;
  align-items: start;
}
.check-list .icon {
  font-size: 1.375rem;
  color: var(--ink-2);
}
.spec-list dt {
  align-self: start;
}
.check-list + .source,
.spec-list + .source {
  margin-top: 16px;
}

/* Place cards in one row end together: each card fills its grid cell. */
.place-cards > li > .place-card {
  height: 100%;
}

/* A hero photo of another place than the fold pick carries its place name under the image
   (Vannparker: the pick is the park open today, the photo shows Western Water Park). */
.area-photo--captioned {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  overflow: visible;
  border-radius: 0;
  background: none;
}
.area-photo--captioned img {
  min-height: 0;
  border-radius: var(--radius-photo);
  background: var(--mist);
}
.area-photo--captioned figcaption {
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* "Vårt valg" sits above the card title (Design Contract), on its own line, so the rating line
   never wraps around it on phones. */
.pick-badge {
  margin: 0;
}

/* Offer and place grids lay out in rows that centre a short last row, and a lone offer becomes one
   wide card (photo, details, price side by side) instead of a card beside empty columns. Titles in
   one row share a height through site.js (alignTitles), so a single-line row keeps no empty line. */
.offer-rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.offer-rows > * {
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  .offer-rows > * {
    flex: 0 1 calc((100% - 20px) / 2);
  }
}
@media (min-width: 1200px) {
  .offer-rows > * {
    flex: 0 1 calc((100% - 40px) / 3);
  }
}
.area-pick .offer-rows > *,
.hero-pick .offer-rows > * {
  flex-basis: 100%;
}
.offer-rows > [hidden],
.offer-rows > div[data-tool][hidden] {
  display: none;
}
@media (min-width: 768px) {
  .offer-rows > .offer-row:only-child:not(.offer-row--plain) {
    flex-basis: 100%;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.7fr);
    grid-template-rows: auto;
    align-items: start;
  }
  .offer-rows > .offer-row:only-child:not(.offer-row--plain) .offer-row-side {
    padding-top: 14px;
  }
}
.place-cards:not(.place-cards--compact) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.place-cards:not(.place-cards--compact) > li {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
}
.place-cards:not(.place-cards--compact) > li[hidden] {
  display: none;
}
.place-cards:not(.place-cards--compact) > li > .place-card {
  width: 100%;
}
@media (min-width: 560px) {
  .place-cards:not(.place-cards--compact) > li {
    flex: 0 1 calc((100% - 20px) / 2);
  }
}
@media (min-width: 820px) {
  .place-cards:not(.place-cards--compact) > li {
    flex: 0 1 calc((100% - 40px) / 3);
  }
}
@media (min-width: 1100px) {
  .place-cards:not(.place-cards--compact) > li {
    flex: 0 1 calc((100% - 60px) / 4);
  }
}

/* Phone and type polish (final design review). */
.bookbar-price .per {
  white-space: nowrap;
}
.place-cards + .source,
.place-cards + p,
.offer-rows + .source {
  margin-top: 16px;
}
/* Search page: the browse headings keep their distance from the cards under them. */
.search-browse > h3 {
  margin: 28px 0 14px;
}
.search-browse > h3:first-child {
  margin-top: 8px;
}

/* Statistics consent banner (partials/consent.njk): a plain bar at the foot of the window, two
   equal buttons, never covering the booking buttons for long. */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -8px 24px -16px rgb(27 31 36 / 0.3);
}
.consent[hidden] {
  display: none;
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 14px;
}
.consent-inner p {
  flex: 1 1 420px;
  margin: 0;
  font-size: 0.9375rem;
}
.consent-actions {
  display: flex;
  gap: 10px;
}
/* On phones the consent bar stays compact, so it covers as little of the first screen as it can. */
@media (max-width: 639px) {
  .consent-inner {
    gap: 8px;
    padding-block: 10px;
  }
  .consent-inner p {
    flex-basis: 100%;
    font-size: 0.875rem;
    line-height: 1.45;
  }
  .consent-actions .btn-quiet {
    min-height: 40px;
    padding: 8px 16px;
  }
}

/* Photo credits fold closed under a "Bilder på denne siden" line with the plus and minus toggle. */
.credits-details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.credits-details summary::-webkit-details-marker {
  display: none;
}
.credits-details summary h2 {
  margin: 0;
}
.credits-details .faq-icon {
  font-size: 1rem;
}
.credits-details[open] .faq-icon .icon-plus {
  display: none;
}
.credits-details[open] .faq-icon .icon-minus {
  display: inline-grid;
}
.credits-details ul {
  margin-top: 8px;
}
