:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --border: #e5dfd3;
  --ink: #1c242b;
  --muted: #5a6570;
  --pine: #1b4332;
  --pine-mid: #2d6a4f;
  --pine-light: #e6f4ec;
  --terracotta: #d95d39;
  --terracotta-dark: #b94626;
  --terracotta-light: #fdf0eb;
  --amber: #d97706;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(28, 36, 43, 0.05);
  --shadow-md: 0 10px 30px rgba(28, 36, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pine);
  font-size: 1.25rem;
}

.brand-name {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--pine);
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--pine-light);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

.status-pill.is-offline {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.is-offline .status-dot {
  background: #d97706;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

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

.btn-pine:hover {
  background: var(--pine-mid);
}

.btn-ai {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border-color: transparent;
}

.btn-ai:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-google {
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.auth-area {
  display: flex;
  align-items: center;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pine-light);
}

.user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Roadtrip Photos Modal & Gallery */
.photos-hero {
  background: linear-gradient(135deg, #0369a1 0%, #0f766e 55%, #d95d39 100%);
}

.photo-upload-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.photo-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.photo-upload-card input[type='text'],
.photo-upload-card input[type='file'] {
  width: 100%;
  padding: 0.52rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
}

.photos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.photo-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

.photo-card-body {
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.photo-card-loc {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.photo-card-cap {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.photo-card-meta {
  margin-top: auto;
  padding-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--pine-mid);
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(92vw, 480px);
  text-align: center;
}

.update-banner {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: var(--pine);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 94vw;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost[aria-pressed='true'] {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 0.72rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--terracotta-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Hero & Planner Panel */
.hero {
  padding: 2.2rem 0 1.5rem;
  background: radial-gradient(circle at 85% 10%, rgba(217, 93, 57, 0.11), transparent 45%),
    radial-gradient(circle at 12% 20%, rgba(27, 67, 50, 0.1), transparent 48%);
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.region-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.region-pill:hover:not(:disabled) {
  border-color: var(--pine);
}

.region-pill:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.72;
}

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

.region-pill[data-region-id='roads-less-travelled'] {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.region-pill[data-region-id='roads-less-travelled'].active {
  background: linear-gradient(135deg, #d95d39 0%, #d97706 100%);
  border-color: #d95d39;
  color: #fff;
}

.pill.highway-pill {
  background: rgba(254, 243, 199, 0.96);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.region-pill small {
  font-weight: 600;
  font-size: 0.68rem;
  opacity: 0.78;
}

/* Profile Banner & Modal */
.profile-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fffdf9 0%, var(--pine-light) 100%);
  border: 1px solid #c6e5d3;
}

.profile-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-banner-text strong {
  font-size: 0.92rem;
  color: var(--pine);
}

.profile-banner-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.profile-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 55%, #d95d39 100%);
}

.profile-questions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.profile-home-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf9 0%, var(--pine-light) 100%);
  border: 1px solid #c6e5d3;
}

.profile-home-card input[type='text'] {
  width: 100%;
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.profile-bucket-card {
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
}

.profile-bucket-card input[type='text'] {
  width: 100%;
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fdba74;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
}

.bucket-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  color: #713f12;
  border: 1px solid #eab308;
}

.attraction-tag.interest-highlight {
  background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
  color: #6b21a8;
  border-color: #c084fc;
  box-shadow: 0 1px 4px rgba(107, 33, 168, 0.16);
}

.profile-q-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-q-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-opt-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-opt-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-opt-btn:hover {
  border-color: var(--pine-mid);
}

.profile-opt-btn.selected {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.match-badge.high {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.profile-reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-reason-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-mid);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--ink);
}

.hero-lead {
  margin: 0;
  font-size: 1.03rem;
  color: var(--muted);
}

.planner-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.planner-top {
  display: grid;
  grid-template-columns: auto 1fr 220px;
  gap: 1rem;
  align-items: end;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.mode-group {
  display: inline-flex;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mode-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.city-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: end;
}

.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field select {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.field select:focus {
  outline: 2px solid var(--pine-mid);
  border-color: var(--pine-mid);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--terracotta-light);
}

.days-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.days-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.days-field input[type='range'] {
  width: 100%;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.days-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: -2px;
}

/* National Parks Spotlight & Highlights */
.planner-filters {
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.collapsible-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.collapsible-section.np-collapsible {
  background: linear-gradient(90deg, var(--pine-light) 0%, #f4faf6 100%);
  border-color: #c6e5d3;
}

.collapsible-section.attractions-collapsible {
  background: linear-gradient(90deg, #fff7ed 0%, #fefce8 100%);
  border-color: #fed7aa;
}

.collapsible-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.86rem;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.summary-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.summary-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.active-summary-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--terracotta);
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
}

.np-collapsible .active-summary-pill {
  background: var(--pine);
}

.summary-chevron {
  font-size: 0.95rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.collapsible-section[open] .summary-chevron {
  transform: rotate(180deg);
}

.collapsible-body {
  padding: 0.25rem 0.9rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.np-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--pine-light) 0%, #f1f8f4 100%);
  border: 1px solid #c6e5d3;
}

.np-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid var(--pine-mid);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.np-toggle-btn[aria-pressed='true'] {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}

.np-badge-icon {
  font-size: 1.25rem;
}

.np-toggle-text strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.15;
}

.np-toggle-text small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
}

.toggle-switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.18s ease;
  margin-left: 0.25rem;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.np-toggle-btn[aria-pressed='true'] .toggle-switch {
  background: #4ade80;
}

.np-toggle-btn[aria-pressed='true'] .toggle-switch::after {
  transform: translateX(14px);
}

.park-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
}

.park-chip {
  border: 1px solid #b5dcc4;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pine);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.park-chip:hover {
  border-color: var(--pine);
  background: #fff;
}

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

.attractions-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #fff7ed 0%, #fefce8 100%);
  border: 1px solid #fed7aa;
}

.attractions-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9a3412;
  white-space: nowrap;
}

.attraction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
}

