/* Outage map — modern layout, controls, fullscreen TV mode */

.outage-map-shell {
	position: relative;
	background: #f4f6f9;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.outage-map-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 18px 22px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
}

.outage-map-toolbar-main {
	min-width: 0;
}

.outage-map-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
	margin-bottom: 4px;
}

.outage-map-title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.outage-map-title [data-outage-count] {
	display: inline-block;
}

body.outages-active .outage-map-title [data-outage-count] {
	color: #fca5a5;
}

body.outages-clear .outage-map-title [data-outage-count] {
	color: #86efac;
}

.outage-map-subtitle {
	margin: 6px 0 0;
	font-size: 14px;
	color: #e2e8f0;
}

.outage-map-toolbar .outage-map-subtitle,
.outage-map-toolbar .outage-map-eyebrow {
	color: #e2e8f0;
}

.outage-map-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.outage-map-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.outage-map-btn:hover,
.outage-map-btn:focus {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.outage-map-btn.is-active {
	background: #2563eb;
	border-color: #2563eb;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.outage-map-btn--primary {
	background: #e11d48;
	border-color: #e11d48;
}

.outage-map-btn--primary:hover,
.outage-map-btn--primary:focus {
	background: #be123c;
	border-color: #be123c;
}

.outage-map-canvas-wrap {
	position: relative;
	background: #dbe3ec;
}

#outage-map {
	width: 100%;
	height: min(68vh, 720px);
	min-height: 420px;
}

#outage-map.leaflet-container {
	font-family: inherit;
	z-index: 1;
}

.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.leaflet-popup-content {
	margin: 12px 14px;
}

.outage-map-info {
	min-width: 180px;
	max-width: 260px;
	font-size: 14px;
	line-height: 1.45;
	color: #111827;
}

.outage-map-info strong {
	display: block;
	font-size: 15px;
	margin-bottom: 6px;
}

.outage-map-info-meta {
	color: #4b5563;
	margin-bottom: 4px;
}

.outage-map-info-btn {
	margin-top: 8px;
	border: 0;
	background: #0f172a;
	color: #ffffff;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.outage-map-info--locked p {
	margin: 8px 0 0;
}

a.outage-map-info-btn:hover,
a.outage-map-info-btn:focus {
	color: #ffffff;
	text-decoration: none;
}

.outage-map-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 22px 16px;
	font-size: 13px;
	color: #64748b;
	background: #ffffff;
}

.outage-map-attribution a {
	color: #64748b;
	text-decoration: underline;
}

/* Fullscreen / TV mode */
body.map-page-fullscreen-active {
	overflow: hidden;
}

body.map-page-fullscreen-active header,
body.map-page-fullscreen-active footer,
body.map-page-fullscreen-active .outages-bar-wrap {
	display: none !important;
}

main.map-page.map-page-fullscreen {
	padding-top: 0 !important;
	margin: 0;
}

main.map-page.map-page-fullscreen .outage-map-shell {
	border-radius: 0;
	border: 0;
	box-shadow: none;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main.map-page.map-page-fullscreen .outage-map-canvas-wrap {
	flex: 1 1 auto;
}

main.map-page.map-page-fullscreen #outage-map {
	height: calc(100vh - 132px);
	min-height: calc(100vh - 132px);
	max-height: none;
}

main.map-page.map-page-fullscreen .outage-map-toolbar {
	padding: 16px 20px;
}

main.map-page.map-page-fullscreen .outage-map-footer {
	padding: 10px 20px 14px;
}

#coverage-map {
	width: 100%;
	height: 500px;
	min-height: 420px;
}

#coverage-map.leaflet-container {
	font-family: inherit;
	z-index: 1;
}

.coverage-map-header {
	margin-bottom: 12px;
}

.coverage-map-header h4 {
	margin: 0 0 4px;
}

.coverage-map-updated {
	font-size: 13px;
	color: #64748b;
}

.coverage-map-actions {
	margin-top: 12px;
}

.coverage-map-fullscreen-link {
	display: inline-block;
	color: #fff;
	background: #e91e63;
	padding: 6px 14px;
	font-weight: 500;
	border-radius: 20px;
	text-decoration: none;
}

.coverage-map-fullscreen-link:hover,
.coverage-map-fullscreen-link:focus {
	color: #fff;
	text-decoration: none;
}

@media (max-width: 767px) {
	.outage-map-toolbar {
		padding: 16px;
	}

	.outage-map-actions {
		width: 100%;
	}

	.outage-map-btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	#outage-map {
		min-height: 360px;
		height: 56vh;
	}
}
