/**
 * VINÒFORUM — Catalogo espositori (due tab + elenco filtrabile).
 * Ordine testata: barra ricerca -> tab -> filtri -> (respiro) -> griglia card.
 * Regole scopate sotto ".vf-espo" (specificità 0,2,x) per battere il reset.css
 * del tema (input[type=search], select { width:100% ... }) senza !important.
 * Token e font dal design system del sito.
 */

.vf-espo {
	font-family: var( --font-sans, 'Inter', system-ui, sans-serif );
	color: var( --vf-ink, #1d1d1b );
}

/* ---- Intro (centrata) ---- */
.vf-espo .vf-espo__intro {
	max-width: 720px;
	margin: 0 auto clamp( 20px, 2.6vw, 32px );
	text-align: center;
}

.vf-espo .vf-espo__title {
	margin: 0 0 0.3em;
	color: var( --vf-ink, #1d1d1b );
}

.vf-espo .vf-espo__subtitle {
	margin: 0 0 0.5em;
	font-weight: 600;
	color: var( --vf-wine, #a72a35 );
	font-size: clamp( 16px, 1.6vw, 20px );
}

.vf-espo .vf-espo__copy {
	margin: 0;
	color: rgba( 29, 29, 27, 0.7 );
	font-size: clamp( 15px, 1.2vw, 17px );
	line-height: 1.55;
}

/* ---- 1) Barra di ricerca (in cima, centrata, contenuta) ---- */
.vf-espo .vf-espo__searchbar {
	max-width: 560px;
	margin: 0 auto 16px;
}

.vf-espo .vf-espo__search {
	display: block;
	width: 100%;
	max-width: 100%;
	font-family: inherit;
	font-size: 15px;
	color: var( --vf-ink, #1d1d1b );
	background: var( --vf-paper, #ffffff );
	border: 1px solid rgba( 29, 29, 27, 0.12 );
	border-radius: 14px;
	padding: 15px 20px;
	box-shadow: 0 6px 20px rgba( 29, 29, 27, 0.06 );
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vf-espo .vf-espo__search::placeholder {
	color: rgba( 29, 29, 27, 0.4 );
}

.vf-espo .vf-espo__search:focus {
	outline: none;
	border-color: var( --vf-wine, #a72a35 );
	box-shadow: 0 6px 20px rgba( 29, 29, 27, 0.08 ), 0 0 0 3px rgba( 167, 42, 53, 0.12 );
}

.vf-espo .vf-espo__search::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

/* ---- 2) Tab (pill, centrati) ---- */
.vf-espo .vf-espo__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 14px;
}

.vf-espo .vf-espo__tab {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var( --vf-ink, #1d1d1b );
	background: transparent;
	border: 1.5px solid rgba( 29, 29, 27, 0.2 );
	border-radius: 999px;
	padding: 9px 22px;
	width: auto;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.vf-espo .vf-espo__tab:hover {
	border-color: var( --vf-wine, #a72a35 );
	color: var( --vf-wine, #a72a35 );
}

.vf-espo .vf-espo__tab.is-active {
	background: var( --vf-red, #fb3910 );
	border-color: var( --vf-red, #fb3910 );
	color: var( --vf-paper, #ffffff );
	transform: translateY( -1px );
}

/* ---- 3) Filtri (pillole, centrate) + respiro prima delle card ---- */
.vf-espo .vf-espo__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0 auto clamp( 32px, 5vw, 60px );
}

.vf-espo .vf-espo__select {
	width: auto;
	max-width: 100%;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var( --vf-ink, #1d1d1b );
	background-color: transparent;
	border: 1.5px solid rgba( 29, 29, 27, 0.2 );
	border-radius: 999px;
	padding: 9px 38px 9px 18px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%231d1d1b'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 11px;
	transition: border-color 0.2s ease;
}

.vf-espo .vf-espo__select:hover,
.vf-espo .vf-espo__select:focus {
	outline: none;
	border-color: var( --vf-wine, #a72a35 );
}

.vf-espo .vf-espo__select[hidden] {
	display: none;
}

/* ---- Griglia card ---- */
.vf-espo .vf-espo__grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: clamp( 12px, 1.4vw, 18px );
}

.vf-espo .vf-espo__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: clamp( 16px, 1.6vw, 22px );
	background: #faf7ef;
	border: 1px solid rgba( 29, 29, 27, 0.08 );
	border-radius: 16px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.vf-espo .vf-espo__card:hover {
	border-color: rgba( 167, 42, 53, 0.35 );
	box-shadow: 0 10px 26px rgba( 29, 29, 27, 0.08 );
	transform: translateY( -2px );
}

.vf-espo .vf-espo__card[hidden] {
	display: none !important;
}

.vf-espo .vf-espo__name {
	margin: 0;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var( --vf-ink, #1d1d1b );
	overflow-wrap: anywhere;
	word-break: break-word;
}

.vf-espo .vf-espo__detail {
	margin: 0;
	font-size: 12.5px;
	color: rgba( 29, 29, 27, 0.6 );
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Tag a chip, in fondo alla card */
.vf-espo .vf-espo__meta {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.vf-espo .vf-espo__luogo,
.vf-espo .vf-espo__cat {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 999px;
	line-height: 1.4;
}

.vf-espo .vf-espo__luogo {
	color: var( --vf-wine, #a72a35 );
	background: rgba( 167, 42, 53, 0.10 );
}

.vf-espo .vf-espo__cat {
	color: rgba( 29, 29, 27, 0.6 );
	background: rgba( 29, 29, 27, 0.06 );
}

.vf-espo .vf-espo__empty {
	margin: 12px 0 0;
	text-align: center;
	color: rgba( 29, 29, 27, 0.55 );
	font-size: 14px;
}

@media ( max-width: 1024px ) {
	.vf-espo .vf-espo__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 640px ) {
	.vf-espo .vf-espo__grid {
		grid-template-columns: 1fr;
	}
}


/* ============ Catalogo Espositori: tab luoghi + mappa + lista ============ */

/* --- Tab luoghi (sopra la mappa) --- */
.vf-espo .vf-espo__places {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp( 20px, 3vw, 32px );
}

.vf-espo .vf-espo__place {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var( --vf-ink, #1d1d1b );
	background: #faf7ef;
	border: 1.5px solid rgba( 29, 29, 27, 0.14 );
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.vf-espo .vf-espo__place:hover {
	border-color: var( --vf-wine, #a72a35 );
	color: var( --vf-wine, #a72a35 );
}

.vf-espo .vf-espo__place.is-active {
	background: var( --vf-wine, #a72a35 );
	border-color: var( --vf-wine, #a72a35 );
	color: #fff;
}

/* --- Layout due colonne: mappa a sinistra (larghezza pari alla mappa) / lista a destra --- */
.vf-espo .vf-espo__layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
	gap: clamp( 28px, 4vw, 60px );
	align-items: start;
}

.vf-espo .vf-espo__col-map {
	position: sticky;
	top: 20px;
}

.vf-espo .vf-espomap {
	margin: 0;
}

/* Pannelli mappa: uno per luogo, solo l'attivo visibile */
.vf-espo .vf-espomap__panel {
	display: none;
}

.vf-espo .vf-espomap__panel.is-active {
	display: block;
}

/* Mappa Italia: riempie la colonna, altezza automatica (nessun buco a lato) */
.vf-espo .vf-italy-map {
	display: block;
	width: 100%;
	height: auto;
	max-height: 82vh;
	overflow: visible;
}

/* Sagoma paese estero */
.vf-espo .vf-estero-map {
	display: block;
	width: 100%;
	height: auto;
	max-height: 72vh;
	margin: 8px auto 0;
	overflow: hidden;
}

.vf-espo .vf-estero-map path {
	fill: rgba( 167, 42, 53, 0.78 );
	stroke: rgba( 167, 42, 53, 0.78 );
	stroke-width: 0.6;
}

.vf-espo .vf-estero-map--globe circle {
	fill: none;
	stroke: rgba( 167, 42, 53, 0.78 );
	stroke-width: 2.5;
}

.vf-espo .vf-estero-map--globe line,
.vf-espo .vf-estero-map--globe ellipse {
	fill: none;
	stroke: rgba( 167, 42, 53, 0.55 );
	stroke-width: 2;
}

.vf-espo .vf-espomap__caption {
	margin: 16px 0 0;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var( --vf-ink, #1d1d1b );
}

/* --- Colonna destra: ricerca / tab / filtro allineati a sinistra, card a colonna singola --- */
.vf-espo .vf-espo__col-list .vf-espo__searchbar {
	max-width: none;
	margin: 0 0 14px;
}

.vf-espo .vf-espo__col-list .vf-espo__tabs {
	justify-content: flex-start;
}

.vf-espo .vf-espo__col-list .vf-espo__filters {
	justify-content: flex-start;
	margin: 0 0 clamp( 16px, 2vw, 24px );
}

.vf-espo .vf-espo__col-list .vf-espo__grid {
	grid-template-columns: 1fr;
}

@media ( max-width: 900px ) {
	.vf-espo .vf-espo__layout {
		grid-template-columns: 1fr;
	}
	.vf-espo .vf-espo__col-map {
		position: static;
		max-width: 430px;
		margin: 0 auto;
	}
}


/* Dettagli card: Stand / Spazio (Titolare) con etichetta */
.vf-espo .vf-espo__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 2px;
}
.vf-espo .vf-espo__lbl {
	font-weight: 700;
	color: var( --vf-wine, #a72a35 );
	margin-right: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
