/*
  Page layout and component styling for the itinerary UI.
  Exports: hero, map, day, gallery, budget and responsive rules.
  Deps: base.css variables, Leaflet DOM.
*/
.hero {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(18, 14, 10, 0.78), rgba(18, 14, 10, 0.22) 58%, rgba(18, 14, 10, 0.06));
}

.hero-copy {
  color: white;
  max-width: 760px;
  padding: 22vh clamp(22px, 7vw, 88px) 14vh;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(54px, 10vw, 128px);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 250, 242, 0.86);
  max-width: 640px;
}

.eyebrow {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.trip-stat {
  color: rgba(255, 250, 242, 0.82);
  font-weight: 800;
}

.intro {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.route-section,
.budget-section {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 72px);
}

.route-copy,
.budget-copy {
  align-self: center;
}

.route-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.route-list button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.route-list button:hover,
.route-list button.active {
  background: var(--ink);
  color: var(--surface);
}

.section-head,
.gallery-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.day-tabs,
.budget-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-tabs button,
.budget-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  min-height: 40px;
  padding: 0 14px;
}

.day-tabs button.active,
.budget-tabs button.active {
  background: var(--green);
  color: white;
}

.day-panel {
  background: var(--surface);
  display: grid;
  gap: 0;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 520px;
}

.day-panel img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.day-content {
  align-self: center;
  padding: clamp(28px, 5vw, 64px);
}

.day-content h3 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.95;
  margin-bottom: 20px;
}

.day-meta {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.day-points {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
}

.day-points span {
  color: var(--muted);
  line-height: 1.45;
}

.gallery { padding: clamp(72px, 10vw, 120px) 0; }

.gallery-head { padding: 0 clamp(20px, 6vw, 72px); }

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.photo-tile {
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.photo-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
  width: 100%;
}

.photo-tile:hover img { transform: scale(1.05); }

.photo-tile span {
  background: rgba(28, 27, 24, 0.74);
  bottom: 18px;
  color: white;
  font-weight: 800;
  left: 18px;
  padding: 10px 12px;
  position: absolute;
}

.budget-tool {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}

.budget-total {
  border-bottom: 1px solid var(--line);
  margin: 28px 0 24px;
  padding-bottom: 22px;
}

.budget-total span,
.budget-total small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.budget-total strong {
  display: block;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  margin: 8px 0;
}

.budget-lines {
  display: grid;
  gap: 14px;
  margin: 0;
}

.budget-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.budget-row dt { color: var(--muted); }

.budget-row dd {
  font-weight: 900;
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 6vw, 72px);
}

.footer p {
  font-size: 14px;
  margin: 0 0 8px;
}

.footer a { text-decoration: underline; }
