/* ==========================================================================
   Bookzo-standaard (wj-bookzo 1.3.0) — Verhuurservice Texel.
   Merk-tokens + zoekbalk in de witte "zoek & boek"-kaart onder de header.
   Basis: kirby-site-migration/assets/bookzo-standaard/bookzo-site.css.
   ========================================================================== */

:root {
  --merk-accent: #1a748e;        /* teal */
  --merk-accent-tekst: #1a748e;
  --merk-knop: #1a748e;
  --merk-hover: #324a51;         /* nacht */
  --merk-ink: #252525;
  --merk-zacht: #edf4f6;
  --merk-bereik: #d1e3e8;        /* ijs */
  --merk-lijn: #e4edf0;
  --merk-font-kop: "Work Sans", system-ui, sans-serif;
  --merk-font-tekst: "Inter", system-ui, sans-serif;
}

/* De kaart zelf (.zoek__vak) komt uit main.css; hier alleen de inhoud. */
.zoek__vak { display: block; width: min(100%, 980px); }

/* ---- Zoekbalk: <bookzo-search> in de glazen header-balk ---- */
.zoekbalk-wrap { position: relative; }
.zoekbalk-bz { min-height: 76px; }
.zoekbalk-bz .wj-bookzo__element { min-height: 0; }
.zoekbalk-bz .bookzo.bookzo-bootstrap { color: #000; font-family: var(--merk-font-tekst); }
.zoekbalk-bz .bookzo-search { padding: 0; }
.zoekbalk-bz .bookzo-search form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 12px auto;
  align-items: end;
  margin: 0; padding: 0; gap: 0 !important;
}
.zoekbalk-bz .bookzo-search form > * { min-width: 0; margin: 0 !important; padding: 0 !important; }
.zoekbalk-bz .bookzo-search-persons { order: 0; grid-column: 1; }
.zoekbalk-bz .bookzo-search-arrival-departure { order: 1; grid-column: 2; }
.zoekbalk-bz .bookzo-search-submit { order: 2; grid-column: 4; }
/* Bookzo's labels verborgen (voor schermlezers blijven ze); onze eigen labels zoals op de oude site */
.zoekbalk-bz .form-group-inline > label {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px !important; padding: 0 !important; border: 0;
}
.zoekbalk-bz .form-group-inline { position: relative; display: grid !important; grid-template-columns: 1fr 1fr; flex-direction: column; }
.zoekbalk-bz .bookzo-search-persons { grid-template-columns: 1fr; }
.zoekbalk-bz .bookzo-search-persons::before,
.zoekbalk-bz .bookzo-search-arrival-departure::before,
.zoekbalk-bz .bookzo-search-arrival-departure::after {
  display: block;
  padding: 0 0 4px 20px;
  font: 400 12px var(--merk-font-tekst); letter-spacing: .02em; text-transform: uppercase;
  color: var(--teal);
  grid-row: 1;
}
.zoekbalk-bz .bookzo-search-persons::before { content: var(--zb-personen); }
.zoekbalk-bz .bookzo-search-arrival-departure::before { content: var(--zb-aankomst); grid-column: 1; }
.zoekbalk-bz .bookzo-search-arrival-departure::after { content: var(--zb-vertrek); grid-column: 2; }
.zoekbalk-bz .form-group-inline > div { grid-row: 2; grid-column: 1 / -1; }
.zoekbalk-bz .input-group { display: grid !important; grid-template-columns: 1fr 1fr; flex-wrap: nowrap; }
.zoekbalk-bz .bookzo-search-persons .input-group { grid-template-columns: 1fr; }
.zoekbalk-bz .bookzo.bookzo-bootstrap .form-control {
  width: 100% !important; min-width: 0 !important;
  height: 52px !important;
  margin: 0;
  padding: 0 40px 0 20px !important;
  border: 1px solid var(--merk-lijn) !important;
  border-left-width: 0 !important;
  border-radius: 0 !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2' fill='none' stroke='%231a748e' stroke-width='1.6'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4' stroke='%231a748e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat !important;
  box-shadow: none !important;
  color: #000 !important;
  font: 400 15px/1 var(--merk-font-tekst) !important;
  text-align: left !important;
  cursor: pointer;
}
.zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-persons .form-control {
  border-left-width: 1px !important;
  border-radius: 8px 0 0 8px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23444' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 16px center no-repeat !important;
  text-overflow: ellipsis;
}
.zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-departure { border-radius: 0 8px 8px 0 !important; }
.zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-submit {
  height: 52px;
  padding: 0 1.6em !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--merk-knop) !important;
  box-shadow: none !important;
  font-family: var(--merk-font-tekst) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff !important;
  transition: background-color .3s;
}
.zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-submit:hover { background: var(--merk-hover) !important; }
.zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-submit:focus-visible { outline: 3px solid var(--merk-hover); outline-offset: 2px; }

@media (max-width: 899px) {
  .zoekbalk-bz .bookzo-search form { grid-template-columns: 1fr; row-gap: 12px !important; }
  .zoekbalk-bz .bookzo-search-persons, .zoekbalk-bz .bookzo-search-arrival-departure, .zoekbalk-bz .bookzo-search-submit { grid-column: 1; }
  .zoekbalk-bz .bookzo-search-submit { width: 100%; margin-top: 6px !important; }
  .zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-persons .form-control { border-radius: 8px !important; }
  .zoekbalk-bz .bookzo.bookzo-bootstrap .bookzo-search-arrival { border-left-width: 1px !important; border-radius: 8px 0 0 8px !important; }
  .zoekbalk-bz .bookzo-search-persons::before,
  .zoekbalk-bz .bookzo-search-arrival-departure::before,
  .zoekbalk-bz .bookzo-search-arrival-departure::after { padding-left: 4px; font-size: 12px; }
  .zoekbalk-bz .bookzo.bookzo-bootstrap .form-control { padding: 0 36px 0 12px !important; font-size: 14px !important; background-position: right 10px center !important; }
  .zoekbalk-ph span { padding-left: 12px; font-size: 14px; }
}

