/* ==========================================================================
   Taxi 951 – style.css (MASTER)
   Doel: leesbaarheid ↑, gedrag ongewijzigd (geen volgorde/regels aangepast)
   --------------------------------------------------------------------------
   INHOUDSOPGAVE (TOC)
   00. CSS Variabelen (root)
   01. Scrollbar/Overflow base
   02. Global box-sizing + form max-width + overflow-x
   03. Helpers & Animaties (+ reduce motion, skip link, visually-hidden)
   04. Basis typografie & focus-visible
   05. Navigatie (sticky nav)
   05a. Fixed navbar offset (inner pages + anchors)
   06. Hero
   07. Buttons (.btn/.cta-button)
   08. Secties & Tarieven
   09. Ritgegevens & Calculator (+ kaart)
   10. Contact (link-underline animatie)
   11. Footer
   12. Scroll-to-top knop
   13. Sticky “Boek nu” (mobiel)
   14. Handmatige fotogalerij
   15. Lightbox
   16. Dienstenlijst + groene iconen
   17. Nieuwsbrief formulier
   18. Reserveringsformulier (gedeelde stijl, NIET pagina-specifiek)
   19. Google Autocomplete (mobiel overlay) + fallback lijst
   20. Mobiele tweaks (≤768, ≤480, ≤360, ≤320)
   21. Safari compat
   22. Portfolio-aanvullingen (container, titels, tabellen, note)
   23. Confirm modals (legacy + React)
   24. Branding (logo + tekst)
   25. LEGAL PAGES (Privacy/Voorwaarden)
   26. Reserveren specifieke illustraties + contact micro-polish
   --------------------------------------------------------------------------
   GUARDRAILS
   - Pagina-specifiek voor Reserveren (b.v. thank-you state, per-veld .has-error)
     zit in: /assets/css/reserveren.css (NIET hierheen verplaatsen).
   - Dit bestand blijft de “globale/gedeelde” stijlen bevatten.
   ========================================================================== */

