/* ===== Map Container ===== */
.iml-map-container {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.iml-map {
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* ===== Custom Marker ===== */
.iml-marker-icon {
	background: none !important;
	border: none !important;
}

.iml-marker-icon svg {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	transition: transform 0.2s ease;
}

.iml-marker-icon:hover svg {
	transform: scale(1.15);
}

/* ===== Popup Override ===== */
.iml-popup .leaflet-popup-content-wrapper {
	background: var(--iml-card-bg, #ffffff);
	color: var(--iml-card-text, #333333);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	padding: 0;
	overflow: hidden;
}

.iml-popup .leaflet-popup-content {
	margin: 0;
	width: 280px !important;
	line-height: 1.5;
}

.iml-popup .leaflet-popup-tip {
	background: var(--iml-card-bg, #ffffff);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ===== Card Structure ===== */
.iml-card {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.iml-card__image {
	width: 100%;
	height: 160px;
	overflow: hidden;
	position: relative;
}

.iml-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.iml-card__body {
	padding: 14px 16px 16px;
}

/* Title */
.iml-card__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--iml-card-text, #333333);
	line-height: 1.3;
}

/* Description */
.iml-card__description {
	font-size: 13px;
	margin: 0 0 10px;
	color: var(--iml-card-text, #333333);
	opacity: 0.8;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta (capacity) */
.iml-card__meta {
	font-size: 13px;
	margin-bottom: 10px;
	color: var(--iml-card-text, #333333);
	opacity: 0.7;
}

.iml-card__capacity {
	display: inline-flex;
	align-items: center;
}

/* Tags */
.iml-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 12px;
}

.iml-card__tag {
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--iml-card-text, #333333);
	color: var(--iml-card-bg, #ffffff);
	opacity: 0.15;
	font-weight: 600;
	letter-spacing: 0.02em;
	position: relative;
}

/* Tag text needs to be fully visible despite container opacity */
.iml-card__tag::after {
	content: attr(data-tag);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
}

/* Alternative approach: use pseudo-element for background */
.iml-card__tag {
	background: transparent;
	opacity: 1;
	color: var(--iml-card-text, #333333);
	border: 1.5px solid var(--iml-card-text, #333333);
	opacity: 0.6;
}

/* Button */
.iml-card__button {
	display: block;
	text-align: center;
	padding: 9px 16px;
	background: var(--iml-btn-color, #3498DB);
	color: var(--iml-btn-text, #ffffff) !important;
	text-decoration: none !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.2s ease, transform 0.2s ease;
	letter-spacing: 0.01em;
}

.iml-card__button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	color: var(--iml-btn-text, #ffffff) !important;
	text-decoration: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
	.iml-popup .leaflet-popup-content {
		width: 240px !important;
	}

	.iml-card__image {
		height: 130px;
	}

	.iml-card__body {
		padding: 10px 12px 14px;
	}

	.iml-card__title {
		font-size: 14px;
	}
}
