/* Safety Radar – frontend */

.akt-radar {
	margin: 24px 0;
	font-size: 15px;
}

.akt-radar-map {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	z-index: 0;
}

.akt-radar-status {
	margin: 8px 0 0;
	font-size: 13px;
	color: #666;
}

/* --- Markery --- */

.akt-marker {
	display: block;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.45 );
	transition: transform 0.12s ease;
}

.akt-marker:hover {
	transform: scale( 1.15 );
}

.akt-marker-archived {
	opacity: 0.45;
	border-style: dashed;
}

/* --- Filtre --- */

.akt-radar-filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.akt-filter-types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.akt-filter-type {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
	line-height: 1.2;
}

.akt-filter-rest {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.akt-filter-select {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #444;
}

.akt-filter-select select {
	font-size: 13px;
	padding: 3px 6px;
}

/* --- Legenda --- */

.akt-legend {
	background: rgba( 255, 255, 255, 0.94 );
	border-radius: 6px;
	box-shadow: 0 1px 6px rgba( 0, 0, 0, 0.25 );
	font-size: 12px;
	line-height: 1.5;
	max-width: 230px;
	overflow: hidden;
}

.akt-legend-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 7px 10px;
	background: transparent;
	border: 0;
	font: inherit;
	font-weight: 600;
	color: inherit;
	cursor: pointer;
}

.akt-legend-arrow {
	font-size: 11px;
	opacity: 0.7;
}

.akt-legend-body {
	padding: 0 10px 8px;
}

.akt-legend-closed .akt-legend-body {
	display: none;
}

.akt-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.akt-legend-note {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #eee;
	color: #666;
}

.akt-legend-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	min-width: 12px;
	border-radius: 50%;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
}

/* --- Popup --- */

.akt-popup {
	font-size: 13px;
	line-height: 1.45;
}

.akt-popup-thumb {
	display: block;
	width: 100%;
	height: auto;
	max-height: 140px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 8px;
}

.akt-popup-title {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	margin-bottom: 6px;
}

.akt-popup-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 8px;
	color: #444;
}

.akt-popup-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.akt-popup-label {
	color: #777;
	min-width: 92px;
}

.akt-popup-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.akt-popup-link {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
}

/* --- Zoznamy --- */

.akt-radar-list,
.akt-nearby {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.akt-list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 6px;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: inherit;
}

.akt-list-item:hover {
	background: #fafafa;
}

.akt-list-item .akt-legend-dot {
	margin-top: 4px;
}

.akt-list-body {
	display: flex;
	flex-direction: column;
}

.akt-list-title {
	font-weight: 600;
	line-height: 1.3;
}

.akt-list-meta {
	font-size: 12px;
	color: #777;
}

/* --- Mapa pod článkom --- */

.akt-article-map {
	border-top: 1px solid #eee;
	padding-top: 18px;
}

.akt-article-map-title,
.akt-nearby-title {
	margin: 0 0 10px;
	font-size: 17px;
}

.akt-nearby-title {
	font-size: 15px;
	margin-top: 14px;
}

@media ( max-width: 600px ) {
	.akt-legend {
		max-width: 150px;
		font-size: 11px;
	}

	.akt-filter-rest {
		gap: 8px;
	}
}

/* --- Tmavá téma --- */

.akt-theme-dark .akt-radar-map {
	background: #0b0f14;
}

.akt-theme-dark .akt-legend {
	background: rgba( 17, 22, 29, 0.95 );
	color: #e6e8eb;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.6 );
}

.akt-theme-dark .akt-legend-note {
	border-top-color: #2a323d;
	color: #9aa4b1;
}

.akt-theme-dark .akt-legend-dot,
.akt-theme-dark .akt-marker {
	border-color: rgba( 255, 255, 255, 0.85 );
}

.akt-theme-dark .akt-filter-type,
.akt-theme-dark .akt-filter-select,
.akt-theme-dark .akt-radar-status {
	color: #c7cdd6;
}

.akt-theme-dark .akt-filter-select select {
	background: #161b22;
	color: #e6e8eb;
	border: 1px solid #2a323d;
	border-radius: 4px;
}

