/**
 * =============================================================================
 * PROBAR - GEO-FUNNEL HOMEPAGE - css/geo-funnel.css
 * -----------------------------------------------------------------------------
 * Sezione "vieni a trovarci" con mappa animata. Veste "lusso quieto":
 * nero + oro #FFCE53, Playfair per il titolo. Caricato solo in home.
 * =============================================================================
 */

.abm-geo {
	--geo-gold: #FFCE53;
	--geo-bg: #0a0a0a;
	--geo-panel: #101010;
	--geo-line: #232323;
	--geo-text: #cfcfcf;
	--geo-dim: #9aa2a6;
	background: var(--geo-bg);
	color: var(--geo-text);
	padding: 70px 20px;
	overflow: hidden;
}

.abm-geo__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: center;
}

/* --- Copy --- */
.abm-geo__kicker {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2.2px;
	color: var(--geo-gold);
	margin: 0 0 12px;
}

.abm-geo__title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	line-height: 1.15;
	color: #f6f6f6;
	margin: 0 0 14px;
}

.abm-geo__lead {
	color: var(--geo-dim);
	font-size: 1.02rem;
	line-height: 1.7;
	max-width: 540px;
	margin: 0 0 20px;
}

.abm-geo__addr {
	font-style: normal;
	color: #eaeaea;
	font-size: 1rem;
	margin: 0 0 24px;
	padding-left: 16px;
	border-left: 2px solid var(--geo-gold);
}

/* --- Box orari --- */
.abm-geo__hours {
	background: var(--geo-panel);
	border: 1px solid var(--geo-line);
	border-radius: 12px;
	padding: 14px 18px;
	margin: 0 0 24px;
	max-width: 360px;
}

.abm-geo__hours-title {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--geo-gold);
	margin: 0 0 10px;
}

.abm-geo__hours-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.abm-geo__hours-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 0;
	font-size: 0.95rem;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.abm-geo__hours-list li:first-child { border-top: 0; }

.abm-geo__hours-day { color: #eaeaea; }
.abm-geo__hours-val { color: #cfcfcf; font-variant-numeric: tabular-nums; }
.abm-geo__hours-val.is-closed { color: #8f8f8f; }

/* --- Bottoni --- */
.abm-geo__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.abm-geo__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.abm-geo__btn--gold {
	background: linear-gradient(180deg, #FFE9AE 0%, var(--geo-gold) 100%);
	color: #111;
}

.abm-geo__btn--gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(255, 206, 83, 0.3);
	color: #111;
}

.abm-geo__pin { font-size: 0.7rem; }

.abm-geo__btn--ghost {
	background: transparent;
	color: var(--geo-gold);
	border-color: var(--geo-gold);
}

.abm-geo__btn--ghost:hover { background: var(--geo-gold); color: #111; }

/* --- Mappa --- */
.abm-geo__map-wrap {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--geo-line);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.abm-geo__map {
	width: 100%;
	height: 420px;
	background: #12141a;
	/* placeholder finche' Leaflet non e' caricato (evita CLS) */
	background-image: radial-gradient(circle at 50% 45%, rgba(255, 206, 83, 0.12), transparent 60%);
}

/* pallino "placeholder" al centro prima del load */
.abm-geo__map:not(.is-ready)::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--geo-gold);
	box-shadow: 0 0 0 6px rgba(255, 206, 83, 0.25);
}

.abm-geo__map-fallback {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 500;
	background: rgba(10, 10, 10, 0.85);
	color: var(--geo-gold);
	border: 1px solid var(--geo-gold);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.82rem;
	text-decoration: none;
}

.abm-geo__map-fallback:hover { background: var(--geo-gold); color: #111; }

/* Marker oro custom (DivIcon, niente immagini esterne). Leaflet mette uno
   sfondo/bordo bianco di default sul div-icon: lo azzeriamo. */
.abm-geo-pin-icon { background: transparent; border: 0; }

.abm-geo-pin {
	position: relative;
	width: 22px;
	height: 22px;
	border-radius: 50% 50% 50% 0;
	background: var(--geo-gold);
	border: 2px solid #111;
	transform: rotate(-45deg);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.abm-geo-pin::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	background: #111;
	border-radius: 50%;
}

/* Ritocchi Leaflet per il tema scuro */
.abm-geo__map .leaflet-control-zoom a {
	background: #101010;
	color: var(--geo-gold);
	border-color: var(--geo-line);
}

.abm-geo__map .leaflet-control-zoom a:hover { background: #1a1a1a; }

.abm-geo__map .leaflet-control-attribution {
	background: rgba(10, 10, 10, 0.7);
	color: #8f8f8f;
}

.abm-geo__map .leaflet-control-attribution a { color: #9aa2a6; }

/* --- Desktop: copy a sinistra, mappa a destra --- */
@media (min-width: 900px) {
	.abm-geo__inner { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
	.abm-geo__map { height: 480px; }
}

/* --- Motion-safe --- */
@media (prefers-reduced-motion: reduce) {
	.abm-geo__btn { transition: none; }
}
