/* Metroport Sklep — mapa zasięgu (Leaflet) */

.fws-map-wrap {
	--fws-navy: #202040;
	--fws-cyan: #40C0F0;
	--fws-own: #16a6e0;        /* sieć własna */
	--fws-foreign: #f2a23c;    /* sieć obca   */
	--fws-est: #40C0F0;        /* estymowany zasięg */
	--fws-ink: #202040;
	--fws-muted: #6a6a82;
	--fws-line: #e4e4ee;
	font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--fws-ink);
	border: 1px solid var(--fws-line);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px -18px rgba(32, 32, 64, 0.35);
}

/* Toolbar */
.fws-map-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	background: linear-gradient(180deg, #fff, #fbfbfe);
	border-bottom: 1px solid var(--fws-line);
}

.fws-map-search {
	display: flex;
	gap: 8px;
	flex: 1 1 320px;
	min-width: 260px;
}
.fws-map-search .fws-map-q {
	flex: 1;
	border: 1.5px solid var(--fws-line);
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.fws-map-search .fws-map-q:focus {
	border-color: var(--fws-cyan);
	box-shadow: 0 0 0 3px rgba(64, 192, 240, 0.18);
}
.fws-map-search-btn {
	border: 0;
	background: var(--fws-navy);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 20px;
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .15s, transform .05s;
}
.fws-map-search-btn:hover { filter: brightness(1.12); }
.fws-map-search-btn:active { transform: translateY(1px); }

/* Legend */
.fws-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	font-size: 13px;
	color: var(--fws-muted);
}
.fws-lg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fws-lg i {
	width: 14px; height: 14px; border-radius: 50%;
	display: inline-block; flex: none;
}
.fws-lg-own i      { background: var(--fws-own); }
.fws-lg-foreign i  { background: var(--fws-foreign); }
.fws-lg-est i      { background: rgba(64, 192, 240, 0.28); border: 1.5px solid var(--fws-est); }

/* Map canvas */
.fws-map-canvas {
	width: 100%;
	min-height: 320px;
	background: #eef1f6;
}

/* Status line */
.fws-map-status {
	padding: 9px 16px;
	font-size: 13px;
	color: var(--fws-muted);
	border-top: 1px solid var(--fws-line);
	background: #fbfbfe;
	min-height: 18px;
}

/* Leaflet marker dots (divIcon) */
.fws-dot {
	width: 14px; height: 14px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
	box-sizing: border-box;
}
.fws-dot-own     { background: var(--fws-own); }
.fws-dot-foreign { background: var(--fws-foreign); }

/* Popup */
.leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow: 0 14px 40px -14px rgba(32,32,64,.5);
}
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.fws-pop-addr {
	font-size: 16px; font-weight: 700; color: var(--fws-ink);
	margin: 0 0 6px;
}
.fws-pop-row {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; color: var(--fws-muted);
	margin: 4px 0;
}
.fws-pop-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 600;
	padding: 3px 9px; border-radius: 999px;
}
.fws-pop-badge.own     { background: rgba(22,166,224,.12); color: #0d6a92; }
.fws-pop-badge.foreign { background: rgba(242,162,60,.16); color: #9a6512; }
.fws-pop-tech {
	margin: 8px 0 10px;
	font-size: 13px; color: var(--fws-ink);
	background: #f5f7fb; border-radius: 10px; padding: 8px 10px;
}
.fws-pop-tech b { color: var(--fws-navy); }
.fws-pop-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fws-pop-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 600; font-size: 14px;
	border-radius: 10px; padding: 10px 14px; cursor: pointer; border: 0;
	text-decoration: none; text-align: center;
}
.fws-pop-btn.primary { background: var(--fws-cyan); color: var(--fws-navy); }
.fws-pop-btn.primary:hover { filter: brightness(1.06); }
.fws-pop-btn.ghost {
	background: #fff; color: var(--fws-navy);
	border: 1.5px solid var(--fws-line);
}
.fws-pop-btn.ghost:hover { border-color: var(--fws-cyan); }

/* Empty / no-data overlay */
.fws-map-empty {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 24px;
	color: var(--fws-muted); font-size: 14px;
	background: rgba(238,241,246,.85);
	z-index: 500;
}

@media (max-width: 600px) {
	.fws-map-toolbar { flex-direction: column; align-items: stretch; }
	.fws-map-legend { justify-content: flex-start; }
}

/* Objaśnienie różnicy między akcjami w popupie */
.fws-pop-help {
	margin-top: 8px; padding-top: 8px;
	border-top: 1px solid var(--fws-line);
	font-size: 11px; line-height: 1.5; color: var(--fws-muted);
}
.fws-pop-note {
	margin: 8px 0; padding: 8px 10px;
	background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
	font-size: 12px; line-height: 1.5; color: #9a3412;
}

/* Poświata zasięgu (zamiast kresek łączących adresy): szeroka, półprzezroczysta
   linia + nakładające się okręgi tworzą miękką strefę dzięki samej przezroczystości.
   Filtr blur SVG został usunięty — mocno spowalniał renderowanie mapy (był liczony
   przy każdym przesunięciu/zoomie). Wrażenie „rozmycia” daje teraz niska
   przezroczystość warstwy, a nie kosztowny filtr. */