/* =========================
   00) CSS Variabelen
========================= */
:root {
  --brand: #07a090;
  --brand-600: #02d6c2;
  --brand-700: #02d6c2;
  --ink: #222;
  --ink-soft: #333;
  --bg: #fff;
  --muted: #f7f7f7;
  --muted-2: #f0f9f7;
  --border: #ddd;

  /* hoogte van je vaste navbar + wat marge voor inner pages */
  --nav-offset: 112px;

  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --lifted-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

/* =========================
   01) Scrollbar/Overflow base
========================= */
/* ==== Houd verticale scrollbar altijd gereserveerd ==== */
html {
  overflow-y: scroll;
  overflow-x: hidden;
}
@supports (scrollbar-gutter: stable) {
  html {
    scrollbar-gutter: stable;
  }
}

/* =========================
   02) Global box-sizing / overflow-x
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
input,
select,
textarea {
  max-width: 100%;
}
html,
body {
  overflow-x: hidden;
}

/* =========================
   03) Helpers & Animaties
========================= */
@keyframes fadeInSmooth {
  0% {
    opacity: 0;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.2s ease-out,
    transform 1.2s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.hidden {
  display: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 0.6rem 0.8rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  z-index: 2000;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   04) Basis typografie
========================= */
html {
  scroll-behavior: smooth;
}
html,
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji',
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: text;
  user-select: text;
}
a {
  color: var(--brand);
  text-decoration: none;
  -webkit-user-select: text;
  user-select: text;
}
img {
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* =========================
   05) Navigatie
========================= */
.nav-main {
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* >>> Scroll-state direct na de basis */
.nav-main.scrolled {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.nav-main.scrolled .brand {
  color: var(--brand);
}
.nav-main.scrolled .hamburger-icon {
  fill: #000;
}
.nav-main.scrolled .nav-links a {
  color: #000;
}
.nav-main.scrolled .nav-links a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}
.nav-main.scrolled .nav-links a[aria-current='page'] {
  color: var(--brand);
  background: rgba(11, 184, 147, 0.08);
  border-bottom: 2px solid var(--brand);
}

/* >>> Vaste witte navbar op niet-home routes */
.nav-main.solid {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.nav-main.solid .brand {
  color: var(--brand);
}
.nav-main.solid .hamburger-icon {
  fill: #000;
}
.nav-main.solid .nav-links a {
  color: #000;
}
.nav-main.solid .nav-links a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}
.nav-main.solid .nav-links a[aria-current='page'] {
  color: var(--brand);
  background: rgba(11, 184, 147, 0.08);
  border-bottom: 2px solid var(--brand);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(10px, 3vw, 28px); /* meer naar links */
  position: relative;
}

/* Merknaam + logo */
.brand {
  font-weight: 700;
  font-size: 2.15rem; /* groter */
  color: #02d6c2; /* zelfde turquoise als knoppen */
  -webkit-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .brand-logo {
  width: 92px;
  height: 92px; /* groter logo */
  /* FILTER VERWIJDERD → gebruik je nieuwe turquoise asset direct */
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.hamburger-icon {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}
.nav-links li {
  list-style: none;
}
.nav-links a {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  line-height: 1.2;
  transition:
    color 0.25s,
    background-color 0.25s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-links a[aria-current='page'] {
  color: var(--brand);
  background: rgba(11, 184, 147, 0.22);
  border-bottom: 2px solid var(--brand);
}

/* Compactere navbar (zonder componenten aan te passen) */
header,
.site-header,
.navbar {
  padding-block: 10px !important;
}
header .logo,
.brand img,
.navbar .logo {
  height: 38px !important;
}
header nav a,
.navbar nav a {
  padding-block: 6px !important;
}

@media (max-width: 768px) {
  .hamburger {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    z-index: 1200;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    min-width: 180px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    color: #fff;
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-links a[aria-current='page'] {
    color: var(--brand);
    background: rgba(11, 184, 147, 0.22);
    border-bottom: 0;
  }

  .nav-main.scrolled .nav-links a,
  .nav-main.solid .nav-links a {
    color: #fff;
  }
  .nav-main.scrolled .nav-links a:hover,
  .nav-main.solid .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-main.scrolled .nav-links a[aria-current='page'],
  .nav-main.solid .nav-links a[aria-current='page'] {
    color: var(--brand);
    background: rgba(11, 184, 147, 0.22);
    border-bottom: 0;
  }
}

/* Sectiekoppen/sections houden rekening met sticky navbar */
.section-title,
section[id] {
  scroll-margin-top: calc(var(--nav-offset, 84px) + 12px);
}

/* =========================
   05a) Fixed navbar offset (inner pages + anchors)
========================= */
.nav-main.solid ~ .page-wrapper,
.nav-main.scrolled ~ .page-wrapper {
  padding-top: var(--nav-offset); /* voorkomt overlap op o.a. #/reserveren */
}
html {
  /* scrollen naar #anchors houdt rekening met vaste navbar */
  scroll-padding-top: calc(var(--nav-offset) + 8px);
}

/* =========================
   05b) Fixed navbar offset (Legal pages)
========================= */
.legal-page {
  padding-top: var(--nav-offset); /* voorkomt overlap navbar op Voorwaarden & Privacy */
}

/* =========================
   06) Hero
========================= */
.hero {
  background-color: #0bb893;
  /* fallback voor oudere browsers */
  background-image: url('/assets/img/hero_night_lighter.png');
  /* oude Safari */
  background-image: -webkit-image-set(
    url('/assets/img/hero_night_lighter.webp') type('image/webp') 1x,
    url('/assets/img/hero_night_lighter.png') type('image/png') 1x
  );
  /* moderne browsers pakken de webp (PNG blijft fallback) */
  background-image: image-set(
    url('/assets/img/hero_night_lighter.webp') type('image/webp') 1x,
    url('/assets/img/hero_night_lighter.png') type('image/png') 1x
  );
  background-size: cover;
  background-position: 63% 50%;
  background-repeat: no-repeat;
  color: #fff;
  height: 100svh;

  display: flex;
  align-items: flex-start;
  padding: min(10vh, 80px) 2rem min(10vh, 80px);

  position: relative;
  text-align: left;
}
/* overlay voor leesbaarheid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
/* <<< hele blok omlaag >>> */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  margin-right: auto;
  margin-left: clamp(18px, 6vw, 96px);
  margin-top: clamp(120px, 22vh, 400px); /* flink lager zoals gevraagd */
}
/* typografie */
.hero-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 2rem + 3.6vw, 4.6rem);
  line-height: 1.08;
  margin: 0 0 1.1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hero-subtitle {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 3.8rem 0; /* extra ruimte tot knoppen */
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}
/* knoppen */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  margin-top: 0;
}
.hero-buttons a,
.hero .btn,
.hero .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.55rem;
  border-radius: 12px;
  border: 0;
  background: #12d8c4;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 30px rgba(18, 216, 196, 0.18);
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.hero-buttons a:hover,
.hero .btn:hover,
.hero .button:hover {
  background: #0fb4a2;
  box-shadow: 0 12px 36px rgba(18, 216, 196, 0.24);
}
.hero-buttons a:active,
.hero .btn:active,
.hero .button:active {
  transform: translateY(1px);
}
/* btn-outline binnen hero ook gevuld turquoise */
.hero .btn.btn-outline {
  background: #12d8c4 !important;
  color: #fff !important;
  border: 0 !important;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .hero-inner {
    margin-top: clamp(160px, 28vh, 360px);
  }
}
@media (max-width: 768px) {
  .hero {
    text-align: center;
    background-position: 60% 50%;
  }
  .hero-inner {
    margin-left: auto;
    margin-top: clamp(120px, 24vh, 280px);
  }
  .hero-buttons {
    align-items: center;
  }
}
@media (max-width: 425px) {
  .hero-title {
    font-size: clamp(1.9rem, 6.2vw + 1rem, 2.4rem);
  }
  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 2.6rem;
  }
}
@media (max-width: 375px) {
  .hero-inner {
    margin-top: 160px;
  }
}
@media (max-width: 320px) {
  .hero-inner {
    margin-top: 140px;
  }
}
@media (min-width: 2560px) {
  .hero-title {
    font-size: 4rem;
  }
  .hero-subtitle {
    font-size: 1.6rem;
    max-width: 60ch;
  }
}

/* =========================
   07) Buttons
========================= */
.btn,
.cta-button {
  width: 100%;
  max-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  padding: 1rem 1.5rem;
  min-height: 52px;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.25s,
    transform 0.15s,
    box-shadow 0.25s;
}
.btn {
  border: 2px solid transparent;
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: #000;
}
.btn-outline:hover {
  background: #f4f4f4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Alias voor oudere markup (.cta-button) */
.cta-button {
  border: 2px solid #000;
  background: #fff;
  color: var(--brand);
}
.cta-button:hover {
  background: #f4f4f4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =========================
   08) Secties & Tarieven
========================= */
.section {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.tarieven-lijst {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tarief-item {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 1.1rem;
}
.tarief-bedrag {
  font-weight: 700;
  color: var(--brand);
  min-width: 80px;
}
.tarief-omschrijving {
  color: var(--ink-soft);
}

/* =========================
   09) Ritgegevens & Calculator
========================= */
.rit-gegevens {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.rit-gegevens .form-group {
  display: flex;
  flex-direction: column;
}
.rit-gegevens label {
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.rit-gegevens input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.calculator {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.calculator label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.calculator input,
.calculator select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.calculator button {
  margin-top: 1.5rem;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}
.calculator button:hover {
  background: var(--brand-600);
  transform: scale(1.05);
}
#prijsOutput {
  margin-top: 1rem;
  font-weight: 700;
}
.nacht-melding {
  background: #e7f9f6;
  color: #004d43;
  border-left: 4px solid var(--brand);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.nacht-melding a {
  color: var(--brand);
  font-weight: 700;
}
/* Rit-samenvatting */
.rit-samenvatting {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--muted-2);
  border: 1px solid #d0eae4;
  border-radius: 8px;
  animation: fadeInSmooth 0.5s;
}
.samenvatting-kaart h4 {
  margin-bottom: 1rem;
  color: var(--brand);
}
.samenvatting-kaart ul {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}
/* Kaart */
#map {
  width: 100%;
  height: 350px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* =========================
   10) Contact + underline animatie
========================= */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
/* Professionele underline-animatie */
.footer-links a,
.contact-item a,
a.link-underline {
  color: inherit;
  position: relative;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a::after,
.contact-item a::after,
a.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--brand-700);
  transition: width 0.25s ease;
}
.footer-links a:hover,
.contact-item a:hover,
a.link-underline:hover {
  color: var(--brand-700);
}
.footer-links a:hover::after,
.contact-item a:hover::after,
a.link-underline:hover::after {
  width: 100%;
}

/* =========================
   11) Footer
========================= */
.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 2.25rem 1rem 1.5rem;
}
.site-footer a {
  color: #fff;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.footer-col {
  min-width: 0;
}
.footer-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-bottom {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.95;
}
/* Footer “lucht” onderaan voorkomen */
.site-footer {
  margin-bottom: 0 !important;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-bottom {
    text-align: left;
  }
}

/* =========================
   12) Scroll-to-top knop
========================= */
#scrollTopBtn {
  position: fixed;
  bottom: var(--lifted-bottom, 40px);
  right: 20px;
  background: rgba(11, 184, 147, 0.95);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.35s,
    transform 0.35s,
    box-shadow 0.25s,
    background-color 0.25s;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.22);
}
#scrollTopBtn.show {
  opacity: 0.98;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
#scrollTopBtn:hover {
  background: var(--brand-600);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 12px 24px rgba(0, 0, 0, 0.28);
}
#scrollTopBtn:focus-visible {
  outline: 3px solid #fff;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.22);
  transition: none;
}

/* =========================
   13) Sticky “Boek nu” (mobiel)
========================= */
.sticky-boeknu {
  position: fixed;
  right: 20px;
  bottom: 110px;
  z-index: 10000;
  background: #fff;
  color: var(--brand);
  border: 2px solid #000;
  border-radius: 28px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  display: none;
  -webkit-user-select: none;
  user-select: none;
}
.sticky-boeknu:hover {
  background: #f4f4f4;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .sticky-boeknu {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* =========================
   14) Handmatige fotogalerij
========================= */
.manual-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.lightbox-img-btn {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

/* foto zelf */
.manual-gallery img {
  display: block;
  max-width: min(90vw, 700px);
  max-height: 350px;
  width: auto; /* ← geen vaste breedte; krimpt naar beeld */
  height: auto; /* ← hoogte volgt het plaatje */
  /* geen aspect-ratio hier; je <img width/height> voorkomt CLS al */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.manual-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.nav-btn {
  background: transparent;
  border: 0;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--brand);
  padding: 0 1rem;
  -webkit-user-select: none;
  user-select: none;
}

.nav-btn:hover {
  color: var(--brand-700);
}

@media (max-width: 380px) {
  .manual-gallery {
    gap: 6px;
  }
  .manual-gallery img {
    max-width: 72vw;
  }
  .nav-btn {
    font-size: 2rem;
    padding: 0 0.25rem;
  }
}

@media (max-width: 320px) {
  .manual-gallery img {
    max-width: 68vw;
  }
}

/* optioneel: lightbox-foto ook met gereserveerde ruimte */
.lightbox-dialog img {
  width: min(95vw, 1200px);
  height: auto;
  aspect-ratio: 16 / 9;
}

/* optioneel: lightbox-foto ook met gereserveerde ruimte */
.lightbox-dialog img {
  width: min(95vw, 1200px);
  height: auto;
  aspect-ratio: 16 / 9;
}

/* =========================
   15) LIGHTBOX
========================= */
body.noscroll {
  overflow: hidden;
}
.lightbox-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.85) !important;
  z-index: 9999 !important;
  padding: 32px !important;
}
.lightbox-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.lightbox-dialog {
  position: relative !important;
  max-width: min(92vw, 1200px) !important;
  max-height: 86vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.lightbox-dialog img,
#lightboxImage {
  max-width: 100% !important;
  max-height: 86vh !important;
  display: block !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Lightbox foto: begrenzen zodat hij nooit “reusachtig” wordt */
.lightbox-dialog img {
  width: auto;
  height: auto;
  max-width: min(95vw, 1100px);
  max-height: min(85vh, 620px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 2.5rem !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  padding: 0.25rem 0.5rem !important;
  line-height: 1 !important;
}
#lightboxPrev {
  left: -56px !important;
}
#lightboxNext {
  right: -56px !important;
}
.lightbox-close {
  position: absolute !important;
  top: -44px !important;
  right: -44px !important;
  font-size: 36px !important;
  color: #fff !important;
  background: none !important;
  border: 0 !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
@media (max-width: 640px) {
  #lightboxPrev {
    left: 8px !important;
  }
  #lightboxNext {
    right: 8px !important;
  }
  .lightbox-close {
    top: 8px !important;
    right: 8px !important;
  }
}

