* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --navy: #0a1628;
  --navy2: #0f2040;
  --navy3: #162a52;
  --teal: #0d9e75;
  --teal2: #0b8562;
  --teal-light: #e1f5ee;
  --gold: #e8a020;
  --gold-light: #faeeda;
  --text: #e8edf5;
  --text2: #9aafc8;
  --text3: #c4d0e3;
  --card: #0f2040;
  --card2: #162a52;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.15);
  --red: #e24b4a;
  --green: #1d9e75;
}
body {
  background: var(--navy);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header */
header {
  background: var(--navy2);
  border-bottom: 1px solid var(--border2);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}
.logo-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.logo-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 1px;
}
.time-badge {
  font-size: 13px;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
}
.lang-btn {
  font-size: 12px;
  color: var(--text2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover {
  color: var(--text);
  border-color: var(--border2);
}

/* Nav */
nav {
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar {
  display: none;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
}
.nav-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.nav-btn:hover:not(.active) {
  color: var(--text);
}

/* Main */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  width: 100%;
}
.page {
  display: none;
}
.page.active {
  display: block;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.card + .card {
  margin-top: 1rem;
}
.card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* Grid */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
}

/* Status banner */
.status-banner {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.status-banner.open {
  background: #0b3d2a;
  border: 1px solid #1a6645;
}
.status-banner.closed {
  background: #3d0b0b;
  border: 1px solid #6e2020;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.open {
  background: #1d9e75;
  box-shadow: 0 0 6px #1d9e75;
}
.status-dot.closed {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}
.status-text {
  font-size: 13px;
  font-weight: 500;
}

/* Countdown cards */
.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.countdown-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.countdown-label {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.countdown-port {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.countdown-number {
  font-size: 38px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown-unit {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}
.countdown-time {
  font-size: 13px;
  color: var(--gold);
  margin-top: 8px;
}
.just-left {
  font-size: 11px;
  color: #f0a030;
  background: rgba(240, 160, 48, 0.12);
  border: 1px solid rgba(240, 160, 48, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 8px;
  display: none;
}

/* Info row */
.info-row {
  display: flex;
  justify-content: space-around;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.info-item {
  text-align: center;
}
.info-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.info-lbl {
  font-size: 11px;
  color: var(--text2);
  margin-top: 3px;
}

/* Weather */
.weather-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.weather-icon {
  font-size: 48px;
  line-height: 1;
}
.weather-temp {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
}
.weather-desc {
  font-size: 14px;
  color: var(--text2);
  margin-top: 4px;
}
.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.weather-stat {
  background: var(--card2);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}
.weather-stat-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.weather-stat-lbl {
  font-size: 11px;
  color: var(--text2);
  margin-top: 3px;
}
.wind-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 0.5rem;
  justify-content: center;
}
.wind-bft {
  width: 10px;
  height: 16px;
  border-radius: 2px;
  background: var(--border2);
}
.wind-bft.active {
  background: var(--teal);
}

/* Schedule */
.schedule-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.band-header {
  background: var(--card2);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.band-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.band-freq {
  font-size: 12px;
  color: var(--teal);
  background: rgba(13, 158, 117, 0.15);
  padding: 3px 8px;
  border-radius: 20px;
}
.departures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 6px;
  padding: 0.75rem;
}
.dep-pill {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text3);
}
.dep-pill.next {
  background: rgba(13, 158, 117, 0.2);
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}
.dep-pill.past {
  opacity: 0.35;
}
.band-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  padding: 0.5rem 0.75rem 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quick-link row container (home page) */
.quick-links-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch; /* force equal height on both cards */
}
@media (max-width: 520px) {
  .quick-links-row {
    flex-direction: column;
  }
}

/* Quick-link cards (home page) */
.quick-link {
  flex: 1;               /* both cards share available width equally */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.quick-link:hover {
  border-color: var(--border2);
  background: var(--card2);
}
.quick-link-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--card2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;        /* prevent emoji from pushing height */
}
.quick-link-body {
  flex: 1;
  min-width: 0;
}
.quick-link-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;   /* prevent title wrap that causes height diff */
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-link-sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 3px;
  white-space: nowrap;   /* prevent subtitle wrap too */
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-link-arrow {
  color: var(--text2);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

/* Prices inner tabs */
.prices-tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  background: var(--card2);
  border-radius: 10px;
  padding: 5px;
}
.prices-tab-btn {
  flex: 1;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.prices-tab-btn.active {
  background: var(--card);
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.prices-tab-btn:hover:not(.active) {
  color: var(--text);
}
.price-section {
  display: none;
}
.price-section.active {
  display: block;
}

/* Prices */
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table td {
  padding: 10px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.price-table tr:last-child td {
  border: none;
}
.price-val {
  font-weight: 600;
  color: var(--gold);
  text-align: right;
}
.price-free {
  color: var(--green);
  font-weight: 600;
}
.price-badge {
  font-size: 11px;
  background: rgba(232, 160, 32, 0.15);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
}
.compare-box {
  background: rgba(13, 158, 117, 0.1);
  border: 1px solid rgba(13, 158, 117, 0.3);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}
.compare-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 3px 0;
}
.compare-saving {
  color: var(--green);
  font-weight: 600;
}

/* Map */
.map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 420px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.map-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.map-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.map-link:hover {
  border-color: var(--border2);
}
.map-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.map-link-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.map-link-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

/* Info page */
.info-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.info-card-row:last-child {
  border: none;
}
.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.info-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.info-value {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}
.info-action {
  margin-left: auto;
  font-size: 12px;
  color: var(--teal);
  background: rgba(13, 158, 117, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  text-decoration: none;
}

/* Loading */
.loading {
  color: var(--text2);
  font-size: 14px;
  text-align: center;
  padding: 2rem;
}
.dot-anim::after {
  content: '...';
  animation: dots 1.5s infinite;
}
@keyframes dots {
  0%,
  100% {
    content: '...';
  }
  33% {
    content: '.';
  }
  66% {
    content: '...';
  }
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  margin-top: 1rem;
}
.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--text2);
}
.footer-copy { font-weight: 500; color: var(--text3); }
.footer-sep { color: var(--border); }
.footer-link {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-link:hover { color: var(--teal2); }
.footer-note { color: var(--text2); font-size: 11px; }

/* ---- PRIVACY PAGE ---- */
.privacy-intro {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 1.2rem;
}
.privacy-section {
  margin-bottom: 1.4rem;
}
.privacy-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.privacy-section p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
}
.privacy-service-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.privacy-service-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.privacy-service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.privacy-service-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.privacy-link {
  color: var(--teal);
  text-decoration: none;
}
.privacy-link:hover { text-decoration: underline; }
