/* =====================================================
 * SHADE Zonnezeil planner — huisstijl
 * Teal / Sand / Black / White · Venice Blvd
 * ===================================================== */

@font-face {
  font-family: 'Venice Blvd';
  src: url('assets/fonts/VeniceBlvd-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Venice Blvd';
  src: url('assets/fonts/VeniceBlvd-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Venice Blvd';
  src: url('assets/fonts/VeniceBlvd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Venice Blvd';
  src: url('assets/fonts/VeniceBlvd-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* SHADE huisstijl kleuren */
  --teal: #166069;
  --teal-dark: #0f4a51;
  --teal-darker: #0a3238;
  --teal-hover: #1a747f;
  --sand: #d0a452;
  --sand-hover: #dcb56b;
  --sand-soft: rgba(208, 164, 82, 0.15);
  --black: #000000;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.72);
  --white-soft: rgba(255, 255, 255, 0.12);
  --white-line: rgba(255, 255, 255, 0.16);
  --danger: #e07a68;

  --radius: 6px;
  --sidebar-w: 340px;
  --font: 'Venice Blvd', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  background: var(--teal-darker);
  color: var(--white);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ================== SIDEBAR ================== */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--teal);
  border-right: 1px solid var(--teal-dark);
  overflow-y: auto;
  padding: 22px 22px 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#sidebar header .brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-link {
  display: inline-block;
  transition: opacity 160ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.75;
  outline: none;
}

/* ---- Intro-panel "Zo werkt het" -------------------------------------- */
.intro-panel .how-it-works {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.intro-panel .how-it-works li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
}

.intro-panel .how-it-works .step-num {
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--teal);
  font-family: var(--font);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.intro-panel .how-it-works .step-text {
  flex: 1;
  padding-top: 2px;
}

.brand-sub {
  margin: 12px 0 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}

.panel {
  background: var(--teal-dark);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  padding: 16px;
}

.panel h2 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sand);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--white-dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.row {
  margin-bottom: 14px;
}

.row:last-child {
  margin-bottom: 0;
}

.row label span {
  float: right;
  color: var(--white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-row label { margin-bottom: 0; }

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--teal-darker);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}

input[type="text"]::placeholder {
  color: rgba(255,255,255,0.4);
}

input[type="text"]:focus {
  border-color: var(--sand);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sand);
}

input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: var(--sand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  flex: 1;
}

button {
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}

button:hover {
  background: var(--white-soft);
  border-color: rgba(255,255,255,0.28);
}

button.primary {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--teal-darker);
}

button.primary:hover {
  background: var(--sand-hover);
  border-color: var(--sand-hover);
}

button.secondary {
  /* neutral */
}

button.danger {
  color: var(--danger);
  border-color: rgba(224, 122, 104, 0.35);
}

button.danger:hover {
  background: rgba(224, 122, 104, 0.1);
  border-color: rgba(224, 122, 104, 0.55);
}

.search-results {
  list-style: none;
  padding: 4px 0 0;
  margin: 8px 0 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--teal-darker);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
}

.search-results li {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--white-dim);
  cursor: pointer;
  border-bottom: 1px solid var(--white-line);
  transition: background .12s;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li:hover {
  background: var(--white-soft);
  color: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.info-grid > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-grid .wide {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--white-line);
}

.info-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.info-grid .wide .info-value {
  font-size: 17px;
  color: var(--sand);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--white-dim);
  line-height: 1.55;
  padding-top: 6px;
}

footer p { margin: 0; }

/* ================== MAP ================== */
#mapContainer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: var(--sidebar-w);
  background: var(--teal-darker);
}

#map {
  width: 100%;
  height: 100%;
}

.map-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 74, 81, 0.92);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 22px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid rgba(208, 164, 82, 0.35);
  transition: opacity .3s;
}

.map-hint.hidden {
  opacity: 0;
}

/* ================== Base layer switch ================== */
.base-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  gap: 0;
  background: rgba(15, 74, 81, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(208, 164, 82, 0.35);
  border-radius: 22px;
  padding: 3px;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-family: var(--font);
}

.base-switch button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  font-family: inherit;
}

.base-switch button:hover {
  color: #fff;
}