/* =========================
   16) Dienstenlijst + groene iconen
========================= */
.diensten-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
}
.diensten-lijst li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
}
.diensten-lijst .icoon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.diensten-lijst .icoon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.diensten-lijst .icoon svg path,
.diensten-lijst .icoon svg rect,
.diensten-lijst .icoon svg circle,
.diensten-lijst .icoon svg polygon {
  fill: var(--brand) !important;
  stroke: none !important;
}

/* =========================
   17) Nieuwsbrief formulier
========================= */
.nieuwsbrief-form {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.nieuwsbrief-form .form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.nieuwsbrief-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 700;
}
.nieuwsbrief-form input[type='text'],
.nieuwsbrief-form input[type='email'] {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.nieuwsbrief-form input[type='checkbox'] {
  margin-right: 0.5rem;
}
.nieuwsbrief-form .checkbox-group {
  margin: 1rem 0;
}
.nieuwsbrief-form button {
  margin-top: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.nieuwsbrief-form button:hover {
  background: var(--brand-600);
}
#formulierFeedback {
  margin-top: 1rem;
  font-weight: 700;
}

/* =========================
   18) Reserveringsformulier (gedeeld)
   (Pagina-specifieke zaken blijven in reserveren.css)
========================= */
.formulier-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
}
.formulier-reserveren {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.formulier-reserveren label {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.formulier-reserveren input,
.formulier-reserveren select,
.formulier-reserveren textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.formulier-reserveren textarea {
  resize: vertical;
  min-height: 100px;
}
.formulier-reserveren .cta-button {
  margin-top: 1rem;
  align-self: flex-start;
}
/* Alleen reserveren-pagina layout helpers */
.reserveren-pagina,
.reserveren-pagina html,
.reserveren-pagina body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.reserveren-pagina .page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.reserveren-pagina main {
  flex-grow: 1;
}

/* =========================
   19) Google Autocomplete + fallback list
========================= */
@media (max-width: 768px) {
  .pac-container {
    z-index: 2000 !important;
    position: fixed !important;
    width: 90% !important;
    max-width: 400px;
    margin-left: 5% !important;
    box-sizing: border-box;
  }
}
/* Floating fallback lijst (mobiel) – gebruikt door main.js */
.addr-suggest {
  position: fixed;
  z-index: 2147483647;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  max-height: 240px;
  overflow: auto;
  list-style: none;
  margin: 0;
}
.addr-suggest li {
  padding: 10px 12px;
  cursor: pointer;
}
.addr-suggest li:hover {
  background: #f5f7f9;
}

/* =========================
   20) Mobiele tweaks
========================= */
@media (max-width: 768px) {
  .btn {
    min-height: 50px;
  }
  /* Hero-typografie NIET hier – staat in sectie 06 */
  .rit-gegevens input,
  .calculator input,
  .calculator select,
  .formulier-reserveren input,
  .formulier-reserveren select,
  .formulier-reserveren textarea,
  .nieuwsbrief-form input[type='text'],
  .nieuwsbrief-form input[type='email'] {
    padding: 0.8rem;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .calculator,
  .nieuwsbrief-form {
    padding: 1rem;
  }
}
/* Phones tot 480px */
@media (max-width: 480px) {
  /* Hero-maten blijven in sectie 06 */
  .section {
    padding: 1.5rem 1rem;
  }
  .hero-buttons {
    gap: 0.75rem;
  }
  .hero-buttons .cta-button,
  .hero-buttons .btn {
    width: 100%;
  }
}
/* EXTRA COMPACT: ≤360px */
@media (max-width: 360px) {
  .nav-container {
    padding: 0.75rem;
  }
  .brand {
    font-size: 1.25rem;
  }
  body {
    font-size: 15px;
  }
  .section {
    padding: 1.25rem 0.75rem;
  }
  /* Geen .hero aanpassingen hier meer */
  .btn,
  .cta-button {
    max-width: 210px;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .calculator label {
    margin-top: 0.8rem;
  }
  .calculator input,
  .calculator select {
    padding: 0.55rem;
    font-size: 1rem;
  }
  .calculator button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
  .tarief-item {
    font-size: 1rem;
  }
  .tarief-bedrag {
    min-width: 70px;
  }
  .diensten-lijst li {
    font-size: 1rem;
  }
  .contact-item {
    font-size: 1rem;
  }
  .nieuwsbrief-form {
    padding: 0.85rem;
  }
  .nieuwsbrief-form input[type='text'],
  .nieuwsbrief-form input[type='email'] {
    padding: 0.55rem;
    font-size: 1rem;
  }
  .nieuwsbrief-form button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
  #scrollTopBtn {
    width: 56px;
    height: 56px;
    right: 14px;
  }
  footer {
    padding: 1.25rem 0.75rem;
  }
  .footer-links {
    gap: 0.6rem;
  }
  .footer-links a,
  .footer-container p {
    font-size: 0.95rem;
  }
  .manual-gallery img {
    max-width: 66vw;
    max-height: 280px;
  }
  .nav-btn {
    font-size: 1.75rem;
    padding: 0 0.25rem;
  }
}
/* ULTRA COMPACT: ≤320px */
@media (max-width: 320px) {
  body {
    font-size: 14.5px;
  }
  .brand {
    font-size: 1.15rem;
  }
  /* Geen .hero aanpassingen hier meer */
  .btn,
  .cta-button {
    max-width: 200px;
    min-height: 42px;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }
  .section {
    padding: 1.1rem 0.6rem;
  }
  .manual-gallery img {
    max-width: 62vw;
    max-height: 250px;
  }
  #scrollTopBtn {
    width: 52px;
    height: 52px;
    right: 12px;
  }
}

/* =========================
   21) Safari compat
========================= */
* {
  -webkit-user-select: text;
  user-select: text;
}
.btn,
.nav-btn,
.hamburger,
.lightbox-nav,
.lightbox-close,
.cta-button {
  -webkit-user-select: none;
  user-select: none;
}

/* =======================================================================
   22) PORTFOLIO-AANVULLINGEN
======================================================================= */
.container {
  max-width: 1100px;
  margin-inline: auto;
}
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}
.section-intro {
  margin: 0 0 1.5rem 0;
  color: #333;
}
.hero-cta .btn {
  display: inline-block;
}
.table-wrap {
  overflow-x: auto;
}
.tarieven-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem 0;
}
.tarieven-table th,
.tarieven-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}
.tarieven-table thead th {
  font-weight: 600;
}
.note {
  font-size: 0.95rem;
  color: #444;
}

