/**
 * Konte Child – Store Locator [konte_store_locator]
 * Sekcja „Znajdź punkt stacjonarny” – super-modern layout, spójny z motywem Konte.
 */

.konte-child-store-locator-section {
	--store-locator-accent: #000;
	--store-locator-accent-hover: #469DDD;
	--store-locator-accent-light: rgba(70, 157, 221, 0.05);
	--store-locator-border: #eaeaea;
	--store-locator-text: #161619;
	--store-locator-muted: #777;
	--store-locator-bg: #fff;
	padding: 4rem 0;
}

.konte-child-store-locator-section .container {
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Section header */
.konte-child-store-locator-section .section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.konte-child-store-locator-section .section-title {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--store-locator-text);
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

.konte-child-store-locator-section .section-subtitle {
	font-size: 1.125rem;
	color: var(--store-locator-muted);
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Layout główny */
.konte-child-store-locator-section .locator-container {
	display: flex;
	flex-direction: column;
	background: var(--store-locator-bg);
	border-radius: 12px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--store-locator-border);
	overflow: hidden;
}

/* Mobile: lista w boxie ze scrollem, mapa pod spodem */
@media (max-width: 768px) {
	.konte-child-store-locator-section .locator-container {
		display: flex !important;
		flex-direction: column !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: hidden !important;
	}

	.konte-child-store-locator-section .locator-sidebar {
		flex: none !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: hidden !important;
		display: flex !important;
		flex-direction: column !important;
	}

	.konte-child-store-locator-section .locator-sidebar .shops-scroll,
	.konte-child-store-locator-section #shops-list.shops-scroll {
		flex: none !important;
		height: 500px !important;
		min-height: 500px !important;
		max-height: 500px !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.konte-child-store-locator-section .store-card {
		min-height: 72px !important;
	}

	.konte-child-store-locator-section .locator-map-wrap {
		flex: none !important;
		height: 220px !important;
		min-height: 220px !important;
	}

	.konte-child-store-locator-section .locator-map-wrap .konte-child-osm-map,
	.konte-child-store-locator-section #konte-child-locator-map {
		height: 100% !important;
	}
}

@media (min-width: 992px) {
	.konte-child-store-locator-section .locator-container {
		flex-direction: row;
		height: 650px;
	}
}

/* Sidebar */
.konte-child-store-locator-section .locator-sidebar {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	width: 100%;
	background: var(--store-locator-bg);
	border-bottom: 1px solid var(--store-locator-border);
	z-index: 2;
}

@media (min-width: 992px) {
	.konte-child-store-locator-section .locator-sidebar {
		width: 440px;
		min-width: 440px;
		border-bottom: none;
		border-right: 1px solid var(--store-locator-border);
		padding: 2.5rem;
	}
}

/* Przycisk lokalizacji */
.konte-child-store-locator-section .konte-child-locator-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 52px;
	padding: 12px 24px;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: var(--store-locator-accent);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
}

.konte-child-store-locator-section .konte-child-locator-btn:hover:not(:disabled) {
	background: var(--store-locator-accent-hover);
}

.konte-child-store-locator-section .konte-child-locator-btn:disabled,
.konte-child-store-locator-section .konte-child-locator-btn.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.konte-child-store-locator-section .konte-child-locator-btn .ph {
	font-size: 1.25rem;
}

/* Status pod przyciskiem */
.konte-child-store-locator-section .locator-status {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--store-locator-muted);
	text-align: center;
	min-height: 1.25rem;
}

.konte-child-store-locator-section .locator-status--error {
	color: #e53935;
}

/* Filtr typu punktu w sidebarze */
.konte-child-store-locator-section .locator-store-type-filter {
	display: flex;
	gap: 0.25rem;
	margin: 1.5rem 0 1rem;
	background: #f7f7f7;
	padding: 4px;
	border-radius: 6px;
}

.konte-child-store-locator-section .locator-filter-btn {
	flex: 1;
	padding: 0.6rem 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--store-locator-muted);
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.konte-child-store-locator-section .locator-filter-btn:hover {
	color: var(--store-locator-text);
}

