/* D10 City Data — layout for the map/chart containers. Kept minimal so the active WP theme's
 * typography and colors still show through. */
.d10-city-data {
	margin: 1.5rem 0;
}
.d10-city-data__canvas {
	position: relative;
	width: 100%;
	height: var(--d10-h, 480px);
	border-radius: 8px;
	overflow: hidden;
	background: #f2f3f5;
}
/* Leaflet needs an explicitly sized parent; the map fills the canvas. */
.d10-city-data__canvas .leaflet-container {
	width: 100%;
	height: 100%;
	border-radius: 8px;
}
.d10-city-data__empty {
	margin: 0;
	padding: 2rem 1rem;
	text-align: center;
	color: #555;
}
.d10-city-data__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin-top: 0.6rem;
	font-size: 0.85rem;
	line-height: 1.4;
}
.d10-city-data__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
}
.d10-city-data__legend-item i {
	display: inline-block;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	flex: 0 0 auto;
}
.d10-city-data__meta {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: #6a6f76;
}

/* License-application map: companion list + show-past toggle below the map. */
.d10-city-data__license-panel {
	margin-top: 0.75rem;
}
.d10-city-data__license-title {
	margin: 0 0 0.4rem;
	font-size: 0.95rem;
}
.d10-city-data__license-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 16rem;
	overflow-y: auto;
}
.d10-city-data__license-list li {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.35rem 0.25rem;
	border-bottom: 1px solid #eceef0;
	cursor: pointer;
	font-size: 0.9rem;
}
.d10-city-data__license-list li:hover {
	background: #f6f8fa;
}
.d10-city-data__license-list .dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	flex: 0 0 auto;
	transform: translateY(0.1rem);
}
.d10-city-data__license-list .nm {
	font-weight: 600;
}
.d10-city-data__license-list .wh {
	color: #6a6f76;
	font-size: 0.82rem;
}
.d10-city-data__license-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.6rem;
	font-size: 0.85rem;
	color: #444;
	cursor: pointer;
}

/* Choropleth Count / Per-1,000 toggle (segmented control above the map). */
.d10-city-data__toggle {
	display: inline-flex;
	margin-bottom: 0.5rem;
	border: 1px solid #cfd4da;
	border-radius: 6px;
	overflow: hidden;
}
.d10-city-data__toggle button {
	appearance: none;
	border: 0;
	border-left: 1px solid #cfd4da;
	background: #fff;
	padding: 0.3rem 0.75rem;
	font-size: 0.82rem;
	cursor: pointer;
	color: #333;
}
.d10-city-data__toggle button:first-child { border-left: 0; }
.d10-city-data__toggle button.is-active { background: #2a3f5f; color: #fff; }
.d10-city-data__toggle button[disabled] { opacity: 0.45; cursor: not-allowed; }
.d10-city-data__legend-title { font-weight: 600; margin-right: 0.5rem; }

/* Filter/toggle chips (permits by type, amenities by category). */
.d10-city-data__chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid #cfd4da;
	border-radius: 999px;
	background: #fff;
	padding: 0.2rem 0.6rem;
	font-size: 0.8rem;
	color: #555;
	cursor: pointer;
	opacity: 0.55;
}
.d10-city-data__chip.is-active { opacity: 1; border-color: #9aa3ad; background: #f3f6f9; }
.d10-city-data__chip i {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	flex: 0 0 auto;
}

/* Meetings list (non-map section). */
.d10-city-data__canvas--list {
	height: auto;
	min-height: 0;
	background: transparent;
}
/* Meetings grouped by day. */
.d10-mtgs { display: flex; flex-direction: column; gap: 1.1rem; }
.d10-mtgs__day { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.d10-mtgs__date {
	display: flex; align-items: baseline; gap: 0.5rem;
	padding-bottom: 0.35rem; border-bottom: 2px solid #e6e9ec;
}
.d10-mtgs__date .dow { font-weight: 800; color: #2a3f5f; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
.d10-mtgs__date .dm { font-weight: 600; color: #6a6f76; font-size: 0.9rem; }
.d10-mtgs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.d10-mtg {
	display: grid; grid-template-columns: 1fr; gap: 0.15rem 0.9rem;
	padding: 0.6rem 0.75rem;
	background: #fff; border: 1px solid #eceef0; border-left: 3px solid #2a3f5f; border-radius: 8px;
}
.d10-mtg__time { font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d10-mtg__body { font-weight: 600; color: #2a3f5f; }
.d10-mtg__loc { color: #6a6f76; font-size: 0.85rem; margin-top: 0.1rem; }
.d10-mtg__links { margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.d10-mtg__btn {
	display: inline-block; font-size: 0.8rem; font-weight: 600; text-decoration: none;
	padding: 0.2rem 0.6rem; border-radius: 999px;
	background: #2a3f5f; color: #fff; border: 1px solid #2a3f5f;
}
.d10-mtg__btn--ghost { background: #fff; color: #2a3f5f; }
.d10-mtg__btn:hover { opacity: 0.88; }
@media ( min-width: 620px ) {
	.d10-mtg { grid-template-columns: 7rem 1fr; align-items: baseline; padding: 0.65rem 0.9rem; }
}

/* Neighborhood-org map controls (zoom-to selector + show/hide filter). */
.d10-city-data__rnobar { margin-bottom: 0.6rem; }
.d10-city-data__rnobar .rnobar__row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; }
.d10-city-data__rnobar .rnobar__zoom { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: #555; font-weight: 600; }
.d10-city-data__rnobar .rnobar__select {
	min-width: 15rem; max-width: 100%; padding: 0.35rem 0.5rem;
	border: 1px solid #cfd4da; border-radius: 6px; background: #fff; font: inherit; color: #1f2937;
}
.d10-city-data__rnobar .rnobar__toggle {
	appearance: none; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600; color: #2a3f5f;
	background: #fff; border: 1px solid #cfd4da; border-radius: 6px; padding: 0.4rem 0.7rem;
}
.d10-city-data__rnobar .rnobar__toggle:hover { background: #f3f6f9; }
.d10-city-data__rnobar .rnobar__count { color: #6a6f76; font-weight: 500; }
.d10-city-data__rnobar .rnobar__panel {
	margin-top: 0.5rem; border: 1px solid #e6e9ec; border-radius: 8px; padding: 0.6rem 0.7rem; background: #fafbfc;
}
.d10-city-data__rnobar .rnobar__actions { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.d10-city-data__rnobar .rnobar__actions button {
	appearance: none; cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 600; color: #2a3f5f;
	background: #fff; border: 1px solid #cfd4da; border-radius: 999px; padding: 0.15rem 0.7rem;
}
.d10-city-data__rnobar .rnobar__actions button:hover { background: #eef2f6; }
.d10-city-data__rnobar .rnobar__list {
	display: grid; grid-template-columns: 1fr; gap: 0.1rem 1rem; max-height: 12rem; overflow-y: auto;
}
.d10-city-data__rnobar .rnobar__item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #333; padding: 0.15rem 0; cursor: pointer; }
.d10-city-data__rnobar .rnobar__item input { flex: 0 0 auto; }
@media ( min-width: 620px ) {
	.d10-city-data__rnobar .rnobar__list { grid-template-columns: 1fr 1fr; }
}
