:root {
	--bg: #090916;
	--panel: rgba(255, 255, 255, 0.05);
	--panel-strong: rgba(17, 19, 38, 0.82);
	--border: rgba(255, 255, 255, 0.1);
	--text: #ffffff;
	--color: var(--text);
	--muted: rgba(255, 255, 255, 0.62);
	--muted-soft: rgba(255, 255, 255, 0.42);
	--pink: #ffb5d9;
	--violet: #7d5cff;
	--cyan: #74f2ff;
	--shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	--radius-xl: 34px;
	--radius-lg: 28px;
	--radius-md: 24px;
	--header-height: 110px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--text);
}

body {
	overflow-x: hidden;
	background:
		radial-gradient(circle at top left, rgba(255, 170, 210, 0.18), transparent 28%),
		radial-gradient(circle at bottom left, rgba(116, 92, 255, 0.18), transparent 30%),
		radial-gradient(circle at top right, rgba(72, 229, 244, 0.16), transparent 28%),
		var(--bg);
	position: relative;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	opacity: 0.05;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
	background-size: 48px 48px;
}

.app {
	position: relative;
	z-index: 1;
	padding: 16px;
}

.header {
	min-height: 78px;
	margin-bottom: 16px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--panel);
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.brand img{
	max-width: 80px;
}
.brand-copy h1 {
	margin: 0;
	font-size: 22px;
	line-height: 1;
}

.brand-copy p {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.header-actions {
	display: flex;
	gap: 12px;
}

.btn {
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	cursor: pointer;
	transition: 180ms ease;
	font: inherit;
}

.btn:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
	color: var(--text);
	font-weight: 700;
	border-color: rgba(116, 242, 255, 0.28);
	background: linear-gradient(90deg, rgba(255, 181, 217, 0.95), rgba(125, 92, 255, 0.95), rgba(116, 242, 255, 0.95));
}

.layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.panel {
	border: 1px solid var(--border);
	border-radius: 30px;
	background: var(--panel);
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.map-panel {
	position: relative;
	min-height: 440px;
}

.map-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(8, 10, 24, 0.16), rgba(8, 10, 24, 0.22)),
		radial-gradient(circle at top left, rgba(255, 170, 210, 0.16), transparent 24%),
		radial-gradient(circle at bottom right, rgba(72, 229, 244, 0.14), transparent 26%),
		radial-gradient(circle at center, rgba(116, 92, 255, 0.10), transparent 40%);
}

.map-top,
.map-bottom {
	position: absolute;
	left: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.map-top {
	top: 16px;
	align-items: flex-start;
	justify-content: space-between;
}

.map-bottom {
	bottom: 16px;
}

.glass-box {
	border: 1px solid var(--border);
	background: rgba(13, 17, 34, 0.78);
	backdrop-filter: blur(18px);
	border-radius: 24px;
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.map-copy {
	max-width: 420px;
	padding: 16px;
}

.eyebrow {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(116, 242, 255, 0.72);
	margin-bottom: 8px;
}

.map-copy h2 {
	margin: 0;
	font-size: 28px;
	line-height: 1.1;
}

.gradient-text {
	background: linear-gradient(90deg, var(--pink), #b88cff, var(--cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.chip-row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 8px;
	max-width: 100%;
}

.chip {
	white-space: nowrap;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	font: inherit;
}

.chip.active,
.chip:hover {
	background: rgba(255, 255, 255, 0.10);
	color: var(--text);
}

.stat-box {
	padding: 12px 14px;
	min-width: 110px;
}

.stat-label {
	font-size: 12px;
	color: var(--muted-soft);
	margin-bottom: 4px;
}

.stat-value {
	font-weight: 700;
}

.map-pin {
	position: absolute;
	z-index: 3;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.pin-shadow {
	position: absolute;
	left: 50%;
	top: 90%;
	width: 42px;
	height: 16px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	filter: blur(8px);
}

.pin-core {
	width: 50px;
	height: 50px;
	background-image: url('/images/pin.png');
	background-size: contain;
	background-repeat: no-repeat;
	transition: filter 180ms ease;
	filter: grayscale(1);
}
.pin-card {
	position: absolute;
	left: 68px;
	top: 50%;
	transform: translateY(-50%);
	width: 200px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
	border: 1px solid var(--border);
	background: rgba(16, 19, 37, 0.92);
	backdrop-filter: blur(18px);
	border-radius: 20px;
	padding: 10px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.pin-card img {
	width: 100%;
	height: 84px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	margin-bottom: 8px;
}

.pin-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.pin-date {
	margin-top: 4px;
	font-size: 12px;
	color: var(--muted);
}

.map-pin:hover .pin-card,
.map-pin.active .pin-card {
	opacity: 1;
	/* transform: translateY(-50%) translateX(2px); */
}

.map-pin:hover .pin-core,
.map-pin.active .pin-core {
	filter: grayscale(0);
}

.events-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 12px;
}

.events-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.events-header h2 {
	margin: 4px 0 0;
	font-size: 34px;
	line-height: 1.05;
}

.events-subtle {
	color: var(--muted);
	font-size: 14px;
}

.sort-box,
.search-box {
	border: 1px solid var(--border);
	background: rgba(17, 19, 38, 0.7);
	backdrop-filter: blur(18px);
	border-radius: 24px;
}

.sort-box {
	align-self: flex-start;
	padding: 11px 14px;
	color: var(--muted);
	font-size: 14px;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	margin-bottom: 16px;
}

.search-mark {
	width: 40px;
	height: 40px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--pink), var(--violet), var(--cyan));
	flex-shrink: 0;
}

.search-copy {
	min-width: 0;
	flex: 1;
}

.search-copy strong {
	display: block;
	font-size: 14px;
}

.search-copy span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--muted-soft);
}

