/* ── GPX Embed ─────────────────────────────────────────────── */
.gpx-embed {
  margin: 2em 0;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  background: var(--color-bg, #fff);
}

/* Header: Titel + Download */
.gpx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  background: var(--color-bg-subtle, #fafafa);
  gap: 8px;
}

.gpx-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text, #222);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpx-download {
  font-size: 12px;
  color: var(--color-text-muted, #888);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.gpx-download:hover { color: var(--color-text, #222); }

/* Karte */
.gpx-map { height: 360px; }

/* Höhenprofil */
.gpx-elevation {
  border-top: 1px solid var(--color-border, #e0e0e0);
  background: var(--color-bg-subtle, #fafafa);
}

.gpx-elevation-inner {
  display: flex;
  align-items: stretch;
  height: 72px;
}

.gpx-elevation-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px 4px 8px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted, #999);
  min-width: 40px;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

.gpx-elevation-svg-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.gpx-elevation-svg {
  width: 100%;
  height: 72px;
  display: block;
  cursor: crosshair;
}

/* Tooltip beim Hover */
.gpx-tooltip {
  position: absolute;
  top: 6px;
  left: 0;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
}

/* Stats */
.gpx-stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border, #e0e0e0);
  background: var(--color-bg-subtle, #fafafa);
}

.gpx-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border-right: 1px solid var(--color-border, #e0e0e0);
  flex: 1;
  min-width: 80px;
}
.gpx-stat:last-child { border-right: none; }

.gpx-stat-value {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text, #222);
  white-space: nowrap;
}

.gpx-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #999);
  margin-top: 3px;
  white-space: nowrap;
}

/* Optionale Bildunterschrift */
.gpx-caption {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-muted, #999);
  font-style: italic;
  border-top: 1px solid var(--color-border, #e0e0e0);
  margin: 0;
}

.gpx-error {
  padding: 12px;
  color: #c0392b;
  margin: 0;
}

@media (max-width: 480px) {
  .gpx-stat { padding: 8px 10px; min-width: 70px; }
  .gpx-stat-value { font-size: 15px; }
}
