:root {
  --ink: #1a2e35;
  --ink-2: #2d4a54;
  --ink-3: #5a7d87;
  --ink-4: #8ca5ad;
  --teal: #0d9488;
  --teal-deep: #0a7c72;
  --teal-wash: rgba(13, 148, 136, 0.06);
  --warm: #fafafa;
  --warm-2: #f5f5f5;
  --white: #ffffff;
  --rule: rgba(13, 148, 136, 0.12);
  --rule-strong: rgba(13, 148, 136, 0.2);
  --cargo: #2563eb;
  --tanker: #dc2626;
  --passenger: #16a34a;
  --fishing: #ca8a04;
  --other: #8ca5ad;
  --live: #10b981;
  /* Type scale (Major Third) */
  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 15px;
  --text-lg: 20px;
  --text-xl: 28px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--warm);
  color: var(--ink);
  min-height: 100vh;
}

::selection { background: rgba(13, 148, 136, 0.15); color: var(--ink); }

/* Entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.masthead { animation: fadeUp 0.5s ease-out; }
.section--vessels { animation: fadeUp 0.5s ease-out 0.1s both; }
.section--pulse { animation: fadeUp 0.5s ease-out 0.2s both; }
.section--explore { animation: fadeUp 0.5s ease-out 0.25s both; }
.section--activity { animation: fadeUp 0.5s ease-out 0.3s both; }
.site-footer { animation: fadeUp 0.4s ease-out 0.4s both; }

/* Smooth transitions on interactive elements */
a, button { transition: color 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.15s; }

/* ════════════════════════════════════════
   MASTHEAD
   ════════════════════════════════════════ */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 0 clamp(20px, 4vw, 48px);
}
.masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 16px;
}
.masthead-logo-link { display: block; line-height: 0; }
.masthead-logo { height: clamp(60px, 10vw, 90px); width: auto; max-width: 200px; display: block; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.masthead-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.masthead-sub {
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--ink-3);
  margin-top: 6px;
  letter-spacing: 0.02em;
  font-weight: 400;
}
/* Weather bar — now inside info-row left column */
.weather-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.weather-icon { font-size: 18px; }
.weather-temp { font-size: 15px; font-weight: 600; color: var(--ink); }
.weather-desc { font-size: 12px; color: var(--ink-3); }
.weather-detail {
  font-size: 12px; color: var(--ink-4);
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.weather-detail svg { width: 12px; height: 12px; opacity: 0.5; }

.lang-switcher { display: flex; gap: 3px; }
.lang-flag {
  width: 28px; height: 20px; object-fit: cover; cursor: pointer;
  opacity: 0.4; transition: opacity 0.15s;
  border: 1.5px solid transparent;
}
.lang-flag:hover { opacity: 0.8; }
.lang-flag.active { opacity: 1; border-bottom: 2px solid var(--teal); }

/* ════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════ */
.section { border-bottom: 1px solid var(--rule); }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  padding-top: clamp(12px, 2vw, 18px);
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ════════════════════════════════════════
   VESSELS SECTION
   ════════════════════════════════════════ */
.stat-live {
  font-size: 10px; font-weight: 600; color: var(--live);
  display: flex; align-items: center; gap: 4px;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-live.stale-text { color: #f59e0b; }
.stat-live.offline-text { color: var(--ink-4); }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  animation: pulse-live 2s ease infinite;
}
.live-dot.stale { background: #f59e0b; animation: none; }
.live-dot.offline { background: var(--ink-4); animation: none; }
@keyframes pulse-live { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* Info row: weather+stats + sunset side-by-side on desktop */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: clamp(10px, 2vw, 16px) 0 clamp(10px, 2vw, 16px);
}
.info-left {
  flex: 1; min-width: 0;
}

.port-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 20px;
}
.port-strip-sep { display: none; }
.port-strip-item { display: flex; flex-direction: column; gap: 0; }
.port-strip-value { font-size: 28px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.port-strip-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }

/* Map — full bleed, no border-radius */
.map-wrapper {
  height: clamp(380px, 62vh, 680px);
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
#map { width: 100%; height: 100%; }

.map-hint {
  position: absolute; top: 10px; right: 56px; z-index: 10;
  background: rgba(26,46,53,0.78); color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 500; padding: 4px 12px;
  pointer-events: none; transition: opacity 0.5s;
}
.map-hint.hidden { opacity: 0; }

.map-search { position: absolute; top: 10px; left: 10px; z-index: 10; width: 200px; }
.map-search input {
  width: 100%; padding: 7px 10px; border: none;
  background: rgba(255,255,255,0.92); font-size: 13px;
  font-family: inherit; color: var(--ink); outline: none;
  border-radius: 2px;
}
.map-search input:focus { box-shadow: 0 0 0 2px var(--teal); }
.map-search input::placeholder { color: var(--ink-4); }
.search-results {
  margin-top: 2px; background: var(--white); border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); overflow: hidden;
}
.search-results.hidden { display: none; }
.search-item {
  padding: 8px 10px; cursor: pointer; display: flex;
  justify-content: space-between; font-size: 13px;
}
.search-item + .search-item { border-top: 1px solid var(--rule); }
.search-item:hover { background: var(--teal-wash); }
.search-name { font-weight: 600; color: var(--ink); }
.search-type { font-size: 12px; color: var(--ink-4); }

.map-legend {
  position: absolute; bottom: 28px; left: 10px; z-index: 10;
  background: rgba(255,255,255,0.9); padding: 4px 10px;
  display: flex; gap: 10px;
}
.legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }

.map-recenter {
  position: absolute; bottom: 28px; right: 50px; z-index: 10;
  width: 30px; height: 30px; background: rgba(255,255,255,0.9);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--ink-3);
}
.map-recenter:hover { color: var(--teal); }

