/* ==========================================================================
   P&O Cruises Britannia B628 Companion (v2.0.0)
   100% Offline-First Self-Contained Stylesheet — Zero External CDNs
   Warm Luxury Caribbean Navy, Gold & Warm Sand — 60+ Friendly
   ========================================================================== */

:root {
  --navy: #0b2239;
  --navy-mid: #153554;
  --navy-light: #204a72;
  --teal: #0e7490;
  --teal-soft: #e0f2f7;
  --gold: #c59a3a;
  --gold-bright: #e6b84c;
  --gold-soft: #fbf4e2;
  --sand-bg: #f7f3eb;
  --card-bg: #ffffff;
  --border: #e3d9c6;
  --border-strong: #c9bca4;
  --ink: #172636;
  --ink-muted: #4b5d70;
  --success: #166534;
  --success-bg: #dcfce7;
  --warn: #9a5204;
  --warn-bg: #fef3c7;
  --danger: #991b1b;
  --danger-bg: #fee2e2;
  --shadow-sm: 0 2px 8px rgba(11, 34, 57, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 34, 57, 0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --rail-width: 220px;
  --nav-height: 70px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* Display Scale Overrides (Per-Device) */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html.scale-s { font-size: 14px; }
html.scale-m { font-size: 16px; }
html.scale-l { font-size: 18.5px; }
html.scale-xl { font-size: 21px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  padding: 0;
  background: var(--sand-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.48;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Bright-Sunlight High Contrast Mode */
body.sunlight-mode {
  --sand-bg: #ffffff;
  --card-bg: #ffffff;
  --border: #111111;
  --border-strong: #000000;
  --ink: #000000;
  --ink-muted: #1a1a1a;
  --teal-soft: #d2f4ff;
  --gold-soft: #fff2b2;
  --shadow-sm: none;
  --shadow-md: none;
}
body.sunlight-mode .card,
body.sunlight-mode .dash-tile,
body.sunlight-mode .btn,
body.sunlight-mode .pill-btn {
  border-width: 2px !important;
  border-color: #000000 !important;
}

/* Simple Mode Safety Lock (hides complex/destructive controls for Mum) */
body.simple-mode .advanced-edit {
  display: none !important;
}

/* ==========================================================================
   Crisp iPhone Dynamic Island Top Header (Solid Navy, NO Blur)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #0b2239; /* Solid dark navy — never blurred */
  color: #ffffff;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-bottom: 10px;
  padding-left: calc(14px + env(safe-area-inset-left));
  padding-right: calc(14px + env(safe-area-inset-right));
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-greeting-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-greeting {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.header-sub {
  font-size: 0.76rem;
  color: #d8e4f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}
.status-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-pill {
  appearance: none;
  border: 1.5px solid rgba(230, 184, 76, 0.75);
  background: #153554;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  white-space: nowrap;
}
.header-pill:active { transform: scale(0.96); }
.header-pill.active {
  background: var(--gold-bright);
  color: #0b2239;
  border-color: #ffffff;
}
.header-pill.syncing {
  border-color: #38bdf8;
}

/* ==========================================================================
   App Shell & 5-Tab Layout A (Phone Bottom Bar + Tablet Left Rail >= 960px)
   ========================================================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 64px);
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 14px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
}

.tab-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 85;
  background: #ffffff;
  border-top: 1.5px solid var(--border-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(11, 34, 57, 0.08);
}

.rail-brand {
  display: none;
}

.nav-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  min-height: 54px;
  transition: background 0.15s, color 0.15s;
}
.nav-btn .nav-ico { font-size: 1.35rem; line-height: 1; }
.nav-btn .nav-lbl { font-size: 0.72rem; font-weight: 700; }
.nav-btn.active {
  background: var(--gold-soft);
  color: var(--navy);
}
.nav-btn.active .nav-lbl {
  color: var(--navy);
}

/* Tablet / Landscape Left Navigation Rail (>= 960px — e.g. Galaxy Tab S11 Ultra) */
@media (min-width: 960px) {
  .app-header {
    padding-left: calc(var(--rail-width) + 22px);
  }
  .tab-nav {
    top: 0;
    bottom: 0;
    right: auto;
    width: var(--rail-width);
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: calc(16px + env(safe-area-inset-top)) 14px 18px;
    border-top: none;
    border-right: 2px solid var(--border);
    background: #0b2239;
    color: #ffffff;
    box-shadow: 4px 0 20px rgba(11, 34, 57, 0.14);
  }
  .rail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(230, 184, 76, 0.35);
  }
  .rail-brand img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1.5px solid var(--gold-bright);
  }
  .rail-brand-title {
    font-weight: 800;
    font-size: 0.96rem;
    color: #ffffff;
    line-height: 1.2;
  }
  .rail-brand-sub {
    font-size: 0.74rem;
    color: var(--gold-bright);
    font-weight: 600;
  }
  .nav-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 14px;
    color: #d6e2ef;
    min-height: 52px;
    border-radius: 14px;
    text-align: left;
  }
  .nav-btn .nav-ico { font-size: 1.35rem; }
  .nav-btn .nav-lbl { font-size: 0.95rem; font-weight: 700; }
  .nav-btn.active {
    background: var(--gold-bright);
    color: #0b2239;
  }
  .nav-btn.active .nav-lbl { color: #0b2239; }
  .main-content {
    margin-left: var(--rail-width);
    max-width: calc(100% - var(--rail-width));
    padding: 20px 28px 40px;
  }
  .main-inner {
    max-width: 980px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Tab Panels & Sub-Tabs
   ========================================================================== */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.16s ease-out; }
@keyframes fadeIn { from { opacity: 0.4; } to { opacity: 1; } }

.subtab-bar {
  display: flex;
  gap: 8px;
  background: #ece4d5;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.subtab-btn {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 10px;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}
.subtab-btn.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.subtab-panel { display: none; }
.subtab-panel.active { display: block; }

/* ==========================================================================
   Cards, Typography, Badges & Buttons
   ========================================================================== */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.muted { color: var(--ink-muted); font-size: 0.9rem; }
.small-note { color: var(--ink-muted); font-size: 0.82rem; }

.btn {
  appearance: none;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--navy);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 15px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
.btn-gold {
  background: var(--gold-bright);
  color: #0b2239;
  border-color: var(--gold);
}
.btn-teal {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}
.btn-danger {
  background: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
}
.btn-soft {
  background: var(--sand-bg);
  color: var(--navy);
  border-color: var(--border);
}
.btn-sm {
  padding: 7px 11px;
  font-size: 0.84rem;
  min-height: 36px;
  border-radius: 10px;
}
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--sand-bg);
  color: var(--navy);
  border: 1px solid var(--border);
}
.badge-green { background: var(--success-bg); color: var(--success); border-color: #86efac; }
.badge-amber { background: var(--warn-bg); color: var(--warn); border-color: #fcd34d; }
.badge-red { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.badge-teal { background: var(--teal-soft); color: #0c4a6e; border-color: #7dd3fc; }
.badge-navy { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.badge-gold { background: var(--gold-soft); color: #7c5808; border-color: var(--gold); }

/* Inputs */
input[type="text"],
input[type="number"],
input[type="time"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: 11px;
  padding: 10px 12px;
  min-height: 44px;
}
textarea { min-height: 86px; resize: vertical; }
label.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.field-group { margin-bottom: 10px; }

/* ==========================================================================
   Today Tab — Countdown, Concierge Banner, Luxury Hero Card, 6 Giant Tiles
   ========================================================================== */
.voyage-banner {
  background: linear-gradient(135deg, #0e7490 0%, #0b2239 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.voyage-banner-title { font-weight: 800; font-size: 0.98rem; }
.voyage-banner-sub { font-size: 0.84rem; color: #dbeafe; }

.concierge-banner {
  background: #fffbeb;
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.concierge-banner.urgent {
  background: #fef2f2;
  border-color: #dc2626;
}
.concierge-banner-text strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* Luxury Daily Hero Card */
.hero-card {
  background: linear-gradient(155deg, #0b2239 0%, #163d61 65%, #115e75 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold);
}
.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero-day-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-nav-btn {
  appearance: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 11px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 36px;
}
.hero-day-pill {
  background: var(--gold-bright);
  color: #0b2239;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.hero-port-title {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.18;
  color: #ffffff;
}
.hero-date-sub {
  font-size: 0.92rem;
  color: #d8eaf8;
  margin-bottom: 12px;
}
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.hero-meta-box {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 9px 11px;
}
.hero-meta-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f6d57a;
  font-weight: 700;
}
.hero-meta-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}
.hero-pill-btn {
  appearance: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: rgba(11, 34, 57, 0.55);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.hero-pill-btn.gold {
  background: var(--gold-bright);
  color: #0b2239;
  border-color: #ffffff;
}

/* Concept B — 6 Giant Colour-Coded Dashboard Tiles */
.dash-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 680px) {
  .dash-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dash-tile {
  appearance: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 15px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 94px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s;
}
.dash-tile:active { transform: scale(0.97); }
.dash-tile .tile-ico { font-size: 1.7rem; line-height: 1; }
.dash-tile .tile-title { font-size: 0.98rem; font-weight: 800; line-height: 1.2; }
.dash-tile .tile-sub { font-size: 0.78rem; opacity: 0.88; font-weight: 600; }

.tile-meds   { background: #e0f2fe; border-color: #38bdf8; color: #0c4a6e; }
.tile-ship   { background: #fef3c7; border-color: #f59e0b; color: #78350f; }
.tile-map    { background: #dcfce7; border-color: #22c55e; color: #14532d; }
.tile-plans  { background: #f3e8ff; border-color: #a855f7; color: #581c87; }
.tile-taxi   { background: #ffedd5; border-color: #fb923c; color: #7c2d12; }
.tile-help   { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }

/* Live Dual-Clock Bar */
.dual-clock-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.clock-box {
  background: var(--sand-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.clock-lbl { font-size: 0.76rem; font-weight: 700; color: var(--ink-muted); }
.clock-time { font-size: 1.38rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.call-leicester-pill {
  grid-column: 1 / -1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Checklists & Tablet Rows */
.check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px;
  border-bottom: 1px solid #efe7d8;
  cursor: pointer;
}
.check-row:last-child { border-bottom: none; }
.check-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}
.check-row.done .check-text {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.meds-person-card {
  background: var(--sand-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.meds-person-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--navy);
}
.meds-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.med-toggle-btn {
  appearance: none;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  color: var(--navy);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 52px;
}
.med-toggle-btn.taken {
  background: var(--success-bg);
  border-color: #16a34a;
  color: var(--success);
}

/* Collapsible details */
details.clean-collapse {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
details.clean-collapse > summary {
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
details.clean-collapse > summary::-webkit-details-marker { display: none; }
details.clean-collapse > summary::after {
  content: "▾";
  font-size: 1.1rem;
  color: var(--teal);
  transition: transform 0.15s;
}
details.clean-collapse[open] > summary::after { transform: rotate(180deg); }
.collapse-body { padding: 0 16px 14px; }

/* Floating Back to Today Button */
.back-to-today-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  z-index: 80;
  background: var(--gold-bright);
  color: #0b2239;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(11, 34, 57, 0.25);
  cursor: pointer;
  display: none;
}
.back-to-today-fab.visible { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 960px) {
  .back-to-today-fab { bottom: 24px; right: 24px; }
}

/* ==========================================================================
   Caribbean Interactive SVG Map & Ship Navigator
   ========================================================================== */
.map-stage {
  position: relative;
  width: 100%;
  height: 390px;
  background: linear-gradient(180deg, #0b4c6f 0%, #0d6b8e 52%, #0a4e6e 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--navy);
  touch-action: none;
  user-select: none;
}
.map-stage.fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 220;
  border-radius: 0;
  border: none;
}
.map-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.map-tool-btn {
  appearance: none;
  border: 1.5px solid rgba(255,255,255,0.75);
  background: rgba(11, 34, 57, 0.90);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 36px;
}
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.map-port-preview {
  margin-top: 10px;
  background: var(--sand-bg);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px;
}

/* Ship Cutaway SVG Container */
.ship-svg-wrap {
  width: 100%;
  overflow-x: auto;
  background: #f0f6fb;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  margin: 10px 0;
}

/* ==========================================================================
   UK Mon-Sun Calendar View
   ========================================================================== */
.cal-month-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 12px 0 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-dow {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-muted);
  padding-bottom: 4px;
}
.cal-cell {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 6px 4px;
  min-height: 68px;
  background: #faf7f1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.78rem;
  cursor: pointer;
}
.cal-cell.outside {
  opacity: 0.35;
  cursor: default;
}
.cal-cell.port-day { background: #e0f2fe; border-color: #38bdf8; }
.cal-cell.sea-day { background: #f8fafc; border-color: #cbd5e1; }
.cal-cell.embark-day { background: #fef3c7; border-color: #d97706; }
.cal-cell.selected { outline: 3px solid var(--navy); }
.cal-cell-num { font-weight: 800; color: var(--navy); }
.cal-cell-port { font-size: 0.68rem; font-weight: 700; line-height: 1.15; overflow: hidden; }
.cal-cell-icons { font-size: 0.72rem; }

/* ==========================================================================
   Passport Stamps & Spend / Excursion Lists
   ========================================================================== */
.stamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.stamp-card {
  border: 2.5px dashed var(--border-strong);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  background: #fcfaf5;
  cursor: pointer;
  transition: transform 0.12s;
}
.stamp-card.stamped {
  border-style: solid;
  border-color: var(--teal);
  background: #ecfeff;
}
.stamp-seal {
  width: 62px;
  height: 62px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 3px double var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: #ffffff;
}
.stamp-card.stamped .stamp-seal {
  border-color: #0e7490;
  background: #fef3c7;
  transform: rotate(-6deg);
}

.item-card {
  background: var(--sand-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Giant High-Contrast Full-Screen Overlays (Taxi, Waiter, Help Ashore, Wizard)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(11, 34, 57, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  width: 100%;
  max-width: 680px;
  max-height: 92dvh;
  overflow-y: auto;
  background: #ffffff;
  color: #000000;
  border-radius: 20px;
  padding: 20px;
  border: 3px solid var(--navy);
  box-shadow: 0 18px 50px rgba(0,0,0,0.42);
}

.giant-card-box {
  background: #fffbeb;
  border: 3px solid #0b2239;
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0;
}
.giant-foreign-text {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.25;
  color: #000000;
  margin-bottom: 10px;
}
.giant-english-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a5f;
}

.help-emergency-header {
  background: #991b1b;
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
}

/* Currency Cheat Table */
.cheat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.cheat-table th,
.cheat-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  font-size: 0.92rem;
}
.cheat-table th {
  background: var(--navy);
  color: #ffffff;
}

/* Telenor Maritime Warning Box */
.roaming-warning {
  background: #fef2f2;
  border: 2px solid #dc2626;
  border-radius: 14px;
  padding: 14px;
  color: #7f1d1d;
}

/* Toast Notification */
.toast-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: #0b2239;
  color: #ffffff;
  border: 1.5px solid var(--gold-bright);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
  max-width: 92vw;
  text-align: center;
}
.toast-bar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Wizard Step Indicator */
.wizard-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.wizard-dot {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
}
.wizard-dot.done { background: var(--teal); }
.wizard-dot.active { background: var(--gold-bright); }

.profile-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.profile-pick-card {
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
}
.profile-pick-card.selected {
  border-color: var(--navy);
  background: var(--gold-soft);
}