/* ===== Pretty confirm modal ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.confirm-dialog {
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.25rem 1rem;
}
.confirm-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}
.confirm-message {
  margin: 0 0 1rem 0;
  color: var(--ink-soft);
}
.confirm-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.confirm-buttons .btn {
  min-width: 120px;
}
@media (max-width: 480px) {
  .confirm-dialog {
    padding: 1rem;
  }
  .confirm-buttons {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
  }
}

/* ===== React modal (ConfirmLeaveModal.jsx) ===== */
.clm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.35);
}
.clm-dialog {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: min(500px, 92vw);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.25rem 1rem;
}
.clm-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}
.clm-message {
  margin: 0 0 1rem 0;
  color: var(--ink-soft);
}
.clm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.clm-actions .btn {
  min-width: 120px;
}
/* Rood variant voor leave-knop (React modal + legacy confirm) */
.clm-actions .btn-danger,
.confirm-buttons .btn-danger {
  background: #d32f2f;
  border: 1px solid #d32f2f;
  color: #fff;
}
.clm-actions .btn-danger:hover,
.confirm-buttons .btn-danger:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}

/* ==== FORCEER compacte hero ==== */
.hero.hero-compact {
  padding: 2.25rem 1rem 1.75rem;
}
.hero.hero-compact .hero-title {
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  margin: 0 0 0.45rem 0;
  line-height: 1.2;
}
.hero.hero-compact .hero-subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.hero.hero-compact .hero-buttons {
  gap: 0.8rem;
}
@media (max-width: 768px) {
  .hero.hero-compact {
    padding: 1.9rem 0.9rem 1.6rem;
  }
}
@media (max-width: 480px) {
  .hero.hero-compact {
    padding: 1.8rem 1rem 1.4rem;
  }
}
@media (max-width: 360px) {
  .hero.hero-compact {
    padding: 1.6rem 0.8rem 1.2rem;
  }
  .hero.hero-compact .hero-buttons .btn {
    min-height: 44px;
    font-size: 1rem;
  }
}

