/* /Cartes/css/dayz-map.css - Styles du module carte DayZ */

.dayz-map-container {
    width: 100%; height: 100%; min-height: 400px;
    background: #1a1a1a; border-radius: 8px;
    overflow: hidden; position: relative;
}

.dayz-map-switch {
    display: flex; gap: 0;
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.dayz-map-switch button {
    padding: 5px 14px; border: none;
    background: rgba(30,30,30,0.9); color: #ccc;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px;
}
.dayz-map-switch button:hover { background: rgba(60,60,60,0.95); color: #fff; }
.dayz-map-switch button.active { background: rgba(45,120,200,0.95); color: #fff; }

/* Coordonnées */
.dayz-coords-display {
    position: absolute; bottom: 8px; left: 12px;
    z-index: 1000;
    background: rgba(20,20,20,0.85); color: #aaa;
    padding: 6px 12px; border-radius: 4px;
    font-size: 12px; font-family: 'Consolas','Courier New',monospace;
    pointer-events: none;
}

/* Résultat mesure distance */
#dayz-measure-result {
    position: absolute; bottom: 8px; left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255,152,0,0.15);
    border: 1px solid #ff9800;
    color: #ff9800;
    padding: 4px 14px; border-radius: 4px;
    font-size: 12px; font-family: 'Consolas','Courier New',monospace;
    pointer-events: none;
    white-space: nowrap;
}

/* Marqueurs */
.dayz-marker { background: transparent !important; border: none !important; display: flex; flex-direction: column; align-items: center; }

/* Labels lieux */
.dayz-location-label { background: transparent !important; border: none !important; pointer-events: none !important; }

.dayz-loc-text {
    display: block; white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
    transform: translateX(-50%);
    pointer-events: none; user-select: none;
}

.dayz-loc-city    { letter-spacing: 0.8px; text-transform: uppercase; }
.dayz-loc-town    { letter-spacing: 0.4px; }
.dayz-loc-military { letter-spacing: 0.3px; }
.dayz-loc-landmark { font-style: italic; }
.dayz-loc-railroad { letter-spacing: 0.2px; }
.dayz-loc-office   { letter-spacing: 0.2px; }
.dayz-loc-viewpoint { font-style: italic; }

/* Bouton toggle Lieux */
.btn-locations {
    padding: 5px 12px; border: 1px solid #555;
    background: rgba(30,30,30,0.9); color: #ccc;
    font-size: 12px; font-weight: 600; cursor: pointer;
    border-radius: 4px; transition: all 0.2s; white-space: nowrap;
}
.btn-locations:hover { background: rgba(60,60,60,0.95); color: #fff; }
.btn-locations.active { background: rgba(0,139,139,0.9); border-color: #008b8b; color: #fff; }
.btn-locations.loading { opacity: 0.6; cursor: wait; }

/* Bouton mesure */
.btn-measure {
    padding: 5px 12px; border: 1px solid #555;
    background: rgba(30,30,30,0.9); color: #ccc;
    font-size: 12px; font-weight: 600; cursor: pointer;
    border-radius: 4px; transition: all 0.2s; white-space: nowrap;
}
.btn-measure:hover { background: rgba(60,60,60,0.95); color: #fff; }
.btn-measure.active { background: rgba(255,152,0,0.25); border-color: #ff9800; color: #ff9800; }

/* Filtres */
.dayz-filters {
    display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}

.dayz-filter-btn {
    padding: 3px 8px; border-radius: 3px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all 0.15s;
    white-space: nowrap;
}
.dayz-filter-btn.active  { opacity: 1; }
.dayz-filter-btn.inactive { opacity: 0.35; }

/* Panneau historique */
.dayz-history-panel {
    position: absolute; top: 50px; right: 12px;
    z-index: 1000; width: 240px;
    background: rgba(20,20,20,0.92);
    border: 1px solid #333; border-radius: 6px;
    padding: 10px; font-size: 11px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    display: none;
}
.dayz-history-panel.visible { display: block; }
.dayz-history-panel h4 {
    color: #008b8b; font-size: 11px; margin-bottom: 8px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Barre recherche */
.dayz-search-bar {
    display: flex; gap: 4px; align-items: center;
}
.dayz-search-bar input {
    background: #222; color: #eee; border: 1px solid #444;
    border-radius: 4px; padding: 4px 8px; font-size: 12px;
    width: 150px; outline: none;
}
.dayz-search-bar input:focus { border-color: #008b8b; }
.dayz-search-bar button {
    padding: 4px 8px; background: #008b8b; color: #fff;
    border: none; border-radius: 4px; cursor: pointer; font-size: 12px;
}
.dayz-search-bar button:hover { background: #009f9f; }

/* Résultat recherche */
.dayz-search-result {
    position: absolute; top: 50px; left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(0,139,139,0.15);
    border: 1px solid #008b8b; border-radius: 4px;
    color: #008b8b; padding: 4px 14px; font-size: 12px;
    pointer-events: none; white-space: nowrap;
    display: none;
}