/* GPX Trail Map – Stylesheet */

.gtm-wrapper {
    border: 0.5px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 1.5em;
}

/* ── Karte ── */
.gtm-wrapper .leaflet-container {
    width: 100%;
}

/* ── Höhenprofil ── */
.gtm-profile-wrap {
    padding: 16px 20px;
    border-top: 0.5px solid #ddd;
}

.gtm-profile-label {
    font-size: 12px !important;
    color: #888 !important;
    margin: 0 0 8px 0 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.gtm-profile-canvas-wrap {
    position: relative;
    height: 100px;
    width: 100%;
}

/* ── Statistiken ── */
.gtm-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 0.5px solid #ddd;
}

.gtm-stat-item {
    padding: 12px 8px;
    text-align: center;
}

.gtm-stat-item:not(:last-child) {
    border-right: 0.5px solid #ddd;
}

.gtm-stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.gtm-stat-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.gtm-stat-value {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* ── Fehlermeldung ── */
.gtm-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .gtm-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .gtm-stats .gtm-stat-item:nth-child(3) {
        border-right: none;
    }

    .gtm-stat-value {
        font-size: 13px;
    }
}
