:root {
  --bg: #f4f0e8;
  --surface: rgba(255, 250, 242, 0.88);
  --surface-strong: #fffaf2;
  --border: rgba(74, 61, 48, 0.14);
  --text: #1f1b18;
  --muted: #5e554d;
  --accent: #0c6d63;
  --accent-soft: #dcefe8;
  --warm: #c96f39;
  --shadow: 0 18px 44px rgba(40, 26, 14, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(201, 111, 57, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 109, 99, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f1e7 0%, #efe8dc 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  padding: 20px;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}

.sidebar,
.hero-card,
.panel,
.timeline-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  border-radius: 24px;
  padding: 24px;
  overflow: auto;
}

.brand-block h1,
.hero-copy h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

.brand-block h1 {
  font-size: 2rem;
  margin-top: 6px;
}

.subtle,
.hero-summary,
.panel-header p,
#timelineHint,
.timeline-copy,
.timeline-meta p,
.rain-plan,
.checklist label {
  color: var(--muted);
}

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

.sidebar-section {
  margin-top: 26px;
}

.section-title-row,
.panel-header,
.timeline-card-head,
.hero-stats,
.timeline-meta,
.tool-grid,
.map-actions,
.timeline-actions {
  display: flex;
  gap: 12px;
}

.section-title-row,
.panel-header {
  align-items: center;
  justify-content: space-between;
}

.section-title-row h2,
.panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.day-tabs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.day-tab,
.tool-button,
.link-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.day-tab {
  text-align: left;
  padding: 14px;
  cursor: pointer;
}

.day-tab:hover,
.tool-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.day-tab.active {
  background: linear-gradient(135deg, rgba(12, 109, 99, 0.14), rgba(201, 111, 57, 0.12));
  border-color: rgba(12, 109, 99, 0.32);
}

.day-tab strong,
.day-tab span {
  display: block;
}

.day-tab span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-grid {
  flex-wrap: wrap;
  margin-top: 14px;
}

.tool-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tool-button.accent,
.link-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link-button.secondary {
  background: #fff;
  color: var(--text);
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.checklist-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 12px;
}

.main-content {
  display: grid;
  gap: 20px;
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-copy {
  padding: 28px;
}

.hero-copy h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-top: 8px;
}

.hero-summary {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 62ch;
}

.hero-stats {
  flex-wrap: wrap;
  margin-top: 22px;
}

.stat {
  min-width: 160px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  border: 1px solid rgba(74, 61, 48, 0.1);
}

.stat-label,
.timeline-duration,
.timeline-time,
.transport-time,
.timeline-place,
.timeline-meta h5 {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-value {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

.hero-media {
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 20px;
}

.timeline-panel,
.panel {
  border-radius: 24px;
  padding: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
}

.timeline-time {
  font-weight: 700;
  color: var(--warm);
  padding-top: 16px;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(74, 61, 48, 0.1);
  border-radius: 20px;
  padding: 16px;
}

.timeline-card-head {
  justify-content: space-between;
  align-items: start;
}

.timeline-place {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.timeline-card h4,
.timeline-meta h5 {
  margin: 0;
}

.transport-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.transport-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.timeline-meta {
  margin-top: 16px;
  flex-wrap: wrap;
}

.timeline-meta > div {
  flex: 1 1 220px;
}

.map-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.copy-link-button {
  border: 0;
  background: transparent;
  color: var(--warm);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.copy-link-button:hover {
  text-decoration: underline;
}

.side-panels {
  display: grid;
  gap: 20px;
}

.route-diagram {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.route-stop {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.route-stop-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.route-stop-copy {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(74, 61, 48, 0.1);
  border-radius: 14px;
}

.route-stop-copy strong,
.route-stop-copy span {
  display: block;
}

.route-stop-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.map-actions,
.timeline-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

.detail-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

.detail-list li + li {
  margin-top: 8px;
}

.rain-plan {
  margin-top: 12px;
  line-height: 1.65;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .app-shell,
  .content-grid,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .hero-media {
    max-height: 320px;
  }
}

@media (max-width: 700px) {
  body {
    padding: 12px;
  }

  .sidebar,
  .hero-copy,
  .timeline-panel,
  .panel {
    padding: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-time {
    padding-top: 0;
  }
}