.attraction-chip {
  border: 1px solid #fdba74;
  background: rgba(255, 255, 255, 0.88);
  color: #9a3412;
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.attraction-chip:hover {
  border-color: var(--terracotta);
  background: #fff;
}

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

.attraction-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.highlights-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.2rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--terracotta);
}

.chip.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  font-weight: 600;
}

/* Driving & Travel Preferences Bar */
.driving-prefs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.pref-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pref-field label,
.pref-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pref-field select {
  padding: 0.48rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.mini-segment {
  display: inline-flex;
  background: var(--bg);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.pref-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pref-chip:hover {
  border-color: var(--pine-mid);
}

.pref-chip[aria-pressed='true'] {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.driving-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.drive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.drive-badge.good {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Main Workspace */
.workspace {
  padding: 1rem 0 3.5rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-header h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
}

.results-header p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.sort-wrap select {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

/* Trip Cards */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.15rem;
}

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

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6c8b2;
}

.trip-card.is-highlighted {
  border-color: var(--terracotta);
  box-shadow: 0 12px 32px rgba(217, 93, 57, 0.16);
}

.trip-banner {
  position: relative;
  padding: 1.15rem 1.15rem 1rem;
  color: #fff;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trip-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(6px);
  color: #fff;
}

.pill.loop-pill {
  background: rgba(255, 255, 255, 0.92);
  color: var(--pine);
}

.pill.reverse-pill {
  background: rgba(254, 243, 199, 0.95);
  color: #92400e;
}

.pill.pace-rapid {
  background: rgba(254, 226, 226, 0.95);
  color: #991b1b;
}

.pill.pace-relaxed {
  background: rgba(220, 252, 231, 0.95);
  color: #166534;
}

.pill.pace-soak {
  background: rgba(254, 243, 199, 0.96);
  color: #92400e;
}

.bookmark-btn {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.bookmark-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.6);
}

.bookmark-btn.saved {
  background: #fff;
  color: var(--terracotta);
}

.trip-route-line {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 0.7rem;
}

.trip-title {
  margin: 0.15rem 0 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.2;
}

.trip-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.trip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.trip-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.np-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.np-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--pine-light);
  color: var(--pine);
  border: 1px solid #c3e4d0;
}

.must-see-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--ink);
}

.must-see-list li {
  margin-bottom: 0.2rem;
}

.trip-trivia-teaser {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.trip-trivia-teaser strong {
  color: #92400e;
}

.modal-trivia-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.25rem;
}

.modal-trivia-box h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #92400e;
}

.modal-trivia-box ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: #78350f;
}

.modal-trivia-box li {
  margin-bottom: 0.35rem;
}

