/* עמוד מפת המוזיקה - פריסה מסך מלא, נתונים מימין וגלובוס משמאל */

body.hm-music-map-page-active .site-content,
body.hm-music-map-page-active #content,
body.hm-music-map-page-active .entry-content {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}

.hm-music-map {
	--hm-map-accent: var(--hm-site-link, #cb1e53);
	--hm-map-glow: var(--hm-site-link, #fa8504);
	--hm-map-heading: var(--hm-site-heading, #20215a);
	--hm-map-stage-bg: radial-gradient(ellipse at 42% 38%,
			rgba(32, 33, 90, 0.55) 0%,
			rgba(13, 13, 24, 0.95) 68%);
	max-width: 1440px;
	margin: 0 auto;
	padding: 0.5rem 0.75rem;
	color: var(--hm-site-text, #333);
	height: calc(100vh - 88px);
	min-height: 520px;
	max-height: 920px;
	box-sizing: border-box;
}

html[data-hm-theme='dark'] .hm-music-map {
	--hm-map-stage-bg: radial-gradient(ellipse at 42% 38%,
			rgba(203, 30, 83, 0.22) 0%,
			rgba(22, 22, 46, 0.98) 70%);
}

.hm-music-map__layout {
	display: grid;
	grid-template-columns: minmax(300px, 38%) 1fr;
	gap: 0.85rem;
	height: 100%;
	min-height: 0;
	direction: rtl;
}

.hm-music-map__sidebar {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	gap: 0.65rem;
}

.hm-music-map__hero {
	flex: 0 0 auto;
}

.hm-music-map__eyebrow {
	margin: 0 0 0.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--hm-map-accent);
}

.hm-music-map__title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	line-height: 1.15;
	color: var(--hm-map-heading);
}

.hm-music-map__subtitle {
	margin: 0 0 0.55rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--hm-site-muted, #666);
}

.hm-music-map__panels {
	display: grid;
	grid-template-rows: minmax(0, 0.72fr) minmax(0, 1.28fr);
	gap: 0.55rem;
	flex: 1 1 auto;
	min-height: 0;
}

.hm-music-map__panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 0.65rem 0.75rem;
	border-radius: 14px;
	background: var(--hm-site-surface, #fff);
	border: 1px solid var(--hm-site-border, rgba(32, 33, 90, 0.14));
}

.hm-music-map__panel-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0 0 0.45rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--hm-map-heading);
	flex: 0 0 auto;
}

.hm-music-map__panel-count {
	flex: 0 0 auto;
	min-width: 1.6rem;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hm-map-accent) 14%, transparent);
	color: var(--hm-map-accent);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.hm-music-map__city-list,
.hm-music-map__recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--hm-map-accent) transparent;
}

.hm-music-map__city-list::-webkit-scrollbar,
.hm-music-map__recent-list::-webkit-scrollbar {
	width: 5px;
}

.hm-music-map__city-list::-webkit-scrollbar-thumb,
.hm-music-map__recent-list::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--hm-map-accent) 55%, transparent);
	border-radius: 999px;
}

.hm-music-map__city-item,
.hm-music-map__recent-item {
	padding: 0.38rem 0;
	border-bottom: 1px solid var(--hm-site-border, rgba(32, 33, 90, 0.1));
}

.hm-music-map__city-item:last-child,
.hm-music-map__recent-item:last-child {
	border-bottom: 0;
}

.hm-music-map__city-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.hm-music-map__city-name {
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.3;
}

.hm-music-map__city-count {
	flex: 0 0 auto;
	min-width: 1.6rem;
	text-align: center;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hm-map-accent) 14%, transparent);
	color: var(--hm-map-accent);
	font-weight: 700;
	font-size: 0.78rem;
}

.hm-music-map__recent-track {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-music-map__recent-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.hm-music-map__recent-link:hover,
.hm-music-map__recent-link:focus-visible {
	color: var(--hm-map-accent);
	text-decoration: underline;
}

.hm-music-map__recent-meta {
	margin-top: 0.1rem;
	font-size: 0.74rem;
	color: var(--hm-site-muted, #666);
}

.hm-music-map__empty {
	padding: 0.35rem 0;
	font-size: 0.8rem;
	color: var(--hm-site-muted, #666);
}

.hm-music-map__privacy {
	flex: 0 0 auto;
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.35;
	color: var(--hm-site-muted, #666);
}

.hm-music-map__stage {
	position: relative;
	min-height: 0;
	height: 100%;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--hm-site-border, rgba(32, 33, 90, 0.14));
	background: var(--hm-map-stage-bg);
	box-shadow: 0 12px 32px rgba(32, 33, 90, 0.12);
}

.hm-music-map__globe {
	width: 100%;
	height: 100%;
	/* מזיז את הגלובוס ימינה כדי שלא ייחתך בקצה השמאלי של המסך */
	transform: translateX(12%);
}

.hm-music-map__loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.88);
	background: rgba(8, 8, 16, 0.45);
	transition: opacity 0.3s ease;
}

.hm-music-map__loading.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.hm-music-map__spinner {
	width: 30px;
	height: 30px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: var(--hm-map-glow);
	border-radius: 50%;
	animation: hm-map-spin 0.8s linear infinite;
}

@keyframes hm-map-spin {
	to {
		transform: rotate(360deg);
	}
}

html[data-hm-theme='dark'] .hm-music-map__panel {
	box-shadow: none;
}

@media (max-width: 960px) {
	.hm-music-map {
		height: auto;
		max-height: none;
		min-height: 0;
		padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
	}

	.hm-music-map__layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		height: auto;
		gap: 1rem;
	}

	.hm-music-map__sidebar {
		order: 1;
		max-height: none;
		overflow: visible;
	}

	.hm-music-map__panels {
		grid-template-rows: auto auto;
		min-height: 0;
		flex: 0 0 auto;
	}

	.hm-music-map__panel {
		min-height: 0;
	}

	.hm-music-map__city-list,
	.hm-music-map__recent-list {
		max-height: 140px;
		flex: 0 1 auto;
	}

	.hm-music-map__stage {
		order: 2;
		height: clamp(220px, 36vh, 320px);
		min-height: 220px;
		flex-shrink: 0;
	}

	.hm-music-map__globe {
		transform: translateX(6%);
	}
}

@media (max-height: 700px) and (min-width: 961px) {
	.hm-music-map {
		height: calc(100vh - 72px);
		min-height: 480px;
	}

	.hm-music-map__title {
		font-size: 1.25rem;
	}

	.hm-music-map__subtitle {
		display: none;
	}

}