/**
 * Estilos da Seção Map
 * Baseado no design do Figma node-id: 19281-1702
 * Mapa do Paraná com pontos de coleta
 */

.map-section {
	background: #e13144; /* Vermelho do design - pode ser substituído por variável CSS se necessário */
	padding: 102px 0 0;
	display: flex;
	flex-direction: column;
	gap: 87px;
	align-items: center;
	position: relative;
	overflow: hidden;
}

/* Breakpoint para notebooks de tela pequena (1366x768) */
@media (max-width: 1366px) {
	.map-section {
		/* padding: 80px 0; */
		gap: 64px;
	}

	.map-section__header {
		max-width: 1100px;
	}

	.map-section__map-container {
		max-width: 1100px;
	}
}

@media (max-width: 767.98px) {
	.map-section {
		padding: 40px 0 0;
		gap: 32px;
	}
}

/* Header: Logo, Descrição e CTA */
.map-section__header {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	justify-content: center;
	max-width: 1216px;
	width: 100%;
	padding: 0 20px;
	text-align: center;
}

/* Logo/Marca */
.map-section__logo {
	width: 418px;
	height: 168px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.map-section__logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.map-section__title-fallback {
	font-family: var(--font-family-headings);
	font-size: var(--font-size-title);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--line-height-title);
	color: #ffffff;
	text-align: center;
}

/* Descrição */
.map-section__description {
	font-family: var(--font-family-body); /* Globotipo Rounded */
	font-size: var(--font-size-description);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-height-description);
	color: #ffffff;
	text-align: center;
	max-width: 100%;
}

.map-section__description p {
	margin: 0;
	line-height: 1;
}

/* Botão CTA */
.map-section__cta {
	margin-top: 0;
}

.map-section__cta .btn-natal-cta {
	background-color: #0c7003;
	border: 2px solid #064800;
	border-left: 0;
	border-radius: 6px;
	padding: 16px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	transition: var(--transition-base);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.map-section__cta .btn-natal-cta:hover,
.map-section__cta .btn-natal-cta:focus {
	background-color: #0a5d02;
	border-color: #053d00;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.map-section__cta .btn-natal-cta:active {
	background-color: #084a01 !important; /* Mantém background mais escuro quando pressionado */
	border-color: #042a00 !important;
	text-decoration: none;
	transform: translateY(0); /* Remove o efeito de elevação quando pressionado */
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) !important; /* Sombra mais próxima quando pressionado */
}

.map-section__cta .btn-natal-cta .btn-natal-cta__text {
	font-family: var(--font-family-body); /* Globotipo Rounded */
	font-weight: var(--font-weight-bold);
	font-size: 16px;
	line-height: 16px;
	color: #ffffff;
	white-space: nowrap;
}

/* Mapa do Paraná */
.map-section__map-wrapper {
	position: relative;
	width: 100%;
	max-width: 1440px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 0 20px;
}

.map-section__map {
	position: relative;
	width: 100%;
	max-width: 1000px;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.map-section__map svg {
	width: 100%;
	height: auto;
	display: block;
}


.map-section__map-img {
	width: 100%;
	height: auto;
	display: block;
}

/* Regiões do mapa - cores do design do Figma (tons de rosa/vermelho) */
.map-section__map .map-region {
	stroke-width: 0.6px;
	stroke: #ffffff;
	cursor: pointer;
	transition: fill 0.3s ease, opacity 0.3s ease;
}

.map-section__map .map-region:hover {
	opacity: 0.9;
	filter: brightness(1.1);
}

/* Cores das regiões baseadas no design do Figma */
.map-section__map .map-region[data-region="foz-do-iguacu"] {
	fill: #E9477E; /* Rosa escuro */
}

.map-section__map .map-region[data-region="cascavel"] {
	fill: #F17BA3; /* Rosa médio */
}

.map-section__map .map-region[data-region="noroeste"] {
	fill: #CD3655; /* Vermelho escuro */
}

.map-section__map .map-region[data-region="maringa"] {
	fill: #E9477E; /* Rosa escuro */
}

.map-section__map .map-region[data-region="londrina"] {
	fill: #F5A3C0; /* Rosa claro */
}

.map-section__map .map-region[data-region="ponta-grossa"] {
	fill: #FFB8D1; /* Rosa muito claro */
}

.map-section__map .map-region[data-region="curitiba"] {
	fill: #E9477E; /* Rosa escuro */
}

.map-section__map .map-region[data-region="guarapuava"] {
	fill: #CD3655; /* Vermelho escuro */
}

/* Labels das regiões */
.map-section__map .map-region-label {
	pointer-events: none;
	user-select: none;
	font-size: 8px;
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-bold);
}

