/* The City Rocks Map – Frontend (ohne Tailwind) */

.tcr-map-wrap {
	--tcr-map-height: 500px;
	font-family: ui-sans-serif, system-ui, sans-serif, "Segoe UI", Roboto, sans-serif;
	background: #f8fafc;
	color: #1e293b;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	height: var(--tcr-map-height);
	min-height: var(--tcr-map-height);
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border-radius: 0.5rem;
}

.tcr-map-wrap *,
.tcr-map-wrap *::before,
.tcr-map-wrap *::after {
	box-sizing: border-box;
}

/* Header */
.tcr-map-header {
	background: #0f172a;
	color: #fff;
	padding: 1rem 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	z-index: 20;
	flex-shrink: 0;
}

.tcr-map-header-inner {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
}

.tcr-map-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.tcr-map-title {
		font-size: 1.5rem;
	}
}

.tcr-map-title-accent {
	color: #fbbf24;
}

/* Mobile Dropdown */
.tcr-map-mobile-select {
	display: block;
	padding: 0.5rem 0.75rem;
	background: #0f172a;
	z-index: 25;
	flex-shrink: 0;
}

.tcr-map-mobile-select select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 0.9rem;
	border: 1px solid #334155;
	border-radius: 0.375rem;
	background: #1e293b;
	color: #f8fafc;
	appearance: auto;
	cursor: pointer;
}

@media (min-width: 768px) {
	.tcr-map-mobile-select {
		display: none;
	}
}

/* Main (Sidebar + Map) */
.tcr-map-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	min-height: 0;
}

@media (min-width: 768px) {
	.tcr-map-main {
		flex-direction: row;
	}
}

/* Sidebar — hidden on mobile, visible on desktop */
.tcr-map-sidebar {
	display: none;
}

@media (min-width: 768px) {
	.tcr-map-sidebar {
		display: flex;
		flex-direction: column;
		width: 33.333333%;
		height: 100%;
		background: #fff;
		border-right: 1px solid #e2e8f0;
		z-index: 20;
		flex-shrink: 0;
	}
}

@media (min-width: 768px) {
	.tcr-map-sidebar {
		width: 33.333333%;
		height: 100%;
	}
}

@media (min-width: 1024px) {
	.tcr-map-sidebar {
		width: 25%;
	}
}

.tcr-map-sidebar-head {
	padding: 1rem;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.tcr-map-sidebar-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #334155;
}

.tcr-map-sidebar-desc {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	color: #64748b;
}

.tcr-map-list {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}

@media (min-width: 768px) {
	.tcr-map-list {
		max-height: 24rem;
	}
}

/* Custom Scrollbar */
.tcr-map-list::-webkit-scrollbar {
	width: 6px;
}

.tcr-map-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.tcr-map-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 10px;
}

.tcr-map-list::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.tcr-map-list li {
	padding: 0.75rem 1rem;
	margin-bottom: 0.25rem;
	border-radius: 0.5rem;
	cursor: pointer;
	border: 1px solid transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tcr-map-list li:hover {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

.tcr-map-list li:hover .tcr-map-list-name {
	color: #2563eb;
}

.tcr-map-list-name {
	font-weight: 500;
	color: #334155;
	transition: color 0.2s;
}

.tcr-map-list-arrow {
	width: 1rem;
	height: 1rem;
	color: #9ca3af;
	flex-shrink: 0;
}

.tcr-map-list li:hover .tcr-map-list-arrow {
	color: #3b82f6;
}

/* Map container */
.tcr-map-container {
	width: 100%;
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
	.tcr-map-container {
		height: 100%;
		width: 66.666667%;
	}
}

@media (min-width: 1024px) {
	.tcr-map-container {
		width: 75%;
	}
}

.tcr-map {
	width: 100%;
	height: 100%;
	flex: 1;
	min-height: 0;
	z-index: 10;
}

/* Leaflet Popup Overrides */
.tcr-map-wrap .leaflet-popup-content-wrapper {
	border-radius: 0.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tcr-map-wrap .leaflet-popup-content {
	margin: 1rem;
}

.tcr-map-popup h3 {
	margin: 0 0 0.25rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
}

.tcr-map-popup p {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	color: #6b7280;
	text-align: center;
}

.tcr-map-popup a {
	display: inline-block;
	width: 100%;
	background: #2563eb;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s;
}

.tcr-map-popup a:hover {
	background: #1d4ed8;
}
