/* MAP CONTAINER */
#map-container {
	width: 100%;
	height: 420px;
	border-radius: 12px;
	box-shadow: 0 0 18px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

#map {
	width: 100%;
	height: 100%;
}

/* Mobile */
@media (max-width: 768px) {
	#map-container {
		height: 300px;
	}
}

/* CUSTOM MARKERS */
.custom-pin {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 3px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 23px;
	color: white;
	position: relative;
	transition: 0.2s ease;
}

.custom-pin.active-default {
	background: #ff8c00;
	box-shadow: 0 0 10px #ff8c00;
}

.custom-pin.inactive-default {
	background: #aaa;
}

.custom-pin.active-clicked {
	background: #73bf44;
	box-shadow: 0 0 22px #73bf44;
}

/* ORANGE PULSE */
.custom-pin.active-default::after {
	content: "";
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 4px solid rgba(255, 140, 0, 0.55);
	top: -12px;
	left: -12px;
	animation: pulse-orange 1.7s infinite ease-out;
}

@keyframes pulse-orange {
	0% {
		transform: scale(0.6);
		opacity: 1;
	}

	70% {
		transform: scale(1.4);
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* GREEN PULSE */
.custom-pin.active-clicked::after {
	content: "";
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 4px solid rgba(115, 191, 68, 0.55);
	top: -12px;
	left: -12px;
	animation: pulse-green 1.7s infinite ease-out;
}

@keyframes pulse-green {
	0% {
		transform: scale(0.6);
		opacity: 1;
	}

	70% {
		transform: scale(1.4);
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* ====================================
   UPGRADED SIDE PANEL STYLING
==================================== */

.side-panel {
	position: fixed;
	top: 0;
	right: -420px;
	width: 420px;
	height: 100vh;
	background: #ffffff;
	border-left: 1px solid #e1e1e1;
	box-shadow: -6px 0 25px rgba(0, 0, 0, 0.2);
	transition: right 0.35s ease;
	display: flex;
	flex-direction: column;
	z-index: 999999;
}

.side-panel.active {
	right: 0;
}

/* Header */
.panel-header {
	background: #f7f7f7;
	padding: 18px 22px;
	border-bottom: 1px solid #e6e6e6;
	display: flex;
	align-items: center;
}

.panel-title {
	margin: 0;
	color: #2a5c2a;
	font-weight: 700;
	font-size: 1.35rem;
	flex-grow: 1;
}

.panel-close {
	font-size: 30px;
	color: #555;
	cursor: pointer;
	margin-right: 10px;
	transition: 0.2s;
}

.panel-close:hover {
	color: #000;
}

/* Panel Body */
.panel-body {
	padding: 22px;
	overflow-y: auto;
}

/* Status Message */
.panel-status-text {
	background: #eef8e4;
	padding: 12px 16px;
	border-radius: 10px;
	border-left: 4px solid #73bf44;
	color: #3d7a3d;
	font-weight: 600;
	margin-bottom: 18px;
}

/* Image */
.panel-image-wrapper {
	width: 100%;
	margin-bottom: 18px;
}

.panel-image {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	display: block;
}

/* Buttons */
.panel-buttons {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Buttons Base */
.panel-btn {
	display: block;
	width: 100%;
	padding: 14px;
	border-radius: 10px;
	font-weight: 600;
	text-align: center;
	font-size: 1.05rem;
	transition: 0.2s;
}

/* Primary (Green) */
.primary-btn {
	background: #73bf44;
	color: white !important;
}

.primary-btn:hover {
	background: #65a83c;
}

/* Secondary (Outline) */
.secondary-btn {
	background: #fff;
	border: 2px solid #73bf44;
	color: #73bf44;
}

.secondary-btn:hover {
	background: #eff9e9;
}

/* Tooltip styling for city address */
.city-tooltip {
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	border: none;
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 480px) {
	#side-panel {
		width: 100%;
	}
}

/* ============================================================
   PDF Iframe Full Height Fix inside Modal (Mobile + Desktop)
============================================================ */

.pdf-modal-wrapper {
	width: 100%;
	height: 100%;
}

.pdf-modal-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.pdf-js-frame {
	width: 100%;
	height: 100%;
	border: none;
}

/* Mobile full-screen modal */
@media (max-width: 768px) {
	.modal-dialog {
		width: 100% !important;
		max-width: 100% !important;
		height: 100% !important;
		margin: 0;
	}

	.modal-content {
		height: 100% !important;
		border-radius: 0;
		display: flex;
		flex-direction: column;
	}

	.modal-body {
		flex-grow: 1;
		padding: 0 !important;
		overflow: hidden !important;
	}

	.pdf-js-frame {
		height: 100% !important;
	}
}