.events-scroll {
	min-height: 0;
}

.event-card {
	margin-bottom: 25px;
	overflow: hidden;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
	box-shadow: var(--shadow);
	transition: transform 220ms ease, border-color 220ms ease;
}

.event-card:hover,
.event-card.active {
	border-color: rgba(116, 242, 255, 0.3);
}

.event-media {
	position: relative;
	height: 320px;
	overflow: hidden;
}

.event-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 700ms ease;
}

.event-card:hover .event-media img,
.event-card.active .event-media img {
	transform: scale(1.05);
}

.event-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 8, 18, 0.02) 0%, rgba(6, 10, 20, 0.10) 24%, rgba(8, 11, 22, 0.38) 58%, rgba(8, 11, 22, 0.88) 100%);
}

.event-top-badges,
.event-bottom-copy {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	padding: 20px;
}

.event-top-badges {
	top: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.badge {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(18px);
	color: var(--color);
}
.price-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 700;
	backdrop-filter: blur(18px);
	color: var(--color);
}

.badge {
	border: 1px solid rgba(116, 242, 255, 0.2);
	background: rgba(116, 242, 255, 0.12);
	color: #d6fbff;
}

.price-badge {
	background: linear-gradient(135deg, var(--pink), var(--violet), var(--cyan));
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.event-bottom-copy {
	bottom: 0;
}

.event-bottom-copy h3 {
	margin: 0;
	font-size: 34px;
	line-height: 1.05;
	max-width: 90%;
}

.event-date {
	margin-top: 10px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.78);
}

.event-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.info-stack {
	display: grid;
	gap: 16px;
}

.info-box {
	border-radius: 15px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.04);
	padding: 10px;
}

.info-box-label {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-soft);
}

.info-box-value {
	margin-top: 5px;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
}

.info-box-text {
	margin-top: 5px;
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.72);
}

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

.event-footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.avatars {
	display: flex;
	margin-left: 6px;
}

.avatar {
	width: 40px;
	height: 40px;
	margin-left: -6px;
	border-radius: 50%;
	border: 2px solid #0b1020;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--pink), var(--violet), var(--cyan));
	color: #07101b;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.details-btn {
	width: 100%;
	border: 1px solid rgba(116, 242, 255, 0.2);
	border-radius: 18px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: 200ms ease;
}

.details-btn:hover {
	background: linear-gradient(90deg, rgba(255, 181, 217, 0.95), rgba(125, 92, 255, 0.95), rgba(116, 242, 255, 0.95));
	color: #0a0f1c;
}

@media (min-width: 900px) {
	.app {
		padding: 24px;
	}

	.layout {
		grid-template-columns: minmax(260px, 35%) minmax(0, 65%);
		gap: 24px;
		height: calc(100vh - var(--header-height));
		min-height: calc(100vh - var(--header-height));
	}

	.map-panel,
	.events-panel {
		height: 100%;
	}

	.events-scroll {
		overflow: auto;
		padding-right: 8px;
		flex: 1;
	}

	.events-scroll::-webkit-scrollbar {
		width: 10px;
	}

	.events-scroll::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.12);
		border-radius: 999px;
	}

	.events-panel {
		padding: 16px;
	}

	.events-header {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	.event-card {
		min-height: 160px;
	}

	.event-media {
		height: 165px;
	}

	.event-body {
		min-height: 310px;
		justify-content: space-between;
	}

	.event-footer {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.details-btn {
		width: auto;
		min-width: 180px;
	}
}

@media (max-width: 899px) {
	.header-actions {
		display: none;
	}

	.event-media {
		height: 300px;
	}

	.event-bottom-copy h3 {
		font-size: 28px;
	}

	.map-copy h2,
	.events-header h2 {
		font-size: 28px;
	}

	.pin-card {
		display: none;
	}
}

@media (max-width: 640px) {
	.app {
		padding: 14px;
	}

	.header {
		padding: 14px;
	}

	.map-top,
	.map-bottom {
		left: 12px;
		right: 12px;
	}

	.event-media {
		height: 270px;
	}

	.event-bottom-copy h3 {
		font-size: 24px;
	}

	.event-date,
	.info-box-text {
		font-size: 15px;
	}

	.info-box-value {
		font-size: 18px;
	}
}