/* =========================
   24) Branding (logo + tekst)
========================= */
.brand-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
} /* algemene baseline */
.brand-text {
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   25) LEGAL PAGES (Privacy / Voorwaarden)
========================================================= */
.legal-page {
  max-width: 860px;
  margin: 2.25rem auto;
  padding: 0 1rem 2.5rem;
}
.legal-page h1 {
  color: var(--brand);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--brand); /* ✅ lange groene lijn */
}
/* overige typografie */
.legal-page h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: #1c1c1c;
}
.legal-page p {
  margin: 0 0 0.9rem;
  color: var(--ink);
}
.legal-page ul {
  margin: 0.25rem 0 0.9rem 1.25rem;
}
.legal-page li {
  margin: 0.25rem 0;
}
.legal-page a,
.legal-page .link-underline {
  color: var(--brand);
}
.legal-page .back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
}
.legal-page .back-link:hover {
  text-decoration: underline;
}
/* smalle variant */
.legal-narrow {
  max-width: 680px;
}

@media (max-width: 480px) {
  .legal-page {
    margin-top: 1.25rem;
  }
}

/* Hoogte sticky navbar reserveren en voor mobiele variant */
:root {
  --nav-h: 64px;
}
@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }
}

/* Zorg dat de content níet onder de navbar kruipt */
.legal-page {
  padding-top: var(--nav-h);
}

