:root {
  --ink: #121018;
  --paper: #fff9ef;
  --cream: #fff0ca;
  --acid: #d8ff3f;
  --glacier: #52d6ff;
  --coral: #ff5b45;
  --raspberry: #c71f5a;
  --pine: #073f35;
  --violet: #5a4bff;
  --shadow: 0 28px 70px rgba(18, 16, 24, 0.22);
  --radius: 8px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", Helvetica, sans-serif;
  --wide: "Bricolage Grotesque", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 91, 69, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(82, 214, 255, 0.18), transparent 32%),
    var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 255, 63, 0.32), transparent 24%),
    radial-gradient(circle at 86% 9%, rgba(255, 91, 69, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(7,63,53,0.08));
}

a {
  color: inherit;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 7px 7px;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--acid), var(--glacier));
  box-shadow: 0 0 26px rgba(255, 230, 109, 0.8);
}

.hero {
  min-height: 94svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 124px clamp(18px, 4vw, 64px) clamp(34px, 6vw, 72px);
  overflow: hidden;
  background: #121018;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: slowBurn 18s ease-out forwards;
  opacity: 0.82;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,16,24,0.86), rgba(18,16,24,0.3) 52%, rgba(18,16,24,0.7)),
    linear-gradient(0deg, rgba(18,16,24,0.78), transparent 55%);
}

.topbar {
  position: absolute;
  left: clamp(18px, 4vw, 64px);
  right: clamp(18px, 4vw, 64px);
  top: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: white;
}

.brand {
  text-decoration: none;
  font-family: var(--wide);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar__links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 12px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  color: white;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--wide);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--acid);
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.9;
  font-weight: 900;
}

.hero__copy {
  max-width: 660px;
  margin: 28px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.34rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

.hero__actions,
.day-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-family: var(--wide);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--acid);
  color: var(--ink);
}

.button--ghost {
  color: white;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.12);
}

.hero__panel {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(20px, 5vw, 62px);
  z-index: 2;
  width: min(260px, 30vw);
  padding: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero__panel span,
.hero__panel strong,
.hero__panel small {
  display: block;
}

.hero__panel strong {
  font-family: var(--display);
  font-size: 1.95rem;
  line-height: 0.95;
  color: var(--acid);
}

.hero__panel small {
  margin-top: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
}

main {
  position: relative;
}

.route-stage,
.days {
  padding: clamp(58px, 7vw, 96px) clamp(18px, 5vw, 80px);
}

.route-stage h2,
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 6.6rem);
  line-height: 0.9;
}

.route-stage__copy p {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.route-stage {
  position: relative;
  background:
    linear-gradient(90deg, rgba(199,31,90,0.13) 1px, transparent 1px),
    linear-gradient(rgba(7,63,53,0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7,63,53,0.08), rgba(255,255,255,0)),
    var(--cream);
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.route-stage::before {
  content: "ROAD LOG / LJUBLJANA - SALZBURG - INNSBRUCK - HOHE TAUERN";
  position: absolute;
  left: clamp(18px, 5vw, 80px);
  right: clamp(18px, 5vw, 80px);
  top: 18px;
  color: rgba(18,16,24,0.25);
  font-family: var(--wide);
  font-size: clamp(0.72rem, 1.3vw, 1rem);
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.route-stage__copy {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: 34px;
}

.route-stage__copy .eyebrow,
.route-stage__copy h2 {
  grid-column: 1;
}

.route-stage__copy p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.route-stage__copy h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 560px;
  background: #101016;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-canvas {
  position: relative;
  min-height: 560px;
  background:
    #111827;
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.25);
}

.google-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.05) contrast(1.04);
}

.map-controls-wrap {
  padding: 18px;
  background: #fff9ef;
}

.map-controls {
  display: grid;
  align-content: start;
  gap: 10px;
}

.map-route-link {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--acid);
  color: var(--ink);
  font-family: var(--wide);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18,16,24,0.14);
}

.map-button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--radius);
  padding: 13px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(18,16,24,0.08);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.map-button:hover,
.map-button.is-active {
  transform: translateX(-4px);
  background: var(--ink);
  color: white;
}

.map-button span,
.map-button strong {
  display: block;
}

.map-button span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--raspberry);
}

.map-button.is-active span {
  color: var(--acid);
}

.map-button strong {
  margin-top: 3px;
  font-family: var(--wide);
  font-size: 1rem;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.day-list {
  display: grid;
  gap: 22px;
}

.day-card {
  position: relative;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.75fr);
  overflow: hidden;
  background: #121018;
  color: white;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.day-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.14);
}

.day-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,16,24,0.88), rgba(18,16,24,0.5) 45%, rgba(18,16,24,0.13)),
    linear-gradient(0deg, rgba(18,16,24,0.8), transparent 45%);
}

.day-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 900ms ease, filter 900ms ease;
  filter: saturate(1.1) contrast(1.04);
}