.trip-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.trip-footer .btn {
  flex: 1;
}

/* Custom Route Builder Card */
.custom-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fffdf9 0%, #f3f9f5 100%);
  border: 1.5px dashed var(--pine-mid);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-card h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--pine);
}

/* Sticky Map Sidebar */
.map-column {
  position: sticky;
  top: 84px;
}

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

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.map-header h3 {
  margin: 0;
  font-size: 1rem;
}

.map-header p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot.city {
  background: var(--terracotta);
}

.dot.park {
  background: var(--pine);
}

.map-canvas-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#route-map {
  display: block;
  width: 100%;
  height: auto;
}

.state-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  fill: #b9aa90;
  pointer-events: none;
}

.ocean-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  fill: #7aaac7;
  pointer-events: none;
}

.map-route-path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 5;
  animation: routeFlow 22s linear infinite;
}

.map-route-path.secondary {
  stroke: #94a3b8;
  stroke-width: 1.8;
  stroke-dasharray: none;
  opacity: 0.35;
  animation: none;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -160;
  }
}

.map-city-group {
  cursor: pointer;
}

.map-city-pin {
  fill: var(--terracotta);
  stroke: #fff;
  stroke-width: 2.5;
  filter: url(#pinShadow);
  transition: r 0.15s ease;
}

.map-city-group:hover .map-city-pin,
.map-city-group.active .map-city-pin {
  fill: var(--ink);
}

.map-city-label {
  font-size: 10px;
  font-weight: 700;
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-park-group {
  cursor: pointer;
}

.map-park-pin {
  fill: var(--pine);
  stroke: #fff;
  stroke-width: 2;
}

.map-park-group.active .map-park-pin {
  fill: #15803d;
  stroke: #fef08a;
  stroke-width: 2.5;
}

.map-park-label {
  font-size: 9.5px;
  font-weight: 700;
  fill: var(--pine);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
}

.map-quick-info {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.modal-sheet {
  position: relative;
  width: min(820px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.modal-hero {
  padding: 2rem 1.75rem 1.5rem;
  color: #fff;
}

.modal-hero h2 {
  margin: 0.4rem 0 0.35rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.modal-content {
  padding: 1.5rem 1.75rem 2rem;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.stat-box span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.stat-box strong {
  font-size: 1rem;
  color: var(--ink);
}

.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.day-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--pine);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  background: var(--surface-soft);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.day-header h4 {
  margin: 0;
  font-size: 1rem;
}

.day-drive {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  white-space: nowrap;
}

.day-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0;
}

.stop-pill {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  font-weight: 500;
}

.day-tip {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--pine);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--surface);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-inner p {
  margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .planner-top {
    grid-template-columns: 1fr;
  }

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

  .map-column {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .container {
    width: 94vw;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
    gap: 0.55rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .header-actions::-webkit-scrollbar,
  .region-bar::-webkit-scrollbar,
  .park-chips::-webkit-scrollbar,
  .attraction-chips::-webkit-scrollbar,
  .chip-list::-webkit-scrollbar {
    display: none;
  }

  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header-actions .status-pill {
    display: none;
  }

  .hero {
    padding: 1.2rem 0 1rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .planner-panel {
    padding: 0.9rem;
    border-radius: var(--radius-md);
  }

  /* Smooth horizontal swipe rails for filter chip collections on mobile */
  .region-bar,
  .park-chips,
  .attraction-chips,
  .chip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    max-width: 100%;
  }

  .region-pill,
  .park-chip,
  .attraction-chip,
  .chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .np-spotlight,
  .attractions-spotlight {
    padding: 0.65rem 0.75rem;
  }

  .np-toggle-btn {
    width: 100%;
    justify-content: space-between;
  }

  .mode-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .mode-btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
    text-align: center;
  }

  .driving-prefs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .mini-segment {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .seg-btn {
    padding: 0.45rem 0.35rem;
    font-size: 0.76rem;
    text-align: center;
  }

  .pref-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pref-chip {
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.5rem 0.55rem;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .sort-wrap {
    width: 100%;
  }

  .sort-wrap .btn-ai,
  .sort-wrap select {
    flex: 1;
    min-height: 40px;
  }

  .trips-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-banner-actions {
    width: 100%;
  }

  .profile-banner-actions .btn {
    flex: 1;
  }

  /* Full-width bottom-sheet modals on mobile */
  .modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .modal-sheet {
    width: 100%;
    max-width: 100vw;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-hero,
  .modal-content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .profile-questions-list {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .city-selectors {
    grid-template-columns: 1fr;
  }

  .swap-btn {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* Sightseeing Variations & AI Agent Brainstorm Callout */
.trip-variations-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.7rem;
  margin-top: 0.15rem;
  border-radius: 10px;
  border: 1px dashed #c4b5fd;
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  color: #4c1d95;
  font-family: inherit;
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.trip-variations-teaser:hover {
  border-color: #7c3aed;
  transform: translateY(-1px);
}

.ai-hint-chip {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  white-space: nowrap;
}

.modal-variations-box {
  margin: 1.35rem 0 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f7ff 0%, #f0f9ff 100%);
  border: 1px solid #ddd6fe;
}

.variations-header {
  margin-bottom: 0.85rem;
}

.variations-header h4 {
  margin: 0 0 0.2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #3b0764;
}

.variations-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.variations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.variation-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.variation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.variation-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #5b21b6;
  background: #ede9fe;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.btn-variation-ai {
  border: 1px solid #c4b5fd;
  background: #faf5ff;
  color: #5b21b6;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-variation-ai:hover {
  background: #6d28d9;
  color: #fff;
  border-color: #6d28d9;
}

.variation-card h5 {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.variation-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.ai-brainstorm-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #4c1d95 0%, #1d4ed8 100%);
  color: #fff;
}

.ai-callout-text {
  flex: 1 1 280px;
}

.ai-callout-text strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.2rem;
}

.ai-callout-text p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.94;
}

.ai-brainstorm-callout .btn-ai {
  background: #fff;
  color: #4c1d95;
  border: none;
  font-weight: 800;
  white-space: nowrap;
}

.ai-brainstorm-callout .btn-ai:hover {
  background: #f5f3ff;
}

/* Roadtrip Blog & Article Reader */
.blog-hero {
  padding-bottom: 1.5rem;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.blog-main {
  padding-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

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

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

.blog-card-banner {
  padding: 1.15rem 1.2rem;
  color: #fff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-card-banner h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.3;
}

.blog-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.blog-card-body p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}

.blog-reader {
  max-width: 840px;
  margin: 0 auto;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero {
  padding: 2rem 2rem 1.8rem;
  color: #fff;
}

.article-hero h1 {
  margin: 0.75rem 0 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.22;
}

.article-subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.94;
}

.article-body {
  padding: 1.75rem 2rem 2.2rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.article-section {
  margin-bottom: 1.35rem;
}

.article-section h2 {
  margin: 0 0 0.45rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--pine);
}

.article-section p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
}

.article-footer-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .article-hero,
  .article-body {
    padding: 1.25rem;
  }
}

/* Editable Day-by-Day Checklist */
.itinerary-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.itinerary-head-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checklist-progress-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--pine);
  background: var(--pine-light);
  border: 1px solid #b7dcc6;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.day-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin: 0.55rem 0 0.65rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.42rem 0.6rem;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.checklist-item.is-done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.checklist-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.checklist-cb {
  width: 17px;
  height: 17px;
  accent-color: var(--pine);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item.is-done .checklist-text {
  text-decoration: line-through;
  color: var(--muted);
}

.checklist-remove-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.15rem 0.38rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.checklist-remove-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.checklist-add-form {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.checklist-add-input {
  flex: 1;
  min-width: 0;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--ink);
}

.checklist-add-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--pine);
}

.btn-add-stop {
  border: 1px solid var(--pine);
  background: var(--pine-light);
  color: var(--pine);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.72rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-add-stop:hover {
  background: var(--pine);
  color: #fff;
}

/* Fuel Cost Box, Full Route Maps Banner & Per-Monument Map Links */
.fuel-stat-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.route-maps-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid #bfdbfe;
}

.route-maps-banner strong {
  display: block;
  font-size: 0.9rem;
  color: #1e3a8a;
}

.route-maps-banner span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.checklist-item-actions,
.place-map-links {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.place-map-link {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.place-map-link.gmaps {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.place-map-link.gmaps:hover {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.place-map-link.amaps {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.place-map-link.amaps:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

@media (max-width: 600px) {
  .checklist-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .checklist-item-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.15rem;
  }
}
