:root {
  --paper: #f6f1e7;
  --ink: #1d2635;
  --muted: #66788f;
  --line: rgba(255,255,255,0.12);
  --blue: #a5761f;
  --green: #2f7b57;
  --rose: #b84a37;
  --panel: rgba(255,253,248,0.72);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf8, var(--paper));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  min-height: 104px;
  padding: 22px clamp(22px, 5vw, 64px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: rgba(246,241,231, 0.92);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.brand-title { font-size: clamp(24px, 2vw, 30px); font-weight: 840; white-space: nowrap; }
nav { display: flex; gap: 10px; color: #4a5a75; font-size: 15px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: rgba(255,253,248,0.72);
  font-weight: 780;
  white-space: nowrap;
}
nav a[aria-current="page"], nav a:hover {
  border-color: rgba(165,118,31, 0.3);
  background: rgba(165,118,31, 0.09);
  color: var(--blue);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.shared-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
  margin-bottom: 24px;
}

.shared-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 860;
}

.shared-hero p {
  max-width: 720px;
  color: #4a5a75;
  font-size: 17px;
  line-height: 1.72;
}

.hero-panel,
.note-panel,
.info-card,
.plan-section,
.destination-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0,0,0,0.45);
}

.hero-panel { padding: 18px; }
.hero-panel b { display: block; font-size: 46px; line-height: 1; }
.hero-panel span { display: block; margin-top: 6px; color: #4a5a75; font-weight: 780; }
.hero-panel small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.55; }

.shared-calendar {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0,0,0,0.45);
}
.calendar-heading,
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.calendar-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}
.calendar-year-switch { display: flex; gap: 8px; }
.calendar-year-switch button,
.calendar-arrow {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: rgba(255,253,248, 0.8);
  color: #4a5a75;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}
.calendar-year-switch button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.calendar-toolbar { margin: 18px 0 10px; }
.calendar-toolbar strong { font-size: 20px; }
.calendar-arrow:disabled { cursor: default; opacity: 0.35; }
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays span {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(0,0,0,0.1);
  border-right: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 820;
}
.calendar-weekdays span:last-child { border-right: 1px solid rgba(0,0,0,0.1); }
.calendar-day {
  min-width: 0;
  min-height: 104px;
  padding: 8px;
  border-left: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,253,248, 0.5);
}
.calendar-day:nth-child(7n) { border-right: 1px solid rgba(0,0,0,0.1); }
.calendar-day time {
  display: block;
  margin-bottom: 8px;
  color: #4a5a75;
  font-size: 12px;
  font-weight: 820;
}
.calendar-day.is-outside { background: rgba(255,255,255,0.05); }
.calendar-day.is-outside time { color: rgba(255,255,255,0.05); }
.calendar-event {
  display: block;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--event-color), transparent 70%);
  border-radius: 7px;
  background: color-mix(in srgb, var(--event-color), transparent 88%);
  color: var(--event-color);
  font-size: 11px;
  font-weight: 840;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.calendar-event:hover,
.calendar-event:focus-visible { background: color-mix(in srgb, var(--event-color), transparent 80%); }
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: #4a5a75;
  font-size: 12px;
  font-weight: 760;
}
.calendar-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--legend-color);
}

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

.destination-card {
  display: grid;
  min-height: 300px;
  padding: 20px;
  overflow: hidden;
}
.destination-card[data-accent="green"] { --accent: var(--green); }
.destination-card[data-accent="rose"] { --accent: var(--rose); }
.destination-card[data-accent="gold"] { --accent: #b9852f; }
.destination-card[data-accent="olive"] { --accent: #6f7f36; }
.destination-card[data-accent="stone"] { --accent: #7a5c3a; }
.destination-card[data-accent="teal"] { --accent: #2c8a7a; }
.destination-card[data-accent="blue"] { --accent: var(--blue); }
.destination-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent), transparent 62%);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 86%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 840;
}
.season { color: var(--muted); font-size: 13px; font-weight: 760; }
.destination-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}
.destination-card p {
  margin: 0;
  color: #4a5a75;
  font-size: 16px;
  line-height: 1.7;
}
.route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.route-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,253,248,0.72);
  border: 1px solid rgba(0,0,0,0.1);
  color: #4a5a75;
  font-size: 12px;
  font-weight: 780;
}
.open-link {
  align-self: end;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 24px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 820;
}

.plan-page {
  display: grid;
  gap: 18px;
}
.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 820;
}
.plan-hero {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: rgba(255,253,248,0.76);
}
.plan-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}
.plan-hero p {
  max-width: 780px;
  color: #4a5a75;
  font-size: 17px;
  line-height: 1.7;
}
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.quick-facts span {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,253,248,0.84);
  border: 1px solid rgba(0,0,0,0.1);
  color: #4a5a75;
  font-size: 13px;
  font-weight: 780;
}
.plan-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}
.info-card,
.plan-section,
.note-panel { padding: 20px; }
.info-card h2,
.plan-section h2,
.note-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.info-list,
.idea-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-list li,
.idea-list li {
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: #4a5a75;
  line-height: 1.62;
}
.info-list li:first-child,
.idea-list li:first-child { border-top: 0; padding-top: 0; }
.info-list b,
.idea-list b { color: var(--ink); }
.day-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.day-list li:first-child { border-top: 0; }
.day-list b { color: var(--blue); }
.day-list span { color: #4a5a75; line-height: 1.62; }

@media (max-width: 820px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .shared-hero,
  .destination-grid,
  .plan-grid { grid-template-columns: 1fr; }
  .destination-card,
  .plan-hero,
  .shared-calendar { min-width: 0; overflow: hidden; }
  .card-top { align-items: flex-start; flex-direction: column; }
  .season,
  .quick-facts span { max-width: 100%; overflow-wrap: anywhere; }
  .shared-hero h1,
  .plan-hero h1 { font-size: 42px; }
  .calendar-heading { align-items: flex-start; flex-direction: column; }
  .calendar-day { min-height: 82px; padding: 5px; }
  .calendar-event { padding: 5px; font-size: 9px; word-break: break-word; }
  .day-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== dark aviation theme: brand + header overrides ===== */
.brand-mark { color: #a5761f; font-size: 20px; line-height: 1; text-shadow:none; }
.brand-name { font-weight: 800; letter-spacing: .22em; font-size: 15px; white-space: nowrap; color: #1d2635; }
.site-header, header.site-header {
  min-height: 0 !important;
  padding: 14px clamp(18px, 4vw, 56px) !important;
  gap: 14px !important;
  background: rgba(246,241,231,.82) !important;
  border-bottom: 1px solid rgba(0,0,0,.07) !important;
}
.site-header .brand, header .brand { gap: 12px !important; }
.site-header nav, header nav { gap: 4px !important; }
.site-header nav a, header nav a {
  min-height: 0 !important;
  padding: 9px 15px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #66788f !important;
  font-weight: 600 !important;
}
.site-header nav a:hover, header nav a:hover { color: #7a5a12 !important; background: rgba(165,118,31,.1) !important; }
.site-header nav a[aria-current="page"], header nav a[aria-current="page"] {
  border-color: rgba(165,118,31,.4) !important;
  background: rgba(165,118,31,.12) !important;
  color: #7a5a12 !important;
}
