/* ============================================================
   RH Coverage Map
   ============================================================ */

.rh-map-wrap {
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(13,35,64,.15);
	border: 1px solid #e7e5e4;
	width: 100%;
	position: relative;
}

.rh-map-sidebar {
	width: 220px;
	min-width: 220px;
	flex-shrink: 0;
	background: #fff;
	border-right: 1px solid #e7e5e4;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 2;
	/* Height matches wrap via flex — no absolute positioning */
}

.rh-map-sidebar-top {
	padding: 10px;
	background: #F4F1EC;
	border-bottom: 1px solid #e7e5e4;
	flex-shrink: 0;
}

.rh-map-filter {
	width: 100%;
	padding: 7px 10px;
	border: 1.5px solid #d6d3d1;
	border-radius: 6px;
	font-size: .8rem;
	font-family: inherit;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.rh-map-filter:focus {
	border-color: #E8612A;
	box-shadow: 0 0 0 3px rgba(232,97,42,.12);
}

.rh-map-count {
	font-size: .65rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #a8a29e;
	margin-top: 6px;
}

/* List fills remaining sidebar height and scrolls */
.rh-map-list {
	flex: 1;
	min-height: 0; /* required for flex child to scroll */
	overflow-y: scroll;
	padding: 4px 0;
	scrollbar-width: thin;
	scrollbar-color: #E8612A #f4f1ec;
}

.rh-map-list::-webkit-scrollbar { width: 4px; }
.rh-map-list::-webkit-scrollbar-track { background: #f4f1ec; }
.rh-map-list::-webkit-scrollbar-thumb { background: #E8612A; border-radius: 99px; }

.rh-mi {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-left: 3px solid transparent;
	cursor: pointer;
	text-decoration: none;
}

.rh-mi:hover,
.rh-mi.act {
	background: rgba(232,97,42,.08);
	border-left-color: #E8612A;
	text-decoration: none;
}

.rh-mi .d {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #E8612A;
	flex-shrink: 0;
	opacity: .35;
}

.rh-mi:hover .d,
.rh-mi.act .d { opacity: 1; }

.rh-mi .n {
	font-size: .78rem;
	color: #1c1917;
	font-weight: 500;
}

.rh-mi.hid { display: none; }

/* Canvas — flex fills remaining width, height set inline by JS */
.rh-map-canvas {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.rh-map-canvas .leaflet-container {
	width: 100% !important;
	height: 100% !important;
}

/* Popups */
.rh-pop-label {
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #E8612A;
	margin-bottom: 3px;
}

.rh-pop-name {
	font-weight: 800;
	font-size: .95rem;
	color: #0D2340;
	margin-bottom: 10px;
}

.rh-pop-btn {
	display: block;
	background: #E8612A;
	color: #fff !important;
	text-align: center;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.rh-pop-btn:hover { background: #c9511f !important; }

.leaflet-popup-content-wrapper {
	border-radius: 10px !important;
	box-shadow: 0 8px 30px rgba(13,35,64,.18) !important;
	padding: 14px 16px 12px !important;
}

.leaflet-popup-content {
	margin: 0 !important;
	width: 190px !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.rh-map-sidebar {
		width: 180px;
		min-width: 180px;
	}
}

@media (max-width: 600px) {
	.rh-map-wrap { flex-direction: column; }
	.rh-map-sidebar {
		width: 100% !important;
		min-width: 0;
		height: 160px;
		border-right: none;
		border-bottom: 1px solid #e7e5e4;
	}
	.rh-map-canvas {
		width: 100% !important;
		height: 340px !important;
	}
}