/**
 * Layout final do localizador O Uirapuru.
 *
 * Este arquivo é carregado depois do mapa.css e sobrescreve
 * somente a organização da pesquisa, resultados e mapa.
 */

.ou-locator,
.ou-locator *,
.ou-locator *::before,
.ou-locator *::after {
	box-sizing: border-box;
}

.ou-locator {
	width: 100%;
}

/* =========================================================
   ESTRUTURA PRINCIPAL
========================================================= */

.ou-locator-overlay-layout {
	position: relative;
	width: 100%;
	min-height: 680px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #eadfd3;
	border-radius: 22px;
	box-shadow: 0 18px 45px rgba(55, 33, 22, 0.1);
}

/* =========================================================
   MAPA
========================================================= */

.ou-locator-overlay-map {
	position: relative;
	width: 100%;
	height: 680px;
	min-height: 680px;
}

.ou-locator-overlay-map .ou-locator-map {
	display: block;
	width: 100%;
	height: 100% !important;
	min-height: 680px !important;
	background: #dfe8e9;
}

/* =========================================================
   CABEÇALHO SOBRE O MAPA
========================================================= */

.ou-locator-map-heading {
	position: absolute;
	z-index: 550;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-width: 280px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
	backdrop-filter: blur(8px);
}

.ou-locator-map-heading > div > span {
	display: block;
	margin-bottom: 4px;
	color: #ed3237;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ou-locator-map-heading strong {
	display: block;
	color: #211714;
	font-size: 14px;
	font-weight: 900;
}

.ou-locator-map-heading .ou-locator-map-status {
	flex: 0 0 auto;
}

/* =========================================================
   CAIXA DE PESQUISA SOBRE O MAPA
========================================================= */

.ou-locator-overlay-panel {
	position: absolute;
	z-index: 600;
	top: 20px;
	left: 20px;
	display: flex;
	flex-direction: column;
	width: min(405px, calc(100% - 40px));
	max-height: calc(100% - 40px);
	padding: 22px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid rgba(33, 23, 20, 0.09);
	border-radius: 18px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(10px);
}

.ou-locator-overlay-panel__header {
	flex: 0 0 auto;
	margin-bottom: 16px;
}

.ou-locator-overlay-panel__header .ou-locator-eyebrow {
	display: inline-flex;
	margin-bottom: 9px;
	padding: 6px 10px;
	color: #ed3237;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: #fff0f1;
	border-radius: 999px;
}

.ou-locator-overlay-panel__header h2 {
	margin: 0;
	color: #211714;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ou-locator-overlay-panel__header p {
	margin: 8px 0 0;
	color: #675a55;
	font-size: 12px;
	line-height: 1.5;
}

/* =========================================================
   BUSCA
========================================================= */

.ou-locator-overlay-panel .ou-locator-form {
	flex: 0 0 auto;
	margin: 0;
}

.ou-locator-overlay-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.ou-locator-overlay-search input[type="search"] {
	display: block;
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 13px;
	color: #211714;
	font-family: inherit;
	font-size: 13px;
	background: #ffffff;
	border: 1px solid #d9cdc2;
	border-radius: 10px;
	outline: 0;
	box-shadow: none;
	appearance: none;
}

.ou-locator-overlay-search input[type="search"]:focus {
	border-color: #ed3237;
	box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.12);
}

.ou-locator-overlay-search .ou-locator-button--primary {
	width: auto;
	height: 48px;
	min-height: 48px;
	padding: 0 15px;
	font-size: 11px;
	border-radius: 10px;
}

/* =========================================================
   AÇÕES
========================================================= */

.ou-locator-overlay-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 9px;
	margin-top: 9px;
}

.ou-locator-overlay-actions .ou-locator-button--outline {
	flex: 1 1 auto;
	min-height: 39px;
	padding: 0 12px;
	font-size: 10px;
	border-radius: 9px;
}

.ou-locator-overlay-actions .ou-locator-clear-link {
	flex: 0 0 auto;
	min-height: 39px;
	padding: 0 5px;
	font-size: 10px;
}

/* =========================================================
   FILTROS
========================================================= */

.ou-locator-overlay-panel .ou-locator-type-filters {
	display: flex;
	gap: 6px;
	margin-top: 13px;
	padding-bottom: 3px;
	overflow-x: auto;
	scrollbar-width: none;
}

.ou-locator-overlay-panel
.ou-locator-type-filters::-webkit-scrollbar {
	display: none;
}

.ou-locator-overlay-panel
.ou-locator-type-filters button {
	flex: 0 0 auto;
	min-height: 32px;
	padding: 0 10px;
	font-size: 9px;
	border-radius: 999px;
}

/* =========================================================
   RESUMO
========================================================= */

.ou-locator-overlay-panel .ou-locator-summary {
	flex: 0 0 auto;
	min-height: 18px;
	margin: 13px 0 7px;
	font-size: 10px;
}

.ou-locator-overlay-panel .ou-locator-summary strong {
	font-size: 12px;
}

/* =========================================================
   RESULTADOS COM ROLAGEM
========================================================= */

.ou-locator-results--overlay {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 245px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #d8cbc0 transparent;
}

