/* ============================================================
   Nautische Nomade — Winkeltje (slot in het detailpaneel + modal)
   Donker thema, zusje van reserveren.css.
   ============================================================ */

/* ---- Slot in de detailkaart ---- */

.nn-winkel-slot:empty { display: none; }
.nn-winkel-slot { margin-top: 10px; }
.nn-winkel-slot .nn-btn { margin-top: 8px; }

/* In het rapport staat er een kop boven het slot. Heeft de haven geen
   winkeltje (of is shops.json nog onderweg), dan is het slot leeg en moet
   de kop ook weg — anders staat er een kop boven niets. */
.kaart-rapport__winkel:not(:has(.nn-winkel__promo, .nn-winkel__kaartje)) { display: none; }
.kaart-rapport__winkel .nn-winkel-slot { margin-top: 0; }

/* Etalage: naam van het winkeltje + openingstijden */
.nn-winkel__promo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid rgba(94, 100, 67, 0.45);
  background: rgba(94, 100, 67, 0.14);
}
.nn-winkel__promo-glyph { font-size: 19px; flex: none; }
.nn-winkel__promo-tekst { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nn-winkel__promo-tekst strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #F7F1E5;
  letter-spacing: -0.015em;
}
.nn-winkel__promo-tekst small {
  font-size: 11.5px;
  color: rgba(239, 230, 214, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Al gereserveerd: kaartje met wat er klaarstaat */
.nn-winkel__kaartje {
  border: 1px solid rgba(94, 100, 67, 0.5);
  background: rgba(94, 100, 67, 0.16);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.nn-winkel__kaartje-kop { display: flex; align-items: center; gap: 10px; }
.nn-winkel__kaartje-kop div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nn-winkel__kaartje-kop strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: #F7F1E5;
  letter-spacing: -0.02em;
}
.nn-winkel__kaartje-kop small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-winkel__vink {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--olive-500);
  color: #E4E5D2;
  font-size: 12px;
  font-weight: 700;
}
.nn-winkel__vink.is-groot { width: 34px; height: 34px; font-size: 16px; }

.nn-winkel__kaartje-regels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.nn-winkel__kaartje-regels span {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(239, 230, 214, 0.08);
  color: rgba(239, 230, 214, 0.82);
  white-space: nowrap;
}

.nn-winkel__kaartje-voet {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(239, 230, 214, 0.12);
}
.nn-winkel__kaartje-voet span { font-size: 12.5px; color: rgba(239, 230, 214, 0.7); }
.nn-winkel__kaartje-voet strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #F7F1E5;
}

.nn-winkel__kaartje-acties { display: flex; gap: 8px; margin-top: 11px; }
.nn-winkel__kaartje-acties .nn-btn { margin-top: 0; font-size: 12px; padding: 8px 10px; }
.nn-winkel__annuleer {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(239, 230, 214, 0.22);
  background: transparent;
  color: rgba(239, 230, 214, 0.55);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.nn-winkel__annuleer:hover { border-color: rgba(239, 230, 214, 0.4); color: #F4EEE2; }

/* ---- Modal ---- */

.nn-winkel {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
  color-scheme: dark;
}
.nn-winkel[hidden] { display: none; }
body.nn-winkel-open { overflow: hidden; }

.nn-winkel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 7, 0.62);
  backdrop-filter: blur(6px);
  animation: nn-winkel-fade 0.25s var(--ease-out);
}
@keyframes nn-winkel-fade { from { opacity: 0; } }

.nn-winkel__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86svh, 780px);
  display: flex;
  flex-direction: column;
  background: #211C15;
  border: 1px solid rgba(239, 230, 214, 0.14);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.65);
  animation: nn-winkel-in 0.32s var(--ease-out);
}
@keyframes nn-winkel-in {
  from { transform: translateY(22px) scale(0.985); opacity: 0; }
}

.nn-winkel__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(239, 230, 214, 0.2);
  background: rgba(20, 17, 12, 0.7);
  color: #F4EEE2;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nn-winkel__close:hover { border-color: var(--terracotta-400); color: var(--terracotta-400); }

.nn-winkel__head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(239, 230, 214, 0.1);
}
.nn-winkel__head .nn-kicker {
  color: rgba(239, 230, 214, 0.7);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.nn-winkel__head h2 {
  margin-top: 6px;
  color: #F7F1E5;
  font-size: var(--step-1);
  padding-right: 36px;
}

.nn-winkel__steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.nn-winkel__stap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.42);
}
.nn-winkel__stap i {
  font-style: normal;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  border: 1px solid rgba(239, 230, 214, 0.28);
}
.nn-winkel__stap.is-actief { color: #F7F1E5; }
.nn-winkel__stap.is-actief i {
  background: var(--terracotta-500);
  border-color: var(--terracotta-500);
  color: #FBF3EC;
}
.nn-winkel__stap.is-klaar { color: var(--olive-300); }
.nn-winkel__stap.is-klaar i {
  background: rgba(94, 100, 67, 0.5);
  border-color: transparent;
  color: #E4E5D2;
}
.nn-winkel__stapstreep {
  flex: 1;
  height: 1px;
  background: rgba(239, 230, 214, 0.14);
}

.nn-winkel__body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 230, 214, 0.16) transparent;
}
.nn-winkel__body > * { animation: nn-winkel-fade 0.3s var(--ease-out); }

.nn-winkel__intro {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(239, 230, 214, 0.7);
  margin-bottom: 14px;
}

/* ---- Stap 1: het assortiment ---- */