/* Below map: spot + votd */
.vessel-below {
  display: flex; gap: 24px; align-items: flex-start;
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

.spot-feature {
  flex: 1;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--teal-wash);
  border-left: 3px solid var(--teal);
  text-decoration: none; color: var(--ink);
  transition: background 0.15s;
}
.spot-feature:hover { background: rgba(13,148,136,0.1); }
.spot-feature-icon {
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}
.spot-feature-text { flex: 1; }
.spot-feature-badge { display: none; }
.spot-feature-title {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px; line-height: 1.3;
}
.spot-feature-desc {
  display: block; font-size: 12px; color: var(--ink-3);
  line-height: 1.5; margin-bottom: 6px;
}
.spot-feature-link { font-size: 13px; font-weight: 600; color: var(--teal); }
.spot-feature:hover .spot-feature-link { text-decoration: underline; }

.votd-strip {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px;
  border-left: 3px solid var(--ink-4);
}
.votd-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-4);
}
.votd-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.votd-details { font-size: 13px; color: var(--ink-3); }

/* ════════════════════════════════════════
   SUNSET PREDICTION
   ════════════════════════════════════════ */
.sunset-strip {
  border-top: none;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
  padding-bottom: 0;
  flex: 1; min-width: 0;
}
.sunset-strip .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-top: 0;
}

.sunset-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

.sunset-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  color: var(--ink-4);
  transition: color 0.15s;
}
.sunset-info-icon:hover { color: var(--teal); }

.sunset-info-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: 280px;
  padding: 10px 14px;
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  z-index: 50;
  pointer-events: none;
}

.sunset-info-wrap:hover .sunset-info-tooltip { display: block; }

@media (max-width: 768px) {
  .sunset-info-tooltip {
    left: auto;
    right: -20px;
    transform: none;
    width: 240px;
  }
}

.sunset-card {
  padding: 0;
}

