/*
 * Styl celowo minimalny: dziedziczy typografię motywu, a wszystkie kolory
 * i odstępy siedzą w zmiennych, żeby podmienić je pod identyfikację Fundacji.
 */

.anw {
	--anw-gap: 1.25rem;
	--anw-radius: 10px;
	--anw-border: #d9ddd6;
	--anw-muted: #5b615a;
	--anw-accent: #2f6f4f;
	--anw-surface: #fff;
}

.anw-sr,
.anw .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Filtry */

.anw-filters {
	display: flex;
	flex-direction: column;
	gap: var(--anw-gap);
	margin-bottom: var(--anw-gap);
	padding: var(--anw-gap);
	border: 1px solid var(--anw-border);
	border-radius: var(--anw-radius);
	background: var(--anw-surface);
}

.anw-filters__search {
	max-width: 28rem;
}

.anw-filters__grid {
	display: grid;
	gap: var(--anw-gap);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	align-items: start;
}

.anw-filters__more > summary {
	font-weight: 600;
	cursor: pointer;
	padding: 0.25rem 0;
}

.anw-filters__more[open] > summary {
	margin-bottom: 0.75rem;
}

@media (min-width: 701px) {
	.anw-filters__more > summary {
		display: none;
	}
}

.anw-filters__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.anw-filters__group legend {
	padding: 0;
	font-weight: 600;
}

.anw-filters__options {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-top: 0.5rem;
	max-height: 18rem;
	overflow-y: auto;
}

.anw-check {
	display: flex;
	gap: 0.45rem;
	align-items: baseline;
	font-size: 0.9em;
	line-height: 1.3;
	cursor: pointer;
}

.anw-check input {
	flex: none;
	margin: 0;
}

.anw-filters__search label,
.anw-filters__group > label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.anw-filters__search input,
.anw-filters__group select {
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--anw-border);
	border-radius: 6px;
	background: #fff;
}

.anw-filters__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
}

.anw-reset {
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--anw-border);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.anw-count {
	margin: 0;
	color: var(--anw-muted);
}

/* Mapa i lista */

.anw-map {
	width: 100%;
	min-height: 320px;
	border: 1px solid var(--anw-border);
	border-radius: var(--anw-radius);
	z-index: 0;
}

.anw-map:focus-visible {
	outline: 3px solid var(--anw-accent);
	outline-offset: 2px;
}

.anw-list-wrap {
	margin-top: var(--anw-gap);
}

.anw-list {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.anw-list__item {
	padding: 0.9rem 1rem;
	border: 1px solid var(--anw-border);
	border-radius: var(--anw-radius);
	background: var(--anw-surface);
}

.anw-list__name {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}

.anw-list__meta,
.anw-list__short {
	margin: 0 0 0.5rem;
	color: var(--anw-muted);
	font-size: 0.9rem;
}

.anw-list__locate {
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--anw-border);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font-size: 0.9rem;
}

/* Pinezka */

.anw-pin {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--anw-pin, #2f6f4f);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.anw-pin img {
	width: 18px;
	height: 18px;
	transform: rotate(45deg);
}

.leaflet-marker-icon:focus .anw-pin {
	outline: 3px solid #1d3f2d;
	outline-offset: 2px;
}

/* Dymek */

.anw-popup__title {
	margin: 0 0 0.2rem;
	font-size: 1rem;
}

.anw-popup__meta {
	margin: 0 0 0.5rem;
	color: var(--anw-muted);
	font-size: 0.85rem;
}

.anw-popup__thumb {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 0.5rem;
	border-radius: 6px;
}

.anw-popup__short {
	margin: 0 0 0.5rem;
}

.anw-popup__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
}

.anw-popup__more {
	display: inline-block;
	font-weight: 600;
}

/* Karta miejsca */

.anw-place__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.anw-place__icons li {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
}

.anw-place__facts {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: 0.4rem 1rem;
	margin: 0 0 1.5rem;
}

.anw-place__facts dt {
	font-weight: 600;
}

.anw-place__facts dd {
	margin: 0;
}

.anw-minimap {
	height: 320px;
	border: 1px solid var(--anw-border);
	border-radius: var(--anw-radius);
	z-index: 0;
}

@media (max-width: 600px) {
	.anw-place__facts {
		grid-template-columns: 1fr;
		gap: 0 0;
	}

	.anw-place__facts dd {
		margin-bottom: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anw * {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
