.home-page .route-strava {
  padding: 48px 0;
  background: #f3f8fc;
}
.route-strava-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.route-strava-heading p {
  margin: 12px 0 0;
  color: #46617b;
  font-size: 0.9rem;
  line-height: 1.7;
}
.route-strava-heading .btn {
  flex-shrink: 0;
}
.route-strava-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.route-strava-stats > div {
  padding: 20px 24px;
  border: 1px solid #dce7ef;
  border-radius: 14px;
  background: #fff;
}
.route-strava-stats dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: #46617b;
  line-height: 1.5;
}
.route-strava-stats dd {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #006dd2;
}
.route-strava-stats dd span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.route-strava-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.route-strava-map {
  margin: 0;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.route-strava-map img {
  display: block;
  width: 100%;
  height: auto;
}
.route-strava-map figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  font-size: 0.7rem;
  color: #46617b;
  line-height: 1.5;
}
.route-strava-map figcaption span {
  color: #006dd2;
}
.route-strava-details {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.route-strava-profile,
.route-strava-about {
  padding: 20px;
  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 16px;
}
.route-strava-details h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #061f3f;
  line-height: 1.4;
}
.route-strava-profile img {
  display: block;
  width: 100%;
  height: auto;
}
.route-strava-details p {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.75;
  color: #46617b;
}
.route-strava-details .route-strava-source {
  font-size: 0.66rem;
}
.route-strava-badge {
  display: inline-block;
  padding: 5px 9px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #eef7ff;
  color: #006dd2;
  font-size: 0.65rem;
  font-weight: 700;
}
.route-strava-note {
  margin: 16px 0 24px;
  font-size: 0.72rem;
  color: #46617b;
  line-height: 1.6;
}
.route-strava-segments {
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #fff;
}
.route-strava-segments summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: #163b57;
}
.route-strava-table {
  overflow-x: auto;
  padding: 0 20px 20px;
}
.route-strava-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  line-height: 1.6;
  text-align: left;
}
.route-strava-table caption {
  text-align: left;
  padding-bottom: 12px;
  color: #46617b;
}
.route-strava-table th,
.route-strava-table td {
  padding: 12px;
  border-bottom: 1px solid #e3edf4;
}
.route-strava-table thead {
  background: #f3f8fc;
}
.route-strava-table tbody th {
  font-weight: 600;
}
@media (max-width: 900px) {
  .route-strava-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-strava-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-strava-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 560px) {
  .home-page .route-strava {
    padding: 32px 0;
  }
  .route-strava-stats {
    gap: 8px;
  }
  .route-strava-stats > div {
    padding: 14px 10px;
  }
  .route-strava-stats dt {
    font-size: 0.6rem;
  }
  .route-strava-stats dd {
    font-size: 1.65rem;
  }
  .route-strava-stats dd span {
    font-size: 0.8rem;
  }
  .route-strava-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-strava-table table {
    min-width: 600px;
  }
}

/* Official route embed; keep the local map available as an alternative. */
.route-strava-interactive {
  min-width: 0;
}
.route-strava-interactive .strava-embed-placeholder {
  min-height: 480px;
  background: #edf3f7;
}
.route-strava-interactive iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}
.route-strava-interactive figcaption a {
  color: #006dd2;
  text-decoration: underline;
}
@media (max-width: 560px) {
  .route-strava-interactive .strava-embed-placeholder {
    min-height: 400px;
  }
}
/* Keep the route compact on wide displays and balance the supporting cards. */
.home-page .route-strava > .page-shell {
  width: min(1240px, calc(100% - 48px));
}
.route-strava-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: stretch;
}
.route-strava-details {
  align-content: stretch;
  grid-template-rows: auto 1fr;
}
.route-strava-about {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.route-strava-about .route-strava-badge {
  align-self: flex-start;
}
.route-strava-profile img {
  max-height: 160px;
  object-fit: contain;
}
.route-strava-interactive .strava-embed-placeholder {
  min-height: 360px;
}
@media (max-width: 900px) {
  .route-strava-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-strava-details {
    grid-template-rows: auto;
  }
}
@media (max-width: 560px) {
  .home-page .route-strava > .page-shell {
    width: calc(100% - 32px);
  }
  .route-strava-interactive .strava-embed-placeholder {
    min-height: 340px;
  }
}
