.map-control-bar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1100;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  pointer-events: none;
}
.map-control-bar > * { pointer-events: auto; }
.map-control-bar > .map-chip, .map-view-button {
  min-height: 44px; padding: 9px 14px; gap: 8px; border-radius: 12px;
  background: var(--surface-1, #fcfaf4); box-shadow: 0 3px 16px #142d3b21;
}
.map-control-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-control-bar button:focus-visible, .map-options button:focus-visible, .map-icon-button:focus-visible {
  outline: 3px solid #087f8c; outline-offset: 2px;
}
.map-options-anchor { position: relative; }
.map-options {
  position: absolute; top: 52px; left: 0; width: 328px; max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 240px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  color: var(--navy-800); background: var(--surface-1, #fcfaf4);
  border: 1px solid var(--border-1); border-radius: 14px; box-shadow: 0 8px 32px #142d3b35;
}
.map-options-heading {
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1; padding: 8px 12px 8px 16px;
  background: var(--surface-1, #fcfaf4); border-bottom: 1px solid var(--border-1);
}
.map-options-heading h2 { font-family: var(--font-display); font-size: 17px; margin: 0; }
.map-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: 24px/1 var(--font-sans); cursor: pointer; }
.map-icon-button:hover { background: var(--parch-200); }
.map-option-section, .map-options .filter-section { padding: 14px 16px; border-bottom: 1px solid var(--border-1); }
.map-options h3 { margin: 0 0 9px; font-size: 11px; color: var(--fg-2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.map-segmented { display: flex; background: var(--parch-200); padding: 3px; gap: 3px; border-radius: 10px; }
.map-segmented button { flex: 1; min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--navy-800); font: 600 13px var(--font-sans); cursor: pointer; }
.map-segmented button[aria-pressed="true"] { background: var(--surface-1); box-shadow: 0 1px 4px #142d3b1c; }
.map-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-options .map-chip { justify-content: center; min-height: 40px; border-radius: 9px; }
.map-options .map-ais-only.on { background: #d7eeeb; border-color: #087f8c; color: #075e68; }
.map-show-places { margin: 10px 0 0; padding: 6px 0; border: 0; background: transparent; color: #087581; font: 600 13px var(--font-sans); cursor: pointer; text-decoration: underline; }
.map-options .filter-row { gap: 7px; }
.map-options .filter-stat { font-size: 11px; }
.map-options .filter-toggle { min-height: 40px; }
.map-options .filter-clear { min-height: 36px; }
.map-route-count { min-width: 24px; padding: 2px 6px; border-radius: 7px; background: #142d3b0e; font: 600 12px var(--font-mono); text-align: center; }
.map-layer-status { position: absolute; top: 64px; left: 64px; right: 12px; z-index: 650; display: flex; justify-content: flex-end; align-items: flex-end; flex-direction: column; gap: 4px; pointer-events: none; }
.map-layer-status > span { max-width: 100%; padding: 5px 9px; border-radius: 8px; background: #fcfaf4ed; color: #3a626b; font: 11px/1.4 var(--font-sans); box-shadow: 0 1px 5px #142d3b15; }
.map-layer-status > span[data-state="offline"] { color: #a44b22; }
.map-layer-status a { pointer-events: auto; color: #087581; }
.map-clear-measure { position: absolute; bottom: 95px; left: 12px; z-index: 700; box-shadow: 0 2px 10px #142d3b24; }
.map-area .leaflet-top.leaflet-left { top: 64px; }
.basket-drawer { flex: 0 0 350px; width: 350px; }
.basket-drawer[hidden] { display: none; }
.route-panel-actions { display: flex; align-items: center; gap: 4px; }
.route-panel-actions .map-chip { min-height: 36px; padding: 5px 10px; font-size: 12px; }
.basket-header { min-height: 72px; }
.basket-empty { line-height: 1.7; padding: 32px 24px; }
@media (max-width: 768px) {
  .map-control-bar { top: 10px; left: 10px; right: 10px; }
  .map-control-bar > .map-chip, .map-view-button { padding: 9px 11px; }
  .map-options { max-height: calc(100dvh - 210px); max-width: calc(100vw - 20px); }
  .map-options .map-chip, .map-segmented button, .map-icon-button { min-height: 44px; }
  .map-options .map-chip { padding: 8px 10px; font-size: 13px; }
  .basket-drawer { flex: 0 0 min(42dvh, 320px); height: auto; width: 100%; }
  .basket-header { min-height: 60px; padding: 8px 14px; }
  .map-area { flex: 1 1 0; }
  .map-layer-status { top: 63px; }
}
.marine-map-pin, .marine-map-cluster {
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #284b74;
  box-shadow: 0 1px 5px #14203280;
  font: 700 15px system-ui, sans-serif;
}
.marine-map-pin--supplier { background: #82441c; }
.marine-map-pin--haul_out { background: #14624e; }
.marine-map-pin--technical_service { background: #6a3d80; }
