/* Styles for the interactive Kazakhstan contacts map */

.map-wrapper {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
}

.map-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 1.25rem;
	box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.18);
}

.map-marker {
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #0d6efd;
	border: 3px solid #ffffff;
	box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.25);
	transform: translate(-50%, -50%);
	cursor: pointer;
	outline: none;
	border: none;
	padding: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	touch-action: manipulation;
	-webkit-appearance: none;
	appearance: none;
}

.map-marker::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker--active {
	transform: translate(-50%, -50%) scale(1.15);
	box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.3);
	background-color: #0b5ed7;
}

.map-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.85rem 1rem;
	border-radius: 0.9rem;
	background-color: #111827;
	color: #f9fafb;
	font-size: 0.95rem;
	line-height: 1.3;
	box-shadow: 0 1.25rem 2.5rem rgba(17, 24, 39, 0.32);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 10;
	min-width: 220px;
	max-width: 280px;
}

.map-tooltip.visible {
	opacity: 1;
}

.map-tooltip-title {
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.35rem;
}

.map-tooltip-contact {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.map-tooltip-contact i {
	font-size: 1rem;
	line-height: 1;
	margin-top: 0.15rem;
}

.map-legend {
	margin-top: 2.5rem;
}

.map-legend-card {
	background-color: #ffffff;
	border-radius: 1.25rem;
	box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
	padding: 2rem;
}

.map-legend-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 576px) {
	.map-legend-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.map-legend-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.map-legend-item {
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 1rem;
	padding: 1rem 1.25rem;
	display: grid;
	gap: 0.35rem;
	background-color: #f8fafc;
}

.map-legend-name {
	font-weight: 600;
}

.map-legend-phone {
	font-family: "Courier New", monospace;
	font-size: 0.95rem;
}

.map-legend-address {
	font-size: 0.9rem;
	color: #475569;
}

@media (max-width: 575.98px) {
	.map-wrapper img {
		border-radius: 1rem;
	}

	.map-tooltip {
		min-width: 200px;
	}
}