/* Tronchetto Parking — Venice (accent #0a5393) */
:root {
  --green: #0a5393;
  --green-700: #08457b;
  --green-900: #0b2545;
  --ink: #152029;
  --muted: #66717a;
  --line: #e3e8eb;
  --paper: #f4f6f7;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --pad: 48px;
  --shadow-card: 0 30px 70px -28px rgba(8, 24, 34, .55), 0 6px 18px -10px rgba(8, 24, 34, .35);
  --shadow-menu: 0 18px 40px -16px rgba(8, 24, 34, .38);
}

* { box-sizing: border-box; }

/* "hidden" always wins — e.g. the checkout (display: flex) must not show on the home page */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Header ---------- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}


/* Language selector */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding-inline: 16px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .65); }
.lang-btn .icon { width: 19px; height: 19px; }
.lang-btn .chevron { width: 16px; height: 16px; transition: transform .2s ease; }
.lang.menu-open .lang-btn .chevron { transform: rotate(180deg); }

/* ---------- Hero: the copy on the left, the photo whole on the right ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(720px 420px at 85% 42%, rgba(10, 83, 147, .08), transparent 70%),
    #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-areas: "copy media";
  align-items: center;
  gap: 32px 56px;
  padding-block: 36px 60px;
}
.hero-copy { grid-area: copy; min-width: 0; }

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 3.6vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow-wrap: break-word;
  animation: rise .7s .05s both cubic-bezier(.2, .7, .2, 1);
}
/* the place name in the title picks up the accent colour */
.hero-title em,
.section-head h2 em { font-style: normal; color: var(--green); }

.hero-sub {
  margin: 18px 0 0;
  max-width: 30rem;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  animation: rise .7s .12s both cubic-bezier(.2, .7, .2, 1);
}

/* the photo is shown whole — its own aspect ratio, nothing on top of it */
.hero-media {
  grid-area: media;
  margin: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #dfe7eb;
  box-shadow: 0 34px 70px -38px rgba(8, 24, 34, .55);
  animation: rise .8s .1s both cubic-bezier(.2, .7, .2, 1);
}
.hero-media img { display: block; width: 100%; height: auto; }

