/* FSvoltRide - Géolocalisation des stations (carte publique + administration) */

.vr-station-finder { --vr-primary: var(--primary, #0B62AC); --vr-nearest: #f08c00; --vr-ok: #12a150; }

.vr-finder-title { font-size: 1.75rem; }

/* Carte */
.vr-map {
	position: relative;
	width: 100%;
	height: 560px;
	border-radius: 12px;
	overflow: hidden;
	background: #eef2f6;
	border: 1px solid rgba(0, 0, 0, .08);
}
.vr-map-picker { height: 440px; }
.vr-map-preview { height: 380px; }
.vr-map-fallback { width: 100%; height: 100%; display: block; }
.vr-map-placeholder {
	display: flex; align-items: center; justify-content: center; text-align: center;
	height: 100%; padding: 1.5rem; color: #6c757d;
}
@media (max-width: 991px) {
	.vr-map { height: 60vh; min-height: 340px; }
	.vr-map-picker, .vr-map-preview { height: 50vh; min-height: 300px; }
}

/* Légende des marqueurs */
.vr-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.vr-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.vr-legend img[src=""] { display: none; }

/* Messages */
.vr-status:empty { display: none; }

/* Panneaux latéraux */
.vr-panel {
	border-radius: 12px;
	padding: .9rem 1rem;
	margin-bottom: .75rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.vr-nearest { border-left: 5px solid var(--vr-nearest); }
.vr-route { border-left: 5px solid var(--vr-primary); }
.vr-panel-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.vr-panel-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.vr-panel-distance { margin: .15rem 0 .25rem; }

/* Liste des résultats */
.vr-results-head { margin: .25rem 0 .5rem; }
.vr-results { max-height: 470px; overflow-y: auto; margin: 0; padding-right: 2px; }
@media (max-width: 991px) { .vr-results { max-height: none; } }
.vr-result {
	padding: .7rem .8rem;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	margin-bottom: .5rem;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.vr-result.is-nearest { border-color: var(--vr-nearest); }
.vr-result.is-selected { border-color: var(--vr-primary); box-shadow: 0 0 0 2px rgba(11, 98, 172, .15); }
.vr-result-name { font-weight: 600; color: inherit; text-decoration: none; }
.vr-result-name:hover { text-decoration: underline; }
.vr-distance { background: rgba(11, 98, 172, .1); color: var(--vr-primary); font-weight: 600; white-space: nowrap; align-self: flex-start; }
.vr-tag { color: var(--vr-nearest); font-weight: 600; }
.vr-result-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.vr-empty { padding: 1rem 0; }

/* Fiche station dans la carte */
.vr-iw { font-size: .875rem; line-height: 1.45; max-width: 270px; }
.vr-iw > div + div { margin-top: .15rem; }
.vr-iw-title { font-weight: 700; font-size: 1rem; }
.vr-iw-type { color: var(--vr-ok, #12a150); font-weight: 600; font-size: .8rem; }
.vr-iw-desc { color: #555; }
.vr-iw-coords { color: #6c757d; font-size: .78rem; }
.vr-iw-actions { display: flex; gap: .4rem; margin-top: .5rem !important; flex-wrap: wrap; }

/* Boutons occupés */
.vr-busy { position: relative; pointer-events: none; opacity: .75; }

/* Administration */
.vr-admin-banner { --dz-banner-height: 300px; }
.vr-stat { font-size: .85rem; font-weight: 500; padding: .5em .8em; }
.vr-station-table td code { font-size: .8rem; white-space: nowrap; }
.vr-station-dl dt { font-weight: 600; }
.vr-station-form .errorSummary ul { margin-bottom: 0; }

/* Le thème met les boutons en « Capitalize » : on conserve la casse des libellés du module. */
.vr-station-finder .btn, .vr-station-admin .btn, .vr-iw .btn,
.vr-station-finder .vr-distance, .vr-station-finder #vr-clear-btn { text-transform: none; }
