/*
Theme Name: Zamarat
Theme URI: https://zamarat.pl/
Author: virtualmedia.pl
Description: Motyw serwisu Zamarat - wyłącznego przedstawiciela dachówek ceramicznych Edilians. Bez Elementora, Tailwind + czysty JavaScript.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: zamarat
*/

/*
 * Układ i wygląd siedzą w klasach Tailwinda (assets/tailwind.css).
 * Tu tylko to, czego nie da się sensownie wyrazić klasami.
 */
:root {
	--el-header-h: 4.5rem;
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Mapa doradców: województwa jako klikalne ścieżki SVG. */
.el-region {
	fill: #e7e1da;
	stroke: #3a332e;
	stroke-width: 2px;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill .2s;
}
.el-region:hover,
.el-region:focus-visible {
	fill: #e0656d;
	outline: none;
}
.el-region[aria-pressed="true"] {
	fill: #c8102e;
}
.el-region-label {
	font: 600 40px/1 "Outfit", sans-serif;
	pointer-events: none;
	fill: #3a332e;
}

/*
 * Gdzie kupić bez Map Google (klucz odrzucony, inc/assets.php): sama lista sklepów
 * na całą szerokość. Tutaj, nie w Tailwindzie - arkusz wtyczki nie ma warstwy,
 * więc reguły z @layer zawsze by z nim przegrały.
 */
.el-no-maps .asl-wrapper .Filter_section,
.el-no-maps .asl-wrapper .asl-map {
	display: none !important;
}
.el-no-maps .asl-wrapper #asl-panel {
	position: static !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
}
.el-no-maps .asl-wrapper .sl-main-cont,
.el-no-maps .asl-wrapper .sl-main-row,
.el-no-maps .asl-wrapper .asl-panel-inner,
.el-no-maps .asl-wrapper .sl-main-cont-box,
.el-no-maps .asl-wrapper .sl-list-wrapper {
	position: static !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}
/* Zapasowa mapa sklepów (inc/store-map.php) - tylko gdy Mapy Google odmówią. */
.el-store-map {
	display: none !important;
}
.el-no-maps .el-store-map {
	display: grid !important;
	margin-bottom: 3rem;
}
.el-store-region {
	fill: #ece6df;
	stroke: #fff;
	stroke-width: 6;
}
.el-store-pin {
	cursor: pointer;
	fill: #c8102e;
	stroke: #fff;
	stroke-width: 8;
	transition: fill 0.15s;
}
.el-store-pin circle {
	fill: #fff;
	stroke: none;
}
.el-store-pin:focus {
	outline: none;
}
.el-store-pin:hover,
.el-store-pin:focus-visible {
	fill: #3a332e;
}
.el-store-pin[aria-pressed="true"] {
	fill: #1f1a17;
}
.el-no-maps .asl-wrapper .sl-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
