/**
 * BouleMap Frontend Styles
 * Modern, responsive styling for Leaflet map, popups, location marker, and court list.
 */

:root {
	--boule-primary: #1e3a8a;
	--boule-primary-hover: #1e40af;
	--boule-accent: #ea580c;
	--boule-accent-hover: #c2410c;
	--boule-bg: #f8fafc;
	--boule-surface: #ffffff;
	--boule-text-main: #0f172a;
	--boule-text-muted: #64748b;
	--boule-border: #e2e8f0;
	--boule-radius: 12px;
	--boule-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
	--boule-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
	--boule-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

.boulemap-wrapper {
	position: relative;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--boule-bg);
	border-radius: var(--boule-radius);
	overflow: hidden;
	box-shadow: var(--boule-shadow-md);
	border: 1px solid var(--boule-border);
	box-sizing: border-box;
	margin: 25px 0;
}

.boulemap-wrapper *,
.boulemap-wrapper *::before,
.boulemap-wrapper *::after {
	box-sizing: inherit;
}

/* ==========================================================================
   Toolbar (Search, Locate, Radius, Toggle) - Sleek Black Design
   ========================================================================== */
.boulemap-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	background: #0d0f12;
	background: linear-gradient(180deg, #16181f 0%, #0a0b0e 100%);
	border-bottom: 1px solid #232733;
	align-items: center;
	z-index: 10;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.boulemap-search-group {
	position: relative;
	flex: 1 1 260px;
	display: flex;
	align-items: center;
}

.boulemap-icon-search {
	position: absolute;
	left: 14px;
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
}

.boulemap-icon-search svg {
	stroke: #94a3b8;
}

.boulemap-search-input {
	width: 100%;
	padding: 10px 36px 10px 42px !important;
	border: 1.5px solid #272b35 !important;
	border-radius: 30px !important;
	font-size: 14px !important;
	outline: none !important;
	transition: all 0.2s ease;
	background: #171920 !important;
	color: #f8fafc !important;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

.boulemap-search-input::placeholder {
	color: #7b8598 !important;
	opacity: 1;
}

.boulemap-search-input:focus {
	border-color: #38bdf8 !important;
	background: #1e222c !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.boulemap-search-clear {
	position: absolute;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 18px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.15s ease;
}

.boulemap-search-clear:hover {
	color: #ffffff;
}

/* Autocomplete Suggestions Dropdown */
.boulemap-search-suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: 100%;
	min-width: 280px;
	background: #13151b;
	border: 1px solid #282d38;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
	z-index: 99999;
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
}

.boulemap-suggestion-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1px solid transparent;
}

.boulemap-suggestion-item:hover,
.boulemap-suggestion-item.is-selected {
	background: #1e222c;
	border-color: #333a49;
}

.boulemap-suggestion-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #1c202a;
}

.boulemap-suggestion-item.type-place .boulemap-suggestion-icon {
	background: rgba(56, 189, 248, 0.15);
	color: #38bdf8;
}

.boulemap-suggestion-item.type-court .boulemap-suggestion-icon {
	background: rgba(74, 222, 128, 0.15);
	color: #4ade80;
}

.boulemap-suggestion-text {
	flex: 1;
	min-width: 0;
}

.boulemap-suggestion-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #f8fafc;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.boulemap-suggestion-subtitle {
	font-size: 11.5px;
	color: #94a3b8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}

.boulemap-suggestion-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 6px;
	border-radius: 4px;
	background: #252a35;
	color: #94a3b8;
	flex-shrink: 0;
}

.boulemap-suggestion-item.type-court .boulemap-suggestion-badge {
	background: rgba(74, 222, 128, 0.15);
	color: #4ade80;
}

.boulemap-suggestion-empty {
	padding: 12px;
	font-size: 12.5px;
	color: #94a3b8;
	text-align: center;
}