.day-card.is-visible .day-card__image {
  transform: scale(1);
}

.day-card__content {
  padding: clamp(24px, 5vw, 56px);
  align-self: end;
}

.day-card__number {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--wide);
  font-weight: 800;
  box-shadow: 0 0 34px rgba(216,255,63,0.28);
}

.day-card h3 {
  margin: 0;
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 6.3rem);
  line-height: 0.88;
}

.day-card__summary {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.tag:hover {
  transform: translateY(-2px);
  background: var(--acid);
  color: var(--ink);
}

.day-card__details {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: clamp(20px, 4vw, 36px);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255,255,255,0.18);
}

.detail-panel {
  padding: 16px;
  background: rgba(18,16,24,0.6);
  border: 1px solid rgba(255,255,255,0.15);
}

.detail-panel strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--wide);
  color: var(--acid);
}

.detail-panel p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

.drive-segments {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.drive-segments li {
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
}

.drive-segments span,
.drive-segments strong {
  display: block;
}

.drive-segments span {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(255,255,255,0.72);
}

.drive-segments strong {
  margin: 3px 0 0;
  color: white;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.35;
}

.stop-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -6px 0 28px;
}

.stop-slide {
  position: relative;
  min-height: 278px;
  display: grid;
  grid-template-columns: minmax(120px, 0.44fr) minmax(0, 0.56fr);
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 48px rgba(18, 16, 24, 0.14);
}

.stop-slide::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(18,16,24,0.12);
}

.stop-slide:nth-child(3n + 1) {
  background: #fff4d3;
}

.stop-slide:nth-child(3n + 2) {
  background: #eafffb;
}

.stop-slide:nth-child(3n) {
  background: #fff0ef;
}

.stop-slide__media {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  background: var(--ink);
}

.stop-slide__image {
  display: block;
  height: 100%;
  min-height: inherit;
}

.stop-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(18,16,24,0.12)),
    radial-gradient(circle at 24% 20%, rgba(216,255,63,0.18), transparent 34%);
}

.stop-slide__image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 700ms ease, filter 700ms ease;
}

.stop-slide:hover .stop-slide__image img {
  transform: scale(1.13);
  filter: saturate(1.16) contrast(1.06);
}

.stop-slide__map-pill {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(18,16,24,0.72);
  color: white;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  font-family: var(--wide);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.stop-slide:hover .stop-slide__map-pill,
.stop-slide__map-pill:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.stop-slide__map-pill:hover {
  background: var(--acid);
  color: var(--ink);
}

.stop-slide__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.stop-slide__body span {
  font-family: var(--wide);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--raspberry);
  text-transform: uppercase;
}

.stop-slide__body h4 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 0.9;
}

.stop-slide__body h4 a {
  text-decoration: none;
}

.stop-slide__body p {
  margin: 0;
  color: rgba(18,16,24,0.72);
  line-height: 1.55;
}

.stop-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stop-slide__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border-radius: 999px;
  font-family: var(--wide);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.stop-slide__link--primary {
  background: var(--ink);
  color: white;
}

.stop-slide__link--map {
  background: rgba(18,16,24,0.08);
  color: var(--ink);
  border: 1px solid rgba(18,16,24,0.14);
}

.stop-slide__link:hover {
  transform: translateY(-2px);
}

.stop-slide__link--primary:hover {
  background: var(--coral);
  color: white;
}

.stop-slide__link--map:hover {
  background: var(--acid);
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowBurn {
  from {
    transform: scale(1.13) translateY(12px);
  }
  to {
    transform: scale(1.03) translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 860px;
  }

  .hero__panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 380px;
    margin-top: 26px;
  }

  .route-stage__copy,
  .map-shell,
  .day-card {
    grid-template-columns: 1fr;
  }

  .route-stage__copy .eyebrow,
  .route-stage__copy h2,
  .route-stage__copy p:not(.eyebrow) {
    grid-column: 1;
    grid-row: auto;
  }

  .map-shell {
    min-height: auto;
  }

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

  .day-card__details {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.18);
  }

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

}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar__links a {
    display: none;
  }

  .hero {
    min-height: 844px;
    padding-top: 92px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.45rem);
    line-height: 0.94;
  }

  .hero__copy {
    font-size: 0.96rem;
    line-height: 1.52;
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .hero__panel {
    margin-top: 20px;
  }

  .route-stage,
  .days {
    padding-left: 16px;
    padding-right: 16px;
  }

  .map-canvas {
    min-height: 420px;
  }

  .map-controls {
    grid-template-columns: 1fr;
  }

  .day-card {
    min-height: 680px;
  }

  .day-card h3 {
    font-size: 3rem;
  }

  .stop-slide {
    grid-template-columns: 1fr;
  }

  .stop-slide__media,
  .stop-slide__image {
    min-height: 220px;
  }

  .stop-slide__map-pill {
    opacity: 1;
    transform: translateY(0);
  }

}