.konte-child-store-locator-section .locator-filter-btn.active {
	color: var(--store-locator-text);
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Lista sklepów – przewijana */
.konte-child-store-locator-section .shops-scroll {
	flex: 1;
	overflow-y: auto;
	margin-right: -1rem;
	padding-right: 1rem;
	border-top: 1px solid var(--store-locator-border);
}

@media (min-width: 992px) {
	.konte-child-store-locator-section .shops-scroll {
		margin-right: -1.5rem;
		padding-right: 1.5rem;
	}
}

/* Niestandardowy pasek przewijania */
.konte-child-store-locator-section .shops-scroll::-webkit-scrollbar {
	width: 4px;
}
.konte-child-store-locator-section .shops-scroll::-webkit-scrollbar-track {
	background: transparent;
}
.konte-child-store-locator-section .shops-scroll::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 4px;
}
.konte-child-store-locator-section .shops-scroll::-webkit-scrollbar-thumb:hover {
	background: #bbb;
}

.konte-child-store-locator-section .shops-placeholder {
	text-align: center;
	color: #aaa;
	padding: 3rem 1rem;
	font-size: 0.875rem;
}

/* Karty sklepu */
.konte-child-store-locator-section .store-card {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--store-locator-border);
	transition: transform 0.2s ease;
	cursor: pointer;
}

.konte-child-store-locator-section .store-card:last-child {
	border-bottom: none;
}

.konte-child-store-locator-section .store-card:hover {
	transform: translateX(4px);
}

.konte-child-store-locator-section .store-card__type {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.5rem;
	border-radius: 3px;
	margin-bottom: 0.75rem;
	background: #f0f4f8;
	color: #333;
}

.konte-child-store-locator-section .store-card__type i {
	font-size: 0.875rem;
	color: #469DDD;
}

.konte-child-store-locator-section .store-card__title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--store-locator-text);
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.konte-child-store-locator-section .store-card__address {
	font-size: 0.875rem;
	color: var(--store-locator-muted);
	margin: 0 0 0.5rem;
	line-height: 1.5;
}

.konte-child-store-locator-section .store-card__distance {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--store-locator-accent-hover);
	margin: 0 0 0.5rem;
	line-height: 1.5;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.konte-child-store-locator-section .store-card__distance .ph {
	font-size: 1rem;
	opacity: 0.9;
}

.konte-child-store-locator-section .store-card__contact {
	font-size: 0.875rem;
	color: var(--store-locator-text);
	margin: 0 0 0.5rem;
	line-height: 1.5;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.konte-child-store-locator-section .store-card__contact-link,
.konte-child-store-locator-section .store-card__reveal-phone {
	color: var(--store-locator-text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.konte-child-store-locator-section .store-card__contact-link i,
.konte-child-store-locator-section .store-card__reveal-phone i {
	color: #469DDD;
	font-size: 1rem;
}

.konte-child-store-locator-section .store-card__contact-link:hover,
.konte-child-store-locator-section .store-card__reveal-phone:hover {
	color: #469DDD;
}

.konte-child-store-locator-section .store-card__reveal-phone {
	cursor: pointer;
}

.konte-child-store-locator-section .store-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.konte-child-store-locator-section .store-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--store-locator-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.konte-child-store-locator-section .store-card__link i {
	font-size: 1rem;
}

.konte-child-store-locator-section .store-card__link:hover {
	color: var(--store-locator-accent-hover);
}

/* Prawa kolumna: mapa Leaflet */
.konte-child-store-locator-section .locator-map-wrap {
	flex: 1;
	min-height: 450px;
	position: relative;
	background: #f9f9f9;
}

.konte-child-store-locator-section .konte-child-osm-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Własne markery mapy */
.konte-child-store-locator-section .store-marker {
	border: none !important;
	background: none !important;
}

.konte-child-store-locator-section .store-marker-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #111;
	color: #fff;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	font-size: 20px;
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease;
}

.konte-child-store-locator-section .store-marker:hover .store-marker-inner {
	transform: scale(1.15) translateY(-4px);
	background: #469DDD;
}

.konte-child-store-locator-section .store-popup-type {
	font-size: 0.8em;
	color: var(--store-locator-muted);
}

.konte-child-store-locator-section .store-popup-distance {
	display: block;
	margin-top: 0.35em;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--store-locator-accent-hover);
}

.leaflet-popup-content-wrapper {
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	padding: 1rem;
}
.leaflet-popup-content {
	margin: 0;
	font-family: inherit;
}
.leaflet-popup-content h3 {
	font-size: 1rem;
	margin: 0 0 0.5rem;
}
.leaflet-popup-content p {
	margin: 0;
	color: #666;
	font-size: 0.875rem;
}