.base-switch button.active {
  background: var(--sand, #d0a452);
  color: #0f4a51;
}

@media (max-width: 768px) {
  .base-switch {
    top: 68px;
    right: 12px;
    padding: 2px;
  }
  .base-switch button {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

/* ================== Zeil overlay ================== */
.sail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 500;
}

.sail-shape {
  cursor: grab;
  pointer-events: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  transition: filter .15s;
}

.sail-shape.selected {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.sail-shape.dragging {
  cursor: grabbing;
}

.sail-diagonal {
  pointer-events: none;
  stroke-linecap: round;
}

.corner-handle {
  cursor: grab;
  pointer-events: auto;
  transition: r .12s;
}

.corner-handle:hover {
  r: 11;
}

.corner-handle.dragging {
  cursor: grabbing;
  r: 11;
}

/* Leaflet overrides */
.leaflet-container {
  background: var(--teal-darker);
  font-family: var(--font);
}

.leaflet-control-attribution {
  background: rgba(10, 50, 56, 0.85) !important;
  color: var(--white-dim) !important;
  font-size: 10px !important;
  padding: 3px 8px !important;
  border: 1px solid rgba(208, 164, 82, 0.15);
}

.leaflet-control-attribution a { color: var(--sand) !important; }

.leaflet-control-zoom a {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.2) !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
}

.leaflet-control-zoom a:hover {
  background: var(--teal-hover) !important;
  color: var(--sand) !important;
}

/* Responsive */
/* ============================================================
   MOBIEL — Bottom sheet layout
   ------------------------------------------------------------
   • Kaart is fullscreen achtergrond (100vh)
   • Drijvende SHADE-header bovenaan (logo + taal)
   • Sidebar wordt bottom sheet met peek / half / full snap-standen
   • Drag-handle bovenaan de sheet
   ============================================================ */

/* Mobiele elementen zijn standaard verborgen (desktop) */
#mobileTopBar { display: none; }
#sheetHandle { display: none; }

@media (max-width: 720px) {
  :root {
    /* Peek = handle + kleine hint zichtbaar */
    --sheet-peek: 92px;
    /* Gebruik small viewport height (svh) — Safari-balk telt mee */
    --sheet-half: 70svh;
    --sheet-full: 92svh;
  }
  /* Fallback voor browsers zonder svh */
  @supports not (height: 100svh) {
    :root {
      --sheet-half: 65vh;
      --sheet-full: 85vh;
    }
  }

  /* Kaart wordt fullscreen achtergrond */
  #mapContainer {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100svh; /* small viewport — stopt VOOR Safari-balk */
  }

  /* Drijvende SHADE-header bovenaan */
  #mobileTopBar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(22, 96, 105, 0.92) 0%, rgba(22, 96, 105, 0.75) 60%, rgba(22, 96, 105, 0) 100%);
    pointer-events: none;
  }
  #mobileTopBar > * { pointer-events: auto; }
  .mobile-brand-link {
    display: block;
    line-height: 0;
  }
  .mobile-brand-link img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-lang {
    display: flex;
    gap: 2px;
  }
  .mobile-lang a {
    font-family: 'Venice Blvd', Arial, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand);
    text-decoration: none;
    padding: 4px 7px;
    border: 1px solid transparent;
    border-radius: 3px;
    opacity: 0.7;
  }
  .mobile-lang a.active {
    opacity: 1;
    border-color: var(--sand);
    background: rgba(208, 164, 82, 0.15);
  }

  /* Sidebar wordt bottom sheet. In plaats van transform gebruiken we
     een variabele HOOGTE per stand — dan blijft de onderkant altijd
     aan bottom:0 en valt scroll-content nooit onder viewport. */
  #sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: var(--sheet-peek);
    max-height: var(--sheet-full);
    border-right: none;
    border-top: 1px solid var(--teal-dark);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
    transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    z-index: 950;
    display: flex;
    flex-direction: column;
  }
  #sidebar.sheet-dragging { transition: none; }
  #sidebar.sheet-half {
    height: var(--sheet-half);
  }
  #sidebar.sheet-full {
    height: var(--sheet-full);
  }

  /* Drag handle bovenin de sheet */
  #sheetHandle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 8px;
    background: transparent;
    border: none;
    cursor: grab;
    width: 100%;
    flex-shrink: 0;
    touch-action: none;
  }
  #sheetHandle:active { cursor: grabbing; }
  .handle-bar {
    display: block;
    width: 44px;
    height: 4px;
    background: var(--sand);
    opacity: 0.5;
    border-radius: 2px;
  }
  .handle-label {
    font-family: 'Venice Blvd', Arial, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand);
    opacity: 0.85;
  }
  #sidebar.sheet-half .handle-label,
  #sidebar.sheet-full .handle-label {
    display: none;
  }

  /* Header binnen sheet niet meer nodig omdat de mobile-top-bar er is */
  #sidebar header,
  #sheetScroll > header {
    display: none;
  }

  /* Inner scroll-container: alles behalve de drag-handle scrollt hierbinnen.
     Kritiek: max-height wordt in JS gezet obv de zichtbare sheet-hoogte,
     zodat de scroll-container nooit onder het viewport valt. */
  #sheetScroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
  }
  #sheetScroll > .panel,
  #sheetScroll > .cta-section,
  #sheetScroll > form {
    flex-shrink: 0;
  }
  /* Sheet zelf scrollt NIET — alleen #sheetScroll */
  #sidebar {
    overflow: hidden;
  }

  /* Content-panels compact op mobiel */
  #sidebar .panel {
    padding: 14px 20px;
  }
  #sidebar .panel h3 {
    font-size: 14px;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
  }
  #sidebar .intro-panel .how-it-works {
    margin: 0 0 12px;
  }

  /* CTA-sectie krijgt sticky bottom-positie in full-stand */
  #sidebar .cta-section {
    padding: 14px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* Peek-visueel: alleen handle zichtbaar, scroll-container transparant */
  #sidebar:not(.sheet-half):not(.sheet-full) #sheetScroll {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
  }
  #sidebar.sheet-half #sheetScroll,
  #sidebar.sheet-full #sheetScroll {
    opacity: 1;
    transition: opacity 0.28s 0.05s;
  }
  /* Handle en label staan ALTIJD volledig zichtbaar */
  #sidebar #sheetHandle,
  #sidebar .handle-label,
  #sidebar .handle-bar {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Map-hint hoger positioneren onder de drijvende header */
  .map-hint {
    top: 68px;
  }

  /* Onboarding-hint overlay (eerste bezoek) */
  .mobile-onboarding {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    z-index: 940;
    background: var(--teal);
    border: 1px solid var(--sand);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--sand);
    font-family: 'Venice Blvd', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    animation: onboardingIn 0.4s ease-out;
  }
  .mobile-onboarding strong {
    display: block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .mobile-onboarding-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--sand);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
  }
  @keyframes onboardingIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Leaflet controls hoger zetten zodat ze niet onder de sheet vallen */
  .leaflet-top { top: 60px; }
  .leaflet-bottom { bottom: calc(var(--sheet-peek) + 8px); }
}

