/* Peças do Onde Encontrar — alinhado ao preview Lovable */
.vb-oe-wrap {
	display: grid;
	gap: 16px;
	width: 100%;
}

.vb-oe-busca-wrap,
.vb-oe-filtro-wrap,
.vb-oe-produtos-wrap {
	width: 100%;
	position: relative;
}

.vb-oe-busca,
.vb-oe-cidade {
	width: 100%;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid #ccc;
	border-radius: 999px; /* pill — laterais totalmente arredondadas */
	font: inherit;
	box-sizing: border-box;
}

.vb-oe-cidade {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a6b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.vb-oe-cidade:focus,
.vb-oe-cidade:active {
	border-radius: 12px; /* aberto / foco: cantos normais */
}

.vb-oe-cidade--oculto {
	display: none !important;
}

.vb-oe-busca-wrap .vb-oe-busca {
	padding-right: 12px;
	border-radius: 999px;
}

.vb-oe-busca-btn {
	display: none;
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: #1a3a6b;
	color: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	font-size: 16px;
}

.vb-oe-busca-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

@media (max-width: 782px) {
	.vb-oe-busca-wrap.is-focused .vb-oe-busca {
		padding-right: 48px;
	}

	.vb-oe-busca-wrap.is-focused .vb-oe-busca-btn {
		display: inline-flex;
	}
}

.vb-oe-filtro-wrap {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: stretch;
}

.vb-oe-filtro-wrap .vb-oe-cidade {
	flex: 0 0 auto;
	width: 100%;
}

.vb-oe-geo {
	order: 99; /* sempre abaixo do seletor, se houver */
	display: inline-flex;
	align-items: center;
	width: 100%;
	justify-content: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid #c4a574 !important;
	border-radius: 999px !important;
	background: #c4a574 !important;
	color: #062d52 !important;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vb-oe-geo:hover {
	background: #f5f0e6 !important;
	border-color: #f5f0e6 !important;
	color: #062d52 !important;
}

.vb-oe-geo:disabled {
	opacity: 0.65;
	cursor: default;
}

.vb-oe-limpar {
	order: 100; /* abaixo de "usar minha localização" */
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid #f5f0e6 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: #f5f0e6 !important;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vb-oe-limpar.is-visible,
.vb-oe-limpar:not([hidden]) {
	display: inline-flex;
}

.vb-oe-limpar:hover {
	background: rgba(245, 240, 230, 0.12) !important;
	border-color: #c4a574 !important;
	color: #c4a574 !important;
}

.vb-oe-limpar-mapa {
	display: none;
	border: 0;
	border-radius: 999px;
	background: #062d52;
	color: #f5f0e6;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 16px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	white-space: nowrap;
}

.vb-oe-limpar-mapa.is-visible {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vb-oe-limpar-mapa:hover {
	background: #0a3d6e;
}

.leaflet-control.vb-oe-limpar-control {
	margin: 12px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Widget produtos na rede */
.vb-oe-produtos-wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.vb-oe-produtos-titulo {
	margin: 0 0 8px;
	flex: 0 0 auto;
	font-size: 11px;
	letter-spacing: 0.14em;
	font-weight: 700;
	text-transform: uppercase;
	color: #f5f0e6;
}

.vb-oe-produtos-total-cidades {
	margin: 10px 0 0;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: rgba(245, 240, 230, 0.9);
}

.vb-oe-produtos-total-pontos {
	margin: 4px 0 0;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 500;
	color: rgba(245, 240, 230, 0.9);
}

.vb-oe-produtos-box.is-loading {
	align-items: center;
	justify-content: center;
	align-content: center;
	min-height: 10rem;
}

.vb-oe-cidades-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 1.25rem 0.75rem;
	color: rgba(245, 240, 230, 0.9);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.vb-oe-cidades-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(245, 240, 230, 0.2);
	border-top-color: #c4a574;
	border-radius: 50%;
	animation: vb-oe-spin 0.7s linear infinite;
}

@keyframes vb-oe-spin {
	to {
		transform: rotate(360deg);
	}
}

.vb-oe-produtos-box {
	flex: 1 1 auto;
	min-height: 10rem;
	overflow-x: hidden;
	overflow-y: auto;
	border-radius: 12px;
	border: 2px solid rgba(245, 240, 230, 0.3);
	background: #062d52;
	padding: 12px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(245, 240, 230, 0.45) rgba(245, 240, 230, 0.12);
}

.vb-oe-produtos-box::-webkit-scrollbar {
	width: 6px;
}

.vb-oe-produtos-box::-webkit-scrollbar-track {
	margin: 4px 0;
	background: rgba(245, 240, 230, 0.12);
	border-radius: 999px;
}

.vb-oe-produtos-box::-webkit-scrollbar-thumb {
	background: rgba(245, 240, 230, 0.4);
	border-radius: 999px;
	border: 1px solid transparent;
	background-clip: padding-box;
}

.vb-oe-produtos-box::-webkit-scrollbar-thumb:hover {
	background: rgba(245, 240, 230, 0.6);
	background-clip: padding-box;
}

.vb-oe-produtos-box::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}

.vb-oe-prod-chip {
	flex: 0 0 auto;
	white-space: nowrap;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid rgba(245, 240, 230, 0.3) !important;
	background: rgba(245, 240, 230, 0.12) !important;
	color: #f5f0e6 !important;
}

.vb-oe-prod-chip.is-active {
	background: #c4a574 !important;
	color: #062d52 !important;
	border-color: #c4a574 !important;
}

.vb-oe-mapa {
	width: 100%;
	min-height: 320px;
	background: #e8ebe6;
	z-index: 1;
	position: relative;
	border-radius: 1.25rem;
	overflow: hidden;
}

.vb-oe-zoom-hint {
	pointer-events: none;
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 1000;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(26, 58, 107, 0.88);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.85;
	transition: opacity 0.4s ease;
}

.vb-oe-zoom-hint.is-faded {
	opacity: 0;
}

.vb-oe-area-toda-control {
	margin: 12px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.vb-oe-area-toda {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-width: 0;
	height: auto;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: #062d52 !important;
	color: #f5f0e6 !important;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.vb-oe-area-toda__icon {
	display: block;
	flex-shrink: 0;
}

.vb-oe-area-toda__label {
	display: inline-block;
}

.vb-oe-area-toda.is-visible {
	display: inline-flex;
}

.vb-oe-area-toda:hover {
	background: #0a3d6e !important;
	color: #ffffff !important;
}

.vb-oe-zoom-tip {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(6, 45, 82, 0.72);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vb-oe-zoom-tip.is-visible {
	opacity: 1;
	visibility: visible;
}

.vb-oe-zoom-tip-card {
	max-width: 22rem;
	text-align: center;
	padding: 1.35rem 1.5rem;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.vb-oe-zoom-tip-card strong {
	display: block;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #0a3c6b;
	margin-bottom: 0.4rem;
}

.vb-oe-zoom-tip-card span {
	display: block;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #4b5563;
}

.vb-oe-mapa-toast {
	pointer-events: none;
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1050;
	max-width: min(90%, 22rem);
	margin: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(26, 58, 107, 0.92);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	line-height: 1.35;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vb-oe-mapa-toast.is-visible {
	opacity: 1;
	visibility: visible;
}

.leaflet-marker-icon {
	background: transparent !important;
	border: 0 !important;
}

/* Lista responsiva + paginação */
.vb-oe-lista,
.vb-oe-lista-grid {
	width: 100%;
}

.vb-oe-lista:empty,
.vb-oe-lista.is-idle {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.vb-oe-col-lista:has(.vb-oe-lista:empty),
.vb-oe-col-lista:has(.vb-oe-lista.is-idle) {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}

.vb-oe-lista.is-loading {
	display: block !important;
	padding: 12px 0;
	color: #6b7280;
	font-size: 0.9rem;
}

.vb-oe-lista-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 900px) {
	.vb-oe-lista-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.vb-oe-lista-cards {
		grid-template-columns: 1fr;
	}
}

.vb-oe-paginacao {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.vb-oe-paginacao button {
	min-height: 40px;
	padding: 8px 18px;
	border: 2px solid #1a3a6b;
	background: #fff;
	color: #1a3a6b !important;
	cursor: pointer;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 0.85rem;
	transition: background 0.2s, color 0.2s;
}

.vb-oe-paginacao button:hover:not(:disabled) {
	background: #1a3a6b;
	color: #fff !important;
}

.vb-oe-paginacao button:disabled {
	opacity: 0.4;
	cursor: default;
	border-color: #9ca3af;
	color: #9ca3af !important;
}

.vb-oe-paginacao span {
	font-size: 0.9rem;
	font-weight: 600;
	color: #374151;
	min-width: 3.5rem;
	text-align: center;
}

.vb-oe-card {
	background: #fff;
	border-radius: 1.25rem;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	padding: 14px;
	border: 1px solid #eceff3;
	cursor: default;
}

.vb-oe-card-topo {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.vb-oe-card-icone {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3ebe0 url('../images/pin-valle-branco.png') center / 20px no-repeat;
}

.vb-oe-card-textos h3 {
	margin: 0 0 3px;
	font-size: 0.92rem;
	color: #1a3a6b;
	line-height: 1.25;
}

.vb-oe-card-cidade,
.vb-oe-card-end,
.vb-oe-popup-cidade,
.vb-oe-popup-end {
	margin: 0;
	color: #6b7280;
	font-size: 0.8rem;
	line-height: 1.35;
}

.vb-oe-card-produtos,
.vb-oe-popup-produtos {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
}

.vb-oe-popup-label {
	display: block;
	font-size: 0.65rem;
	letter-spacing: 0.04em;
	font-weight: 700;
	color: #6b7280;
	margin-bottom: 6px;
}

.vb-oe-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.vb-oe-chip {
	display: inline-block;
	background: #eef1f5;
	color: #1a3a6b;
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 0.68rem;
	text-transform: uppercase;
}

.vb-oe-card-acoes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.vb-oe-btn-rota,
.vb-oe-btn-mapa,
.vb-oe-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.85rem;
	border-radius: 999px !important;
	padding: 9px 14px;
	box-sizing: border-box;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
}

.vb-oe-btn-rota,
.vb-oe-popup-btn {
	background: #1a3a6b !important;
	color: #fff !important;
	border: 1px solid #1a3a6b !important;
}

.vb-oe-btn-mapa {
	background: #fff !important;
	color: #1a3a6b !important;
	border: 1px solid #1a3a6b !important;
}

.vb-oe-btn-mapa:hover,
.vb-oe-btn-rota:hover,
.vb-oe-popup-btn:hover {
	opacity: 0.92;
	color: inherit;
}

.vb-oe-popup-btn {
	width: 100%;
	margin-top: 10px;
	font-size: 0.8rem;
	padding: 8px 12px;
	color: #fff !important;
}

/* Popup do mapa — mais baixo para caber no viewport */
.vb-oe-leaflet-popup .leaflet-popup-content-wrapper {
	border-radius: 14px;
	padding: 0;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
	overflow: visible;
}

.vb-oe-leaflet-popup .leaflet-popup-content {
	margin: 0;
	min-width: 220px;
	font-size: 12px;
}

.vb-oe-leaflet-popup .leaflet-popup-tip {
	background: #fff;
}

.vb-oe-leaflet-popup .leaflet-popup-close-button {
	display: none !important;
}

.vb-oe-popup-card {
	position: relative;
	padding: 14px 14px 12px;
	background: #fff;
	border-radius: 14px;
}

.vb-oe-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 10;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	min-height: 28px !important;
	max-height: 28px !important;
	aspect-ratio: 1 / 1;
	border-radius: 50% !important;
	border: 1px solid #d1d5db;
	background: #f3f4f6;
	font-size: 18px;
	line-height: 1;
	font-weight: 400;
	color: #6b7280;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box;
	flex-shrink: 0;
	pointer-events: auto;
}

.vb-oe-popup-titulo {
	margin: 0 32px 4px 0;
	font-size: 0.92rem;
	color: #1a3a6b;
}

.vb-oe-popup-produtos ul {
	margin: 0;
	padding-left: 16px;
	color: #374151;
	font-size: 0.78rem;
}

.vb-oe-popup-produtos li {
	margin-bottom: 3px;
}

/* Layout completo: filtros | mapa + lista embaixo */
.vb-oe-layout[data-vb-oe-completo] {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: stretch;
	width: 100%;
}

.vb-oe-col-filtros,
.vb-oe-col-mapa,
.vb-oe-col-lista {
	min-width: 0;
	width: 100%;
}

.vb-oe-col-filtros {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
}

.vb-oe-col-filtros > .vb-oe-busca-wrap,
.vb-oe-col-filtros > .vb-oe-filtro-wrap {
	flex: 0 0 auto;
}

.vb-oe-layout[data-vb-oe-completo] .vb-oe-col-mapa .vb-oe-mapa {
	width: 100%;
	min-height: 80vh;
	height: 80vh !important;
}

.vb-oe-col-lista {
	grid-column: 1 / -1;
}

/* Mobile: larguras iguais, mapa 80vh, produtos 40vh */
@media (max-width: 899px) {
	.vb-oe-col-filtros,
	.vb-oe-col-mapa,
	.vb-oe-busca-wrap,
	.vb-oe-filtro-wrap,
	.vb-oe-produtos-wrap,
	.vb-oe-busca,
	.vb-oe-cidade,
	.vb-oe-geo,
	.vb-oe-limpar,
	.vb-oe-mapa {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
	}

	.vb-oe-filtro-wrap {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
	}

	.vb-oe-filtro-wrap .vb-oe-cidade {
		flex: 0 0 auto;
		width: 100%;
	}

	.vb-oe-geo {
		width: 100%;
		justify-content: center;
	}

	.vb-oe-col-filtros {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.vb-oe-produtos-wrap {
		flex: 0 0 auto;
	}

	.vb-oe-produtos-box {
		flex: none;
		height: 40vh;
		min-height: 40vh;
		max-height: 40vh;
	}

	.vb-oe-layout[data-vb-oe-completo] .vb-oe-col-mapa .vb-oe-mapa {
		min-height: 80vh;
		height: 80vh !important;
	}
}

@media (min-width: 900px) {
	.vb-oe-layout[data-vb-oe-completo] {
		grid-template-columns: 35% 65%;
		gap: 20px;
		align-items: stretch;
	}

	.vb-oe-col-filtros {
		grid-column: 1;
		grid-row: 1;
		align-self: stretch;
		height: 80vh;
		max-height: 80vh;
		overflow: hidden;
	}

	.vb-oe-col-mapa {
		grid-column: 2;
		grid-row: 1;
		align-self: stretch;
	}

	.vb-oe-col-lista {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}