/* "Book now" with the price beside it — the form opens in a dialog */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
  animation: rise .7s .18s both cubic-bezier(.2, .7, .2, 1);
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 32px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(10, 83, 147, .8);
  transition: background .18s ease, transform .15s ease, box-shadow .15s ease;
}
.hero-btn:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 20px 34px -14px rgba(10, 83, 147, .85); }
.hero-btn:active { transform: none; }
.hero-btn:focus-visible { outline: 3px solid rgba(10, 83, 147, .35); outline-offset: 3px; }
.hero-btn svg { flex: none; width: 20px; height: 20px; }
[dir="rtl"] .hero-btn svg { transform: scaleX(-1); }
.hero-price { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: .95rem; color: var(--muted); }
.hero-price strong { font-size: 1.55rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the call to action at the bottom of the home page */

@media (max-width: 920px) {
  /* one column: the copy (with the button) first, the photo under it */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "media";
    gap: 28px;
    padding-block: 36px 48px;
  }
  .hero-media { max-width: 640px; }
}
@media (max-width: 560px) {
  .hero-grid { gap: 26px; padding-block: 24px 36px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-sub { margin-top: 12px; }
  .hero-cta { margin-top: 24px; gap: 12px 18px; }
  .hero-btn { flex: 1 1 100%; min-height: 56px; }
}

/* ---------- Booking card (base; the form's own rules are further down) ---------- */
.booking-card {
  margin-top: 48px;
  width: min(760px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  animation: rise .8s .32s both cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Dropdown menus ---------- */
.select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;               /* closed = out of the Tab order, not just transparent */
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s .16s;
}
.menu-open > .select-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition-delay: 0s; }

.lang-menu {
  left: auto;
  right: 0;
  width: 230px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.lang-menu::-webkit-scrollbar { width: 8px; }
.lang-menu::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 4px; }
.lang-menu .select-option { justify-content: flex-start; }
.lang-menu .select-option > span:nth-child(2) { flex: 1; }
.opt-flag,
.lang-flag { flex: none; display: block; width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.lang-flag { width: 22px; height: 16px; }

.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .14s ease;
}
.select-option:hover { background: var(--paper); }
.select-option.is-active { background: rgba(10, 83, 147, .09); color: var(--green); font-weight: 600; }
.opt-code { font-size: 13px; color: var(--muted); font-weight: 500; }
.select-option.is-active .opt-code { color: var(--green); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 24px);
  z-index: 10001;
  max-width: min(90vw, 460px);
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(14, 30, 40, .96);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal dialog ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
}
.modal-dialog {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .3);
  max-width: 480px;
  width: 90vw;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted);
  transition: color .2s;
}
.modal-close:hover { color: var(--ink); }
.modal-body {
  padding: 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.modal-body p { margin: 0; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.modal-btn {
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.modal-btn:hover { background: var(--paper); border-color: var(--muted); }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  :root { --pad: 28px; }
}

@media (max-width: 680px) {
  .lang-btn { height: 40px; }
}

/* ============================================================
   "Getting here" — overview + per-vehicle content pages
   ============================================================ */
.page {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky light header */
.page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.page-header .header-inner { padding-block: 14px; }
.page-header .brand { color: var(--ink); }
/* the switcher sits on a white bar here, so invert the hero styling */
.page-header .lang-btn {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.page-header .lang-btn:hover { background: var(--paper); border-color: #c5d0d6; }

.page-nav { display: flex; align-items: center; gap: 30px; }
.page-nav a { white-space: nowrap; }
.page-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .16s ease;
}
.page-nav a:hover, .page-nav a.is-current { color: var(--green); }
.page-nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.page-nav-cta:hover { background: var(--green-700); }

/* Section hero strip */
.section-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0b2f52 url("assets/hero.webp") center 42% / cover;
}
.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 22, 31, .58), rgba(8, 22, 31, .82));
}
.section-hero .wrap { padding-block: 60px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span:last-child { color: #fff; font-weight: 500; }
.section-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
}
.section-hero > .wrap > p {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

/* Section body */
.section-body { flex: 1; }
.section-body > .wrap { padding-block: 52px; }

/* Closure info banner */
.closure-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 34px;
  background: rgba(10, 83, 147, .07);
  border: 1px solid rgba(10, 83, 147, .18);
  border-radius: var(--radius);
}
.closure-banner svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 1px; }
.closure-banner p { margin: 0; color: #3d474d; line-height: 1.55; }

/* Cards grid */
.arrive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 20px;
}
.arrive-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.arrive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.ac-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(10, 83, 147, .10);
  color: var(--green);
}
.ac-icon svg { width: 27px; height: 27px; }
.arrive-card h3 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.arrive-card p { margin: 0; flex: 1; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.ac-more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: .95rem; }
.ac-more svg { width: 16px; height: 16px; transition: transform .18s ease; }
.arrive-card:hover .ac-more svg { transform: translateX(3px); }

/* Article layout */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.prose { max-width: 700px; }
.prose > p:first-of-type { font-size: 1.16rem; color: #2c373d; line-height: 1.6; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 36px 0 12px;
}
.prose p { margin: 0 0 16px; line-height: 1.72; color: #3d474d; font-size: 1.02rem; }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 11px; line-height: 1.6; color: #3d474d; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--green);
  background: rgba(10, 83, 147, .06);
  border-radius: 0 12px 12px 0;
  line-height: 1.6;
  color: #3d474d;
}
.callout strong { color: var(--green); }

