/* Основен контейнер */
.place-map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    background: #f5f5f5; /* Фон докато се зарежда */
    border-radius: 8px;
    overflow: hidden;
}

/* Карта */
.place-map {
    width: 100% !important;
    height: 600px !important;
    background: #f5f5f5;
    z-index: 1;
}

.leaflet-container {
    background: transparent !important;
}

.leaflet-tile-container img {
    width: 256px !important;
    height: 256px !important;
}

/* Фикс за HTTPS tiles */
.leaflet-tile-loaded {
    filter: none !important;
}


.custom-tooltip {
    margin-top: -16px !important;
    position: relative;
    /* top: -16px; */
}

/* Модал */
.place-map-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.place-marker-icon {
    width: 42px !important;
    height: 42px !important;
    transition: all 0.3s ease;
}

.place-marker-icon.selected {
    width: 52px !important;
    height: 52px !important;
    z-index: 1000 !important;
}

.place-marker svg {
	fill: #e74c3c;
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}
.place-marker-icon.restorant svg { fill: #005F73 !important; }
.place-marker-icon.kafene svg { fill: #0A9396 !important; }
.place-marker-icon.pekarna svg { fill: #94D2BD !important; }
.place-marker-icon.bar svg { fill: #E9D8A6 !important; }
.place-marker-icon.aktivnost svg { fill: #EE9B00 !important; }
.place-marker-icon.krasota svg { fill: #BB3E03 !important; }
.place-marker-icon.sport svg { fill: #AE2012 !important; }
.place-marker-icon.izkustvo-i-kultura svg { fill: #9B2226 !important; }
.place-map-modal.active {
	display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
}

.modal-featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.modal-title {
	margin: 0 0 10px;
}

.modal-title a {
	text-decoration: none;
	color: #333;
}

.modal-category {
	color: #666;
	font-size: 14px;
}

.place-map-notice {
	padding: 20px;
	background: #f8f9fa;
	border: 1px solid #ddd;
	text-align: center;
}

.leaflet-top {
    z-index: 999;
}

/* Категорийни цветове */
.place-marker.restorant { color: #005F73; }
.place-marker.kafene { color: #0A9396; }
.place-marker.pekarna { color: #94D2BD; }
.place-marker.bar { color: #E9D8A6; }
.place-marker.aktivnost { color: #EE9B00; }
.place-marker.krasota { color: #BB3E03; }
.place-marker.sport { color: #AE2012; }
.place-marker.izkustvo-i-kultura { color: #9B2226; }

@media (max-width: 768px) {
	.place-map-container {
		height: 500px;
		margin: 10px auto;
		border-radius: 0;
	}

	.place-map-modal {
		position: absolute;
		top: 20px;
		left: 10px;
		width: 300px;
		background: white;
		padding: 15px;
		border-radius: 5px;
		box-shadow: 0 0 15px rgba(0,0,0,0.1);
		z-index: 1000;
		display: none;
	}