:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-alt: #fbf8f3;
  --ink: #141923;
  --ink-muted: #555f70;
  --ink-soft: #7b8496;
  --border: #e5ddd0;
  --border-strong: #d4c8b6;
  --accent-red: #c83e2b;
  --accent-red-bg: #fdf1ef;
  --accent-teal: #175b66;
  --accent-teal-bg: #edf6f7;
  --accent-gold: #b88212;
  --accent-gold-bg: #fdf7e6;
  --accent-navy: #1d3557;
  --accent-navy-bg: #eef2f8;
  --accent-green: #226b47;
  --accent-green-bg: #edf7f1;
  --shadow-sm: 0 2px 10px rgba(20, 25, 35, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 25, 35, 0.09);
  --shadow-lg: 0 20px 50px rgba(20, 25, 35, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Songti TC", "PingFang TC", "Noto Serif TC", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  padding-bottom: 92px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  background: #101520;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 19, 30, 0.35) 0%,
    rgba(14, 19, 30, 0.52) 45%,
    rgba(14, 19, 30, 0.92) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-badge.gold {
  background: rgba(232, 185, 49, 0.24);
  border-color: rgba(232, 185, 49, 0.55);
  color: #ffe89e;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.hero-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 4px;
}

.hero-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hero-stat-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

/* Sticky Top Navigation */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(20, 25, 35, 0.04);
}

.sticky-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-row::-webkit-scrollbar {
  display: none;
}

.section-pill {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.section-pill:hover,
.section-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}

.day-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.day-pill small {
  font-weight: 500;
  opacity: 0.72;
}

.day-pill.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.day-pill.active small {
  opacity: 0.92;
}

/* Main container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.section {
  margin-bottom: 36px;
  scroll-margin-top: 112px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.section-title {
  margin: 0;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.section-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card-accent-red { border-top: 4px solid var(--accent-red); }
.card-accent-teal { border-top: 4px solid var(--accent-teal); }
.card-accent-gold { border-top: 4px solid var(--accent-gold); }
.card-accent-navy { border-top: 4px solid var(--accent-navy); }
.card-accent-green { border-top: 4px solid var(--accent-green); }

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

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-red { background: var(--accent-red-bg); color: var(--accent-red); }
.tag-teal { background: var(--accent-teal-bg); color: var(--accent-teal); }
.tag-gold { background: var(--accent-gold-bg); color: #8c6006; }
.tag-navy { background: var(--accent-navy-bg); color: var(--accent-navy); }
.tag-green { background: var(--accent-green-bg); color: var(--accent-green); }

/* Key-value list */
.kv-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.kv-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: baseline;
}

.kv-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.kv-val {
  color: var(--ink);
  word-break: break-word;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-teal);
  color: #fff;
  border-color: var(--accent-teal);
}

.btn-primary:hover {
  background: #0f444d;
  border-color: #0f444d;
  color: #fff;
}

.btn-taxi {
  background: var(--accent-gold-bg);
  border-color: #e4c26b;
  color: #704b00;
}

.btn-taxi:hover {
  background: #b88212;
  border-color: #b88212;
  color: #fff;
}

.btn-danger {
  background: var(--accent-red-bg);
  border-color: #ebb6ae;
  color: var(--accent-red);
}

/* Alert Callouts */
.callout {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 13.5px;
  margin: 12px 0;
  border-left: 4px solid;
}

.callout-warn {
  background: #fff8ea;
  border-color: var(--accent-gold);
  color: #5c4004;
}

.callout-info {
  background: var(--accent-teal-bg);
  border-color: var(--accent-teal);
  color: #103e46;
}

.callout-urgent {
  background: var(--accent-red-bg);
  border-color: var(--accent-red);
  color: #7a1f13;
}

.callout strong {
  font-weight: 800;
}

/* Filter Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.search-box {
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
}

.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.chip.active {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #fff;
}

/* Day Card */
.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  scroll-margin-top: 118px;
}

.day-card.hidden {
  display: none;
}

.day-banner {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  background: #141923;
  color: #fff;
  overflow: hidden;
}

.day-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.day-banner-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.16) 0%, rgba(16, 21, 32, 0.88) 100%);
}

.day-banner-solid {
  min-height: 148px;
  background: linear-gradient(135deg, #162336 0%, #175b66 100%);
}

.day-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 22px 18px;
}

.day-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.day-num-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.day-weather-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.day-banner h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.25;
  font-weight: 800;
}

.day-banner p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.day-body {
  padding: 20px 22px 24px;
}

.day-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.highlight-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13px;
}

.highlight-box .hb-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-strong);
}

.slot {
  position: relative;
  margin-bottom: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  transition: border-color 0.15s ease;
}

.slot:last-child {
  margin-bottom: 0;
}

.slot::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent-teal);
}

.slot.cat-alert::before {
  background: var(--accent-red);
  box-shadow: 0 0 0 2px var(--accent-red);
}

.slot.cat-alert {
  background: #fff7f6;
  border-color: #efc4bd;
}

.slot.cat-disney::before {
  background: #9147ff;
  box-shadow: 0 0 0 2px #9147ff;
}

.slot.cat-food::before {
  background: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.slot-time {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-teal);
  background: var(--accent-teal-bg);
  padding: 2px 9px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.slot.cat-alert .slot-time {
  color: var(--accent-red);
  background: #fde5e2;
}

.slot-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  flex: 1 1 200px;
}

.slot-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: #2c3442;
}

.slot-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: #363f4e;
}

.slot-bullets li {
  margin-bottom: 4px;
}

.slot-tip {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff;
  border: 1px dashed var(--border-strong);
  font-size: 13px;
  color: #4b5565;
}

/* Shuttle Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
}

tr:last-child td {
  border-bottom: 0;
}

/* Checklist */
.progress-bar-wrap {
  background: var(--border);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 16px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
  width: 0%;
  transition: width 0.25s ease;
}

.checklist-group {
  margin-bottom: 18px;
}

.checklist-group h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.check-item:hover {
  background: #fff;
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-teal);
  flex-shrink: 0;
}

.check-item.done {
  opacity: 0.62;
  background: #f0f5f2;
}

.check-item.done .check-text {
  text-decoration: line-through;
}

.check-text {
  font-size: 14px;
  font-weight: 600;
}

.check-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Taxi / Driver Big Card Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 19, 30, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.taxi-card {
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 540px;
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.taxi-card-kicker {
  display: inline-block;
  background: #141923;
  color: #ffe89e;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.taxi-card-name {
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px;
}

.taxi-card-addr {
  font-size: clamp(19px, 4.5vw, 24px);
  font-weight: 700;
  line-height: 1.45;
  background: #f6f2ea;
  border: 2px solid #141923;
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 12px;
}

.taxi-card-note {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #141923;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 120;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Quick Bottom Bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(20, 25, 35, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.mobile-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.mobile-bar a span.icon {
  font-size: 17px;
  line-height: 1.1;
}

.mobile-bar a:hover {
  color: #ffe89e;
}

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 820px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 390px;
  }
  .day-body {
    padding: 16px 14px 20px;
  }
  .timeline {
    padding-left: 18px;
  }
  .slot::before {
    left: -17px;
  }
  .kv-row {
    grid-template-columns: 78px 1fr;
  }
}

@media print {
  .sticky-nav, .mobile-bar, .toolbar, .btn-row {
    display: none !important;
  }
  .day-card {
    break-inside: avoid;
    box-shadow: none;
  }
  body {
    background: #fff;
    padding-bottom: 0;
  }
}