/* ---- Terugval-formulier (Bookzo laadt niet): zelfde opmaak op de witte kaart ---- */
.zoek__vak .zoekbalk__label { padding-left: 20px; color: var(--teal); text-shadow: none; font: 400 12px var(--merk-font-tekst); letter-spacing: .02em; }
.zoek__vak .zoekbalk__invoer { border: 1px solid var(--merk-lijn); border-left-width: 0; background-color: #fff; }
.zoek__vak select.zoekbalk__invoer { border-left-width: 1px; background-color: #fff; }
.zoek__vak .zoekbalk__knop { font: 500 15px/1 var(--merk-font-tekst); letter-spacing: .02em; text-transform: uppercase; }
@media (max-width: 899px) {
  .zoek__vak .zoekbalk { grid-template-columns: 1fr; row-gap: 12px; }
  .zoek__vak .zoekbalk__label { padding-left: 4px; }
  .zoek__vak select.zoekbalk__invoer { border-radius: 8px; }
  .zoek__vak .zoekbalk__veld:first-child .zoekbalk__datum { border-left-width: 1px; border-radius: 8px 0 0 8px; }
  .zoek__vak .zoekbalk__knop { width: 100%; margin: 6px 0 0; }
}

/* ---- Boekblok op de accommodatiepagina ---- */
.acco__boeken .wjb-boekkaart { max-width: 1100px; margin: 24px auto 0; }

/* ---- Boek- en bevestigingspagina (breedte/kop uit de plugin) ---- */
.bookzo-sectie { padding: clamp(40px, 6vw, 90px) 0; }
.bookzo-sectie__kop { color: var(--goud); }

/* "Je bespaart …": de plugin kleurt dit label met --merk-hover; dat is hier donker (nacht) → zand met donkere tekst */
.wjb-boeken .bookzo-bootstrap .badge-primary { background-color: var(--zand) !important; color: var(--tekst) !important; }

/* ==========================================================================
   Gastgegevens (Gast 1, Gast 2 …) — staan in Bookzo buiten .reservation-form
   en hebben eigen klassen (form-group-guest-*), dus de standaard uit wj-bookzo
   greep daar niet: andere veldhoogte/rand, uppercase-labels, kapot raster.
   Hier gelijkgetrokken met het hoofdformulier.
   ========================================================================== */
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .accordion-group,
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .panel { margin: 0 0 12px; border: 0; background: transparent; box-shadow: none; }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .panel-heading {
  padding: 0; border: 0; background: transparent;
}
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .accordion-toggle .btn-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  height: auto; padding: 14px 18px; border: 1px solid var(--color-sand-300); border-radius: .75rem;
  background: #fff; color: var(--color-text); font-size: 1rem; font-weight: 600; text-decoration: none; text-align: left;
}
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .accordion-toggle .btn-link::after {
  content: ""; width: 9px; height: 9px; margin: -4px 4px 0 12px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .panel-open .accordion-toggle .btn-link::after { margin-top: 4px; transform: rotate(-135deg); }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .panel-open .accordion-toggle .btn-link { border-color: var(--color-primary); }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .panel-body.card-body { padding: 18px 0 6px !important; background: transparent; }

.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .form-group { margin: 0 0 1.25rem; display: block; }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details label:not(.form-check-label) {
  display: block; margin: 0 0 .375rem; text-transform: none; letter-spacing: 0;
  color: var(--color-text); font-size: .9375rem; font-weight: 600;
}
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .form-control {
  width: 100%; max-width: 100%; height: 3rem; padding: 0 16px;
  border-width: 1px; border-color: var(--color-sand-300); border-radius: .75rem; font-size: 1rem;
}
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin: 0; }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .form-row + .form-row { margin-top: .5rem; }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .form-row > [class*=col] { flex: none; width: auto; max-width: none; padding: 0; }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .int-tel-input { display: flex; width: 100%; }
.wjb-boeken .bookzo.bookzo-bootstrap .book-guest-details .int-tel-input .form-control { flex: auto; }
@media (min-width: 48rem) {
  .wjb-boeken .bookzo.bookzo-bootstrap .form-group-guest-name .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .wjb-boeken .bookzo.bookzo-bootstrap .form-group-guest-name .form-row:not(:has([formcontrolname="middleName"])) > :last-child { grid-column: 1 / -1; }
  .wjb-boeken .bookzo.bookzo-bootstrap .form-group-guest-address .form-row:first-of-type { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); }
  .wjb-boeken .bookzo.bookzo-bootstrap .form-group-guest-address .form-row + .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .wjb-boeken .bookzo.bookzo-bootstrap .form-group-guest-birth-date-phone-number .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Nieuwsbrief-vinkje: gewone tekst, geen uppercase-label */
.wjb-boeken .bookzo.bookzo-bootstrap .form-group-subscribe-to-newsletter .form-check { display: flex; align-items: center; gap: .75rem; padding: 0; }
.wjb-boeken .bookzo.bookzo-bootstrap .form-group-subscribe-to-newsletter .form-check-input {
  position: static; flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-primary);
}
.wjb-boeken .bookzo.bookzo-bootstrap .form-group-subscribe-to-newsletter .form-check-label {
  text-transform: none; letter-spacing: 0; color: var(--color-text); font-size: .9375rem; font-weight: 400;
}