.boulemap-action-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Floating Geolocation Button ("Mein Standort") */
.boulemap-btn-locate {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #171920;
	background: rgba(23, 25, 32, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #f1f5f9;
	border: 1.5px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
	flex-shrink: 0;
}

.boulemap-btn-locate .boulemap-gps-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.boulemap-btn-locate .boulemap-gps-icon svg {
	stroke: #38bdf8;
	width: 20px;
	height: 20px;
	transition: stroke 0.2s ease, transform 0.2s ease;
}

.boulemap-btn-toggle-list {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	background: #171920;
	color: #f1f5f9;
	border: 1.5px solid #272b35;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.boulemap-btn-toggle-list .boulemap-list-icon svg {
	stroke: #38bdf8;
}

.boulemap-btn-locate:hover {
	background: #1e293b;
	border-color: #38bdf8;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.35);
	transform: scale(1.08);
}

.boulemap-btn-locate:hover .boulemap-gps-icon svg {
	stroke: #7dd3fc;
}

.boulemap-btn-locate:active {
	transform: scale(0.96);
}

.boulemap-btn-toggle-list:hover {
	background: #222631;
	border-color: #3d4554;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.boulemap-btn-locate.is-locating {
	background: #1e293b;
	border-color: #38bdf8;
	color: #38bdf8;
	box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.boulemap-btn-locate.is-locating .boulemap-gps-icon {
	animation: boulemap-spin 1.2s infinite linear;
}

@keyframes boulemap-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.boulemap-radius-select-wrap select {
	padding: 9px 14px !important;
	border: 1.5px solid #272b35 !important;
	border-radius: 30px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	background: #171920 !important;
	color: #f1f5f9 !important;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.boulemap-radius-select-wrap select option {
	background: #101217;
	color: #f1f5f9;
}

.boulemap-radius-select-wrap select:hover,
.boulemap-radius-select-wrap select:focus {
	border-color: #38bdf8 !important;
	background: #222631 !important;
}

/* ==========================================================================
   Main Map & Layout
   ========================================================================== */
.boulemap-main-area {
	position: relative;
	display: flex;
	width: 100%;
}

.boulemap-map-box {
	position: relative;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

.boulemap-leaflet-container {
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Map Attribution Bar (Dezent & Unauffällig) */
.boulemap-wrapper .leaflet-control-attribution {
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #64748b;
	font-size: 9.5px;
	line-height: 1.3;
	padding: 2px 7px;
	border-top-left-radius: 6px;
	border: none;
	box-shadow: none;
	opacity: 0.55;
	transition: opacity 0.25s ease, background 0.25s ease;
}

.boulemap-wrapper .leaflet-control-attribution:hover {
	opacity: 0.95;
	background: rgba(15, 23, 42, 0.8);
}

.boulemap-wrapper .leaflet-control-attribution a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.15s ease;
}

.boulemap-wrapper .leaflet-control-attribution a:hover {
	color: #38bdf8;
	text-decoration: underline;
}

.boulemap-wrapper .leaflet-control-attribution a[href*="tourdeboule"] {
	font-weight: 500;
	color: #7dd3fc;
}

/* ==========================================================================
   List Drawer / Sidebar
   ========================================================================== */
.boulemap-list-drawer {
	flex: 1 1 35%;
	max-width: 420px;
	min-width: 320px;
	background: #ffffff;
	border-left: 1px solid var(--boule-border);
	display: flex;
	flex-direction: column;
	height: auto;
	max-height: 650px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.boulemap-list-drawer.collapsed {
	display: none;
}

.boulemap-list-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--boule-border);
	background: #f8fafc;
}

.boulemap-list-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--boule-text-main);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.boulemap-counter-badge {
	background: var(--boule-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 12px;
}

.boulemap-cards-list {
	padding: 14px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.boulemap-card-item {
	background: #ffffff;
	border: 1px solid var(--boule-border);
	border-radius: 10px;
	padding: 14px;
	transition: all 0.2s ease;
	cursor: pointer;
	box-shadow: var(--boule-shadow-sm);
	position: relative;
}

.boulemap-card-item:hover,
.boulemap-card-item.is-active {
	border-color: var(--boule-primary);
	box-shadow: 0 4px 12px rgba(30, 58, 138, 0.12);
	transform: translateY(-2px);
}

.boulemap-card-item .card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--boule-text-main);
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.boulemap-card-item .card-distance {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #eff6ff;
	color: var(--boule-primary);
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid #bfdbfe;
}

.boulemap-card-item .card-address {
	font-size: 13px;
	color: var(--boule-text-muted);
	margin-bottom: 8px;
	display: flex;
	align-items: flex-start;
	gap: 5px;
	line-height: 1.4;
}

.boulemap-card-item .card-osmid {
	margin-bottom: 4px;
}

.boulemap-card-item .card-hours {
	font-size: 12px;
	color: #047857;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
}

.boulemap-card-item .card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	color: #94a3b8;
	padding-top: 8px;
	border-top: 1px dashed var(--boule-border);
}

.boulemap-empty-state {
	text-align: center;
	padding: 35px 20px;
	color: var(--boule-text-muted);
	font-size: 14px;
}

/* ==========================================================================
   Leaflet Custom Markers & Radar
   ========================================================================== */
/* User Location Radar Marker */
.boulemap-user-marker-wrap {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.boulemap-user-marker {
	position: relative;
	width: 22px;
	height: 22px;
}

.boulemap-user-dot {
	width: 16px;
	height: 16px;
	background: #2563eb;
	border: 3px solid #ffffff;
	border-radius: 50%;
	position: absolute;
	top: 3px;
	left: 3px;
	box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
	z-index: 2;
}

.boulemap-user-pulse {
	width: 38px;
	height: 38px;
	background: rgba(37, 99, 235, 0.35);
	border-radius: 50%;
	position: absolute;
	top: -8px;
	left: -8px;
	animation: boulemap-pulse-radar 2s infinite ease-out;
	z-index: 1;
	pointer-events: none;
}

@keyframes boulemap-pulse-radar {
	0% {
		transform: scale(0.3);
		opacity: 1;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* Boule Court Marker Pin */
.boulemap-custom-pin {
	position: relative;
	width: 34px;
	height: 42px;
	cursor: pointer;
	transform-origin: 17px 42px;
	transition: transform 0.2s ease;
}

.boulemap-custom-pin:hover {
	transform: scale(1.15);
}

.boulemap-pin-svg {
	display: block;
	width: 34px;
	height: 42px;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
	pointer-events: none;
}

/* Marker Message Badge (Index-Reiter am Marker) */
.boulemap-pin-badge {
	position: absolute;
	top: -5px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	line-height: 15px !important;
	padding: 0 4px;
	border-radius: 9px;
	font-size: 11px !important;
	font-weight: 800 !important;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	z-index: 10;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.boulemap-pin-badge.is-unread {
	background: #dc2626;
	color: #ffffff;
	border: 1.5px solid #ffffff;
	animation: boulemap-badge-pulse 2s infinite ease-in-out;
}

.boulemap-pin-badge.is-read {
	background: #0f172a;
	color: #ffffff;
	border: 1.5px solid #ffffff;
}

/* ==========================================================================
   Leaflet Popup Customization
   ========================================================================== */
.leaflet-popup-content-wrapper {
	padding: 0 !important;
	border-radius: 10px !important;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
	margin: 0 !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	min-width: 250px;
	max-width: 320px;
}

.boulemap-popup-card {
	padding: 12px 15px;
	background: #ffffff;
}

.boulemap-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.boulemap-popup-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--boule-text-main);
	margin: 0;
	line-height: 1.3;
}

.boulemap-popup-nav-icon,
.boulemap-card-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155 !important;
	border: 1px solid #cbd5e1;
	text-decoration: none !important;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.boulemap-popup-nav-icon:hover,
.boulemap-card-nav-icon:hover {
	background: var(--boule-primary);
	color: #ffffff !important;
	border-color: var(--boule-primary);
	transform: scale(1.08);
}

.boulemap-popup-body {
	font-size: 12.5px;
	color: var(--boule-text-main);
}

.boulemap-popup-row {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 6px;
	color: #475569;
}

.boulemap-popup-row svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--boule-text-muted);
}

.boulemap-popup-osmid {
	margin-top: 5px;
}

.boulemap-popup-hours {
	color: #047857;
	font-weight: 500;
}

.boulemap-popup-distance {
	font-size: 11px;
	color: var(--boule-text-muted);
	margin-top: 6px;
	font-weight: 500;
}

/* Court Messages / Pinnwand */
.boulemap-court-messages {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #e2e8f0;
}

.boulemap-msg-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.boulemap-msg-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: #334155;
}