/* En als er naar de titel gescrold wordt, hou er ook rekening mee */
.legal-page h1 {
  margin-top: 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* =========================
   26) Reserveren – illu & contact micro-polish
   (herinnering: velden/validatie rood e.d. in reserveren.css)
========================= */
.formulier-wrapper .form-error {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecea;
  border: 1px solid #f5c2c7;
  color: #b00020;
  font-weight: 700;
}
.formulier-wrapper .form-error .msg {
  line-height: 1.4;
}
/* icoon NIET schermvullend maken */
.formulier-wrapper .form-error .warn-anim {
  flex: none;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.formulier-wrapper .form-error .warn-anim svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* rode rand voor foutvelden + tip (kan gedeeld blijven, specifieke .has-error in reserveren.css) */
.formulier-reserveren .is-invalid {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
  outline: none;
}
.formulier-reserveren .field-error-tip {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #d32f2f;
}
/* illustraties formaat */
.reserveren-pagina .formulier-wrapper .warn-anim svg,
.reserveren-pagina .formulier-wrapper .mail-anim svg {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}
/* Contact-icoontjes compact onder het formulier */
body.reserveren-pagina .contact-lines .contact-ico svg {
  width: 18px;
  height: 18px;
  max-width: none;
  margin: 0;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.contact-item a {
  display: inline-block;
  padding: 2px 0;
  word-break: break-word;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 480px) {
  .contact-icon {
    font-size: 1.25rem;
  }
  .contact-item {
    gap: 0.6rem;
  }
}
