/* Parking Map Block Styles */
.parking-map-block {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

#parking-map {
	width: 100%;
	height: 600px;
	z-index: 1;
	position: relative;
}

/* Popup Overlay - inside map-pane with oversized dimensions */
.parking-map-popup-overlay {
	position: absolute;
	top: -99999px;
	left: -99999px;
	width: 199999px;
	height: 199999px;
	background: rgba(0, 0, 0, 0.4);
	z-index: 420;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: auto;
}

.parking-map-popup-overlay.active {
	display: block;
	opacity: 1;
}

/* Search Overlay */
.parking-map-search-overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 1000;
	pointer-events: none;
}

.parking-map-search-box {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	max-width: 350px;
	pointer-events: auto;
}

.parking-map-search-box h3 {
	margin: 0 0 10px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.parking-map-search-box p {
	margin: 0 0 15px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.parking-search-input {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.parking-search-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

/* New Popup Styles */
.parking-popup-new {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.popup-header {
	margin-bottom: 16px;
}

.popup-title {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 700;
	font-size: 22px;
	color: #212121;
	max-width: calc(100% - 50px);
}

.popup-zone {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 700;
	font-size: 24px;
	color: #294881;
	background: #EBF4FF;
	padding: 4px 12px;
	border-radius: 8px;
	text-align: center;
	margin-top: 24px;
}

.popup-payment-section {
	margin-bottom: 28px;
	background: #F4F4F4;
	padding: 14px;
	border-radius: 8px;
}

.popup-payment-section h4 {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 12px;
	color: #212121;
	text-align: center;
}

.popup-about-section h4 {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 6px;
	color: #212121;
}

.popup-features-section h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.payment-method-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 30%;
}

.popup-payment-logos {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.payment-logo {
	max-height: 22px;
	object-fit: contain;
}

.payment-or {
	font-size: 13px;
	color: #666;
	font-weight: 500;
	padding: 0 5px;
}

.popup-about-section {
	margin-bottom: 20px;
}

.popup-about-section p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.popup-features-section {
	margin-bottom: 32px;
}

.popup-features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.feature-icon {
	font-size: 18px;
}

.feature-label {
	color: #333;
	font-weight: 400;
}

.popup-action-section {
	margin-bottom: 20px;
}

.popup-apply-btn {
	width: auto;
	padding: 12px 20px;
	background: #0F254E;
	color: white;
	border: none;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.popup-apply-btn:hover {
	background: #005a87;
}

.popup-iframe-section {
	margin-top: 20px;
	border-top: 1px solid #e0e0e0;
	padding-top: 20px;
}

/* Old Popup Styles (backup) */
.parking-popup h4 {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
}

.parking-details {
	margin-bottom: 15px;
}

.parking-details p {
	margin: 8px 0;
	font-size: 14px;
	line-height: 1.5;
}

.parking-details strong {
	color: #333;
	font-weight: 600;
}

.parking-purchase {
	margin-top: 15px;
	border-top: 1px solid #eee;
	padding-top: 15px;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
	border-radius: 8px;
	background: #FFFFFF;
	box-shadow: 0px 4px 15px rgba(228, 111, 98, 0.15)!important;
	border-radius: 24px!important;
}

.leaflet-container a.leaflet-popup-close-button {
	background: #294881;
	color: white;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	right: 30px;
    top: 30px;
	line-height: 36px;
	text-align: center;
	font-size: 16px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
	background: #0F254E;
	color: white;
}

.leaflet-popup-content {
	margin: 15px;
	max-height: 520px;
	overflow-y: auto;
}

.parking-custom-popup .leaflet-popup-content {
	width: auto !important;
	min-width: 350px;
	padding: 18px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.parking-map-search-overlay {
		position: relative;
		top: 0;
		left: 0;
		margin-bottom: 15px;
	}

	.parking-map-search-box {
		max-width: 100%;
		border-radius: 4px;
	}

	#parking-map {
		height: 400px;
	}
}