.boulemap-msg-title-wrap svg {
	color: #2563eb;
}

.boulemap-msg-count-badge {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
}

.boulemap-msg-list {
	max-height: 120px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 3px;
	margin-bottom: 8px;
}

.boulemap-msg-list::-webkit-scrollbar {
	width: 4px;
}

.boulemap-msg-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.boulemap-msg-empty,
.boulemap-msg-loading {
	font-size: 11px;
	color: #94a3b8;
	font-style: italic;
	text-align: center;
	padding: 8px 4px;
}

.boulemap-msg-item {
	display: flex;
	flex-direction: column;
	transition: opacity 0.2s ease;
}

.boulemap-msg-bubble {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 5px 8px;
	word-break: break-word;
	font-size: 11.5px;
	line-height: 1.35;
}

.boulemap-msg-item.is-own-message .boulemap-msg-bubble {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.boulemap-msg-text {
	color: #1e293b;
	white-space: pre-wrap;
}

.boulemap-msg-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 3px;
	font-size: 9.5px;
	color: #94a3b8;
}

.boulemap-msg-date {
	color: #94a3b8;
}

.boulemap-msg-del-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 1px 4px;
	cursor: pointer;
	color: #94a3b8;
	border-radius: 3px;
	line-height: 1;
	transition: all 0.15s ease;
}

