#maritime { margin-bottom: 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel-strong); overflow: hidden; box-shadow: var(--shadow); }
#maritime[hidden] { display: none; }
.maritime-active #cam-main, .maritime-active .small-cams { display: none; }
.maritime-active { grid-template-columns: minmax(0, 1fr); }
.maritime-active .world-clock-bar { grid-column: 1; }
.ais-heading { padding: 20px 22px 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ais-heading h2 { font-family: 'Black Ops One', system-ui; font-size: clamp(19px, 3vw, 26px); letter-spacing: 1px; margin: 0; color: var(--sec-blue); }
.ais-eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; }
.ais-badge { padding: 7px 10px; border: 1px solid var(--sec-orange); color: var(--sec-orange); font-size: 12px; }
.ais-badge[hidden] { display: none; }
.ais-hud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 12px 22px 18px; border-bottom: 1px solid var(--border); }
.ais-hud small { display: block; font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-bottom: 5px; }
.ais-hud strong { font-size: 12px; overflow-wrap: anywhere; }
#ais-status { color: var(--sec-orange); }
#ais-status[data-state="online"] { color: var(--sec-neon); }
#ais-status[data-state="offline"] { color: var(--sec-red); }
.ais-toolbar { padding: 14px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ais-filters { display: flex; flex-wrap: wrap; gap: 6px; }
#maritime button, #maritime input { font: inherit; font-size: 12px; }
#maritime button { cursor: pointer; color: var(--text); border: 1px solid var(--border); background: #091a1d; border-radius: 6px; padding: 8px 10px; }
#maritime button[aria-pressed="true"] { border-color: var(--sec-blue); color: var(--sec-blue); background: #103039; }
#maritime :focus-visible { outline: 2px solid var(--sec-blue); outline-offset: 3px; }
.ais-moving { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.ais-search { margin-left: auto; display: flex; gap: 6px; min-width: 0; max-width: 100%; }
.ais-search input { min-width: 0; width: 210px; max-width: 100%; background: #020c10; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; color: var(--text); }
.ais-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-top: 1px solid var(--border); }
.ais-map-wrap { position: relative; min-width: 0; }
#ais-map { height: 560px; background: #07151c; z-index: 1; }
#ais-map .ais-base-tiles { filter: grayscale(1) invert(1) brightness(.65) sepia(.25) hue-rotate(135deg); }
.ais-notice { position: absolute; z-index: 450; top: 12px; left: 55px; right: 12px; width: fit-content; max-width: calc(100% - 67px); padding: 10px 12px; border: 1px solid #677747; border-radius: 8px; background: #071315eb; color: #d8e7be; font-size: 12px; pointer-events: none; }
.ais-notice:empty { display: none; }
.ais-card-shell { padding: 22px; border-left: 1px solid var(--border); background: radial-gradient(ellipse at top right, #173c3a66, transparent 70%); perspective: 850px; min-width: 0; }
.ais-card { padding: 16px; border: 1px solid #2ee7ff45; border-radius: 12px; background: linear-gradient(140deg, #0c2024, #070d15); box-shadow: 0 0 24px #2ee7ff09; transition: transform .15s ease-out; }
.ais-card h3 { font-family: 'Black Ops One', system-ui; font-size: 22px; color: #e5fff1; margin: 15px 0; overflow-wrap: anywhere; }
.ais-card .ais-eyebrow { color: var(--sec-blue); }
.ais-card dl { margin: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 11px 8px; font-size: 12px; }
.ais-card dt { color: var(--muted); }
.ais-card dd { margin: 0; overflow-wrap: anywhere; }
.ais-card-footer { font-size: 11px; color: var(--muted); margin-top: 20px; line-height: 1.6; }
.ais-extra { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.ais-extra summary { color: var(--sec-blue); cursor: pointer; font-size: 11px; padding: 5px 0; }
.ais-extra[open] summary { margin-bottom: 12px; }
.ais-extra dl { grid-template-columns: 86px minmax(0, 1fr); }
.ais-result-list { padding: 0 22px; display: flex; gap: 6px; flex-wrap: wrap; max-height: 110px; overflow: auto; }
.ais-result-list:not(:empty) { padding-bottom: 12px; }
.ais-vessel { background: transparent; border: 0; }
.ais-arrow { --vessel-color: #a5bab8; display: block; width: 24px; height: 28px; position: relative; }
.ais-arrow svg { width: 24px; height: 28px; fill: var(--vessel-color); stroke: #051013; stroke-width: 1.5; filter: drop-shadow(0 0 3px #000); }
.ais-arrow.cargo { --vessel-color: #66d8c4; }
.ais-arrow.tanker { --vessel-color: #87a8db; }
.ais-arrow.passenger { --vessel-color: #b4a2d7; }
.ais-arrow.fishing { --vessel-color: #b9c991; }
.ais-arrow.tug { --vessel-color: #c8b697; }
.ais-vessel.is-stale { opacity: .42; }
.ais-vessel.is-selected .ais-arrow svg { stroke: white; stroke-width: 2; filter: drop-shadow(0 0 5px #2ee7ff); }
.ais-vessel.acquired::after { content: ''; position: absolute; left: -8px; top: -6px; width: 40px; height: 40px; border: 1px solid var(--sec-blue); border-radius: 50%; animation: ais-acquired 1s ease-out 3; pointer-events: none; }
@keyframes ais-acquired { from { transform: scale(.5); opacity: .8; } to { transform: scale(2); opacity: 0; } }
#ais-map .leaflet-control-zoom a { background: #102329; color: #beefd8; border-color: #31524d; }
#ais-map .leaflet-control-attribution { background: #051014dc; color: #abb; font: 9px Arial, sans-serif; }
#ais-map .leaflet-control-attribution a { color: #91ccd2; }
.ais-legend { padding: 10px 22px; font-size: 10px; color: var(--muted); border-top: 1px solid var(--border); line-height: 1.6; }
@media (max-width: 900px) { .ais-stage { grid-template-columns: minmax(0, 1fr); } .ais-card-shell { border-left: 0; border-top: 1px solid var(--border); } .ais-card dl { grid-template-columns: 90px minmax(0, 1fr); } #ais-map { height: 440px; } .ais-search { margin-left: 0; } }
@media (max-width: 520px) { .ais-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ais-toolbar, .ais-heading, .ais-hud { padding-left: 14px; padding-right: 14px; } #ais-map { height: 370px; } .ais-card-shell { padding: 14px; } .ais-search { width: 100%; } .ais-search input { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .ais-card { transition: none; transform: none !important; } .ais-vessel.acquired::after { animation: none; } }