.sunset-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sunset-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.sunset-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sunset-time {
  font-family: 'Noto Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.sunset-rating {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sunset-rating[data-level="spectacular"] { color: #dc2626; }
.sunset-rating[data-level="vivid"] { color: #ea580c; }
.sunset-rating[data-level="nice"] { color: #ca8a04; }
.sunset-rating[data-level="ordinary"] { color: var(--ink-4); }


.sunset-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.4;
}

.sunset-factors {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sunset-factor {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--ink-4);
}

.sunset-factor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sunset-factor-dot.good { background: #16a34a; }
.sunset-factor-dot.neutral { background: #ca8a04; }
.sunset-factor-dot.poor { background: #dc2626; }


/* ════════════════════════════════════════
   PORT PULSE
   ════════════════════════════════════════ */
.section--pulse { background: var(--white); }
.pulse-header {
  display: flex; align-items: baseline; gap: 12px;
}
.pulse-stat {
  font-size: var(--text-sm); color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.pulse-timeline {
  padding-bottom: clamp(16px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 0;
}
.pulse-empty {
  font-size: var(--text-sm); color: var(--ink-4);
  padding: 12px 0; font-style: italic;
}
.pulse-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.pulse-item:last-child { border-bottom: none; }
.pulse-event {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  width: 64px; flex-shrink: 0; text-align: center;
  padding: 3px 0;
}
.pulse-event.arrival { color: var(--passenger); background: rgba(22,163,74,0.08); }
.pulse-event.departure { color: var(--tanker); background: rgba(220,38,38,0.08); }
.pulse-vessel {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
}
.pulse-flag { width: 20px; height: 15px; object-fit: cover; flex-shrink: 0; }
.pulse-name {
  font-size: var(--text-base); font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pulse-meta {
  font-size: var(--text-sm); color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pulse-time {
  font-size: var(--text-sm); color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0; text-align: right;
}

@media (max-width: 768px) {
  .pulse-header { flex-direction: column; align-items: center; gap: 4px; }
  .pulse-item { gap: 8px; }
  .pulse-event { width: 52px; font-size: 9px; }
  .pulse-name { font-size: 13px; }
}

/* ════════════════════════════════════════
   EXPLORE SECTION
   ════════════════════════════════════════ */
.section--explore { background: var(--white); }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.explore-card {
  background: var(--white);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 0.15s;
  cursor: default;
}
.explore-card:hover { background: var(--warm); }
.explore-emoji { font-size: 28px; margin-bottom: 6px; }
.explore-card-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.explore-card-desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
}
.explore-card-tag {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-4);
  border: 1px solid var(--rule-strong);
  padding: 2px 8px;
}
.explore-card-cta {
  display: inline-block; margin-top: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--teal); letter-spacing: 0.02em;
}
a.explore-card {
  text-decoration: none; color: inherit; cursor: pointer;
}
a.explore-card:hover { background: var(--warm); }
a.explore-card:hover .explore-card-cta { text-decoration: underline; }
.footer-affiliate {
  margin-top: 6px; font-size: 11px; font-style: normal; color: var(--ink-4);
}

/* ════════════════════════════════════════
   ACTIVITY SECTION
   ════════════════════════════════════════ */
.activity-card { background: none; border: none; padding: 0; }
.activity-full { grid-column: 1 / -1; }
.activity-grid { display: block; }
.activity-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin-bottom: 12px;
}

.activity-table-wrap {
  overflow-x: auto;
  padding-bottom: clamp(24px, 3vw, 40px);
}
.activity-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.activity-table th {
  text-align: left; font-size: 10px; font-weight: 700;
  color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 12px 8px; border-bottom: 2px solid var(--ink);
}
.activity-table td {
  padding: 10px 12px; color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.activity-table tr:last-child td { border-bottom: none; }
.activity-table tr:hover td { background: var(--teal-wash); }
.activity-table .vessel-name-cell { font-weight: 600; }
.vessel-link {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.vessel-link:hover { color: var(--teal); border-bottom-color: var(--teal); }
.activity-table .flag-cell img {
  width: 20px; height: 15px; object-fit: cover; vertical-align: middle;
}
.activity-table .time-cell { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════
   ABOUT SECTION (SEO)
   ════════════════════════════════════════ */
.section--about { background: var(--white); animation: fadeUp 0.5s ease-out 0.4s both; }
.about-content {
  padding-bottom: clamp(24px, 3vw, 40px);
}
.about-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}
.about-content p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-content p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-content { text-align: center; }
  .about-heading { text-align: center; }
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  padding: 32px clamp(20px, 4vw, 48px);
  text-align: center;
  border-top: 2px solid var(--ink);
  color: var(--ink-3);
  font-size: 13px;
  font-style: italic;
}
.footer-links {
  margin-top: 8px; font-size: 12px; font-style: normal;
}
.footer-links a {
  color: var(--ink-4); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ════════════════════════════════════════
   VESSEL POPUP + CARD
   ════════════════════════════════════════ */
.vessel-popup .maplibregl-popup-content {
  background: rgba(26,46,53,0.92); color: #f0fdfa;
  padding: 8px 12px; font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-family: 'Noto Sans', sans-serif; line-height: 1.4;
}
.vessel-popup .maplibregl-popup-tip { border-top-color: rgba(26,46,53,0.92); }
.vt-row1 { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.vt-flag { width: 22px; height: 16px; object-fit: cover; }
.vt-name { font-weight: 600; font-size: 14px; white-space: nowrap; }
.vt-row2 { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(240,253,250,0.56); }
.vt-sep { opacity: 0.36; }
.vt-type { display: flex; align-items: center; gap: 3px; }
.vt-dot { width: 6px; height: 6px; border-radius: 50%; }

.vessel-card {
  position: fixed; z-index: 200;
  background: var(--white); border: 1px solid var(--rule-strong);
  width: 300px; max-height: 80vh; overflow-y: auto;
  top: 50%; right: 24px; transform: translateY(-50%);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.vessel-card.hidden { opacity: 0; pointer-events: none; transform: translateY(-48%) scale(0.97); }
.card-close {
  position: absolute; top: 8px; right: 8px;
  background: var(--warm-2); border: 1px solid var(--rule-strong);
  font-size: 20px; cursor: pointer; color: var(--ink-2);
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-weight: 700; z-index: 1;
}
.card-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.card-header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.card-flag { flex-shrink: 0; }
.card-title-group { flex: 1; min-width: 0; }
.card-name {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 2px; line-height: 1.2; letter-spacing: -0.01em;
}
.card-type-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 6px; color: white; text-transform: uppercase; letter-spacing: 0.03em;
}
.card-body { padding: 0; }
.card-section { padding: 8px 14px; }
.card-section + .card-section { border-top: 1px solid var(--rule); }
.card-section-title {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 4px;
}
.card-row { display: flex; justify-content: space-between; padding: 2px 0; }
.card-label { color: var(--ink-3); font-size: 13px; }
.card-value { color: var(--ink); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.card-footer { padding: 6px 14px; font-size: 10px; color: var(--ink-4); border-top: 1px solid var(--rule); }

/* ════════════════════════════════════════
   MOBILE FAB
   ════════════════════════════════════════ */
/* Floating spot button — visible on mobile/tablet */
.spot-float {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 9999;
  gap: 8px;
  padding: 12px 18px;
  background: #f97316;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans', sans-serif;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.spot-float svg { flex-shrink: 0; }
.spot-float:active { transform: scale(0.97); }
@media (max-width: 1024px) { .spot-float { display: flex; } }
@media (pointer: coarse) { .spot-float { display: flex; } }

/* ════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .masthead-inner { justify-content: center; gap: 12px; }
  .masthead-logo { height: auto; max-width: 120px; display: block !important; }
  .lang-switcher { justify-content: center; }

  .section-header { flex-direction: column; align-items: center; text-align: center; }
  .section-label { text-align: center; }

  .weather-bar { justify-content: center; }
  .stat-live { justify-content: center; }

  .port-strip {
    gap: 6px 12px;
    justify-items: center;
    text-align: center;
  }
  .port-strip-item { align-items: center; }
  .port-strip-value { font-size: 22px; }

  .vessel-below { align-items: center; text-align: center; }
  .spot-feature { text-align: left; }
  .votd-strip { align-items: center; text-align: center; border-left: none; }

  .explore-grid { text-align: center; }
  .explore-card { align-items: center; text-align: center; }

  .vessel-below { flex-direction: column; gap: 0; }
  .spot-feature { border-left: 3px solid var(--teal); }
  .votd-strip { border-left: none; border-top: 1px solid var(--rule); padding: 12px 0; }

  .info-row { flex-direction: column; gap: 0; }
  .info-left { text-align: center; }
  .sunset-strip { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 10px; }
  .sunset-strip { text-align: center; }
  .sunset-strip .section-label { justify-content: center; flex-wrap: wrap; }
  .sunset-main { justify-content: center; gap: 12px; }
  .sunset-info { flex: none; }
  .sunset-desc { text-align: center; }
  .sunset-factors { justify-content: center; }

  .explore-grid { grid-template-columns: 1fr; }

  .map-wrapper { height: 52vh; min-height: 300px; }
  .map-search { width: 160px; }
  .map-recenter { bottom: 10px; right: 10px; }

  /* port-strip handled by grid rule above */

  /* Table → cards on mobile */
  .activity-table thead { display: none; }
  .activity-table, .activity-table tbody, .activity-table tr, .activity-table td { display: block; width: 100%; }
  .activity-table tr {
    padding: 10px 0; border-bottom: 1px solid var(--rule);
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  }
  .activity-table td { padding: 0; border: none; font-size: 13px; }
  .activity-table .vessel-name-cell { font-size: 15px; font-weight: 700; width: 100%; }
  .activity-table .flag-cell { order: -1; }
  .activity-table .time-cell { margin-left: auto; }

  .vessel-card {
    width: 100%; right: 0; left: 0; bottom: 0; top: auto;
    transform: translateY(0); max-height: 55vh;
  }
  .vessel-card.hidden { transform: translateY(100%); opacity: 1; }
}
