:root {
  --dark: #081114;
  --dark-2: #101820;
  --turquoise: #00d6c9;
  --green: #7ed957;
  --orange: #ff7a00;
  --white: #ffffff;
  --gray: #d7e1e5;
  --muted: #8fa3aa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

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

.site-header {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 17, 20, 0.72), rgba(8, 17, 20, 0.96)),
    url("assets/hero.webp");
  background-size: cover;
  background-position: center;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(8, 17, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--turquoise);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 8% 70px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  color: var(--turquoise);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  margin-bottom: 18px;
}

.slogan {
  color: var(--green);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 20px;
}

.hero-text {
  color: var(--gray);
  max-width: 620px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-secondary {
  color: var(--white);
  border-color: var(--turquoise);
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.countdown-box span {
  color: var(--green);
  font-size: 2.3rem;
  font-weight: 900;
}

.countdown-box small {
  color: var(--gray);
}

.section {
  padding: 90px 8%;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading h2,
.history-content h2,
.signup-box h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
}

.section-heading p,
.history-content p,
.signup-box p {
  color: var(--gray);
  font-size: 1.05rem;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.edition-current {
  background: var(--dark-2);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-info article {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-info span {
  display: block;
  color: var(--green);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.quick-info p {
  color: var(--gray);
}

.routes-section {
  background:
    linear-gradient(rgba(8, 17, 20, 0.96), rgba(8, 17, 20, 0.96)),
    url("assets/mono-congo.webp");
  background-size: cover;
  background-position: center;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.route-card {
  padding: 34px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.route-card.featured {
  border-color: var(--turquoise);
  box-shadow: 0 0 40px rgba(0, 214, 201, 0.12);
}

.route-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.route-card strong {
  display: block;
  color: var(--green);
  font-size: 3rem;
  margin-bottom: 16px;
}

.route-card p,
.route-card li {
  color: var(--gray);
}

.route-card ul {
  margin-top: 18px;
  padding-left: 20px;
}


/* =========================================================
   Jerseys edición 2027
   Efecto corregido con capas reales:
   - .jersey-poster baja como una sola imagen completa.
   - .jersey-product sube desde atrás sin deformarse.
   - En móvil solo se muestra el poster/fondo.
========================================================= */

.jersey-2027-section {
  background:
    radial-gradient(circle at top, rgba(0, 214, 201, 0.18), transparent 42%),
    linear-gradient(180deg, #101820, #081114);
  overflow: hidden;
}

.jersey-2027-section .section-heading {
  margin-bottom: 0;
}

.jersey-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 315px));
  justify-content: center;
  align-items: start;
  gap: clamp(48px, 7vw, 90px);
  margin-top: 54px;
  padding-top: 72px;
  padding-bottom: 140px;
  min-height: 650px;
}

.jersey-card {
  position: relative;
  width: 100%;
  max-width: 315px;
  aspect-ratio: 899 / 1599;
  margin: 0;
  padding: 0;
  isolation: isolate;
  overflow: visible;
  cursor: pointer;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.52));
}

.jersey-poster {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 24px;
  overflow: hidden;
  transform-origin: bottom center;
  transform: translateY(0) rotateX(0deg);
  transition:
    transform 0.62s ease,
    filter 0.62s ease,
    box-shadow 0.62s ease;
  filter: brightness(0.96) saturate(1.04);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.jersey-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.jersey-product {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform-origin: center bottom;
  transform: translateY(2%) scale(0.92);
  opacity: 1;
  transition:
    transform 0.62s ease,
    filter 0.62s ease,
    z-index 0s linear 0.15s;
  filter:
    contrast(1.04)
    brightness(1.04)
    drop-shadow(0 26px 34px rgba(0, 0, 0, 0.62));
}

.jersey-card-label {
  position: absolute;
  left: 50%;
  bottom: -48px;
  z-index: 1;
  width: 92%;
  transform: translateX(-50%);
  color: var(--gray);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  opacity: 0.72;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .jersey-card:hover .jersey-poster {
    transform: perspective(900px) translateY(30%) rotateX(46deg) scaleX(0.98);
    filter: brightness(0.52) saturate(1.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  }

  .jersey-card:hover .jersey-product {
    z-index: 6;
    transform: translateY(-17%) scale(1.02);
    filter:
      contrast(1.08)
      brightness(1.08)
      drop-shadow(0 32px 42px rgba(0, 0, 0, 0.72));
  }

  .jersey-card:hover .jersey-card-label {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@media (min-width: 901px) {
  .jersey-card.active .jersey-poster {
    transform: perspective(900px) translateY(30%) rotateX(46deg) scaleX(0.98);
    filter: brightness(0.52) saturate(1.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  }

  .jersey-card.active .jersey-product {
    z-index: 6;
    transform: translateY(-17%) scale(1.02);
    filter:
      contrast(1.08)
      brightness(1.08)
      drop-shadow(0 32px 42px rgba(0, 0, 0, 0.72));
  }

  .jersey-card.active .jersey-card-label {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@media (max-width: 900px) {
  .jersey-cards {
    grid-template-columns: 1fr;
    max-width: min(315px, 84vw);
    margin-left: auto;
    margin-right: auto;
    gap: 42px;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .jersey-card {
    max-width: 315px;
    overflow: hidden;
    cursor: default;
  }

  .jersey-poster {
    position: absolute;
    inset: 0;
    transform: none !important;
    filter: brightness(0.96) saturate(1.04) !important;
    border-radius: 24px;
  }

  .jersey-product,
  .jersey-card-label {
    display: none !important;
  }
}

.history-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  background: var(--dark);
}

.history-content h3 {
  color: var(--green);
  font-size: 2rem;
  margin-top: 30px;
  font-style: italic;
}

.timeline {
  display: grid;
  gap: 18px;
  align-content: center;
}

.timeline article {
  padding: 24px;
  border-left: 5px solid var(--turquoise);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.timeline span {
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 900;
}

.timeline p {
  color: var(--gray);
}

.editions-section {
  background: var(--dark-2);
}

.editions-container {
  display: grid;
  gap: 34px;
}

.edition-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.edition-info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.edition-year {
  color: var(--turquoise);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.edition-info h3 {
  font-size: 1.8rem;
}

.edition-info p {
  color: var(--gray);
}

.edition-jersey {
  max-width: 260px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.edition-jersey img {
  width: 100%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}

.edition-jersey-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 360px;
}

.edition-jersey-duo img {
  width: 100%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}

.slider {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.slider img.active {
  opacity: 1;
  transform: scale(1);
}

.slider-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(8, 17, 20, 0.78);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

.slider-dots button.active {
  background: var(--green);
}

.signup-section {
  background:
    linear-gradient(rgba(8, 17, 20, 0.88), rgba(8, 17, 20, 0.96)),
    url("assets/hero.webp");
  background-size: cover;
  background-position: center;
}

.signup-box {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
  text-align: left;
}

.signup-text h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
}

.signup-text p {
  color: #d7e1e5;
  font-size: 1.08rem;
}

.signup-slogan {
  margin-top: 24px;
  color: #7ed957 !important;
  font-size: 1.6rem !important;
  font-weight: 900;
  font-style: italic;
}

.qr-card {
  justify-self: center;
  width: min(320px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #081114;
  text-align: center;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
  border: 5px solid #00d6c9;
}

.qr-card img {
  width: 100%;
  border-radius: 12px;
}

.qr-card p {
  margin-top: 14px;
  color: #081114;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qr-card .qr-link {
  width: 100%;
  margin-top: 16px;
  text-align: center;
  border-radius: 14px;
  padding: 13px 18px;
}


.footer {
  padding: 28px 8%;
  text-align: center;
  color: var(--gray);
  background: #050b0d;
}

@media (max-width: 950px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 22px 8%;
    background: rgba(8, 17, 20, 0.96);
  }

  .nav-links.open {
    display: flex;
  }

  .quick-info,
  .routes-grid,
  .history-section,
  .edition-card,
  .signup-box {
    grid-template-columns: 1fr;
  }

  .slider {
    min-height: 300px;
  }

  .signup-box {
    text-align: center;
  }

  .qr-card {
    margin-top: 20px;
  }

  .jersey-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    gap: 95px;
    min-height: auto;
  }

  .jersey-card {
    aspect-ratio: 0.85;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 70px 6%;
  }

  .navbar {
    padding: 14px 6%;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .hero {
    padding-left: 6%;
    padding-right: 6%;
  }

  .quick-info {
    grid-template-columns: 1fr 1fr;
  }

  .edition-year {
    font-size: 2.4rem;
  }

  .jersey-cards {
    gap: 80px;
  }

  .jersey-card:hover img,
  .jersey-card.active img {
    width: 112%;
    height: 145%;
    transform: translateY(-5%);
  }

  .jersey-card figcaption {
    transform: perspective(500px) translateY(100%) rotateX(-35deg);
  }
}

/* =========================================================
   Información extra: categorías, precios, pagos y tallas
========================================================= */

.categories-section {
  background:
    radial-gradient(circle at top left, rgba(126, 217, 87, 0.12), transparent 36%),
    linear-gradient(180deg, #081114, #101820);
}

.categories-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: stretch;
}

.categories-card,
.recreative-card,
.price-card,
.payment-info article,
.sizing-card {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.22);
}

.categories-card {
  padding: 30px;
}

.categories-card h3,
.recreative-card h3,
.price-card h3,
.payment-info h3,
.sizing-card h3 {
  font-size: 1.55rem;
  margin-bottom: 18px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.categories-grid article {
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--turquoise);
}

.categories-grid span {
  display: block;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.94rem;
}

.categories-grid p {
  color: var(--gray);
  margin-top: 4px;
  font-size: 0.92rem;
}

.recreative-card {
  padding: 30px;
  border-color: rgba(255, 122, 0, 0.55);
  background:
    linear-gradient(rgba(255, 122, 0, 0.1), rgba(255, 255, 255, 0.045));
}

.recreative-card h3 {
  color: var(--orange);
  font-size: 2.4rem;
  line-height: 1;
}

.recreative-card p {
  color: var(--gray);
}

.pricing-section {
  background: var(--dark-2);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 430px));
  justify-content: center;
  gap: 26px;
  margin-top: 44px;
}

.price-card {
  padding: 30px;
}

.price-card.featured {
  border-color: rgba(0, 214, 201, 0.7);
  box-shadow: 0 0 42px rgba(0, 214, 201, 0.12);
}

.price-route {
  color: var(--gray);
  margin-bottom: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.price-row span {
  color: var(--gray);
  font-weight: 800;
}

.price-row strong {
  color: var(--green);
  font-size: 1.65rem;
}

.payment-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.payment-info article {
  padding: 24px;
}

.payment-info p,
.payment-info small {
  color: var(--gray);
}

.payment-info a {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
}

.pending-info {
  display: block;
  color: var(--orange);
  margin-top: 8px;
  font-size: 1rem;
}

.sizing-section {
  background:
    radial-gradient(circle at top right, rgba(0, 214, 201, 0.14), transparent 38%),
    #081114;
}

.sizing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.sizing-card {
  padding: 26px;
}

.sizing-image {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  margin-bottom: 22px;
}

.sizing-image img {
  width: 100%;
  height: auto;
  display: block;
}

.sizing-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sizing-card table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.2);
}

.sizing-card th,
.sizing-card td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sizing-card thead th {
  background: rgba(0, 214, 201, 0.16);
  color: var(--white);
  font-weight: 900;
}

.sizing-card tbody th {
  text-align: left;
  color: var(--green);
}

.sizing-card td {
  color: var(--gray);
}

@media (max-width: 950px) {
  .categories-layout,
  .price-cards,
  .payment-info,
  .sizing-grid {
    grid-template-columns: 1fr;
  }

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

  .price-row strong {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .categories-card,
  .recreative-card,
  .price-card,
  .payment-info article,
  .sizing-card {
    padding: 22px;
  }
}


.payment-data {
  display: block;
  color: var(--green);
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 900;
  word-break: break-word;
}


/* =========================================================
   Medalla y premiación
========================================================= */

.medal-section {
  background:
    radial-gradient(circle at top right, rgba(255, 183, 77, 0.18), transparent 36%),
    linear-gradient(180deg, #101820, #081114);
}

.medal-content {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.medal-text h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
}

.medal-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1.06rem;
}

.medal-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.medal-highlights span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 183, 77, 0.12);
  border: 1px solid rgba(255, 183, 77, 0.34);
  font-weight: 800;
  font-size: 0.9rem;
}

.medal-image {
  display: flex;
  justify-content: center;
}

.medal-image img {
  width: min(430px, 100%);
  border-radius: 26px;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .medal-content {
    grid-template-columns: 1fr;
  }

  .medal-text {
    text-align: center;
  }

  .medal-highlights {
    justify-content: center;
  }
}


/* =========================================================
   Explorador interactivo de rutas GPX 2027
========================================================= */
.route-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 22px;
}

.route-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.route-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 214, 201, 0.6);
}

.route-tab.active {
  background: rgba(0, 214, 201, 0.12);
  border-color: var(--turquoise);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

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

.route-tab span {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 800;
}

.route-tab strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 1.55rem;
}

.route-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.route-map-panel,
.route-details {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 20, 0.88);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.route-map-panel {
  position: relative;
  min-height: 610px;
}

.route-map {
  width: 100%;
  height: 610px;
  background: #132326;
}

.route-map .leaflet-control-zoom a {
  color: #0b171a;
}

.route-map .leaflet-control-attribution {
  font-size: 10px;
}

.map-legend {
  position: absolute;
  z-index: 500;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 17, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-short { background: #7ed957; }
.legend-long { background: #ff7a00; }

.route-details {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.route-details h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.route-description {
  color: var(--gray);
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.route-stats article {
  padding: 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.route-stats span {
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 900;
}

.route-stats small {
  margin-left: 3px;
  color: var(--muted);
  font-weight: 800;
}

.route-stats p {
  margin-top: 2px;
  color: var(--gray);
  font-size: 0.8rem;
}

.elevation-wrap {
  margin-top: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.elevation-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.elevation-heading strong {
  font-size: 0.9rem;
}

.elevation-heading span {
  color: var(--muted);
  font-size: 0.72rem;
}

.elevation-chart {
  display: block;
  width: 100%;
  height: 180px;
}

.route-download {
  margin-top: 20px;
  text-align: center;
}

.route-summary-grid {
  margin-top: 26px;
}

.route-loading {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: grid;
  place-items: center;
  color: var(--gray);
  background: #132326;
}

@media (max-width: 1050px) {
  .route-explorer {
    grid-template-columns: 1fr;
  }

  .route-map-panel,
  .route-map {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 600px) {
  .route-selector {
    grid-template-columns: 1fr;
  }

  .route-map-panel,
  .route-map {
    min-height: 420px;
    height: 420px;
  }

  .route-details {
    padding: 20px;
  }

  .route-stats {
    grid-template-columns: 1fr 1fr;
  }

  .map-legend {
    border-radius: 16px;
  }
}
