/* dev.mm/assets/css/reserveren.css
   Keuzeblok en categorietoggle op reserveren.php.

   Dit bestand wordt NA _incl_css_js.php geladen: style.css zet
   kleuren en .btn-regels met een gelijke specificiteit en wint anders
   de gelijkspel.  Om diezelfde reden staat er bij tekstkleuren op
   donkere vlakken !important.

   .rs-list  -- de drie keuzes: op een telefoon regels met een
                thumbnail links, op een breed scherm drie kolommen met
                het beeld als strook bovenin.
   .rs-toggle -- de categoriebalk die daarna in beeld komt.
   .bf-*      -- het ligplaats-aanvraagformulier (onderaan).             */

/* ---------- gedeeld ---------------------------------------------- */
.rs-eyebrow {
  text-align: center;
  font-family: inherit;
  letter-spacing: .14em;
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #7b8a99 !important;
  margin: 0 0 1.1rem;
}

/* ---------- de drie keuzes ---------------------------------------- */
.rs-list { display: grid; grid-template-columns: 1fr; gap: .6rem; max-width: 44rem; margin: 0 auto; }
@media (min-width: 992px) { .rs-list { grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 68rem; } }

.rs-row {
  display: flex; align-items: stretch;
  width: 100%; padding: 0; border: 1px solid #e2e8ef; border-radius: .7rem;
  background: #fff; overflow: hidden; cursor: pointer; text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rs-row:hover { border-color: #3498db; box-shadow: 0 8px 22px rgba(15,27,45,.12); transform: translateY(-1px); }
.rs-row:focus-visible { outline: 3px solid #3498db; outline-offset: 2px; }

.rs-row-img { flex: 0 0 6.5rem; position: relative; background: #dce6ee; }
.rs-row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Iconen in dezelfde vorm als de servicekaarten op de homepage
   (.mm-svc-ic): witte cirkel, accentblauwe rand, accentblauw icoon.
   Op de telefoon staan ze in de hoek van de foto -- op de naad tussen
   beeld en tekst liepen ze over de ondertitel heen.  "Verblijf" heeft
   er twee -- huis en busje -- omdat die keuze houseboats en
   camperplaatsen samen dekt en dat met een enkel icoon niet te zien
   was. */
.rs-row-ics {
  position: absolute; z-index: 2;
  left: .35rem; bottom: .35rem;
  display: flex; gap: .25rem;
}
.rs-row-ic {
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #23a0db !important;
  border: 2px solid #23a0db;
  box-shadow: 0 3px 10px rgba(4, 19, 31, .22);
  font-size: .8rem;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s;
}
.rs-row:hover .rs-row-ic { transform: scale(1.08); box-shadow: 0 5px 14px rgba(4,19,31,.28); }

/* Korte labels die zeggen wat er onder een keuze valt.  Vooral voor
   campers: die zaten verstopt in de ondertitel. */
.rs-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.rs-tag {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: #eaf4fb;
  color: #17567f !important;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.rs-row-body { flex: 1 1 auto; min-width: 0; padding: .8rem .9rem; display: flex; flex-direction: column; justify-content: center; }
.rs-row h3 { font-size: 1.05rem !important; line-height: 1.25 !important; margin: 0 0 .2rem !important; font-weight: 700 !important; color: #11354d !important; }
.rs-row p  { font-size: .85rem !important; line-height: 1.35 !important; margin: 0 !important; color: #5f7183 !important; }
.rs-row-arrow { flex: 0 0 2.5rem; display: flex; align-items: center; justify-content: center; color: #3498db !important; font-size: .95rem; }

/* Op een breed scherm wordt de regel een kolom met het beeld bovenin. */
@media (min-width: 992px) {
  .rs-row { flex-direction: column; }
  .rs-row-img { flex: 0 0 7.5rem; width: 100%; }
  .rs-row-ics { left: 1.1rem; bottom: -1.05rem; gap: .35rem; }
  .rs-row-body { padding: 1.5rem 1.1rem 1.15rem; }
  .rs-row h3 { font-size: 1.2rem !important; }
  .rs-row-ic { width: 2.2rem; height: 2.2rem; font-size: .9rem; }
  .rs-row-arrow { flex: 0 0 auto; justify-content: flex-start; padding: 0 1.1rem 1.1rem; gap: .4rem; font-weight: 700; font-size: .85rem; }
}

/* ---------- de toggle -------------------------------------------- */
/* Stond op #5b6b7b op een lichte grijstint: op een telefoon in de zon
   nauwelijks te lezen.  Nu marineblauw op wit, met een duidelijk
   verschil tussen actief en niet-actief.                              */
.rs-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  max-width: 30rem;
  margin: 0 auto;
  padding: .3rem;
  background: #e8edf2;
  border-radius: .7rem;
}
.rs-toggle button {
  padding: .6rem .35rem;
  border: 0;
  border-radius: .5rem;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  background: transparent;
  color: #11354d !important;
  transition: background .18s, color .18s, box-shadow .18s;
}
.rs-toggle button:hover { background: rgba(255,255,255,.7); }
.rs-toggle button.is-on {
  background: #3498db;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(15,27,45,.25);
}
.rs-toggle button:focus-visible { outline: 3px solid #154f7d; outline-offset: 2px; }

/* ---------- afstand tussen toggle, stappen en de wizard ----------- */
/* De wizard had mt-16/sm:mt-20 (64/80px) plus de padding van drie
   omhullende blokken erboven; samen ruim 125px wit.  Met $booking_tight
   vervalt dat en staat de stappenbalk vlak onder de keuze.            */
.rs-wrap { padding-top: .75rem; padding-bottom: 0; }
.mm-booking-tight { margin-top: 0 !important; padding-top: .5rem; padding-bottom: 0; }
#booking-module.rs-module,
#huur_sloep.rs-module,
#reserveer_ligplaats.rs-module { padding-top: .35rem; }
@media (min-width: 992px) {
  .rs-wrap { padding-top: 1rem; }
  .mm-booking-tight { padding-top: .5rem; }
}

/* ---------- ligplaatsaanvraag (#boatReservationForm.bf) ------------
   Vijf korte blokken met een nummer; de soort ligplaats als grote
   keuzekaarten.  Telefoon eerst: een kolom, ruime tikvlakken, 16px in
   de velden (anders zoomt iOS in bij focus).  theme.css zet velden op
   0.875rem !important en placeholders op bijna-zwart; daarom staat hier
   het id erbij.  Tokens volgen STYLEGUIDE.md.                          */
#boatReservationForm {
  --c-blue: #3498db;
  --c-blue-dark: #2666b2;
  --c-green: #1f964d;
  --c-gray-900: #0f172a;
  --c-gray-500: #64748b;
  --c-gray-300: #cbd5e1;
  --c-gray-100: #f1f5f9;
  --c-red: #c0392b;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  color: var(--c-gray-900);
}
@media (min-width: 576px) { #boatReservationForm { padding: 1.5rem 1.75rem 1.75rem; } }
@media (max-width: 575.98px) { .bf-col { padding-left: 6px; padding-right: 6px; } }

/* Een site-brede regel zet `*` op 17px en de tekstkleur, waardoor een
   span of link niets van zijn ouder erft.  Hier zonder specificiteit
   (:where) terugzetten, zodat elke .bf-klasse hieronder gewoon wint. */
:where(#boatReservationForm) :where(span, a, i, small, strong) { font-size: inherit; color: inherit; }

.bf-reqnote { font-size: .8rem; color: var(--c-gray-500) !important; margin: 0 0 .25rem; text-align: right; }

/* De legend zweeft (float), anders tekent de browser hem in de rand van
   de fieldset en komt de padding onder de kop in plaats van erboven. */
.bf-sec { border: 0; margin: 0; padding: .6rem 0 0; min-width: 0; }
.bf-sec + .bf-sec { border-top: 1px solid #e5eaf0; margin-top: 1.1rem; padding-top: 1.25rem; }
.bf-h + * { clear: both; }
.bf-h {
  float: left;
  display: flex; align-items: center; gap: .5rem;
  width: 100%; margin: 0 0 .85rem; padding: 0;
  font-size: 1.05rem !important; line-height: 1.3; font-weight: 700;
  color: #11354d !important;
}
.bf-num {
  flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-blue); color: #fff !important; font-size: .85rem; font-weight: 700;
}
.bf-opt { font-weight: 400; font-size: .9rem; color: var(--c-gray-500) !important; }
.bf-req { color: var(--c-red) !important; font-weight: 700; }

.bf-row { margin-left: -6px; margin-right: -6px; }
.bf-row > [class*="col"] { padding-left: 6px; padding-right: 6px; }
.bf-field { margin-bottom: .9rem; }
.bf-label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; color: #11354d !important; }

#boatReservationForm .form-control {
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  height: auto !important;
  min-height: 2.9rem;
  padding: .6rem .75rem;
  border: 1px solid var(--c-gray-300);
  border-radius: 8px;
  background-color: #fff;
  color: var(--c-gray-900);
  box-shadow: none;
}
#boatReservationForm select.form-control { padding: .55rem .6rem; }
#boatReservationForm textarea.form-control { min-height: 5.5rem; }
#boatReservationForm .form-control:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, .15);
}
#boatReservationForm .form-control::placeholder {
  color: #94a3b8 !important; font-size: .95rem !important; letter-spacing: 0 !important;
}
#boatReservationForm .form-control::-webkit-input-placeholder {
  color: #94a3b8 !important; font-size: .95rem !important; letter-spacing: 0 !important;
}
#boatReservationForm .form-control.is-invalid {
  border-color: var(--c-red);
  background-image: none;
  padding-right: .75rem;
}
#boatReservationForm .form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
#boatReservationForm .invalid-feedback,
.bf-err { font-size: .85rem; color: var(--c-red) !important; margin-top: .3rem; }
.bf-hint, .bf-photo-meta { font-size: .82rem; color: var(--c-gray-500) !important; }
.bf-hint { margin-top: -.35rem; }

/* Lengte / breedte / diepgang: een raster van drie kolommen en drie rijen
   (label, veld, melding), zodat de velden gelijk blijven staan als een
   label afbreekt ("Tirant d'eau"). */
.bf-dims {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
}
.bf-dim { display: contents; }
.bf-dim:nth-child(1) > * { grid-column: 1; }
.bf-dim:nth-child(2) > * { grid-column: 2; }
.bf-dim:nth-child(3) > * { grid-column: 3; }
.bf-dims .bf-label { grid-row: 1; align-self: end; }
.bf-dims .bf-unit { grid-row: 2; }
.bf-dims .invalid-feedback { grid-row: 3; }

/* Maat met eenheid in het veld */
.bf-unit { position: relative; }
#boatReservationForm .bf-unit .form-control,
#boatReservationForm .bf-unit .form-control.is-invalid { padding-right: 1.9rem; }
.bf-unit-m {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--c-gray-500) !important; font-size: .95rem; pointer-events: none;
}

/* Soort ligplaats: keuzekaarten (2×2 op de telefoon, 4 naast elkaar breed) */
.bf-types { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 768px) { .bf-types { grid-template-columns: repeat(4, 1fr); } }
.bf-type { position: relative; display: block; margin: 0; cursor: pointer; }
.bf-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-type-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  height: 100%; min-height: 5.4rem; padding: .7rem .75rem;
  border: 1.5px solid #dbe3ea; border-radius: 10px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.bf-type:hover .bf-type-box { border-color: var(--c-blue); }
.bf-type-ic { font-size: 1.05rem; color: var(--c-blue) !important; margin-bottom: .25rem; }
.bf-type-t { font-weight: 700; font-size: .95rem; line-height: 1.2; color: #11354d !important; }
.bf-type-s { font-size: .8rem; line-height: 1.3; color: var(--c-gray-500) !important; }
.bf-type input:checked + .bf-type-box {
  border-color: var(--c-blue); background: #eef6fc;
  box-shadow: inset 0 0 0 1px var(--c-blue);
}
.bf-type input:checked + .bf-type-box::after {
  content: "\2713"; position: absolute; top: .45rem; right: .55rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--c-blue); color: #fff; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bf-type input:focus-visible + .bf-type-box { outline: 3px solid var(--c-blue-dark); outline-offset: 2px; }

.bf-note {
  display: flex; gap: .45rem; align-items: flex-start;
  margin: .75rem 0 .9rem; font-size: .85rem; line-height: 1.4;
  color: #17567f !important;
}
.bf-note[hidden], .bf-field[hidden], .bf-today[hidden] { display: none !important; }
.bf-note i { margin-top: .15rem; }
.bf-today { font-size: .85rem; color: var(--c-gray-500) !important; margin: -.25rem 0 .5rem; }
.bf-today a, .bf-privacy a { font-weight: 600; color: var(--c-blue-dark) !important; }
.bf-today a { white-space: nowrap; }

/* Foto's: kiesvlak + miniaturen */
.bf-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bf-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  aspect-ratio: 1 / 1; margin: 0; padding: .5rem; text-align: center; cursor: pointer;
  border: 2px dashed #b9cbdb; border-radius: 10px; background: #f7fafd;
  color: #17567f !important;
  transition: border-color .15s, background .15s;
}
.bf-photo-grid.is-empty .bf-drop { grid-column: 1 / -1; aspect-ratio: auto; min-height: 7.5rem; }
.bf-drop[hidden] { display: none !important; }
.bf-drop i { font-size: 1.4rem; color: var(--c-blue) !important; }
.bf-drop-t { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.bf-drop-s { font-size: .78rem; color: var(--c-gray-500) !important; }
.bf-photo-grid:not(.is-empty) .bf-drop-s { display: none; }
.bf-drop:hover, .bf-drop.is-drag { border-color: var(--c-blue); background: #eef6fc; }
.bf-drop.is-invalid { border-color: var(--c-red); background: #fdf3f2; }
#berth_photos_sec:focus-within .bf-drop { outline: 3px solid var(--c-blue-dark); outline-offset: 2px; }
.bf-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.bf-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--c-gray-100); }
.bf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-thumb-x {
  position: absolute; top: .3rem; right: .3rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .72) !important; color: #fff !important; font-size: .9rem; cursor: pointer;
}
.bf-thumb-x:hover { background: var(--c-red) !important; }
.bf-thumb-x:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--c-blue-dark); }
.bf-photo-meta { display: flex; justify-content: space-between; gap: .75rem; margin-top: .45rem; }
.bf-count { flex: 0 0 auto; font-weight: 700; color: #11354d !important; }

/* Afronden */
.bf-privacy { margin: 1rem 0 1.25rem; font-size: .9rem; line-height: 1.4; }
.bf-privacy .custom-control-label { cursor: pointer; }
.bf-privacy .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--c-blue); border-color: var(--c-blue); }
.bf-privacy .custom-control-input.is-invalid ~ .custom-control-label::before { border-color: var(--c-red); }
.bf-privacy .custom-control-input.is-invalid ~ .custom-control-label { color: inherit; }
.bf-privacy a { text-decoration: underline; }
.bf-submit {
  display: block; width: 100%; min-height: 3.1rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  font-size: 1rem; font-weight: 700;
}
@media (min-width: 576px) { .bf-submit { width: auto; min-width: 17rem; margin: 0 auto; } }
.bf-submit:disabled { opacity: .7; cursor: wait; }

/* Extra boten ("Nog een boot toevoegen", 2026-10-14). */
.bf-xboat { border: 1px solid var(--c-gray-200, #e2e8f0); border-radius: 10px; padding: 12px 14px 4px; margin: 6px 0 12px; background: #f8fafc; }
.bf-xboat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bf-xboat-h { font-size: 1rem; }
.bf-xboat-rm { color: #b91c1c !important; text-decoration: none; padding: 0; font-size: .9rem; }
.bf-add-boat-row .btn { font-size: .95rem; color: #1769a8 !important; background: #fff !important; border: 1px dashed #3498db !important; border-radius: 8px; padding: .5rem 1rem; }
.bf-add-boat-row .btn:hover, .bf-add-boat-row .btn:focus { background: #f0f7fd !important; }
.bf-add-boat-row .btn i { color: #1769a8 !important; }
