html,
body {	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;}

#map {	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 1;}

.floating-panel {	
	position: absolute;
	top: 10px;
	left: 50px;
	width: 360px;
	max-height: 92vh;
	z-index: 999;
	padding: 20px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .75);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, .4);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

.sidebar-content1 {
	max-height: 40vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 5px;}

.sidebar {
	position: absolute;
	top: 85px;
	left: 420px;
	width: 360px;
	max-height: 76vh;
	background: rgba(255, 255, 255, .75);
	border-radius: 10px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
	transform: translateX(-20px);
	opacity: 0;
	transition: .3s ease;
	z-index: 950;
	overflow: auto;
	pointer-events: none;}

.sidebar.active{
	transform:
	translateX(0);
	opacity:1;
	pointer-events:auto;
}

.list-item {	background: #fff;
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: .2s;
	border: 1px solid #eee;}

.list-item:hover {	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);}

.list-item.active {	border-color: #0d6efd;
	background: #eef5ff;}

.custom-select {	border-radius: 12px !important;
	height: 45px;
	border: none !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);}

.floating-panel::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
	width: 8px;}

.floating-panel::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 20px;}

.floating-panel::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
	background: transparent;}

.list-item {
	animation: fadeSlide .3s ease;}

@keyframes fadeSlide {
	from {
		opacity: 0;
		transform: 	translateY(10px);
	}

	to {
		opacity: 1;
		transform: 	translateY(0);
	}

}

.btn-primary {
	height: 45px;
	border-radius: 14px;
	border: none;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(13, 110, 253, .3);}

.sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;}

.btn-close-custom {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 12px;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 18px;}

.panel-toggle {
	position: absolute;
	top: 80px;
	left: 10px;
	width: 35px;
	height: 35px;
	background: #858282;
	border-radius: 5px;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 22px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
	backdrop-filter: blur(1px);}

.floating-panel.hide {
	transform: translateX(-420px);
	opacity: 0;
	pointer-events: none;}

#map-loader {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, .5);
	backdrop-filter: blur(5px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;}

.loader-spin {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 5px solid #ddd;
	border-top: 5px solid #0d6efd;
	animation: spin 1s linear infinite;}

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

}

.sidebar {
	will-change: transform;}

@media(max-width:768px) {
	.floating-panel {
		width: 90%;
		left: 5%;
	}

	.sidebar {
		width: 100%;
	}

}

.list-item:hover {
	transform: translateX(4px);}

.search-box input {
	height: 48px;
	border: none;
	border-radius: 14px;
	padding: 0 16px;
	font-size: 14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);}

#floating-stats {
	position: absolute;
	bottom: 20px;
	right: 10px;
	z-index: 999;
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.stat-card {
	min-width: 80px;
	padding: 5px 15px 5px 15px;
	border-radius: 14px;
	background: rgba(108, 102, 102, 0.9);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, .4);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
	color: #fff;
	cursor: pointer;
}

.stat-card.active{
	border:1px solid #0d6efd;
	background: rgba(255, 255, 255, .75);
	transform:translateY(-2px);
	color: #434040;
}

.stat-value {
	font-size: 20px;
	font-weight: 700;}

.stat-label {
	font-size: 13px;
	font-weight: 700;
	margin-top: 0px;}

.detail-header{
	display:flex;
	justify-content:space-between;
	align-items:start;
	padding:20px;
	border-bottom:
	1px solid #eee;
}

.detail-badge{
	display:inline-block;
	padding:4px 10px;
	border-radius:20px;
	font-size:12px;
	background:#eef5ff;
	color:#0d6efd;
	margin-bottom:8px;
	font-weight:600;
}

.detail-title{
	font-size:20px;
	font-weight:700;
	line-height:1.4;
	margin:0;
	color:#111;
}

.close-detail{
	border:none;
	background:none;
	font-size:20px;
	cursor:pointer;
	color:#999;
}

.detail-section{
	padding:20px;
}

.detail-item{
	margin-bottom:18px;
}

.detail-label{
	font-size:12px;
	font-weight:600;
	color:#888;
	margin-bottom:6px;
	text-transform:uppercase;
	letter-spacing:.5px;
}

.detail-value{
	font-size:15px;
	color:#222;
	line-height:1.5;
}


#pic-content{
	position:relative;
	padding:20px;
}

#pic-content::before{
	content:'';
	position:absolute;
	left:30px;
	top:0;
	bottom:0;
	width:3px;
	background:#e5e7eb;
	border-radius:20px;
}

.timeline-item{
	position:relative;
	padding-left:70px;
	margin-bottom:30px;
}

.timeline-dot{
	position:absolute;
	left:19px;
	top:10px;
	width:22px;
	height:22px;
	border-radius:50%;
	background:#0d6efd;
	border:4px solid white;
	box-shadow:
	0 0 0 4px
	rgba(13,110,253,.15);
	z-index:2;
}

.timeline-content{
	background:#fff;
	border-radius:18px;
	padding:16px;
	box-shadow:
	0 10px 30px
	rgba(0,0,0,.08);
}

.timeline-title{
	font-size:15px;
	font-weight:700;
	color:#111;
	margin-bottom:4px;
}

.timeline-date{
	font-size:12px;
	color:#888;
	margin-bottom:12px;
}

.timeline-image-wrap{
	overflow:hidden;
	border-radius:14px;
}

.timeline-image{
	width:100%;
	height:220px;
	object-fit:cover;
	transition:.3s ease;
	cursor:pointer;
}

.timeline-image:hover{
	transform:scale(1.05);
}

.gallery-item{
	overflow:hidden;
	border-radius:16px;
	cursor:pointer;
	background:#f5f5f5;
}

.gallery-image{
	width:100%;
	height:160px;
	object-fit:cover;
	transition:.3s ease;
}

.gallery-item:hover
.gallery-image{
	transform:scale(2.08);
}

#lightbox{
	position:fixed;
	inset:0;
	background:
	rgba(0,0,0,.92);
	display:flex;
	align-items:center;
	justify-content:center;
	opacity:0;
	visibility:hidden;
	transition:.25s ease;
	z-index:99999;
}

#lightbox.active{
	opacity:1;
	visibility:visible;
}

#lightbox-image{
	max-width:90%;
	max-height:90%;
	border-radius:18px;
	box-shadow:
	0 20px 60px
	rgba(0,0,0,.4);
	transform:scale(.9);
	transition:.25s ease;
}

#lightbox.active
#lightbox-image{
	transform:scale(1);
}

#lightbox-close{
	position:absolute;
	top:20px;
	right:20px;
	width:46px;
	height:46px;
	border:none;
	border-radius:50%;
	background:
	rgba(255,255,255,.12);
	color:#fff;
	font-size:22px;
	cursor:pointer;
	backdrop-filter:
	blur(10px);
}

.leaflet-control-layers{
	position:relative;
	z-index:2000 !important;
	background:
	rgba(255,255,255,.95);
	backdrop-filter:
	blur(10px);
	border:none !important;
	border-radius:16px;
	box-shadow:
	0 10px 30px
	rgba(0,0,0,.15);
	padding:8px;
}
