/**
 * Mapplic - Public Styles
 *
 * @package    Mapplic
 * @author     Kreativos Pro
 * @since      1.0.0
 */

.mapplic-frontend-container {
	width: 100%;
	position: relative;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mapplic-frontend-map {
	width: 100%;
	height: 100%;
}

/* Lot Popup */
.mapplic-lot-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.mapplic-lot-popup-content {
	background: #fff;
	max-width: 500px;
	width: 90%;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	position: relative;
	padding: 30px;
	animation: slideUp 0.3s;
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.mapplic-lot-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 32px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.mapplic-lot-popup-close:hover {
	color: #333;
}

.lot-popup-title {
	margin: 0 0 20px 0;
	font-size: 24px;
	color: #333;
}

.lot-popup-body p {
	margin: 10px 0;
	font-size: 15px;
	line-height: 1.6;
}

.lot-popup-body strong {
	color: #555;
	font-weight: 600;
}

.lot-popup-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.lot-status-available {
	background: #d4edda;
	color: #155724;
}

.lot-status-reserved {
	background: #fff3cd;
	color: #856404;
}

.lot-status-sold {
	background: #f8d7da;
	color: #721c24;
}

.mapplic-contact-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 15px;
	width: 100%;
}

.mapplic-contact-btn:hover {
	background: #135e96;
	color: #fff;
}

/* Contact Form */
.mapplic-contact-form {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s;
}

.mapplic-contact-form-content {
	background: #fff;
	max-width: 500px;
	width: 90%;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	position: relative;
	padding: 30px;
	animation: slideUp 0.3s;
}

.mapplic-contact-form-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 32px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.mapplic-contact-form-close:hover {
	color: #333;
}

.mapplic-contact-form h3 {
	margin: 0 0 20px 0;
	font-size: 24px;
	color: #333;
}

.mapplic-contact-form-inner label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #555;
}

.mapplic-contact-form-inner input[type="text"],
.mapplic-contact-form-inner input[type="email"],
.mapplic-contact-form-inner input[type="tel"],
.mapplic-contact-form-inner textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.mapplic-contact-form-inner input:focus,
.mapplic-contact-form-inner textarea:focus {
	outline: none;
	border-color: #2271b1;
}

.mapplic-contact-form-inner button[type="submit"] {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	width: 100%;
}

.mapplic-contact-form-inner button[type="submit"]:hover {
	background: #135e96;
}

/* Leaflet Customization */
.leaflet-popup-content-wrapper {
	border-radius: 8px;
	padding: 0;
}

.leaflet-popup-content {
	margin: 15px;
}

/* Responsive */
@media (max-width: 768px) {
	.mapplic-lot-popup-content,
	.mapplic-contact-form-content {
		width: 95%;
		padding: 20px;
	}

	.lot-popup-title,
	.mapplic-contact-form h3 {
		font-size: 20px;
	}
}