.boulemap-msg-del-btn:hover {
	color: #ef4444;
	background: rgba(239, 68, 68, 0.12);
}

.boulemap-msg-form {
	margin-top: 4px;
}

.boulemap-msg-input-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	padding: 2px 4px 2px 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.boulemap-msg-input-wrap:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.boulemap-msg-input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	padding: 4px 0 !important;
	font-size: 11.5px !important;
	color: #1e293b !important;
	outline: none !important;
	box-shadow: none !important;
	min-width: 0;
}

.boulemap-msg-input::placeholder {
	color: #94a3b8;
}

.boulemap-msg-send-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #2563eb;
	color: #ffffff;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.15s ease;
	padding: 0;
}

.boulemap-msg-send-btn:hover {
	background: #1d4ed8;
	transform: scale(1.06);
}

.boulemap-msg-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.boulemap-msg-status {
	font-size: 10px;
	margin-top: 3px;
	padding-left: 6px;
}

.boulemap-msg-status.is-error {
	color: #ef4444;
}

.boulemap-msg-status.is-success {
	color: #10b981;
}

.card-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.card-header-row .card-title {
	margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 860px) {
	.boulemap-main-area {
		flex-direction: column;
	}

	.boulemap-map-box {
		flex: 1 1 auto;
		height: 450px !important;
	}

	.boulemap-list-drawer {
		max-width: 100%;
		border-left: none;
		border-top: 1px solid var(--boule-border);
		max-height: 380px;
	}

	.boulemap-toolbar {
		padding: 12px 14px;
	}
}

@media (max-width: 480px) {
	.leaflet-popup-content {
		min-width: 200px !important;
		max-width: 275px !important;
	}
	.boulemap-popup-card {
		padding: 10px 12px !important;
	}
	.boulemap-popup-title {
		font-size: 13.5px !important;
	}
	.boulemap-btn-locate {
		top: 10px !important;
		right: 10px !important;
		width: 38px !important;
		height: 38px !important;
	}
	.leaflet-top .leaflet-control {
		margin-top: 10px !important;
		margin-left: 10px !important;
	}
}

/* ==========================================================================
   Marker Clustering Styling (Zusammengefasste Anzahl)
   ========================================================================== */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	background-color: rgba(30, 58, 138, 0.35) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	background-color: #1e3a8a !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	font-family: inherit !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

.marker-cluster-medium {
	background-color: rgba(234, 88, 12, 0.35) !important;
}

.marker-cluster-medium div {
	background-color: #ea580c !important;
}

.marker-cluster-large {
	background-color: rgba(220, 38, 38, 0.35) !important;
}

.marker-cluster-large div {
	background-color: #dc2626 !important;
}

