:root {
  --bg: #f6efe4;
  --paper: rgba(255, 250, 242, 0.84);
  --ink: #1f2430;
  --muted: #625d58;
  --line: rgba(61, 50, 38, 0.12);
  --gold: #c47c2f;
  --rust: #b6523d;
  --pine: #2f5d50;
  --lake: #5b7c99;
  --berry: #7c384c;
  --shadow: 0 24px 80px rgba(74, 49, 28, 0.12);
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 182, 103, 0.28), transparent 35%),
    radial-gradient(circle at top right, rgba(91, 124, 153, 0.18), transparent 32%),
    linear-gradient(180deg, #f7f1e7 0%, #efe2d0 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  pointer-events: none;
  opacity: 0.5;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 247, 238, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.brand,
.main-nav a,
.button,
.photo-slot span { text-decoration: none; }

.brand {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.main-nav a {
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(196, 124, 47, 0.14);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero,
.journal-intro,
.map-layout {
  display: grid;
  gap: 1.5rem;
}

.hero {
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  padding: 2rem 0 1rem;
}

.hero-copy,
.trip-summary,
.map-copy,
.map-panel,
.feature-panel,
.timeline-card,
.journal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy,
.map-copy,
.map-panel { padding: 2rem; }

.hero-copy::after,
.map-panel::after,
.journal-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(244, 132, 95, 0.18), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  margin-bottom: 1rem;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 2rem; }

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 55ch;
  font-size: 1.05rem;
}

.hero-actions,
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions { margin-top: 1.8rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--rust), var(--gold));
  color: #fffaf4;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  border-color: rgba(61, 50, 38, 0.12);
}

.trip-summary {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(160deg, rgba(255, 247, 238, 0.92), rgba(233, 220, 199, 0.78)),
    var(--paper);
}

.summary-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.summary-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}

.section-heading { margin: 3rem 0 1.2rem; }
.section-heading.compact { margin-top: 4rem; }

.timeline-grid,
.feature-grid,
.journal-grid {
  display: grid;
  gap: 1.2rem;
}

.timeline-grid { grid-template-columns: repeat(12, 1fr); }

.timeline-card {
  padding: 1.4rem;
  min-height: 170px;
}

.timeline-card:nth-child(1),
.timeline-card:nth-child(2),
.timeline-card:nth-child(3),
.timeline-card:nth-child(4),
.timeline-card:nth-child(5),
.timeline-card:nth-child(6),
.timeline-card:nth-child(7),
.timeline-card:nth-child(8) { grid-column: span 3; }

.timeline-card:nth-child(9),
.timeline-card:nth-child(10),
.timeline-card:nth-child(11) { grid-column: span 4; }

.timeline-date,
.journal-date {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.52);
}

.accent-flight { border-top: 6px solid var(--lake); }
.accent-prague { border-top: 6px solid var(--pine); }
.accent-route { border-top: 6px solid var(--gold); }
.accent-castle { border-top: 6px solid var(--berry); }
.accent-berlin { border-top: 6px solid var(--rust); }
.accent-nature { border-top: 6px solid #3f7f6a; }

.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-panel { padding: 1.6rem; }

.journal-intro {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin: 1.6rem 0 1.4rem;
}

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

.journal-card { padding: 1.4rem; }
.journal-header { margin-bottom: 1rem; }
.journal-header p { margin-top: 0.8rem; }

.journal-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
}

.journal-note {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.journal-note:focus,
.photo-slot:focus-within {
  outline: 2px solid rgba(196, 124, 47, 0.4);
  outline-offset: 2px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.photo-slot {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.8rem;
  border: 1px dashed rgba(61, 50, 38, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  overflow: hidden;
}

.photo-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-slot img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.photo-slot.filled { padding: 0.45rem; }
.photo-slot.filled span { display: none; }
.photo-slot.filled img { display: block; }

.map-layout {
  grid-template-columns: 0.95fr 1.35fr;
  align-items: start;
  margin-top: 1.2rem;
}

.map-legend {
  margin: 1.4rem 0;
  color: var(--ink);
  font-weight: 700;
}

.legend-dot,
.legend-line {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.city-dot { background: var(--lake); }
.castle-dot { background: var(--berry); }

.legend-line {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--rust));
}

.route-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.map-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-frame {
  fill: rgba(255, 248, 239, 0.72);
  stroke: rgba(61, 50, 38, 0.08);
  stroke-width: 1.5;
}

.country-a { fill: rgba(226, 211, 184, 0.85); }
.country-b { fill: rgba(255, 248, 237, 0.8); }

.route-line {
  fill: none;
  stroke: url(#map-glow);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 12;
}

.stop-dot {
  stroke: #fff8ef;
  stroke-width: 3;
}

.stop-dot.city { fill: var(--lake); }
.stop-dot.castle { fill: var(--berry); }

.stop-group text {
  fill: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .hero,
  .map-layout,
  .journal-intro,
  .feature-grid,
  .journal-grid { grid-template-columns: 1fr; }

  .timeline-card,
  .timeline-card:nth-child(1),
  .timeline-card:nth-child(2),
  .timeline-card:nth-child(3),
  .timeline-card:nth-child(4),
  .timeline-card:nth-child(5),
  .timeline-card:nth-child(6),
  .timeline-card:nth-child(7),
  .timeline-card:nth-child(8),
  .timeline-card:nth-child(9),
  .timeline-card:nth-child(10),
  .timeline-card:nth-child(11) { grid-column: span 12; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 1rem, 1180px); }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-strip { grid-template-columns: 1fr; }

  .journal-card,
  .hero-copy,
  .map-copy,
  .map-panel { padding: 1.15rem; }

  h1 { line-height: 1; }
  .stop-group text { font-size: 15px; }
}
