/**
 * Filials map (Leaflet + OSM) — Kyiv front page.
 */

.filials-map-wrap {
	width: 100%;
	margin-top: 24px;
	/* tab-table is a CSS grid; span all columns for full-width map */
	grid-column: 1 / -1;
}

.filials-map-toggle {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 20px;
	border: 0;
	cursor: pointer;
	text-transform: uppercase;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #e7e6d3;
	background-color: #0b3430;
	transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.filials-map-toggle:hover,
.filials-map-toggle:focus-visible {
	background-color: #0a453f;
	color: #b28d5d;
	outline: none;
}

.filials-map-toggle.is-active {
	background-color: #b28d5d;
	color: #0b3430;
}

.filials-map-toggle:disabled {
	opacity: 0.65;
	cursor: wait;
}

.filials-map-panel {
	width: 100%;
	margin-top: 16px;
}

.filials-map-panel__status {
	min-height: 0;
	font-size: 13px;
	color: #04201d;
	text-align: center;
}

.filials-map-panel__status:not(:empty) {
	margin-bottom: 10px;
}

.filials-map-canvas {
	width: 100%;
	height: 420px;
	min-height: 420px;
	border: 1px solid rgba(11, 52, 48, 0.2);
	background-color: #e7e6d3;
	position: relative;
	z-index: 1;
}

.filials-map-canvas .leaflet-container {
	width: 100%;
	height: 100%;
	min-height: 420px;
	background: #e7e6d3;
}

/* Leaflet does not render SVG reliably via L.icon — use divIcon pin */
.filials-map-marker-icon {
	background: transparent;
	border: 0;
}

.filials-map-marker-icon .filials-map-marker-pin {
	--filials-map-marker-color: #0b3430;
	--filials-map-marker-mask: url(../public/frisor_logo.svg);
	display: block;
	width: 36px;
	height: 36px;
	background-color: var(--filials-map-marker-color);
	-webkit-mask: var(--filials-map-marker-mask) no-repeat center / contain;
	mask: var(--filials-map-marker-mask) no-repeat center / contain;
}

.filials-map-canvas.is-hidden {
	display: none;
}

@media (max-width: 767px) {
	.filials-map-canvas {
		height: 320px;
	}

	.filials-map-toggle {
		font-size: 13px;
		padding: 12px 16px;
	}
}

/* Leaflet popup — theme styling */
.filials-map-popup .leaflet-popup-content-wrapper {
	border-radius: 0;
	background: #e7e6d3;
	color: #0b3430;
	box-shadow: 0 4px 18px rgba(11, 52, 48, 0.25);
	padding: 0;
}

.filials-map-popup .leaflet-popup-content {
	margin: 0;
	min-width: 220px;
	max-width: 280px;
}

.filials-map-popup .leaflet-popup-tip {
	background: #e7e6d3;
}

.filials-map-popup__inner {
	padding: 12px 14px 10px;
	text-align: center;
}

.filials-map-popup__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.25;
    font-family: 'Georgia', sans-serif;
}

.filials-map-popup__title a {
	color: #0b3430;
	text-decoration: none;
}

.filials-map-popup__title a:hover {
	color: #b28d5d;
}

.filials-map-popup__address {
	margin: 0 0 4px;
	font-size: 13px;
	text-transform: uppercase;
	color: #04201d;
	line-height: 1.35;
}

.filials-map-popup__district {
	margin: 0 0 6px;
	font-size: 11px;
	color: #848484;
}

.filials-map-popup__phones {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0 0 8px;
}

.filials-map-popup__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	color: #04201d;
	text-decoration: none;
	white-space: nowrap;
}

.filials-map-popup__phone::before {
	content: " ";
	display: inline-block;
	width: 13px;
	height: 15px;
	margin-right: 6px;
	vertical-align: middle;
	background-image: url(../public/tel-icon.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.filials-map-popup__phone:hover {
	color: #b28d5d;
}

.filials-map-popup__actions {
	display: flex;
	justify-content: center;
	margin-top: 2px;
}

.filials-map-popup__coming {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	color: #848484;
}

.filials-map-popup .filials-map-popup__book.parallelogram-button {
	display: inline-block;
	padding: 4px 10px;
	margin: 0;
	filter: grayscale(1);
	transition: filter 0.5s;
	transform: skew(-16deg);
}

.filials-map-popup .filials-map-popup__book.parallelogram-button::before,
.filials-map-popup .filials-map-popup__book.parallelogram-button::after {
	width: 10px;
}

.filials-map-popup .filials-map-popup__book.parallelogram-button::before {
	left: -9px;
}

.filials-map-popup .filials-map-popup__book.parallelogram-button::after {
	right: -9px;
}

.filials-map-popup .filials-map-popup__book.parallelogram-button > span {
	font-size: 9px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	transform: skew(16deg);
}

.filials-map-popup .filials-map-popup__book.parallelogram-button:hover {
	filter: grayscale(0);
}