.nn-winkel__lijst {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nn-winkel-regel {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-md);
  border: 1px solid rgba(239, 230, 214, 0.1);
  background: rgba(239, 230, 214, 0.03);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nn-winkel-regel.is-gekozen {
  border-color: rgba(194, 90, 61, 0.5);
  background: rgba(194, 90, 61, 0.1);
}
.nn-winkel-regel.is-uit { opacity: 0.45; }

.nn-winkel-regel__glyph { font-size: 18px; flex: none; width: 22px; text-align: center; }
.nn-winkel-regel__info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nn-winkel-regel__info strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #F4EEE2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nn-winkel-regel__info small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(239, 230, 214, 0.5);
}

.nn-winkel-regel__uit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.45);
  flex: none;
}

.nn-winkel-regel__stepper {
  display: flex;
  align-items: center;
  flex: none;
  border: 1px solid rgba(239, 230, 214, 0.2);
  border-radius: var(--r-sm);
  background: rgba(239, 230, 214, 0.05);
  overflow: hidden;
}
.nn-winkel-regel__stepper button {
  width: 30px;
  align-self: stretch;
  border: none;
  background: transparent;
  color: #F4EEE2;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.nn-winkel-regel__stepper button:hover:not(:disabled) { background: rgba(239, 230, 214, 0.09); }
.nn-winkel-regel__stepper button:disabled { opacity: 0.3; cursor: default; }
.nn-winkel-regel__stepper b {
  min-width: 26px;
  text-align: center;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #F7F1E5;
}

/* ---- Voet van stap 1 ---- */

.nn-winkel__voet {
  position: sticky;
  bottom: -22px; /* plakt onderaan de scrollende body */
  margin: 14px -22px -22px;
  padding: 14px 22px 22px;
  background: linear-gradient(to bottom, rgba(33, 28, 21, 0) 0%, #211C15 24%);
}
.nn-winkel__voet .nn-btn { margin-top: 0; }

/* Niets gekozen = niets te reserveren. De knop is dan disabled, en moet er
   ook zo uitzien — anders blijf je erop drukken. */
.nn-winkel .nn-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.nn-winkel .nn-btn:disabled:hover { background: var(--accent); }

.nn-winkel__totaalrij {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(239, 230, 214, 0.12);
}
.nn-winkel__totaalrij span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.55);
}
.nn-winkel__totaalrij strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: #F7F1E5;
  letter-spacing: -0.02em;
}

.nn-winkel__hint {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(239, 230, 214, 0.5);
  margin-bottom: 10px;
}

/* ---- Stap 2: ophalen ---- */

.nn-winkel-bon {
  border: 1px solid rgba(239, 230, 214, 0.12);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  background: rgba(239, 230, 214, 0.03);
}
.nn-winkel-bon__regel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(239, 230, 214, 0.82);
}
.nn-winkel-bon__regel span:last-child {
  font-family: var(--font-mono);
  flex: none;
  color: rgba(239, 230, 214, 0.62);
}
.nn-winkel-bon__regel.is-totaal {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(239, 230, 214, 0.12);
  color: #F7F1E5;
  font-weight: 600;
}
.nn-winkel-bon__regel.is-totaal span:last-child {
  color: #F7F1E5;
  font-size: 15px;
}

.nn-winkel__veld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.nn-winkel__veld > span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.55);
}
.nn-winkel__veld input,
.nn-winkel__veld select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(239, 230, 214, 0.2);
  background: rgba(239, 230, 214, 0.05);
  color: #F4EEE2;
  font: inherit;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.nn-winkel__veld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23EFE6D6' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.nn-winkel__veld input:focus-visible,
.nn-winkel__veld select:focus-visible {
  outline: 2px solid var(--terracotta-500);
  outline-offset: 0;
  border-color: transparent;
}
.nn-winkel__veld.is-fout input { border-color: var(--terracotta-500); }

.nn-winkel__body .nn-btn { margin-top: 14px; }

.nn-winkel__terug {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: none;
  background: transparent;
  color: rgba(239, 230, 214, 0.55);
  font-size: 12.5px;
  cursor: pointer;
}
.nn-winkel__terug:hover { color: #F4EEE2; }

/* ---- Stap 3: verwerken + klaar ---- */

.nn-winkel__wachten {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 44px 0;
  text-align: center;
}
.nn-winkel__wachten p {
  font-size: 13.5px;
  color: rgba(239, 230, 214, 0.75);
}
.nn-winkel__spinner {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(239, 230, 214, 0.16);
  border-top-color: var(--terracotta-500);
  animation: nn-winkel-spin 0.75s linear infinite;
}
@keyframes nn-winkel-spin { to { transform: rotate(360deg); } }

.nn-winkel__done {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
.nn-winkel__done div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nn-winkel__done strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: #F7F1E5;
  letter-spacing: -0.02em;
}
.nn-winkel__done small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.55);
}

.nn-winkel__ophaalkaart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(94, 100, 67, 0.5);
  background: rgba(94, 100, 67, 0.16);
}
.nn-winkel__ophaalkaart-glyph { font-size: 21px; flex: none; }
.nn-winkel__ophaalkaart div { display: flex; flex-direction: column; gap: 2px; }
.nn-winkel__ophaalkaart small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 230, 214, 0.55);
}
.nn-winkel__ophaalkaart span { font-size: 13.5px; color: rgba(239, 230, 214, 0.85); }
.nn-winkel__ophaalkaart strong { color: #F7F1E5; }

.nn-winkel__demo {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(239, 230, 214, 0.35);
}

/* ---- Mobiel: modal als bottom sheet ---- */

@media (max-width: 640px) {
  .nn-winkel { padding: 0; place-items: end stretch; }
  .nn-winkel__dialog {
    width: 100%;
    max-height: 92svh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
    animation: nn-winkel-up 0.34s var(--ease-out);
  }
  @keyframes nn-winkel-up { from { transform: translateY(100%); } }
  .nn-winkel__body { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