/* Facts aside */
.facts { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.facts h3 { margin: 0 0 18px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts dl { margin: 0; display: grid; gap: 15px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
.facts-cta {
  display: block;
  margin-top: 22px;
  padding: 13px;
  text-align: center;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background .18s ease;
}
.facts-cta:hover { background: var(--green-700); }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 38px; color: var(--green); font-weight: 600; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .8); }
.site-footer > .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-footer .brand { color: #fff; }
.footer-col { min-width: 180px; }
.footer-col:first-child { flex: 1; min-width: 240px; }
.footer-col h4 { margin: 0 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.footer-col a, .footer-col p { display: block; margin: 7px 0; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .95rem; line-height: 1.5; }
.footer-col a:hover { color: #fff; }
.footer-col a.brand { display: inline-flex; margin: 0; }
.footer-tag { margin-top: 14px !important; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom > .wrap { padding-block: 18px; font-size: .85rem; color: rgba(255, 255, 255, .5); }

@media (max-width: 860px) {
  .article { grid-template-columns: 1fr; }
  .facts { position: static; }
}
@media (max-width: 680px) {
  .page-nav a:not(.page-nav-cta) { display: none; }  /* see also the tablet rules at the end */
}

/* ============================================================
   Advantages section (home page, below the hero)
   ============================================================ */
.advantages { background: var(--green); }
.advantages > .wrap { padding-block: 84px; }
.advantages .section-head h2 { color: #fff; }
.advantages .section-head p { color: rgba(255,255,255,.8); }
.advantages .adv-icon { background: rgba(255,255,255,.12); color: #fff; }
.advantages .adv h3 { color: #fff; }
.advantages .adv p { color: rgba(255,255,255,.75); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--ink);
}
.section-head p { margin: 12px 0 0; font-size: 1.1rem; color: var(--muted); }

.adv-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}
.adv { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.adv-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 83, 147, .09);
  color: var(--green);
}
.adv-icon svg { width: 34px; height: 34px; }
.adv h3 { margin: 4px 0 0; font-size: 1.15rem; color: var(--ink); }
.adv p { margin: 0; max-width: 240px; font-size: .98rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 860px) {
  .advantages > .wrap { padding-block: 64px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
}
@media (max-width: 480px) {
  .adv-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Booking form — one compact card (rendered by script.js)
   ============================================================ */
.booking-card { width: min(720px, 100%); margin-top: 30px; padding: 22px 24px 24px; }

.bk-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* tariff: what the price includes */
.bk-tariff { padding-bottom: 16px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.bk-tariff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.bk-tariff-title { margin: 0; max-width: 36ch; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.bk-tariff-price { margin: 0; flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; text-align: end; }
.bk-tariff-price strong { font-size: 1.55rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.bk-tariff-price span { margin-top: 5px; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bk-feats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.bk-feats li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: .88rem; line-height: 1.35; color: #3d474d; }
.bk-feats svg { flex: none; width: 16px; height: 16px; margin-top: 1px; padding: 2px; box-sizing: content-box; border-radius: 999px; background: rgba(10, 83, 147, .1); color: var(--green); }

/* entry / exit: date + time side by side */
.bk-when { position: relative; display: grid; gap: 7px; min-width: 0; }
.bk-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }  /* the time pill takes what "10:00" needs, the date gets the rest */

.bk-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bk-pill:hover { border-color: #c5d0d6; }
.bk-pill:focus-visible,
.bk-pill:focus-within,
.bk-pill.is-open { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 83, 147, .14); }
.bk-pill > svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.bk-pill-val { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.bk-pill-val.is-ph { font-weight: 400; color: #98a2a8; }

.bk-time select {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.bk-time .bk-chev { width: 15px; height: 15px; color: #98a2a8; pointer-events: none; }

.bk-pill.is-invalid,
.bk-input.is-invalid { border-color: #d8584f; box-shadow: 0 0 0 3px rgba(216, 88, 79, .14); animation: shake .35s; }

/* e-mail */
.bk-email { display: grid; gap: 7px; min-width: 0; }
.bk-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.bk-input::placeholder { color: #98a2a8; }
.bk-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 83, 147, .14); }
.bk-hint { font-size: .8rem; line-height: 1.4; color: var(--muted); }
/* in the stacked layout the note doubles as the divider above price + button */

/* price + button */
.bk-price { align-self: center; min-width: 0; }
.bk-price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bk-price-line { font-size: .92rem; color: var(--muted); }
.bk-price-total { font-size: 1.35rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-price-note { margin: 3px 0 0; font-size: .78rem; color: var(--muted); }
.bk-price-hint { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.bk-price-hint.is-error { color: #c2453c; font-weight: 600; }

/* ── range calendar ── */
.bk-dp-cal {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 200;
  width: min(330px, calc(100vw - 32px));
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(8, 24, 34, .35);
}
.bk-dp-cal.is-end { inset-inline-start: auto; inset-inline-end: 0; }
.bk-dp-cal[hidden] { display: none; }
.bk-dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bk-dp-nav {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: none; color: var(--ink);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.bk-dp-nav:hover:not([disabled]) { background: #eef3f5; }
.bk-dp-nav[disabled] { color: #cfd6da; border-color: #e8ecee; cursor: default; }
.bk-dp-mth { font-weight: 600; font-size: .94rem; text-transform: capitalize; }
.bk-dp-hint { margin: 0 0 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--green); }
.bk-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.bk-dp-dow { padding: 4px 0 6px; text-align: center; font-size: .7rem; font-weight: 600; color: #8a979e; }
.bk-dp-cell {
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  text-align: center;
  line-height: 38px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.bk-dp-cell:hover:not(.is-dis):not(.is-start):not(.is-end) { background: #e7f0f8; }
.bk-dp-cell.is-dis { color: #c3ccd1; cursor: default; }
.bk-dp-cell.is-today { box-shadow: inset 0 0 0 1px rgba(10, 83, 147, .45); }
.bk-dp-cell.is-range { border-radius: 0; background: rgba(10, 83, 147, .1); }
.bk-dp-cell.is-start,
.bk-dp-cell.is-end { background: var(--green); color: #fff; font-weight: 700; }
.bk-dp-empty { pointer-events: none; }

/* narrow screens: everything stacks, the button spans the card */
@media (max-width: 640px) {
  .booking-card { padding: 18px 16px 18px; }
  .bk-tariff-title { font-size: .95rem; }
  .bk-feats { gap: 6px 12px; }
  .bk-feats li { font-size: .82rem; }
  .bk-dp-cal, .bk-dp-cal.is-end { inset-inline: 0; width: auto; }
}
@media (max-width: 380px) {
  .bk-feats { grid-template-columns: minmax(0, 1fr); }
}

/* iOS zooms into fields whose text is under 16px */
@media (max-width: 820px), (pointer: coarse) {
  .booking-card input, .booking-card select,
  .ck-card input, .ck-card select { font-size: 16px; }
}

/* ============================================================
   "How your reservation works" (home page, below the hero)
   ============================================================ */
.reservation { background: var(--paper); color: var(--ink); }
.reservation > .wrap { padding-block: 84px; }
.reservation .section-head { margin-bottom: 40px; }
.res-guarantee {
  margin: 0 auto;
  max-width: 700px;
  padding: 28px 36px;
  background: #fff;
  border-radius: 16px;
  border-inline-start: 4px solid var(--green);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .07);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}
.res-text {
  margin: 32px auto 0;
  max-width: 660px;
  padding: 0 8px;
  font-size: .98rem;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}
.res-price {
  margin: 28px auto 0;
  max-width: 700px;
  padding: 24px 36px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(10, 83, 147, .18);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .05);
  font-size: .98rem;
  line-height: 1.75;
  color: var(--ink);
  text-align: center;
}
@media (max-width: 680px) {
  .reservation > .wrap { padding-block: 64px; }
  .res-guarantee, .res-price { padding: 22px 22px; }
  .res-guarantee { font-size: 1.02rem; }
}

/* ============================================================
   Phones: header fits next to the language pill
   ============================================================ */
@media (max-width: 560px) {
  :root { --pad: 20px; }
  .page-nav { display: none; }
  .lang-btn { height: 40px; padding-inline: 12px; gap: 7px; }
}
@media (max-width: 350px) {
  .lang-btn .icon { display: none; }
}

/* ============================================================
   Weather section (home page, below Advantages)
   ============================================================ */
.weather { background: #fff; border-top: 1px solid var(--line); }
.weather > .wrap { padding-block: 84px; }

.weather-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.wday {
  flex: 1 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 26px -20px rgba(8, 24, 34, .45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wday:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: transparent; }
.wday.is-today { border-color: var(--green); background: rgba(10, 83, 147, .05); }
.wday-name { font-weight: 700; font-size: .98rem; color: var(--ink); }
.wday-date { font-size: .78rem; color: var(--muted); }
.wday-icon { width: 46px; height: 46px; margin: 6px 0 2px; }
.wday-icon svg { width: 100%; height: 100%; display: block; }
.wday-temp { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.wday-temp small { font-weight: 500; color: var(--muted); }
.wday-precip { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: #5b86a8; }
.wday-precip svg { width: 13px; height: 13px; }

.weather-msg { width: 100%; padding: 30px 0; text-align: center; color: var(--muted); }
.weather-source { margin: 22px 0 0; text-align: center; font-size: .82rem; }
.weather-source a { color: var(--muted); text-decoration: none; }
.weather-source a:hover { color: var(--green); text-decoration: underline; }

@media (max-width: 860px) {
  .weather > .wrap { padding-block: 64px; }
}

/* ── Second booking section (below weather) ── */
.book-section { background: var(--paper); border-top: 1px solid var(--line); }
.book-section > .wrap { padding-block: 84px; }
.book-section .section-head { margin-bottom: 40px; }

/* ============================================================
   Right-to-left (Arabic) — mirrors the few direction-bound rules
   ============================================================ */
/* dropdowns open toward the opposite edge */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .select-menu { text-align: right; }

/* the calendar arrows point the other way */
[dir="rtl"] .bk-dp-nav[data-role="dp-prev"],
[dir="rtl"] .bk-dp-nav[data-role="dp-next"] { transform: scaleX(-1); }

/* footer columns and lists read right-to-left */
[dir="rtl"] .site-footer > .wrap { text-align: right; }

/* inner content pages */
[dir="rtl"] .section-hero .wrap,
[dir="rtl"] .prose,
[dir="rtl"] .facts { text-align: right; }
[dir="rtl"] .callout {
  border-left: 0;
  border-right: 3px solid var(--green);
  border-radius: 12px 0 0 12px;
}
[dir="rtl"] .prose ul { padding-right: 22px; padding-left: 0; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }
[dir="rtl"] .ac-more svg { transform: scaleX(-1); }
[dir="rtl"] .closure-banner { text-align: right; }


/* the first screen fades into a pale blue at the bottom, so the white card lifts off it */
.hero {
  background:
    radial-gradient(720px 420px at 85% 30%, rgba(10, 83, 147, .07), transparent 70%),
    linear-gradient(180deg, #fff 45%, #eaf1f8 100%);
}
.reservation { background: linear-gradient(180deg, #eaf1f8 0, var(--paper) 280px); }

@media (prefers-reduced-motion: reduce) {
  .hero-btn:hover { transform: none; }
}

/* ============================================================
   Checkout (index.html#book): a focused page of its own — slim bar with
   "Back" and the product, step indicator, one step per screen
   ============================================================ */
body.is-checkout { background: #eef2f7; }
body.is-checkout .page-header,
body.is-checkout .site-footer { display: none; }

.checkout { min-height: 100vh; display: flex; flex-direction: column; }
.ck-wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; }

.ck-top { position: sticky; top: 0; z-index: 30; background: #fff; border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); }
.ck-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
.ck-back:hover { color: var(--ink); }
.ck-back svg { width: 16px; height: 16px; }
[dir="rtl"] .ck-back svg { transform: scaleX(-1); }
.ck-product { display: inline-flex; align-items: center; }

.ck-steps { list-style: none; counter-reset: ck; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0 0 14px; }
.ck-steps li { counter-increment: ck; padding-top: 9px; border-top: 3px solid #d7e0ea; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; transition: border-color .25s ease, color .25s ease; }
.ck-steps li:first-child { text-align: start; }
.ck-steps li:last-child { text-align: end; }
.ck-steps li::before { content: counter(ck) ". "; }
.ck-steps li.is-done { border-top-color: var(--green); }
.ck-steps li.is-active { border-top-color: var(--green); color: var(--ink); }

.ck-main { flex: 1; padding: 44px 0 72px; }
/* "backwards": once the entrance animation ends no transform is left behind — a leftover transform
   would make each block its own layer and the tariff box below would paint over the open calendar */
.ck-main .ck-wrap > * { animation: rise .35s backwards cubic-bezier(.2, .7, .2, 1); }
.ck-h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.ck-sub { margin: 8px 0 24px; font-size: 1rem; line-height: 1.5; color: var(--muted); }

.ck-card { position: relative; z-index: 2; display: grid; gap: 18px; padding: 22px; background: #fff; border: 1px solid #dde5ee; border-radius: 14px; }  /* above the tariff box, so the calendar drops over it */
.ck-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ck-card .bk-email { gap: 7px; }

/* tariff conditions under the dates */
.ck-info { margin-top: 14px; padding: 16px 18px; background: rgba(10, 83, 147, .05); border: 1px solid rgba(10, 83, 147, .14); border-radius: 14px; }
.ck-info .bk-tariff { padding: 0; margin: 0; border: 0; }
.ck-info .bk-tariff-title { font-size: .95rem; }
.ck-info .bk-tariff-price strong { font-size: 1.35rem; }

.ck-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.ck-foot .bk-price { min-width: 0; }
.ck-next {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(10, 83, 147, .8);
  transition: background .18s ease, box-shadow .18s ease;
}
.ck-next:hover { background: var(--green-700); }
.ck-next:focus-visible { outline: 3px solid rgba(10, 83, 147, .35); outline-offset: 2px; }
.ck-next svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .ck-next svg { transform: scaleX(-1); }
/* not ready yet: looks disabled, but a click still explains what is missing */
.ck-next.is-disabled { background: #b8c6d5; box-shadow: none; }
.ck-next.is-disabled:hover { background: #aebdcd; }

/* review step */
.ck-summary { padding: 6px 22px; }
.ck-summary dl { margin: 0; }
.ck-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ck-row:last-child { border-bottom: 0; }
.ck-row dt { font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.ck-row dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ck-row.is-total dd strong { display: block; font-size: 1.5rem; color: var(--green); font-variant-numeric: tabular-nums; }
.ck-row.is-total dd small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 500; color: var(--muted); }

@media (max-width: 640px) {
  .ck-main { padding: 28px 0 48px; }
  .ck-card { padding: 16px; }
  .ck-dates { grid-template-columns: minmax(0, 1fr); }
  .ck-foot { flex-direction: column; align-items: stretch; }
  .ck-foot .bk-price { align-self: stretch; }
  .ck-next { width: 100%; }
  .ck-summary { padding: 4px 16px; }
  .ck-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ck-steps li { font-size: .72rem; }
}

/* ============================================================
   Booking form at the bottom of the home page (#bkContent2):
   blue tariff band, fields, the button with the total
   ============================================================ */
.book-section .booking-card {
  --bk-px: 24px;   /* side padding — the band bleeds out by exactly this much */
  --bk-pt: 22px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: var(--bk-pt) var(--bk-px) 22px;
  border: 1px solid rgba(10, 83, 147, .14);
  border-radius: 18px;
  box-shadow:
    0 44px 80px -40px rgba(10, 83, 147, .5),
    0 14px 30px -18px rgba(8, 24, 34, .3);
  animation: none;
}
.bk-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "tariff tariff"
    "in     out"
    "email  email"
    "note   note"
    "price  cta";
  gap: 14px 16px;
  align-items: start;
}
.bk-form .bk-tariff {
  grid-area: tariff;
  position: relative;
  overflow: hidden;
  margin: calc(-1 * var(--bk-pt)) calc(-1 * var(--bk-px)) 6px;
  padding: 18px var(--bk-px);
  border: 0;
  border-radius: 17px 17px 0 0;
  background:
    radial-gradient(560px 200px at 100% 0%, rgba(255, 255, 255, .16), transparent 65%),
    linear-gradient(135deg, #0a5393 0%, #0a4a86 50%, #0b3b6c 100%);
  color: #fff;
}
.bk-form .bk-tariff-title { color: #fff; }
.bk-form .bk-tariff-price strong { color: #fff; font-size: 1.8rem; }
.bk-form .bk-tariff-price span { color: rgba(255, 255, 255, .75); }
.bk-form .bk-feats li { color: rgba(255, 255, 255, .9); }
.bk-form .bk-feats svg { background: rgba(255, 255, 255, .16); color: #fff; }
.bk-form .bk-when[data-which="in"] { grid-area: in; }
.bk-form .bk-when[data-which="out"] { grid-area: out; }
.bk-form .bk-email { grid-area: email; }
.bk-form .bk-email-note { grid-area: note; margin: -8px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bk-form .bk-price { grid-area: price; }
.bk-form .bk-pill,
.bk-form .bk-input { background: #f6f9fc; border-color: #d6e1eb; }
.bk-form .bk-pill:hover,
.bk-form .bk-input:hover { border-color: #a9c1d8; background: #fff; }
.bk-form .bk-pill:focus-within,
.bk-form .bk-pill.is-open,
.bk-form .bk-input:focus { background: #fff; }

.bk-cta {
  grid-area: cta;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(10, 83, 147, .8);
  transition: background .18s ease, transform .15s ease, box-shadow .15s ease;
}
.bk-cta:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 18px 30px -14px rgba(10, 83, 147, .85); }
.bk-cta:active { transform: none; }
.bk-cta:focus-visible { outline: 3px solid rgba(10, 83, 147, .35); outline-offset: 2px; }
.bk-cta svg { width: 18px; height: 18px; flex: none; }
.bk-cta span { font-variant-numeric: tabular-nums; }
[dir="rtl"] .bk-cta svg { transform: scaleX(-1); }

@media (max-width: 640px) {
  .book-section .booking-card { --bk-px: 16px; --bk-pt: 16px; padding-bottom: 18px; }
  .bk-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tariff" "in" "out" "email" "note" "price" "cta";
    gap: 12px;
  }
  .bk-form .bk-tariff { padding-block: 16px; }
  .bk-form .bk-tariff-price strong { font-size: 1.6rem; }
  .bk-form .bk-email-note { margin-top: -6px; }
  .bk-cta { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-cta:hover { transform: none; }
}

/* ============================================================
   Fixes from the site audit
   ============================================================ */
/* tablets: the logo already links home, and text links step aside before the header gets too wide */
@media (max-width: 1100px) {
  .page-nav { gap: 22px; }
  .page-nav a[data-i18n="pg.nav.home"] { display: none; }
}
@media (max-width: 960px) {
  .page-nav a:not(.page-nav-cta) { display: none; }
}

/* narrowest phones (≤400px): the date pill needs every pixel — drop the clock icon ("10:00" is clear
   without it), tighten the padding and let a long date wrap instead of being cut off */
@media (max-width: 400px) {
  .bk-time > svg:first-child { display: none; }
  .bk-pill { padding: 0 10px; gap: 7px; }
  .bk-pill-val { white-space: normal; line-height: 1.15; }
}

/* ============================================================
   Logo image + typography — Manrope (display) + Inter (UI / body)
   ============================================================ */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
}
body { font-family: var(--font-sans); }

.brand { gap: 0; line-height: 0; }
.brand-logo { display: block; width: auto; height: 34px; max-width: 100%; }
.site-footer .brand-logo { height: 34px; }
.ck-product .brand-logo { height: 24px; }

.hero-title, .section-hero h1, .section-head h2, .prose h2, .ck-h1,
.adv h3, .arrive-card h3, .bk-tariff-title, .modal-header h2 { font-family: var(--font-display); }

.hero-title       { font-weight: 800; letter-spacing: -.03em;  line-height: 1.05; }
.section-head h2  { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.section-hero h1  { font-weight: 800; letter-spacing: -.025em; line-height: 1.06; }
.ck-h1            { font-weight: 800; letter-spacing: -.02em; }
.prose h2         { font-weight: 700; letter-spacing: -.015em; }
.adv h3, .arrive-card h3 { font-weight: 700; letter-spacing: -.01em; }
.bk-tariff-title  { font-weight: 800; letter-spacing: -.01em; }
.modal-header h2  { font-weight: 700; letter-spacing: -.015em; }

/* scripts Manrope doesn't cover fall back to system faces — no negative tracking there */
:is(html[lang="ar"], html[lang="hi"], html[lang="zh"], html[lang="ja"], html[lang="ko"])
  :is(.hero-title, .section-hero h1, .section-head h2, .prose h2, .ck-h1, .adv h3, .arrive-card h3, .bk-tariff-title, .modal-header h2) { letter-spacing: 0; }

@media (max-width: 560px) {
  .brand-logo { height: 26px; }
  .site-footer .brand-logo { height: 30px; }
}
/* Manrope 800 is wider than the old serif: long single words (nb "Bestillingsopplysninger") must still wrap */
.hero-title, .section-hero h1, .section-head h2, .prose h2, .ck-h1 { overflow-wrap: break-word; }

@media (max-width: 400px) {
  .ck-h1 { font-size: 1.5rem; }
  .brand-logo { height: 22px; }
  .ck-product .brand-logo { height: 19px; }
}