/* Cluster Message Summary Badge (Gruppen bis 10 Plätze) */
.marker-cluster {
	overflow: visible !important;
}

.boulemap-cluster-msg-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	line-height: 15px !important;
	padding: 0 4px;
	border-radius: 9px;
	font-size: 11px !important;
	font-weight: 800 !important;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	pointer-events: none;
}

.boulemap-cluster-msg-badge.is-unread {
	background: #dc2626;
	color: #ffffff;
	border: 1.5px solid #ffffff;
	animation: boulemap-badge-pulse 2s infinite ease-in-out;
}

.boulemap-cluster-msg-badge.is-read {
	background: #0f172a;
	color: #ffffff;
	border: 1.5px solid #ffffff;
}

@keyframes boulemap-badge-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.12);
	}
}

/* ==========================================================================
   Selected Marker Pin Highlight
   ========================================================================== */
.boulemap-pin-container.is-selected-court-pin {
	z-index: 1000 !important;
}

.boulemap-custom-pin.is-selected-court-pin {
	transform: scale(1.16);
	filter: drop-shadow(0 0 12px rgba(234, 88, 12, 0.75));
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.boulemap-pin-pulse-halo {
	position: absolute;
	top: -6px;
	left: -6px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid #ea580c;
	box-sizing: border-box;
	animation: boulemap-pin-halo-pulse 2s infinite ease-out;
	pointer-events: none;
}

@keyframes boulemap-pin-halo-pulse {
	0% {
		transform: scale(0.7);
		opacity: 1;
	}
	70% {
		transform: scale(1.4);
		opacity: 0;
	}
	100% {
		transform: scale(1.4);
		opacity: 0;
	}
}

/* ==========================================================================
   Court Detail Panel (Half-Map Platz-Karte)
   ========================================================================== */
.boulemap-court-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 48%;
	min-width: 320px;
	max-width: 520px;
	height: 100%;
	background: #0f131a;
	background: linear-gradient(180deg, rgba(18, 23, 33, 0.98) 0%, rgba(12, 15, 22, 0.99) 100%);
	color: #f1f5f9;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	box-shadow: 10px 0 35px rgba(0, 0, 0, 0.5), 2px 0 6px rgba(0, 0, 0, 0.3);
	border-right: 1px solid rgba(255, 255, 255, 0.09);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transform: translateX(-100%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
	box-sizing: border-box;
	pointer-events: none;
}

.boulemap-court-panel.is-open {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

.boulemap-panel-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 22px 20px 24px 20px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.boulemap-panel-inner::-webkit-scrollbar {
	width: 6px;
}

.boulemap-panel-inner::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
}

.boulemap-panel-inner::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.35);
}

.boulemap-panel-close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 5;
	padding: 0;
}

.boulemap-panel-close-btn:hover {
	background: rgba(239, 68, 68, 0.25);
	border-color: #ef4444;
	color: #ffffff;
	transform: scale(1.08);
}

.boulemap-panel-header {
	margin-bottom: 10px;
	padding-right: 36px;
}

.boulemap-panel-pretitle {
	display: none;
}

.boulemap-panel-title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	margin: 0 0 6px 0;
}

.boulemap-panel-submeta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.boulemap-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.boulemap-pill-distance {
	background: rgba(56, 189, 248, 0.14);
	color: #38bdf8;
	border-color: rgba(56, 189, 248, 0.3);
	font-weight: 600;
}

.boulemap-pill-source {
	background: rgba(255, 255, 255, 0.06);
	color: #94a3b8;
}

.boulemap-panel-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.boulemap-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
	cursor: pointer;
}