.akt-theme-dark .leaflet-popup-content-wrapper,
.akt-theme-dark .leaflet-popup-tip {
	background: #161b22;
	color: #e6e8eb;
	box-shadow: 0 3px 14px rgba( 0, 0, 0, 0.6 );
}

.akt-theme-dark .akt-popup-label {
	color: #9aa4b1;
}

.akt-theme-dark .akt-popup-meta {
	color: #c7cdd6;
}

.akt-theme-dark .akt-popup-link {
	color: #6ea8fe;
}

.akt-theme-dark .leaflet-popup-close-button {
	color: #9aa4b1 !important;
}

.akt-theme-dark .leaflet-control-zoom a {
	background: #161b22;
	color: #e6e8eb;
	border-bottom-color: #2a323d;
}

.akt-theme-dark .leaflet-control-zoom a:hover {
	background: #212933;
}

.akt-theme-dark .leaflet-control-attribution {
	background: rgba( 17, 22, 29, 0.8 );
	color: #8b95a1;
}

.akt-theme-dark .leaflet-control-attribution a {
	color: #8b95a1;
}

.akt-theme-dark .akt-list-item {
	border-bottom-color: #232a33;
	color: #e6e8eb;
}

.akt-theme-dark .akt-list-item:hover {
	background: #161b22;
}

.akt-theme-dark .akt-list-meta {
	color: #9aa4b1;
}

.akt-theme-dark .akt-article-map {
	border-top-color: #232a33;
}

/* --- Stmavená stránka radaru --- */

body.akt-dark-page {
	background: #0b0f14;
	color: #e6e8eb;
}

body.akt-dark-page h1,
body.akt-dark-page h2,
body.akt-dark-page h3,
body.akt-dark-page h4,
body.akt-dark-page p,
body.akt-dark-page li,
body.akt-dark-page span,
body.akt-dark-page label {
	color: #e6e8eb;
}

body.akt-dark-page a {
	color: #6ea8fe;
}

body.akt-dark-page,
body.akt-dark-page #page,
body.akt-dark-page .site,
body.akt-dark-page .site-main,
body.akt-dark-page .wrapper,
body.akt-dark-page .container,
body.akt-dark-page .post,
body.akt-dark-page .page,
body.akt-dark-page .entry,
body.akt-dark-page .site-content,
body.akt-dark-page .entry-content,
body.akt-dark-page .content-area,
body.akt-dark-page main,
body.akt-dark-page article,
body.akt-dark-page #primary,
body.akt-dark-page #content {
	background: transparent;
}

/* --- Podklad z obrysov štátov --- */

.akt-radar {
	position: relative;
}

.akt-theme-dark .leaflet-container {
	background: #0b0f14;
}

.leaflet-tooltip {
	background: #161b22;
	color: #e6e8eb;
	border: 1px solid #2a323d;
	box-shadow: none;
}

.leaflet-tooltip-top:before {
	border-top-color: #2a323d;
}

/* --- Panel krajiny --- */

.akt-country-panel {
	display: none;
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 500;
	width: 320px;
	max-width: calc( 100% - 24px );
	max-height: calc( 100% - 24px );
	overflow-y: auto;
	background: rgba( 17, 22, 29, 0.97 );
	color: #e6e8eb;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.6 );
	padding: 14px 16px 12px;
}

.akt-country-panel.is-open {
	display: block;
}

.akt-country-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: 0;
	color: #9aa4b1;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.akt-country-name {
	margin: 0 24px 8px 0;
	font-size: 17px;
	color: #fff;
}

.akt-country-score {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.akt-country-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.akt-country-level {
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #0b0f14;
}

.akt-country-meta,
.akt-country-none,
.akt-country-loading {
	font-size: 12px;
	color: #9aa4b1;
}

.akt-country-note {
	font-size: 12px;
	color: #c7cdd6;
	margin: 6px 0 0;
}

.akt-country-panel .akt-list-item {
	border-bottom-color: #232a33;
	color: #e6e8eb;
	padding: 7px 0;
}

.akt-country-panel .akt-list-item:hover {
	background: transparent;
	text-decoration: underline;
}

@media ( max-width: 600px ) {
	.akt-country-panel {
		width: calc( 100% - 24px );
	}
}
