/**
 * Cornwall settlements explorer — parish choropleth + OS points.
 *
 * @package The_Duchy
 */

.settlements-map-page {
	/* Shell layout: duchy-explorer.css */
}

.settlements-map-wrap,
.settlements-map-canvas,
#settlements-map,
.settlements-map-sidebar,
.settlements-map-sidebar__head,
.settlements-map-sidebar__body,
.settlements-map-back,
.settlements-map-layers,
.settlements-map-layers__btn {
	/* Shell layout: duchy-explorer.css */
}

@media (max-width: 900px) {
	/* Mobile shell: duchy-explorer.css */
}

.settlements-map-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}

.settlements-map-stat {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 0.5rem 0.6rem;
	text-align: center;
}

.settlements-map-stat__n {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a237e;
	line-height: 1.1;
}

.settlements-map-stat__l {
	font-size: 0.72rem;
	color: #666;
}

.settlements-map-legend {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 0.65rem 0.75rem;
	margin-bottom: 0.65rem;
}

.settlements-map-legend h3 {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #999;
}

.settlements-map-legend__row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.35rem;
	font-size: 0.8rem;
	color: #333;
}

.settlements-map-legend__swatch {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.settlements-map-legend__swatch--outline {
	border-radius: 2px;
	width: 18px;
	height: 12px;
	background: transparent;
	border: 2px solid #3d5a80;
}

.settlements-map-legend__swatch--selected {
	border-radius: 2px;
	width: 18px;
	height: 12px;
	background: transparent;
	border: 2.5px solid #e65100;
}

.settlements-map-choro {
	display: flex;
	border-radius: 4px;
	overflow: hidden;
	height: 14px;
	margin-bottom: 0.25rem;
}

.settlements-map-choro span {
	flex: 1;
}

.settlements-map-choro-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.7rem;
	color: #777;
}

.settlements-map-parish-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a237e;
	margin-bottom: 0.35rem;
	line-height: 1.15;
}

.settlements-map-parish-card {
	background: #fff;
	border: 2px solid #1a237e;
	border-radius: 8px;
	padding: 0.85rem 0.9rem;
	margin-bottom: 0.65rem;
}

.settlements-map-parish-card__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

.settlements-map-parish-area {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.55rem;
}

.settlements-map-parish-breakdown {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.settlements-map-parish-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: #e8f0fe;
	color: #1a237e;
	font-size: 0.72rem;
	font-weight: 600;
}

.settlements-map-parish-chip--muted {
	background: #f1f3f4;
	color: #555;
}

.settlements-map-parish-chip--site {
	background: #e8f5e9;
	color: #2e7d32;
}

.settlements-map-parish-note {
	margin: 0;
	font-size: 0.75rem;
	color: #777;
	line-height: 1.45;
}

.settlements-map-parish-stats {
	font-size: 0.82rem;
	color: #555;
	line-height: 1.55;
	margin-bottom: 0.5rem;
}

.settlements-map-back {
	/* duchy-explorer.css */
}

.settlements-map-parish-detail.is-open .settlements-map-back {
	/* duchy-explorer.css */
}

.settlements-map-back:hover {
	/* duchy-explorer.css */
}

.settlements-map-place-list h3 {
	margin: 0.75rem 0 0.35rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #999;
}

.settlements-map-site-list h3 {
	margin: 0.85rem 0 0.4rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #999;
}

.settlements-map-site-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.45rem 0.55rem;
	margin-bottom: 0.25rem;
	border-radius: 4px;
	background: #fff;
	border: 1px solid #e9ecef;
	font-size: 0.82rem;
	text-decoration: none;
	color: inherit;
}

.settlements-map-site-link:hover {
	background: #e8f4fd;
	border-color: #c5d9f5;
}

.settlements-map-site-link__name {
	font-weight: 600;
	color: #1a237e;
	flex: 1 1 auto;
	min-width: 0;
}

.settlements-map-place {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.35rem 0.5rem;
	margin-bottom: 0.2rem;
	border-radius: 4px;
	background: #fff;
	border: 1px solid #e9ecef;
	font-size: 0.82rem;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
}

.settlements-map-place:hover {
	background: #e8f4fd;
	border-color: #c5d9f5;
}

