/* Corrections pour GPX Viewer sur mobile */
@media screen and (max-width: 768px) {
    .gpxv-view {
        width: 100% !important;
        overflow-x: auto;
        margin-left: 0;
    }

    #map-container {
        width: 100% !important;
        min-height: 300px !important;
        height: 350px !important;
    }

    #leaflet-map {
        width: 100% !important;
        height: 350px !important;
        min-height: 300px !important;
    }

    /* Ajuster la largeur du conteneur de la carte */
    .leaflet-container {
        width: 100% !important;
        height: 350px !important;
    }

    /* Forcer le redimensionnement des tuiles */
    .leaflet-tile-pane,
    .leaflet-tile-container {
        width: 100% !important;
    }

    /* Ajuster le profil d'élévation */
    .track-info {
        width: 100% !important;
        overflow-x: auto;
    }

    .elevation-profile {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Ajuster la table des propriétés */
    .properties {
        width: 100% !important;
        font-size: 14px;
    }
}

/* Mode portrait spécifique */
@media screen and (max-width: 480px) and (orientation: portrait) {
    #map-container,
    #leaflet-map,
    .leaflet-container {
        height: 250px !important;
        min-height: 250px !important;
    }
}
