/* Coast Station — full-screen map dashboard */
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlowcond-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root { --ink: #061c26; --panel: rgba(6, 28, 38, .82); --panel-2: rgba(6, 28, 38, .62); --line: rgba(255,255,255,.12); --text: #eaf4f7; --muted: #9cb9c4; --sea: #22b8d4; --sun: #f2b32d; --coral: #ff6a4d; --g: #2ecc8a; --a: #f5b323; --r: #ff5a45; --radius: 14px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.coast { font: 14px/1.45 'Barlow', system-ui, sans-serif; color: var(--text); background: #06232f; overflow: hidden; }
a { color: var(--sea); text-decoration: none; }
#map { position: fixed; inset: 0; z-index: 0; background: #06232f; }
#fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { background: rgba(6,28,38,.7) !important; color: var(--muted) !important; font-size: 10px !important; } .leaflet-control-attribution a { color: var(--sea) !important; }
.leaflet-bar a { background: var(--panel) !important; color: #fff !important; border-color: var(--line) !important; }

/* chrome */
.c-top, .c-left, .c-panel, .c-bottom { position: fixed; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.c-top { top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: linear-gradient(180deg, rgba(6,28,38,.92), rgba(6,28,38,.72)); border-bottom: 1px solid var(--line); }
.c-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; } .c-brand img { filter: brightness(0) invert(1); }
.c-clock { display: flex; flex-direction: column; line-height: 1.1; } .c-clock b { font-family: 'Barlow Condensed'; font-size: 26px; font-weight: 700; letter-spacing: .02em; } .c-clock small { color: var(--muted); font-size: 11.5px; }
.c-status { display: flex; gap: 8px; align-items: center; flex: 1; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.c-status b { color: #fff; }
.c-tools { display: flex; gap: 8px; align-items: center; }
.c-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); } .c-toggle input { accent-color: var(--sea); margin: 0; } .c-toggle:has(input:checked) { color: #fff; border-color: rgba(34,184,212,.6); }
.c-btn, select#basemap { background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.c-btn:hover { background: rgba(255,255,255,.16); } .c-btn.round { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; font-size: 15px; } .c-btn.on { background: var(--sea); border-color: var(--sea); color: #04222b; }
select#basemap option { color: #000; }

.c-left { top: 76px; left: 16px; width: 290px; max-height: calc(100vh - 220px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.c-left-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid var(--line); }
#counts b { display: inline-block; min-width: 20px; text-align: center; border-radius: 6px; color: #04222b; font-size: 12px; margin-left: 4px; padding: 0 5px; } #counts .g { background: var(--g); } #counts .a { background: var(--a); } #counts .r { background: var(--r); }
.c-spots { overflow: auto; }
.c-spot { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; color: #fff; }
.c-spot:hover, .c-spot.sel { background: rgba(255,255,255,.08); }
.c-spot .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.c-spot .name { font-weight: 600; font-size: 13.5px; line-height: 1.2; } .c-spot .name small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.c-spot .nums { text-align: right; font-family: 'Barlow Condensed'; font-size: 17px; font-weight: 700; line-height: 1; } .c-spot .nums small { display: block; font-family: 'Barlow'; font-weight: 400; font-size: 11px; color: var(--muted); }
.dot.g, .lvl-g { background: var(--g); } .dot.a, .lvl-a { background: var(--a); } .dot.r, .lvl-r { background: var(--r); }

.c-panel { top: 76px; right: 16px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 220px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.c-close { position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; z-index: 2; }
.c-panel-body { padding: 14px 18px 20px; }
.p-hero { margin: -14px -18px 12px; height: 150px; position: relative; overflow: hidden; } .p-hero img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.1); }
.p-hero .p-hero-txt { position: absolute; left: 18px; right: 18px; bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.5); } .p-hero h2 { margin: 0; font-family: 'Barlow Condensed'; font-size: 28px; text-transform: uppercase; letter-spacing: .02em; } .p-hero small { color: #dbe9ee; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #04222b; }
.badge.g { background: var(--g); } .badge.a { background: var(--a); } .badge.r { background: var(--r); }
.score { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 20px; border: 3px solid currentColor; }
.p-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; overflow: auto; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 8px 10px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; } .tabs button.on { color: #fff; border-color: var(--sea); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; min-width: 0; } .stat .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); } .stat .v { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 22px; line-height: 1.1; } .stat .v small { font-family: 'Barlow'; font-size: 11px; font-weight: 600; color: var(--muted); } .stat .s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reasons { margin: 10px 0 0; padding-left: 18px; color: #d7e6ec; font-size: 13.5px; } .reasons li { margin: 2px 0; }
h3.sec { margin: 14px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; background: rgba(255,255,255,.04); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; } .tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; } .tbl td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.exp-links a { display: flex; justify-content: space-between; padding: 8px 10px; background: rgba(255,255,255,.06); border-radius: 8px; margin-bottom: 6px; color: #fff; } .exp-links a:hover { background: rgba(34,184,212,.25); }
.fleet-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; align-items: center; } .fleet-row b { font-family: 'Barlow Condensed'; font-size: 18px; } .fleet-row .st { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); } .fleet-row .st.out { background: var(--sea); color: #04222b; }
.muted { color: var(--muted); }

.c-bottom { left: 16px; right: 16px; bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; }
.c-time { display: flex; align-items: center; gap: 12px; }
.c-timeline { flex: 1; position: relative; height: 34px; }
.c-track { position: absolute; left: 0; right: 0; top: 11px; height: 12px; border-radius: 6px; overflow: hidden; display: flex; background: rgba(255,255,255,.08); }
.c-track i { flex: 1; opacity: .85; } .c-track i.midnight { box-shadow: inset 1px 0 0 rgba(255,255,255,.7); }
.c-track::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos, 1%); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 10px #fff; }
.c-days { position: absolute; left: 0; right: 0; top: 25px; height: 10px; } .c-days span { position: absolute; transform: translateX(-50%); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
#hour { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 34px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
#hour::-webkit-slider-runnable-track { height: 34px; background: transparent; } #hour::-moz-range-track { height: 34px; background: transparent; }
#hour::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--sea); margin-top: 6px; box-shadow: 0 0 0 4px rgba(34,184,212,.25), 0 4px 12px rgba(0,0,0,.4); }
#hour::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--sea); box-shadow: 0 0 0 4px rgba(34,184,212,.25), 0 4px 12px rgba(0,0,0,.4); }
.c-time-label { min-width: 150px; text-align: right; line-height: 1.1; } .c-time-label b { font-family: 'Barlow Condensed'; font-size: 18px; } .c-time-label small { display: block; color: var(--muted); font-size: 11.5px; }
.c-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); align-items: center; } .c-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; } .c-legend .g { background: var(--g); } .c-legend .a { background: var(--a); } .c-legend .r { background: var(--r); } .c-legend .w { background: #fff; border-radius: 2px; width: 16px; height: 2px; } .c-legend .wave { background: var(--sea); border-radius: 2px; width: 16px; height: 3px; }
.c-ticker { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; font-size: 12.5px; color: #d7e6ec; border-top: 1px solid var(--line); padding-top: 8px; }
.c-ticker span { display: inline-block; padding-right: 40px; animation: tick 60s linear infinite; }
.c-ticker .lv { font-weight: 700; padding: 0 6px; border-radius: 4px; color: #04222b; margin-right: 6px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.c-loading { position: fixed; inset: 0; z-index: 10; background: #06232f; display: grid; place-items: center; color: var(--muted); transition: opacity .5s; } .c-loading.hide { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--sea); animation: spin 1s linear infinite; margin-bottom: 12px; } @keyframes spin { to { transform: rotate(360deg); } }

/* markers */
.spot-marker { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); position: absolute; left: 50%; top: 50%; pointer-events: auto; }
.spot-marker .pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 15px; color: #04222b; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 6px 18px rgba(0,0,0,.45); position: relative; }
.spot-marker .pin::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }
.spot-marker.r .pin::after { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.spot-marker .tag { margin-top: 4px; background: rgba(6,28,38,.85); color: #fff; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.35); line-height: 1.25; text-align: center; }
.spot-marker .tag small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.spot-marker.sel .pin { transform: scale(1.15); border-color: #fff; }
.fleet-marker { transform: translate(-50%, -110%); position: absolute; background: rgba(6,28,38,.9); color: #fff; border: 1px solid rgba(34,184,212,.7); border-radius: 999px; padding: 2px 8px 2px 6px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.leaflet-marker-icon.spot-icon, .leaflet-marker-icon.fleet-icon { background: none; border: 0; }

@media (max-width: 900px) {
  .c-top { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 8px; } .c-status { display: none; } .c-tools { width: 100%; overflow: auto; }
  .c-left { display: none; } .c-panel { top: auto; bottom: 120px; right: 10px; left: 10px; width: auto; max-height: 55vh; }
  .c-bottom { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 1fr; } .c-legend { display: none; } .c-time-label { min-width: 110px; }
}

.leaflet-top.leaflet-right { top: 70px; } .leaflet-bottom.leaflet-right { bottom: 150px; } .leaflet-bottom.leaflet-left { bottom: 150px; }
@media (max-width: 900px) { .leaflet-top.leaflet-right { top: 110px; } .leaflet-bottom.leaflet-left, .leaflet-bottom.leaflet-right { bottom: 190px; } }

/* warnings */
.c-warn { margin-left: auto; border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 12.5px; color: #04222b; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.c-warnings { border-top: 1px solid var(--line); max-height: 40vh; overflow: auto; } .c-warnings .c-left-head small { color: var(--muted); text-transform: none; letter-spacing: 0; }
.c-warning { padding: 10px 14px; border-left: 4px solid var(--a); border-bottom: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .c-warning b { display: flex; align-items: center; gap: 8px; } .c-warning .wl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 999px; color: #04222b; } .c-warning span, .c-warning small { color: var(--muted); } .c-warning p { margin: 4px 0; color: #d7e6ec; }
.c-legend .src { margin-left: auto; opacity: .7; }
/* modern thin scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; } *::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; } *::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 900px) { .c-warn { margin-left: 0; } .c-warnings { display: none; } }

.fleet-marker.report { border-color: rgba(245,179,35,.7); transform: translate(-50%, 10%); } .fleet-marker.report.danger { border-color: var(--r); box-shadow: 0 0 0 3px rgba(255,90,69,.25), 0 4px 12px rgba(0,0,0,.4); } .fleet-marker small { color: var(--muted); font-weight: 400; }

/* the hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

/* CS-01 / CS-06 — adventures from here, best-today labels */
.best-tag { color: var(--sun); font-weight: 700; }
.best-line { display: inline-block; margin: -4px 0 10px; padding: 4px 10px; border-radius: 999px; background: rgba(242,179,45,.18); color: var(--sun); font-weight: 700; font-size: 12.5px; }
.adv-list { display: grid; gap: 8px; }
.adv { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; align-items: center; }
.adv:hover { background: rgba(34,184,212,.22); }
.adv-name { font-weight: 700; font-size: 14px; } .adv-meta { grid-column: 1; font-size: 12px; color: var(--muted); }
.adv-chips { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tour-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.12); color: #eaf4f7; }
.tour-chip.ok { background: var(--g); color: #04222b; } .tour-chip.on { background: var(--sea); color: #04222b; }
.adv-go { grid-column: 2; grid-row: 1 / 4; font-size: 12.5px; font-weight: 700; color: var(--sea); white-space: nowrap; }
.c-ticker a:hover { text-decoration: underline; }
