/* ============================================================
   Nautische Nomade — Locatielaag (locatie.js)
   Bootje op je eigen positie + toggle-knop + statusmelding.
   ============================================================ */

/* ---------- Bootje ----------
   Het bootje zelf komt uit MM (mm-icons.js): romp + puls, rotatie in de SVG,
   kleur uit mm-tokens.css. Hier blijft alleen de GPS-nauwkeurigheidscirkel,
   want dat is een Leaflet L.circle en geen icoon. */

.nn-boot__acc {
  stroke: var(--mm-brand-lit);
  stroke-opacity: 0.4;
  stroke-width: 1;
  fill: var(--mm-brand-lit);
  fill-opacity: 0.1;
}

/* ---------- Toggle-knop (Leaflet-control, zelfde stijl als wind) ---------- */

.nn-locatietoggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(239, 230, 214, 0.16);
  border-radius: var(--r-sm);
  background: rgba(30, 26, 20, 0.82);
  backdrop-filter: blur(6px);
  color: #EFE6D6;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: background var(--dur-fast) var(--ease-out);
}
.nn-locatietoggle:hover { background: rgba(194, 90, 61, 0.92); }
.nn-locatietoggle.is-active {
  background: var(--terracotta-500);
  border-color: transparent;
}

/* ---------- Statusmelding ---------- */

.nn-locatie-status {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 8px);
  max-width: min(360px, calc(100% - 48px));
  padding: 8px 14px;
  border: 1px solid rgba(239, 230, 214, 0.14);
  border-radius: var(--r-pill);
  background: rgba(30, 26, 20, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #EFE6D6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.nn-locatie-status.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Mobiel ---------- */

@media (max-width: 900px) {
  /* Boven de bottom sheet uit blijven */
  .nn-locatie-status {
    bottom: auto;
    top: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nn-locatie-status { transition: none; }
}
