/* The live ship map (/ships) and Port to Port. Kept out of style.css so the two pages can change on their own.
   The map is always an ink panel, like the hero and the top bar, so the yellow ships stand out in both themes. */
.seamap {
  --map-sea: #12161b; --map-land: #2b3038; --map-coast: #49515c;
  --ship-cargo: #ffd400; --ship-tanker: #ff7a45; --ship-passenger: #f3f3ee; --ship-tug: #7cc8ff; --ship-fishing: #6fdc8c;
  --ship-other: #9aa0a6; --ship-ring: #ffffff;
  display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; background: var(--map-sea);
}
.seamap:active { cursor: grabbing; }

.sm-areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.sm-areas button.sm-area { font: 600 .74rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px;
  border: 2px solid var(--text); background: transparent; color: var(--text); border-radius: 4px; cursor: pointer; }
.sm-areas button.sm-area:hover { background: var(--brand-soft); }
.sm-areas button.sm-area.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.sm-frame { position: relative; height: min(68vh, 620px); min-height: 360px; border: 1px solid var(--line); background: #12161b; overflow: hidden; }
.sm-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.sm-zoom button { width: 38px; height: 38px; font: 700 1.3rem/1 var(--body); border: 0; border-radius: 4px; background: var(--brand); color: var(--on-brand); cursor: pointer; }
.sm-status { position: absolute; left: 10px; bottom: 10px; right: 60px; margin: 0; width: fit-content; max-width: calc(100% - 20px);
  padding: 6px 10px; background: rgba(15, 17, 19, .85); color: #f3f3ee; font: 600 .74rem/1.35 var(--mono); border-radius: 3px; pointer-events: none; }
.sm-info { position: absolute; top: 10px; left: 10px; width: min(280px, calc(100% - 70px)); padding: 12px 14px 8px; background: rgba(15, 17, 19, .94);
  color: #f3f3ee; border-left: 4px solid var(--brand); font-size: .88rem; }
.sm-info .sm-name { font: 400 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 26px 8px 0; color: var(--brand); }
.sm-info dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 6px; }
.sm-info dt { color: #b9bdc1; font: 600 .7rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sm-info dd { margin: 0; }
.sm-info .sm-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: transparent; color: #f3f3ee; font-size: 1.3rem; cursor: pointer; }

.sm-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.sm-legend li { display: flex; align-items: center; gap: 6px; }
.sm-dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa0a6; border: 1px solid rgba(0, 0, 0, .5); }
.sm-dot.cargo { background: #ffd400; } .sm-dot.tanker { background: #ff7a45; } .sm-dot.passenger { background: #f3f3ee; }
.sm-dot.tug { background: #7cc8ff; } .sm-dot.fishing { background: #6fdc8c; }
.sm-dot.anchored { width: 8px; height: 8px; background: transparent; border: 2px solid var(--muted); }
.wrap.wide .notice.block { margin-top: 12px; }

/* Port to Port */
.ptp { --ptp-route: #ffd400; --ptp-port: #ffd400; }
.ptp-lane { font: 400 clamp(1.5rem, 4.5vw, 2.1rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px; }
.ptp-frame { height: clamp(240px, 52vw, 380px); min-height: 0; margin: 0 -24px 16px; border-left: 0; border-right: 0; }
.ptp-q { display: block; font-weight: 800; margin: 0 0 10px; }
.ptp-options { display: grid; gap: 8px; }
.ptp-options button.ptp-option { text-align: left; padding: 12px 14px; font: 600 1rem/1.3 var(--body); border: 2px solid var(--text); border-radius: 4px;
  background: transparent; color: var(--text); cursor: pointer; }
.ptp-options button.ptp-option:hover { background: var(--brand-soft); }
.ptp-options button.ptp-option.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ptp-days { margin-top: 18px; }
.ptp-days output { display: inline-block; min-width: 2.2em; margin-left: 6px; padding: 2px 8px; background: var(--ink); color: var(--brand); font: 600 1rem/1.3 var(--mono); text-align: center; }
.ptp-days input[type=range] { width: 100%; accent-color: var(--brand-dark); margin: 4px 0 14px; }
.ptp-result { margin: 0 0 8px; padding-left: 12px; border-left: 4px solid var(--line); }
.ptp-result.good { border-color: var(--brand); }
.ptp-result.bad { border-color: var(--muted); }
.ptp-reveal .btn, .ptp-days .btn { margin-top: 8px; }
.ptp-final { font-size: 1.15rem; margin: 16px 0 8px; }
.ptp-final b { font: 400 2.2rem/1 var(--display); margin-right: 6px; }
.ptp-done { border-top: 1px solid var(--line); margin-top: 16px; }
@media (max-width: 560px) { .ptp-frame { margin: 0 -24px 14px; } }
.sm-head .eyebrow, .ptp-head .eyebrow { margin-bottom: 24px; }
.sm-head h1, .ptp-head h1 { line-height: 1.12; }
.sm-head h1 em, .ptp-head h1 em { display: inline-block; margin-top: 4px; }