/* Marcadores de localização (pins) */
.map-section__marker {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 10;
	cursor: pointer;
	transition: transform 0.3s ease;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.map-section__marker:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.map-section__marker:focus {
	outline: 2px solid #fdc627;
	outline-offset: 4px;
	border-radius: 50%;
}

.map-section__marker-icon {
	width: 64px;
	height: 64px;
	color: #fdc627; /* Amarelo dos pins */
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	pointer-events: none;
}

.map-section__marker-label {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	font-family: var(--font-family-headings);
	font-size: 14px;
	font-weight: var(--font-weight-bold);
	color: #ffffff;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.7);
	padding: 4px 8px;
	border-radius: 4px;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.map-section__marker:hover .map-section__marker-label {
	opacity: 1;
}

/* Modal */
.map-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	pointer-events: none;
}

.map-modal--active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

.map-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

.map-modal__content {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	max-width: 1200px; /* Aumentado para acomodar duas colunas */
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease;
	z-index: 1;
	box-sizing: border-box;
}

.map-modal--active .map-modal__content {
	transform: scale(1);
}

.map-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, transform 0.3s ease;
	z-index: 10;
}

.map-modal__close:hover {
	background: rgba(0, 0, 0, 0.2);
	transform: rotate(90deg);
}

.map-modal__close:focus {
	outline: 2px solid #fdc627;
	outline-offset: 2px;
}

.map-modal__close svg {
	width: 20px;
	height: 20px;
	color: #333;
	pointer-events: none;
}

.map-modal__header {
	padding: 32px 32px 16px;
	border-bottom: 1px solid #e0e0e0;
}

.map-modal__title {
	font-family: var(--font-family-headings);
	font-size: 28px;
	font-weight: var(--font-weight-bold);
	color: #e13144;
	margin: 0;
}

.map-modal__body {
	padding: 24px 32px 32px;
	box-sizing: border-box;
	width: 100%;
	overflow-x: hidden; /* Previne scroll horizontal */
}

.map-modal__content-wrapper {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	min-width: 0; /* Previne quebra no flexbox */
	width: 100%;
	box-sizing: border-box;
}

/* Coluna da Esquerda: Informações */
.map-modal__info {
	flex: 0 0 45%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0; /* Previne quebra no flexbox */
	flex-shrink: 1; /* Permite encolher se necessário */
}

.map-modal__info-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.map-modal__info-label {
	font-family: var(--font-family-headings);
	font-size: 14px;
	font-weight: var(--font-weight-bold);
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.map-modal__info-value {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}

.map-modal__address-link {
	color: #e13144;
	text-decoration: none;
	transition: color 0.3s ease;
	word-break: break-word;
}

.map-modal__address-link:hover,
.map-modal__address-link:focus {
	color: #cd3655;
	text-decoration: underline;
}

/* Botão de outros locais de coleta */
.map-modal__info-item--button {
	margin-top: 8px;
}

.map-modal__other-locations-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background-color: #0c7003;
	border: 2px solid #064800;
	border-radius: 6px;
	color: #ffffff;
	font-family: var(--font-family-body);
	font-size: 16px;
	font-weight: var(--font-weight-bold);
	line-height: 1;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	white-space: nowrap;
}

.map-modal__other-locations-btn:hover,
.map-modal__other-locations-btn:focus {
	background-color: #0a5d02;
	border-color: #053d00;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.map-modal__other-locations-btn:focus-visible {
	outline: 2px solid #fdc627;
	outline-offset: 2px;
}

/* Coluna da Direita: Mapa Google Maps */
.map-modal__map {
	flex: 0 1 55%; /* Permite encolher se necessário */
	position: relative;
	min-width: 0; /* Previne quebra no flexbox */
	height: 400px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 2px solid #e0e0e0; /* Borda no container do mapa */
	box-sizing: border-box;
}

.map-modal__map-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	max-width: 100%;
	box-sizing: border-box;
	object-fit: contain; /* Garante que o iframe se ajuste ao container */
}

/* Responsividade do Modal */