.ou-locator-results--overlay::-webkit-scrollbar {
	width: 6px;
}

.ou-locator-results--overlay::-webkit-scrollbar-track {
	background: transparent;
}

.ou-locator-results--overlay::-webkit-scrollbar-thumb {
	background: #d8cbc0;
	border-radius: 999px;
}

.ou-locator-results--overlay .ou-locator-list {
	gap: 7px;
}

.ou-locator-results--overlay .ou-locator-card {
	padding: 11px;
	border-radius: 11px;
}

.ou-locator-results--overlay
.ou-locator-card__top {
	display: block;
}

.ou-locator-results--overlay
.ou-locator-card__title-area h3 {
	font-size: 13px;
	line-height: 1.25;
}

.ou-locator-results--overlay
.ou-locator-card__type {
	margin-top: 4px;
	padding: 4px 7px;
	font-size: 8px;
}

.ou-locator-results--overlay
.ou-locator-card__distance {
	display: inline-flex;
	max-width: none;
	margin-top: 5px;
	padding: 0;
	font-size: 9px;
	text-align: left;
	background: transparent;
}

.ou-locator-results--overlay
.ou-locator-card__address {
	margin-top: 5px;
	font-size: 9px;
	line-height: 1.4;
}

.ou-locator-results--overlay
.ou-locator-card__actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-top: 8px;
}

.ou-locator-results--overlay
.ou-locator-card__map-button,
.ou-locator-results--overlay
.ou-locator-card__route-button {
	min-height: 34px;
	padding: 0 8px;
	font-size: 8px;
	border-radius: 7px;
}

/* =========================================================
   CONTROLES DO LEAFLET
========================================================= */

.ou-locator-overlay-layout
.leaflet-top.leaflet-left {
	top: auto;
	right: 18px;
	bottom: 18px;
	left: auto;
}

.ou-locator-overlay-layout
.leaflet-control-zoom {
	margin: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 900px) {

	.ou-locator-overlay-layout {
		min-height: 620px;
	}

	.ou-locator-overlay-map {
		height: 620px;
		min-height: 620px;
	}

	.ou-locator-overlay-map .ou-locator-map {
		min-height: 620px !important;
	}

	.ou-locator-overlay-panel {
		width: min(380px, calc(100% - 32px));
		top: 16px;
		left: 16px;
		max-height: calc(100% - 32px);
	}

	.ou-locator-map-heading {
		top: 16px;
		right: 16px;
	}

}

/* =========================================================
   CELULAR
========================================================= */

@media screen and (max-width: 767px) {

	.ou-locator-overlay-layout {
		display: flex;
		flex-direction: column;
		gap: 14px;
		min-height: 0;
		overflow: visible;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.ou-locator-overlay-panel {
		position: static;
		order: 1;
		width: 100%;
		max-height: none;
		padding: 18px;
		overflow: visible;
		background: #ffffff;
		border: 1px solid #eadfd3;
		border-radius: 15px;
		box-shadow: 0 8px 24px rgba(55, 33, 22, 0.09);
		backdrop-filter: none;
	}

	.ou-locator-overlay-panel__header h2 {
		font-size: 24px;
	}

	.ou-locator-overlay-search {
		grid-template-columns: 1fr;
	}

	.ou-locator-overlay-search
	.ou-locator-button--primary {
		width: 100%;
	}

	.ou-locator-overlay-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ou-locator-overlay-actions
	.ou-locator-button--outline,
	.ou-locator-overlay-actions
	.ou-locator-clear-link {
		width: 100%;
	}

	/*
	 * A lista deixa de empurrar o mapa.
	 * Apenas a área interna dos resultados possui rolagem.
	 */
	.ou-locator-results--overlay {
		max-height: 225px;
		overflow-y: auto;
	}

	.ou-locator-overlay-map {
		position: relative;
		order: 2;
		height: 410px;
		min-height: 410px;
		overflow: hidden;
		border: 1px solid #eadfd3;
		border-radius: 15px;
		box-shadow: 0 8px 24px rgba(55, 33, 22, 0.09);
	}

	.ou-locator-overlay-map .ou-locator-map {
		height: 410px !important;
		min-height: 410px !important;
		border-radius: 15px;
	}

	.ou-locator-map-heading {
		top: 12px;
		right: 12px;
		left: 12px;
		min-width: 0;
		padding: 11px 13px;
	}

	.ou-locator-map-heading strong {
		font-size: 12px;
	}

	.ou-locator-map-heading
	.ou-locator-map-status {
		display: none;
	}

	.ou-locator-overlay-layout
	.leaflet-top.leaflet-left {
		right: 12px;
		bottom: 12px;
	}

}

/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media screen and (max-width: 430px) {

	.ou-locator-overlay-panel {
		padding: 15px;
	}

	.ou-locator-overlay-panel__header h2 {
		font-size: 22px;
	}

	.ou-locator-overlay-panel__header p {
		font-size: 11px;
	}

	.ou-locator-results--overlay {
		max-height: 205px;
	}

	.ou-locator-overlay-map,
	.ou-locator-overlay-map .ou-locator-map {
		height: 370px !important;
		min-height: 370px !important;
	}

}