/* ===== Seção Unidades (secoes/unidades.php) ===== */
#unidades .unidades-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	text-align: left;
}

#unidades .unidade-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #232023;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	padding: 28px 26px 22px;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#unidades .unidade-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: #c8ac48;
	transform: scaleX(0.15);
	transform-origin: left;
	transition: transform 0.35s ease;
}

#unidades .unidade-card:hover {
	transform: translateY(-4px);
	border-color: rgba(200, 172, 72, 0.4);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

#unidades .unidade-card:hover::before { transform: scaleX(1); }

#unidades .unidade-card--sede { border-color: rgba(200, 172, 72, 0.35); }
#unidades .unidade-card--sede::before { transform: scaleX(1); }

#unidades .unidade-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#unidades .unidade-card__cidade {
	margin: 0 0 4px;
	font-size: 22px;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#unidades .unidade-card__tipo {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #c8ac48;
}

#unidades .unidade-card__uf {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	line-height: 40px;
	text-align: center;
	border: 1px solid #c8ac48;
	border-radius: 50%;
	color: #c8ac48;
	font-size: 13px;
	font-weight: 700;
}

#unidades .unidade-card__info {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	flex: 1;
}

#unidades .unidade-card__info li {
	display: flex;
	gap: 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #a9a8ad;
	margin-bottom: 10px;
}

#unidades .unidade-card__info i {
	width: 14px;
	margin-top: 4px;
	color: #c8ac48;
	font-size: 13px;
	text-align: center;
	flex-shrink: 0;
}

#unidades .unidade-card__info a {
	color: #d6d5d9;
	word-break: break-word;
}

#unidades .unidade-card__info a:hover { color: #c8ac48; }

#unidades .unidade-card__mapa {
	align-self: flex-start;
	background: none;
	border: 0;
	padding: 0;
	min-width: 0;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #c8ac48;
}

#unidades .unidade-card__mapa i {
	margin-left: 6px;
	transition: transform 0.2s ease;
}

#unidades .unidade-card__mapa:hover { color: #ffffff; }
#unidades .unidade-card__mapa:hover i { transform: translateX(4px); }

/* ----- Janela do mapa ----- */
.unidade-mapa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.75);
}

.unidade-mapa-modal.is-open { display: flex; }

.unidade-mapa-modal__box {
	width: 100%;
	max-width: 900px;
	background: #1a1a1a;
	border-top: 3px solid #c8ac48;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.unidade-mapa-modal__topo {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
}

.unidade-mapa-modal__topo h4 {
	margin: 0;
	color: #ffffff;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.unidade-mapa-modal__fechar {
	background: none;
	border: 0;
	min-width: 0;
	padding: 0 4px;
	color: #c8ac48;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.unidade-mapa-modal__fechar:hover { color: #ffffff; }

.unidade-mapa-modal__frame {
	position: relative;
	height: 60vh;
	min-height: 320px;
}

.unidade-mapa-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 991px) {
	#unidades .unidades-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	#unidades .unidades-grid { grid-template-columns: 1fr; gap: 16px; }
	#unidades .unidade-card { padding: 22px 20px 18px; }
}