.boulemap-action-route {
	flex: 1;
	background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.boulemap-action-route:hover {
	background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
	box-shadow: 0 6px 18px rgba(234, 88, 12, 0.48);
	transform: translateY(-1px);
}

.boulemap-action-osm {
	background: rgba(255, 255, 255, 0.06);
	color: #cbd5e1 !important;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.boulemap-action-osm:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.25);
}

.boulemap-panel-section-title {
	display: none;
}

.boulemap-panel-badges-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.boulemap-badge-card {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 11.5px;
	line-height: 1.25;
	color: #e2e8f0;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.boulemap-badge-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
}

.boulemap-badge-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.boulemap-badge-card-icon svg {
	width: 12px;
	height: 12px;
	color: #38bdf8;
}

.boulemap-badge-card-label {
	font-size: 10.5px;
	font-weight: 500;
	color: #94a3b8;
}

.boulemap-badge-card-value {
	font-weight: 600;
	color: #f1f5f9;
}

.boulemap-badge-card-value.is-accent {
	color: #38bdf8;
}

.boulemap-badge-card-value.is-positive {
	color: #34d399;
}

.boulemap-badge-card-value.is-warning {
	color: #fbbf24;
}

.boulemap-badge-card-value.is-muted {
	color: #94a3b8;
}

.boulemap-panel-infolist {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 9px;
}

.boulemap-inforow {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 12.5px;
	color: #cbd5e1;
	line-height: 1.4;
}

.boulemap-inforow svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #38bdf8;
}

.boulemap-inforow-hours svg {
	color: #34d399;
}

.boulemap-inforow-coords code {
	background: rgba(0, 0, 0, 0.25);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
	color: #94a3b8;
}

.boulemap-inforow-notes {
	font-style: italic;
	color: #94a3b8;
	background: rgba(255, 255, 255, 0.02);
	padding: 6px 8px;
	border-radius: 6px;
	border-left: 2px solid #38bdf8;
}

.boulemap-inforow a {
	color: #38bdf8 !important;
	text-decoration: none !important;
}

.boulemap-inforow a:hover {
	text-decoration: underline !important;
	color: #7dd3fc !important;
}

/* Court Messages in Court Detail Panel */
.boulemap-court-panel .boulemap-court-messages {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.boulemap-court-panel .boulemap-msg-title-wrap {
	color: #f1f5f9;
}

.boulemap-court-panel .boulemap-msg-title-wrap svg {
	color: #38bdf8;
}

.boulemap-court-panel .boulemap-msg-count-badge {
	color: #94a3b8;
}

.boulemap-court-panel .boulemap-msg-list {
	max-height: 180px;
}

.boulemap-court-panel .boulemap-msg-bubble {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #f1f5f9;
}

.boulemap-court-panel .boulemap-msg-text {
	color: #f1f5f9;
}

.boulemap-court-panel .boulemap-msg-item.is-own-message .boulemap-msg-bubble {
	background: rgba(56, 189, 248, 0.14);
	border-color: rgba(56, 189, 248, 0.3);
}

.boulemap-court-panel .boulemap-msg-input-wrap {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.boulemap-court-panel .boulemap-msg-input-wrap:focus-within {
	border-color: #38bdf8;
	box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.boulemap-court-panel .boulemap-msg-input {
	color: #ffffff !important;
}

.boulemap-court-panel .boulemap-msg-input::placeholder {
	color: #64748b;
}

.boulemap-court-panel .boulemap-msg-send-btn {
	background: #38bdf8;
	color: #0f172a;
}

.boulemap-court-panel .boulemap-msg-send-btn:hover {
	background: #7dd3fc;
}

/* Mobile Responsive Anpassung (Bottom Sheet) */
@media (max-width: 768px) {
	.boulemap-court-panel {
		top: auto !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 52% !important;
		max-height: 70% !important;
		min-height: 250px !important;
		border-right: none !important;
		border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
		border-radius: 20px 20px 0 0 !important;
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
		transform: translateY(100%) !important;
	}

	.boulemap-court-panel.is-open {
		transform: translateY(0) !important;
	}

	.boulemap-panel-inner {
		padding: 14px 14px 18px 14px;
	}

	.boulemap-panel-title {
		font-size: 17px;
	}

	.boulemap-panel-badges-grid {
		gap: 5px;
		margin-bottom: 10px;
	}

	.boulemap-badge-card {
		padding: 3px 6.5px;
		font-size: 10.5px;
		gap: 4px;
		border-radius: 5px;
	}

	.boulemap-badge-card-icon svg {
		width: 11px;
		height: 11px;
	}

	.boulemap-badge-card-label {
		font-size: 10px;
	}
}
