/* Let's Frkn Dance — Hall Map
   Everything is scoped under .lfd so it cannot fight your theme. */

.lfd {
	--lfd-ink: #0b0a0d;
	--lfd-panel: #141317;
	--lfd-panel-2: #1c1a20;
	--lfd-line: #2b2830;
	--lfd-neon: #ff3b2f;
	--lfd-neon-soft: rgba(255, 59, 47, 0.16);
	--lfd-glow: 0 0 0 1px rgba(255, 59, 47, 0.55), 0 0 18px rgba(255, 59, 47, 0.35);
	--lfd-bone: #f3efe9;
	--lfd-muted: #9a939f;
	--lfd-radius: 4px;

	color: var(--lfd-bone);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.lfd *,
.lfd *::before,
.lfd *::after { box-sizing: border-box; }

.lfd a { color: var(--lfd-bone); }

/* ---------- Controls ---------- */

.lfd-bar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.lfd-search { flex: 1 1 220px; min-width: 0; }

.lfd input[type="search"],
.lfd input[type="text"],
.lfd input[type="url"],
.lfd input[type="tel"],
.lfd input[type="email"],
.lfd select,
.lfd textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	color: var(--lfd-bone);
	font: inherit;
	font-size: 16px; /* Stops iOS zooming on focus. */
}

.lfd input::placeholder,
.lfd textarea::placeholder { color: var(--lfd-muted); }

.lfd input:focus-visible,
.lfd select:focus-visible,
.lfd textarea:focus-visible,
.lfd button:focus-visible {
	outline: 2px solid var(--lfd-neon);
	outline-offset: 2px;
}

.lfd select { flex: 0 1 190px; }

.lfd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 18px;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	color: var(--lfd-bone);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.lfd-btn:hover { border-color: var(--lfd-neon); color: var(--lfd-bone); }

.lfd-btn-solid {
	background: var(--lfd-neon);
	border-color: var(--lfd-neon);
	color: #fff;
}

.lfd-btn-solid:hover { background: #ff5347; border-color: #ff5347; }

.lfd-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 10px;
	margin-bottom: 12px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.lfd-chip {
	flex: 0 0 auto;
	padding: 7px 14px;
	background: transparent;
	border: 1px solid var(--lfd-line);
	border-radius: 999px;
	color: var(--lfd-muted);
	font: inherit;
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
}

.lfd-chip[aria-pressed="true"] {
	background: var(--lfd-neon-soft);
	border-color: var(--lfd-neon);
	color: var(--lfd-bone);
}

/* ---------- Stage: map + list ---------- */

.lfd-stage {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 0;
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	overflow: hidden;
	background: var(--lfd-ink);
}

.lfd-map {
	min-height: 420px;
	height: 640px;
	background: #0e0d11;
	z-index: 1;
}

.lfd-list {
	height: 640px;
	overflow-y: auto;
	border-left: 1px solid var(--lfd-line);
	background: var(--lfd-panel);
	-webkit-overflow-scrolling: touch;
}

.lfd-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 14px 16px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--lfd-line);
	border-left: 3px solid transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.lfd-item:hover { background: var(--lfd-panel-2); }
.lfd-item[aria-current="true"] { border-left-color: var(--lfd-neon); background: var(--lfd-panel-2); }

.lfd-item-name { display: block; font-weight: 650; letter-spacing: 0.01em; }
.lfd-item-meta { display: block; color: var(--lfd-muted); font-size: 14px; margin-top: 2px; }
.lfd-item-music { display: block; color: var(--lfd-neon); font-size: 13px; margin-top: 4px; }

.lfd-count {
	margin: 10px 0 0;
	color: var(--lfd-muted);
	font-size: 14px;
}

.lfd-empty { color: var(--lfd-muted); padding: 20px 16px; }

/* ---------- Markers ---------- */

.lfd-pin {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--lfd-neon);
	box-shadow: 0 0 0 3px rgba(255, 59, 47, 0.22), 0 0 10px rgba(255, 59, 47, 0.65);
}

.lfd-pin-active {
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255, 59, 47, 0.55), 0 0 16px rgba(255, 59, 47, 0.9);
}

.lfd-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 59, 47, 0.18);
	border: 1px solid var(--lfd-neon);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 0 14px rgba(255, 59, 47, 0.4);
}

/* Turns standard OpenStreetMap tiles dark in the browser. Only applied when
   that basemap is selected in settings. Inverting and rotating the hue keeps
   water blue and land near-black instead of the washed-out grey a plain
   invert produces. */
.lfd-tiles-dark {
	filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.9) saturate(0.5);
}

/* Leaflet popup, restyled to match */
.lfd-stage .leaflet-popup-content-wrapper {
	background: var(--lfd-panel);
	color: var(--lfd-bone);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.lfd-stage .leaflet-popup-content { margin: 0; width: 290px !important; }
.lfd-stage .leaflet-popup-tip { background: var(--lfd-panel); border: 1px solid var(--lfd-line); }
.lfd-stage .leaflet-popup-close-button { color: var(--lfd-muted) !important; }
.lfd-stage .leaflet-container a.leaflet-popup-close-button:hover { color: var(--lfd-bone) !important; }

.lfd-stage .leaflet-control-attribution {
	background: rgba(11, 10, 13, 0.8);
	color: var(--lfd-muted);
	font-size: 11px;
}

.lfd-stage .leaflet-control-attribution a { color: var(--lfd-muted); }

.lfd-stage .leaflet-bar a {
	background: var(--lfd-panel);
	color: var(--lfd-bone);
	border-bottom-color: var(--lfd-line);
}

.lfd-stage .leaflet-bar a:hover { background: var(--lfd-panel-2); color: var(--lfd-bone); }

/* ---------- Detail card (popup + mobile sheet share this) ---------- */

.lfd-card { padding: 16px 18px 18px; }

.lfd-card-img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
	margin: -16px -18px 14px;
	width: calc(100% + 36px);
}