/* Breakpoint para notebooks de tela pequena (1366x768) */
@media (max-width: 1366px) {
	.map-modal__content {
		max-width: 1000px;
	}
}

@media (max-width: 991.98px) {
	.map-modal__content-wrapper {
		flex-direction: column;
		gap: 24px;
	}
	
	.map-modal__info {
		flex: 1 1 100%;
	}
	
	.map-modal__map {
		flex: 1 1 100%;
		height: 300px;
	}
}

@media (max-width: 767.98px) {
	.map-modal__content {
		max-width: 95%;
		padding: 0;
	}
	
	.map-modal__header {
		padding: 24px 24px 16px;
	}
	
	.map-modal__title {
		font-size: var(--font-size-title-mobile);
		line-height: var(--line-height-title-mobile);
	}
	
	.map-modal__body {
		padding: 20px 24px 24px;
	}
	
	.map-modal__content-wrapper {
		flex-direction: column;
		gap: 20px;
	}
	
	.map-modal__info {
		flex: 1 1 100%;
		gap: 20px;
	}
	
	.map-modal__info-item {
		gap: 6px;
	}
	
	.map-modal__info-label {
		font-size: 12px;
	}
	
	.map-modal__info-value {
		font-size: 14px;
	}
	
	.map-modal__other-locations-btn {
		font-size: 14px;
		padding: 10px 20px;
		width: 100%;
		white-space: normal;
	}
	
	.map-modal__map {
		flex: 1 1 100%;
		height: 250px;
	}
	
	.map-modal__close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
	}
	
	.map-modal__close svg {
		width: 18px;
		height: 18px;
	}
}

/* Banner de Atenção */
.map-section__attention {
	background: var(--color-yellow); /* Amarelo - usando variável CSS */
	width: 100%;
	padding: 34px 112px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	color: #cd3655;
}

.map-section__attention-title {
	font-family: var(--font-family-headings); /* Bricolage Grotesque */
	font-size: 64px;
	font-weight: var(--font-weight-extrabold);
	line-height: 1;
	color: #cd3655;
	white-space: nowrap;
	flex-shrink: 0;
}

.map-section__attention-text {
	font-family: var(--font-family-body); /* Globotipo Rounded */
	font-size: 24px;
	font-weight: var(--font-weight-normal);
	line-height: 1;
	color: #cd3655;
	max-width: 696px;
}

.map-section__attention-text p {
	margin: 0;
	line-height: 1;
}

/* Responsividade */
@media (max-width: 991.98px) {
	.map-section {
		padding: 60px 0 0;
		gap: 60px;
	}
	
	.map-section__header {
		gap: 20px;
	}
	
	.map-section__logo {
		width: 300px;
		height: 120px;
	}
	
	.map-section__description {
		font-size: 20px;
	}
	
	.map-section__attention {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding: 28px 40px;
	}
	
	.map-section__attention-title {
		font-size: 48px;
	}
	
	.map-section__attention-text {
		font-size: 20px;
		max-width: 100%;
	}
}

@media (max-width: 767.98px) {
	.map-section {
		padding: 40px 0 0;
		gap: 32px;
	}
	
	.map-section__header {
		gap: 16px;
		padding: 0 16px;
		margin-bottom: 24px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.map-section__logo {
		width: 200px;
		height: 80px;
		max-width: 100%;
	}
	
	.map-section__title-fallback {
		font-size: 3rem;
		line-height: 1.1;
		margin: 0;
		padding: 0;
		word-wrap: break-word;
	}
	
	.map-section__description {
		font-size: 1.125rem;
		line-height: 1.4;
		margin: 0;
		padding: 0;
		word-wrap: break-word;
	}
	
	.map-section__cta {
		margin-top: 8px;
		width: 100%;
		display: flex;
		justify-content: center;
	}
	
	.map-section__map-wrapper {
		padding: 0 16px;
		margin-bottom: 24px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.map-section__marker-icon {
		width: 48px;
		height: 48px;
	}
	
	.map-section__attention {
		padding: 24px 20px;
		gap: 16px;
		margin-top: 24px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.map-section__attention-title {
		font-size: 3rem;
		line-height: 1.1;
		white-space: normal;
		word-wrap: break-word;
	}
	
	.map-section__attention-text {
		font-size: 1.125rem;
		line-height: 1.4;
		word-wrap: break-word;
	}
}