/* ---------- CTA + Taalswitcher + Modaal ---------- */

/* Taalswitcher in header */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.lang-switch a {
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  opacity: 0.6;
  transition: all 0.15s;
}
.lang-switch a:hover {
  opacity: 1;
  border-color: var(--sand);
}
.lang-switch a.active {
  opacity: 1;
  border-color: var(--sand);
  background: rgba(208, 164, 82, 0.1);
}

/* CTA sectie onderin sidebar */
.cta-section {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(208, 164, 82, 0.08), rgba(208, 164, 82, 0.02));
  border-top: 1px solid var(--teal-dark);
}
.cta-button {
  width: 100%;
  padding: 14px 16px;
  background: var(--sand);
  color: var(--teal);
  border: none;
  border-radius: 3px;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.cta-button:hover {
  background: #e0b466;
  transform: translateY(-1px);
}
.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.cta-hint {
  margin: 8px 0 0 0;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 11px;
  color: rgba(240, 220, 180, 0.7);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Modaal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 50, 56, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 6px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.modal-header {
  padding: 24px 28px 16px 28px;
  border-bottom: 1px solid #f0e8db;
}
.modal-header h2 {
  margin: 0;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.modal-intro {
  margin: 8px 0 0 0;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.modal-body {
  padding: 20px 28px;
}
.modal-body .form-row {
  margin-bottom: 14px;
}
.modal-body label {
  display: block;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
}
.modal-body input,
.modal-body textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 14px;
  color: #111;
  background: #faf7f0;
  border: 1px solid #e5dcc9;
  border-radius: 3px;
  box-sizing: border-box;
}
.modal-body input:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.modal-body textarea {
  min-height: 80px;
  resize: vertical;
  font-family: 'Venice Blvd', Arial, sans-serif;
}
.modal-summary {
  background: #faf7f0;
  border: 1px solid #f0e8db;
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.modal-summary h4 {
  margin: 0 0 6px 0;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
}
.modal-summary p {
  margin: 0;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}
.modal-footer {
  padding: 16px 28px 24px 28px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #f0e8db;
}
.modal-footer button {
  padding: 12px 20px;
  border-radius: 3px;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.modal-footer .btn-cancel {
  background: transparent;
  color: #666;
  border-color: #ddd;
}
.modal-footer .btn-cancel:hover {
  background: #f5f0e5;
}
.modal-footer .btn-send {
  background: var(--teal);
  color: #fff;
}
.modal-footer .btn-send:hover {
  background: #0a3238;
}
.modal-footer .btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-error {
  color: #b0303f;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 12px;
  margin: 8px 0 0 0;
  padding: 10px 12px;
  background: rgba(176, 48, 63, 0.08);
  border-left: 3px solid #b0303f;
  border-radius: 2px;
  display: none;
}
.form-error.show { display: block; }

/* Success / error states */
.modal-status {
  padding: 40px 28px;
  text-align: center;
}
.modal-status h3 {
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--teal);
  margin: 0 0 10px 0;
}
.modal-status p {
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.modal-status .icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}
.modal-status .icon.check { color: #2d8f6a; }
.modal-status .icon.error { color: #b0303f; }

/* Toast voor "geen zeil geplaatst" */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 3px;
  font-family: 'Venice Blvd', Arial, sans-serif;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: transform 0.3s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Slider-row: label bevat 2 spans — de tweede (waarde) drijft rechts */
.row.slider-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.row.slider-row label span {
  float: none; /* overschrijf global */
}
.row.slider-row label span:last-child {
  color: var(--sand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