.lfd-card h3 {
	margin: 0 0 2px;
	font-size: 19px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--lfd-bone);
}

.lfd-card .lfd-where { color: var(--lfd-muted); font-size: 14px; margin: 0 0 10px; }

.lfd-card .lfd-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.lfd-tag {
	padding: 3px 9px;
	border: 1px solid var(--lfd-neon);
	border-radius: 999px;
	color: var(--lfd-neon);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.lfd-rows { margin: 0 0 14px; }

.lfd-row {
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 10px;
	padding: 5px 0;
	border-top: 1px solid var(--lfd-line);
	font-size: 14px;
}

.lfd-row:first-child { border-top: 0; }
.lfd-row dt { color: var(--lfd-muted); }
.lfd-row dd { margin: 0; }

.lfd-card-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.lfd-card-links a {
	padding: 9px 12px;
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.lfd-card-links a:hover { border-color: var(--lfd-neon); }
.lfd-card-links .lfd-primary { background: var(--lfd-neon); border-color: var(--lfd-neon); color: #fff; }

.lfd-card-rating { color: var(--lfd-neon); font-size: 14px; margin: 0 0 10px; }

/* ---------- Mobile bottom sheet ---------- */

.lfd-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	max-height: 72%;
	overflow-y: auto;
	background: var(--lfd-panel);
	border-top: 2px solid var(--lfd-neon);
	box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.65);
	transform: translateY(0);
}

.lfd-sheet[hidden] { display: none; }

.lfd-sheet-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 34px;
	height: 34px;
	background: rgba(11, 10, 13, 0.7);
	border: 1px solid var(--lfd-line);
	border-radius: 50%;
	color: var(--lfd-bone);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

/* ---------- Forms ---------- */

.lfd-form-wrap { max-width: 780px; }

.lfd-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.lfd-form label,
.lfd-review-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--lfd-bone);
}

.lfd-form label input,
.lfd-form label select,
.lfd-form label textarea,
.lfd-review-form label input { margin-top: 6px; font-weight: 400; }

.lfd-full { grid-column: 1 / -1; }

.lfd-form fieldset {
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	padding: 14px 16px;
	margin: 0;
}

.lfd-form legend { padding: 0 6px; font-size: 14px; font-weight: 600; }

.lfd-checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px 14px;
}

.lfd-check,
.lfd-check-single {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 15px;
}

.lfd-check input,
.lfd-check-single input { width: auto; margin: 0; accent-color: var(--lfd-neon); }

.lfd-hp { position: absolute; left: -9999px; }

.lfd-form-foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.lfd-form-msg { margin: 0; font-size: 15px; }
.lfd-form-msg.is-ok { color: #6fe3a1; }
.lfd-form-msg.is-error { color: var(--lfd-neon); }

.lfd-note {
	padding: 18px;
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	background: var(--lfd-panel);
}

/* ---------- Single hall page ---------- */

.lfd-single { margin-top: 28px; }

.lfd-facts {
	border-top: 1px solid var(--lfd-line);
	margin-bottom: 20px;
}

.lfd-fact {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--lfd-line);
}

.lfd-fact-k { color: var(--lfd-muted); font-size: 14px; }

.lfd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.lfd-h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: 0.01em; }
.lfd-h3 { font-size: 18px; margin: 0 0 12px; }

.lfd-avg { color: var(--lfd-neon); margin: 0 0 18px; }
.lfd-stars { letter-spacing: 2px; color: var(--lfd-neon); }

.lfd-review {
	padding: 14px 0;
	border-top: 1px solid var(--lfd-line);
}

.lfd-review header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.lfd-review time { color: var(--lfd-muted); font-size: 13px; }
.lfd-review p { margin: 0; }

.lfd-review-form {
	margin-top: 28px;
	padding: 20px;
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	background: var(--lfd-panel);
}

.lfd-review-form textarea { margin-bottom: 16px; }
.lfd-review-form .lfd-form-grid { margin-bottom: 16px; }

.lfd-rating-input { display: flex; gap: 4px; margin-bottom: 14px; }

.lfd-star-label {
	position: relative;
	font-size: 28px;
	line-height: 1;
	color: var(--lfd-line);
	cursor: pointer;
}

.lfd-star-label input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.lfd-star-label.is-lit { color: var(--lfd-neon); }
.lfd-star-label:focus-within { outline: 2px solid var(--lfd-neon); outline-offset: 2px; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.lfd-stage { grid-template-columns: 1fr; }
	.lfd-map { height: 460px; min-height: 0; }
	.lfd-list { height: 300px; border-left: 0; border-top: 1px solid var(--lfd-line); }
	.lfd-form-grid { grid-template-columns: 1fr; }
	.lfd-bar select { flex: 1 1 140px; }
	.lfd-fact { grid-template-columns: 90px 1fr; }
}

@media (max-width: 560px) {
	.lfd-map { height: 62vh; }
	.lfd-near { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.lfd * { animation: none !important; transition: none !important; }
}
