/* ==========================================================================
   2027 四國露營車 6天5夜 一站式旅遊手冊 — Modern Setouchi Roadtrip Theme
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #f1ede4;
  --border: #e5dfd3;
  --border-strong: #d4cbb9;

  --text: #1c242b;
  --text-muted: #52606d;
  --text-light: #7b8794;

  --ocean: #0e4d6c;
  --ocean-dark: #09354d;
  --ocean-soft: #e6f2f8;
  --teal: #15808d;
  --teal-soft: #e4f5f7;

  --amber: #c96a16;
  --amber-soft: #fef3e4;
  --coral: #c94034;
  --coral-soft: #fdeceb;
  --forest: #1c7448;
  --forest-soft: #e6f6ee;
  --indigo: #43499e;
  --indigo-soft: #eef0fb;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 35, 50, 0.08);
  --shadow-lg: 0 18px 40px rgba(10, 28, 42, 0.16);

  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-num: 'Outfit', 'Noto Sans TC', sans-serif;
  --max-w: 1180px;
}

*, *::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(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #082d42, #125c7d);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(0.62) saturate(1.1);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 35, 52, 0.35) 0%,
    rgba(8, 35, 52, 0.58) 50%,
    rgba(7, 29, 44, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 0 28px;
}

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

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

.hero-badge.accent {
  background: rgba(217, 119, 6, 0.88);
  border-color: rgba(255, 232, 195, 0.45);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 20px;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.88);
  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.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.hero-stat-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2px;
}

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

/* ---------- Sticky Main Nav ---------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 35, 50, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.nav-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.nav-tab:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-tab.active {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 77, 108, 0.25);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--coral-soft);
  color: var(--coral);
}

.nav-tab.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---------- Main Content & Sections ---------- */
main {
  padding: 24px 0 64px;
}

.view-panel {
  display: none;
  animation: fadeIn 0.22s ease;
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Pickup Banner ---------- */
.pickup-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #fffdf9, #eef6fa);
  border: 1px solid #cfe2ec;
  border-left: 5px solid var(--ocean);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.pickup-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ocean-dark);
}

.pickup-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pickup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Day Selector Bar ---------- */
.day-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 16px;
}

.day-bar::-webkit-scrollbar {
  display: none;
}

.day-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 126px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: all 0.18s ease;
}

.day-pill:hover {
  border-color: var(--ocean);
  transform: translateY(-1px);
}

.day-pill.active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14, 77, 108, 0.24);
}

.day-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
}

.day-pill-title {
  font-size: 0.94rem;
  font-weight: 700;
  margin-top: 2px;
}

.day-pill-sub {
  font-size: 0.74rem;
  opacity: 0.75;
  margin-top: 1px;
}

.day-pill .wknd-dot {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
}

.day-pill.active .wknd-dot {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---------- Day Overview Card ---------- */
.day-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.day-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

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

.day-title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 800;
  color: var(--ocean-dark);
}

.day-route-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.route-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.metric-box {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Alerts / Callouts ---------- */
.callout {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.55;
}

.callout.warn {
  background: var(--amber-soft);
  border: 1px solid #f4d3a1;
  color: #7c3f08;
}

.callout.danger {
  background: var(--coral-soft);
  border: 1px solid #f5c2bd;
  color: #842118;
}

.callout.info {
  background: var(--ocean-soft);
  border: 1px solid #c3dfee;
  color: var(--ocean-dark);
}

.callout.success {
  background: var(--forest-soft);
  border: 1px solid #bce4ce;
  color: #115332;
}

/* ---------- Buttons & Pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ocean);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ocean-dark);
  color: #fff;
}

.btn-map {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: #bfe4e9;
}

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

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--ocean);
  color: var(--ocean);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.8rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

.tag-ocean { background: var(--ocean-soft); color: var(--ocean); }
.tag-teal { background: var(--teal-soft); color: var(--teal); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-coral { background: var(--coral-soft); color: var(--coral); }
.tag-forest { background: var(--forest-soft); color: var(--forest); }
.tag-indigo { background: var(--indigo-soft); color: var(--indigo); }
.tag-neutral { background: var(--surface-soft); color: var(--text-muted); }

/* ---------- Section Headings ---------- */
.section-block {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2, .section-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ocean-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Timeline ---------- */
.timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.timeline-item:first-child {
  padding-top: 2px;
}

.timeline-time {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ocean);
  background: var(--ocean-soft);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  height: fit-content;
}

.timeline-body h4 {
  margin: 0 0 3px;
  font-size: 0.96rem;
  font-weight: 700;
}

.timeline-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

/* ---------- Attraction Photo Grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spot-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spot-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e2e8ee;
  overflow: hidden;
  cursor: zoom-in;
}

.spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.spot-card:hover .spot-media img {
  transform: scale(1.04);
}

.spot-fee-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(12, 34, 48, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
}

.spot-fee-badge.free {
  background: rgba(21, 116, 72, 0.9);
}

.spot-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.spot-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
}

.spot-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.spot-desc {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex: 1;
}

.spot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.spot-meta strong {
  color: var(--text);
}

.spot-warning {
  font-size: 0.79rem;
  color: #933c09;
  background: var(--amber-soft);
  border-radius: 8px;
  padding: 6px 9px;
  margin-bottom: 10px;
}

.spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

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

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

.info-card.primary-choice {
  border: 2px solid var(--ocean);
  background: linear-gradient(180deg, #f6fbfe 0%, #ffffff 42%);
}

.info-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.info-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ocean-dark);
}

.info-card p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.rule-list {
  margin: 8px 0 10px;
  padding-left: 18px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.rule-list li {
  margin-bottom: 4px;
}

/* ---------- Booking Info Box (e.g. Sea Side M) ---------- */
.booking-box {
  background: linear-gradient(135deg, #eef9f4, #f4fbff);
  border: 1.5px solid #9fd4bc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 10px 0 12px;
}

.booking-box-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.booking-kv {
  background: #fff;
  border: 1px solid #d4e8df;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-kv span {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.booking-kv code {
  font-family: var(--font-num), monospace;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ocean-dark);
  letter-spacing: 0.03em;
}

.copy-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #b8d8e8;
  background: var(--ocean-soft);
  color: var(--ocean);
  font-size: 0.74rem;
  font-weight: 700;
}

