.iron-discipline-box { transition: transform 0.2s ease; }
.iron-discipline-box:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.gpx-map-host {
    position: relative;
    flex: 1 1 auto;
    min-height: 360px;
}

.gpx-map-column {
    display: flex;
    flex-direction: column;
    background: #eef2f6;
}

.gpx-elevation-profile {
    flex: 0 0 auto;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 0.85rem 1rem 1rem;
}

.gpx-elevation-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.gpx-elevation-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.gpx-elevation-title i {
    color: #64748b;
}

.gpx-elevation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
}

.gpx-elevation-chart-wrap {
    position: relative;
}

.gpx-elevation-tooltip {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.gpx-elevation-hitarea {
    cursor: crosshair;
    fill: transparent;
}

.gpx-elevation-hitarea:focus {
    outline: none;
}

.gpx-elevation-hitarea:focus-visible {
    outline: 2px solid rgba(227, 6, 19, 0.45);
    outline-offset: -2px;
}

.gpx-elevation-cursor {
    stroke: #0f172a;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    pointer-events: none;
}

.gpx-elevation-cursor-dot {
    fill: #fff;
    stroke: #0f172a;
    stroke-width: 2;
    pointer-events: none;
}

.gpx-elevation-profile.is-scrubbing .gpx-elevation-line {
    opacity: 0.95;
}

.gpx-elevation-chart {
    display: block;
    width: 100%;
    height: 150px;
    overflow: visible;
}

.gpx-elevation-grid {
    stroke: #e2e8f0;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.gpx-elevation-area {
    opacity: 0.18;
}

.gpx-elevation-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.gpx-elevation-axis {
    fill: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.gpx-elevation-axis--x {
    font-size: 10px;
}

.gpx-map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    pointer-events: none;
}

.gpx-map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gpx-map-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.gpx-map-legend__dot--start {
    background: #16a34a;
}

.gpx-map-legend__dot--finish {
    background: #e30613;
}

.gpx-map-legend__arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #64748b;
}

@media (max-width: 768px) {
    .discipline-content { flex-direction: column; }
    .discipline-map { order: -1; height: 350px !important; min-height: 350px !important; }

    .gpx-map-host {
        min-height: 320px;
    }

    .gpx-elevation-chart {
        height: 120px;
    }

    .gpx-map-legend {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}