.settlements-map-place__name {
	color: #222;
	font-weight: 500;
	flex: 1 1 auto;
	min-width: 0;
}

.settlements-map-place__name a {
	color: inherit;
	text-decoration: none;
}

.settlements-map-place__name a:hover {
	text-decoration: underline;
	color: #1a73e8;
}

.settlements-map-place__meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.settlements-map-type {
	font-size: 0.68rem;
	padding: 0.12rem 0.4rem;
	border-radius: 10px;
	color: #fff;
	white-space: nowrap;
}

.settlements-map-type--town { background: #2196f3; }
.settlements-map-type--village { background: #4caf50; }
.settlements-map-type--hamlet { background: #ff9800; }
.settlements-map-type--other { background: #9c27b0; }
.settlements-map-type--suburban { background: #607d8b; }

.settlements-map-badge {
	font-size: 0.62rem;
	padding: 0.1rem 0.35rem;
	border-radius: 8px;
	background: #e8f0fe;
	color: #1a73e8;
	font-weight: 700;
}

.settlements-map-filter {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	color: #555;
	margin: 0.5rem 0 0.35rem;
}

.settlements-map-filter input {
	accent-color: #1a237e;
}

.settlements-map-empty {
	color: #999;
	font-size: 0.82rem;
	padding: 0.25rem 0;
}

/* Larger tap targets for manual-gap pins */
.settlements-map-pin {
	background: transparent;
	border: none;
}

.settlements-map-pin--gold .settlements-map-pin__dot {
	width: 8px;
	height: 8px;
	margin: 3px;
	border-radius: 50%;
	background: #ffd700;
	border: 1.5px solid #b8860b;
	box-shadow: 0 0 4px 2px rgba(255, 215, 0, 0.45);
}

#settlements-map .leaflet-interactive {
	cursor: pointer;
}

/* Beach layer — toggle buttons in duchy-explorer.css */
.settlements-map-layers,
.settlements-map-layers__btn {
	/* duchy-explorer.css */
}

.settlements-map-layers__btn.is-on {
	/* duchy-explorer.css */
}

.settlements-map-layers__btn:not(.is-on) {
	/* duchy-explorer.css */
}

.settlements-map-beach-pin {
	background: transparent;
	border: none;
}

.settlements-map-beach-pin__diamond {
	width: 14px;
	height: 14px;
	border: 2.5px solid #fff;
	transform: rotate(45deg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.settlements-map-legend__swatch--wq-excellent { background: #00796b; }
.settlements-map-legend__swatch--wq-good { background: #43a047; }
.settlements-map-legend__swatch--wq-sufficient { background: #fb8c00; }
.settlements-map-legend__swatch--wq-unknown { background: #546e7a; }

.settlements-map-legend__note {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: #5f6368;
	line-height: 1.4;
}

.settlements-map-beach-detail {
	padding: 0 1rem 1rem;
	overflow-y: auto;
}

.settlements-map-beach-card {
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 0.85rem 0.9rem;
	margin-bottom: 0.65rem;
}

.settlements-map-beach-card__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #00838f;
}

.settlements-map-beach-name {
	font-size: 1.05rem;
	font-weight: 800;
	color: #00695c;
	margin-bottom: 0.45rem;
}

.settlements-map-beach-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	margin-bottom: 0.65rem;
}

.settlements-map-beach-attrs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 0.65rem;
}

.settlements-map-beach-attr {
	background: #f8f9fa;
	border: 1px solid #e8eaed;
	border-radius: 6px;
	padding: 6px 8px;
	font-size: 0.74rem;
}

.settlements-map-beach-attr__k {
	display: block;
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #80868b;
	margin-bottom: 2px;
}

.settlements-map-beach-attr__v {
	font-weight: 700;
	color: #202124;
}

.settlements-map-beach-note {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: #5f6368;
}

.settlements-map-beach-links {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.settlements-map-beach-link {
	font-size: 0.78rem;
	font-weight: 700;
	color: #1565c0;
	text-decoration: none;
}

.settlements-map-beach-link--site {
	color: #1a237e;
}

.settlements-map-beach-link:hover {
	text-decoration: underline;
}

/* Mobile layout: duchy-explorer.css */