.copy-btn:hover {
  background: var(--ocean);
  color: #fff;
}

.booking-contact {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .booking-rows {
    grid-template-columns: 1fr;
  }
}

/* ---------- Food & Supply Section ---------- */
.specialty-box {
  background: linear-gradient(135deg, #fffaf2, #fff);
  border: 1px solid #f0dec1;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.specialty-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f1e5d1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.specialty-item strong {
  display: block;
  color: var(--amber);
  margin-bottom: 2px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.filter-pill.active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: #fff;
}

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

.place-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.place-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.place-card h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.place-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}

/* ---------- Tables (Tolls / Fees) ---------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

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

th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--ocean-dark);
  white-space: nowrap;
}

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

tr.total-row td {
  background: var(--ocean-soft);
  font-weight: 800;
  color: var(--ocean-dark);
}

.right {
  text-align: right;
}

/* ---------- Budget Calculator ---------- */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.calc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.control-group input[type="number"] {
  width: 82px;
  padding: 7px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.calc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-tile {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.summary-tile.highlight {
  background: var(--ocean);
  color: #fff;
}

.summary-tile .label {
  font-size: 0.78rem;
  opacity: 0.82;
}

.summary-tile .value {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2px;
}

.summary-tile .sub {
  font-size: 0.76rem;
  opacity: 0.78;
}

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

.calc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.83rem;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s;
}

.calc-item:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.calc-item label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex: 1;
}

/* ---------- Campervan Spec & Guide ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.spec-box {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-box.warn {
  background: var(--amber-soft);
  border: 1px solid #f0cf99;
}

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

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
}

.check-row input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--ocean);
}

.check-row.done {
  opacity: 0.62;
  text-decoration: line-through;
  background: var(--surface-soft);
}

/* ---------- Directory Search ---------- */
.search-bar-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1 1 260px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
}

.search-input:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(14, 77, 108, 0.12);
}

/* ---------- Audit Log ---------- */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.audit-card.high {
  border-left: 4px solid var(--coral);
}

.audit-card.med {
  border-left: 4px solid var(--amber);
}

.audit-card.low {
  border-left: 4px solid var(--teal);
}

.audit-card h4 {
  margin: 6px 0 8px;
  font-size: 0.96rem;
}

.audit-diff {
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audit-old {
  background: var(--coral-soft);
  color: #842118;
  padding: 6px 10px;
  border-radius: 8px;
}

.audit-new {
  background: var(--forest-soft);
  color: #135432;
  padding: 6px 10px;
  border-radius: 8px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 28, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: #10202d;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.lightbox-inner img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #07111a;
}

.lightbox-caption {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-caption h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.lightbox-caption p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0 36px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .photo-grid, .place-grid, .calc-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stats, .day-metrics, .calc-summary-grid, .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .photo-grid, .place-grid, .dual-grid, .specialty-grid, .audit-grid, .checklist, .calc-check-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 320px;
  }
  .hero-content {
    padding: 28px 0 20px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .timeline-time {
    width: fit-content;
  }
  .day-header-card {
    padding: 16px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

@media print {
  .main-nav, .day-bar, .filter-pills, .search-bar-wrap, .lightbox {
    display: none !important;
  }
  .view-panel {
    display: block !important;
  }
  body {
    background: #fff;
  }
}
