/* California Trip — apple.com product-page rhythm */

:root {
  --blue: #0066cc;
  --blue-hover: #0077ed;
  --link-on-dark: #2997ff;
  --link-on-dark-hover: #6cb4ff;
  --label: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --quaternary: #a1a1a6;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --separator: rgba(0, 0, 0, 0.088);
  --fill: rgba(0, 0, 0, 0.04);
  --nav-h: 48px;
  --content: 980px;
  --wide: 1260px;
  --copy: 720px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

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

/* ── Global nav ── */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(22, 22, 23, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.globalnav-inner,
.section-inner,
.footer-inner,
.day-body {
  width: min(var(--wide), calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

.globalnav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  white-space: nowrap;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 11px;
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.22s var(--ease);
}

.nav-link:hover { opacity: 1; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  overflow: hidden;
  padding: 96px 24px 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.19048;
}

.display {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(52px, 10.5vw, 96px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.015em;
}

.hero-copy {
  margin: 14px auto 0;
  max-width: 18em;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.21429;
  letter-spacing: 0.007em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  margin-top: 28px;
}

/* Text CTAs */
.btn,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.23536;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.btn::after,
.btn-text::after {
  content: " ›";
  margin-left: 0.12em;
  font-weight: 400;
}

.btn:hover,
.btn-text:hover { color: var(--blue-hover); }

.btn:focus-visible,
.btn-text:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
  border-radius: 4px;
}

.hero .btn {
  color: var(--link-on-dark);
  font-size: 21px;
  letter-spacing: 0.011em;
}

.hero .btn:hover { color: var(--link-on-dark-hover); }

/* ── Stay ribbon ── */
.ribbon {
  background: var(--bg);
  border-bottom: 1px solid var(--separator);
  padding: 40px 0;
}

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

.ribbon-item {
  text-align: center;
  padding: 4px 10px;
}

.ribbon-label {
  margin-bottom: 5px;
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.33337;
}

.ribbon-value {
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.2857;
}

/* ── Sections ── */
.section {
  background: var(--bg);
  padding: 0;
}

.section > .section-inner {
  padding: 120px 0 56px;
}

.section.gray {
  background: var(--bg-alt);
}

.section.gray > .section-inner {
  padding: 120px 0 40px;
}

.section.itinerary > .section-inner {
  padding-bottom: 24px;
}

.section-head {
  margin-bottom: 0;
}

.section-head.center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.headline {
  margin: 0;
  color: var(--label);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.07143;
  letter-spacing: -0.005em;
}

.section-copy {
  margin: 14px auto 0;
  max-width: 28em;
  color: var(--secondary);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.section-actions {
  margin-top: 18px;
}

.br-desktop { display: none; }
@media (min-width: 720px) {
  .br-desktop { display: inline; }
}

/* ── Overview photo tiles ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-decoration: none;
  color: inherit;
}

.overview-card:hover {
  transform: scale(1.015);
}

.overview-card:hover .overview-photo {
  transform: scale(1.04);
}

.overview-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.overview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.6s var(--ease);
  transform: scale(1.02);
}

.overview-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.overview-media-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.overview-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.overview-card h3 {
  margin: 0 0 8px;
  color: var(--label);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.16667;
  letter-spacing: 0.007em;
}

.overview-card p,
.overview-route {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overview-meta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--separator);
}

.overview-meta div {
  display: grid;
  grid-template-columns: 1.5em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: var(--label);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.overview-meta span {
  color: var(--tertiary);
  font-weight: 400;
}

/* ── Days: full-bleed Apple modules ── */
.days {
  display: grid;
  gap: 0;
}

.day-section {
  scroll-margin-top: var(--nav-h);
  background: var(--bg-alt);
}

.day-section:nth-child(even) {
  background: var(--bg);
}

/* full-bleed cover */
.day-cover {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: min(86svh, 820px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}

.day-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
}

.day-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.05) 38%,
    rgba(0, 0, 0, 0.28) 62%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.day-cover-caption {
  position: relative;
  z-index: 1;
  width: min(var(--wide), calc(100vw - 48px));
  margin: 0 auto;
  padding: 96px 0 64px;
}

.day-cover-kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.21053;
}

.day-cover-title {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.day-cover-credit { display: none; }

/* day body under cover */
.day-body {
  padding: 48px 0 96px;
}

.day-section:nth-child(odd) .day-body {
  /* gray parent already */
}

.day-top {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
  max-width: 820px;
}

.day-summary {
  margin: 0;
  color: var(--secondary);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.day-kicker,
.day-title {
  display: none;
}

/* stats: quiet horizontal meta, not a dense table */
.day-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.stat-key {
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.stat-val {
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.2857;
}

/* ── Timeline: always open, less interaction ── */
.timeline {
  max-width: 820px;
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.timeline-item {
  margin: 0;
  padding: 22px 24px 24px;
  border: 0;
  border-radius: 22px;
  background: var(--bg);
  overflow: hidden;
}

.day-section:nth-child(even) .timeline-item {
  background: var(--bg-alt);
}

.timeline-item.has-photo {
  padding: 0;
}

.timeline-photo {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transform: scale(1.02);
}

.timeline-copy {
  min-width: 0;
}

.timeline-item.has-photo .timeline-copy {
  padding: 20px 24px 24px;
}

.timeline-jump {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.timeline-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.timeline-time {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.33337;
  white-space: normal;
  overflow-wrap: anywhere;
}

.timeline-main {
  min-width: 0;
}

.timeline-name {
  display: block;
  color: var(--label);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19048;
  letter-spacing: 0.011em;
}

.timeline-brief {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.016em;
}

.chip,
.timeline-button,
.timeline-toggle,
.timeline-meta {
  display: none;
}

.timeline-body {
  margin-top: 14px;
  max-width: 40em;
}

.timeline-detail {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.47059;
  letter-spacing: -0.016em;
}

.timeline-extra {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.timeline-extra div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  color: var(--label);
  font-size: 13px;
  line-height: 1.42859;
}

.timeline-extra strong {
  color: var(--tertiary);
  font-weight: 400;
}

/* jump / map rows */
.timeline-jump-link {
  display: block;
  padding: 16px 20px 18px;
  border-radius: 18px;
  background: rgba(0, 102, 204, 0.04);
  transition: background-color 0.18s linear;
}

.timeline-jump-link:hover {
  background: rgba(0, 102, 204, 0.07);
}

.timeline-jump-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline-jump-main {
  margin-top: 4px;
  color: var(--label);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.016em;
}

.timeline-jump-meta {
  margin-top: 4px;
  color: var(--tertiary);
  font-size: 12px;
  line-height: 1.33337;
}

.timeline-jump-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--blue);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  box-shadow: none !important;
  transition: color 0.2s var(--ease);
}

.map-btn:hover { color: var(--blue-hover); }
.map-btn::after { content: " ›"; margin-left: 0.1em; }
.map-btn.primary {
  background: transparent !important;
  color: var(--blue);
  box-shadow: none !important;
}

.warning {
  max-width: 820px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.1);
  color: #9a5b00;
  font-size: 13px;
  line-height: 1.38462;
  letter-spacing: -0.01em;
}

/* ── Routes: one primary leg + few key stops ── */
.section#routes > .section-inner {
  padding: 120px 0 120px;
}

.route-board {
  display: grid;
  gap: 20px;
  margin-top: 56px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.route-day {
  padding: 28px 28px 24px;
  border: 0;
  border-radius: 28px;
  background: var(--bg-alt);
}

.route-day-head {
  display: grid;
  gap: 8px;
}

.route-day h3,
.route-day-title {
  margin: 0;
  color: var(--label);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.16667;
  letter-spacing: 0.007em;
}

.route-day-note {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.route-day-primary {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--separator);
}

.route-primary-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.route-primary-main {
  margin-top: 4px;
  color: var(--label);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.21053;
}

.route-grid {
  margin-top: 18px;
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}

.route-link {
  display: block;
  padding: 16px 18px;
  border-top: 1px solid var(--separator);
  transition: background-color 0.18s linear;
}

.route-link:first-child { border-top: 0; }
.route-link:hover { background: var(--fill); }

.route-label { display: none; }

.route-main {
  margin-top: 0;
  color: var(--label);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.4;
}

.route-sub {
  margin-top: 3px;
  color: var(--tertiary);
  font-size: 12px;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
}

/* ── Footer ── */
.footer {
  padding: 28px 0 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--separator);
}

.footer-inner {
  color: var(--tertiary);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  width: min(var(--wide), calc(100vw - 48px));
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ribbon-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ribbon-item { text-align: left; }

}

@media (max-width: 720px) {
  .globalnav-inner,
  .section-inner,
  .footer-inner,
  .day-body {
    width: min(var(--wide), calc(100vw - 32px));
  }

  .hero {
    min-height: 92svh;
    padding: 100px 20px 72px;
  }

  .eyebrow {
    font-size: 17px;
  }

  .display {
    font-size: clamp(44px, 12vw, 64px);
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-actions {
    gap: 28px;
    margin-top: 24px;
  }

  .hero .btn {
    font-size: 17px;
  }

  .section > .section-inner,
  .section.gray > .section-inner,
  .section#routes > .section-inner {
    padding-top: 80px;
  }

  .section#routes > .section-inner {
    padding-bottom: 80px;
  }

  .headline {
    font-size: clamp(32px, 9vw, 40px);
  }

  .section-copy {
    font-size: 19px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 14px;
  }

  .overview-card {
    border-radius: 22px;
  }

  .overview-body {
    padding: 18px 18px 20px;
  }

  .overview-card:hover {
    transform: none;
  }

  .day-cover {
    min-height: min(70svh, 560px);
  }

  .day-cover-caption {
    padding: 64px 0 44px;
    width: min(var(--wide), calc(100vw - 32px));
  }

  .day-cover-kicker {
    font-size: 17px;
  }

  .day-cover-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .day-body {
    padding: 32px 0 72px;
  }

  .day-summary {
    font-size: 19px;
  }

  .day-top {
    gap: 20px;
    margin-bottom: 28px;
  }

  .day-stats {
    gap: 8px 18px;
  }

  .timeline {
    gap: 10px;
  }

  .timeline-item {
    padding: 18px 18px 20px;
    border-radius: 18px;
  }

  .timeline-item.has-photo {
    padding: 0;
  }

  .timeline-item.has-photo .timeline-copy {
    padding: 16px 18px 18px;
  }

  .timeline-photo {
    aspect-ratio: 16 / 11;
  }

  .timeline-name {
    font-size: 19px;
  }

  .timeline-body {
    margin-top: 12px;
  }

  .route-board {
    margin-top: 36px;
    gap: 14px;
  }

  .route-day {
    padding: 22px 20px 18px;
    border-radius: 22px;
  }

  .route-day-title {
    font-size: 21px;
  }

  .route-primary-main {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .timeline-content,
  .timeline-toggle::after,
  .overview-card,
  .btn,
  .btn-text {
    transition: none;
  }
}
