/* ===== Christmas Lights Display Map & List ===== */

.cldm-map-wrap {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(11, 61, 36, 0.18), 0 0 0 4px #ffffff, 0 0 0 6px #b3282d;
	margin: 1.5em 0;
}

.cldm-map {
	width: 100%;
	min-height: 300px;
	z-index: 1;
	background: #eef3ef;
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.leaflet-popup-content {
	margin: 14px 16px;
	min-width: 220px;
}
.cldm-popup-name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #0b3d24;
	display: flex;
	align-items: center;
	gap: 6px;
}
.cldm-popup-address {
	margin: 0 0 8px;
	font-size: 13px;
	color: #444;
}
.cldm-popup-website a {
	font-size: 13px;
	color: #b3282d;
	text-decoration: none;
	font-weight: 600;
}
.cldm-popup-website a:hover { text-decoration: underline; }

.cldm-marker-icon {
	font-size: 26px;
	line-height: 1;
	filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
}

.cldm-marker-labeled {
	display: flex;
	align-items: center;
	overflow: visible;
}
.cldm-marker-label {
	display: inline-block;
	margin-left: 6px;
	background: #ffffff;
	color: #0b3d24;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 3px 8px rgba(0,0,0,0.25);
	border: 1px solid rgba(11, 61, 36, 0.15);
	pointer-events: none;
}

/* Social icons */
.cldm-social-icons {
	display: flex;
	gap: 8px;
	margin: 10px 0;
	flex-wrap: wrap;
}
.cldm-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #0b3d24;
	color: #fff;
	transition: transform 0.15s ease, background 0.15s ease;
}
.cldm-social-icon:hover {
	background: #b3282d;
	transform: translateY(-2px) scale(1.06);
	color: #fff;
}

/* Direction buttons */
.cldm-directions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.cldm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 20px;
	text-decoration: none;
	color: #fff !important;
	transition: filter 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}
.cldm-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cldm-btn-google { background: #4285F4; }
.cldm-btn-apple  { background: #111111; }
.cldm-btn-waze   { background: #33ccff; color: #05263a !important; }

/* Shortcode titles */
.cldm-shortcode-title {
	font-size: 22px;
	font-weight: 700;
	color: #0b3d24;
	margin: 0 0 14px;
	position: relative;
	padding-bottom: 8px;
}
.cldm-shortcode-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 46px;
	height: 3px;
	background: #b3282d;
	border-radius: 2px;
}

/* Sidebar wrapper */
.cldm-sidebar {
	text-align: left;
}

/* Caption / heading row with editable decoration */
.cldm-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(179, 40, 45, 0.25);
}
.cldm-caption h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0b3d24;
}
.cldm-caption-icon {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}
.cldm-caption-icon:empty { display: none; }
.cldm-caption-icon img { display: block; height: 22px; width: auto; }

/* "View Interactive Map" button */
.cldm-map-btn-wrap {
	margin: 0 0 18px;
}
.cldm-map-btn {
	display: inline-block;
	background: #ffcc00;
	color: #1a1a1a !important;
	padding: 10px 18px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cldm-map-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(255, 204, 0, 0.4);
	color: #1a1a1a !important;
}

/* Sidebar list */
.cldm-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.cldm-empty {
	font-style: italic;
	color: #777;
}
.cldm-list-item {
	padding: 10px 0;
	border-bottom: 1px dashed rgba(11, 61, 36, 0.15);
}
.cldm-list-item:last-child {
	border-bottom: none;
}
.cldm-sidebar .cldm-list-item-link,
a.cldm-list-item-link {
	display: block;
	font-size: 1.05em;
	font-weight: bold;
	color: #0b3d24 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: color 0.15s ease;
}
.cldm-sidebar .cldm-list-item-link:hover,
.cldm-sidebar .cldm-list-item-link:focus-visible,
a.cldm-list-item-link:hover,
a.cldm-list-item-link:focus-visible {
	color: #b3282d !important;
	text-decoration: underline !important;
	outline: none;
}
.cldm-sidebar .cldm-list-item-address,
.cldm-list-item-address {
	font-size: 0.9em;
	color: #4a5750 !important;
	opacity: 1;
	margin-top: 2px;
}
.cldm-list-item template {
	display: none;
}

/* Modal */
.cldm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 30, 20, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
	animation: cldm-fade-in 0.15s ease;
}
.cldm-modal-overlay[hidden] { display: none; }
@keyframes cldm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.cldm-modal {
	background: #fff;
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 28px 26px 24px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 6px #b3282d33;
	animation: cldm-pop-in 0.18s ease;
}
@keyframes cldm-pop-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.cldm-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 6px;
}
.cldm-modal-close:hover { color: #b3282d; }
.cldm-modal-name {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #0b3d24;
}
.cldm-modal-address {
	margin: 0 0 10px;
	font-size: 14px;
	color: #555;
}
.cldm-modal-website a {
	font-size: 14px;
	font-weight: 600;
	color: #b3282d;
	text-decoration: none;
}
.cldm-modal-website a:hover { text-decoration: underline; }
.cldm-modal-map {
	width: 100%;
	height: 200px;
	border-radius: 10px;
	overflow: hidden;
	margin: 10px 0;
	background: #eef3ef;
	box-shadow: 0 0 0 1px rgba(11, 61, 36, 0.12);
}
.cldm-modal-body .cldm-social-icons { margin-top: 12px; }
.cldm-modal-body .cldm-directions { margin-top: 14px; }

@media (max-width: 480px) {
	.cldm-btn { flex: 1 1 30%; }
}
