/* Komunaliada Map Widget Styles */

.komunaliada-map-wrapper {
    position: relative;
    width: 100%;
}

/* Full width breakout - extends beyond container */
.komunaliada-map-wrapper.full-width-breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.komunaliada-map {
    width: 100%;
    min-height: 400px;
    z-index: 1;
}

/* Custom marker styles */
.komunaliada-marker {
    background: transparent;
    border: none;
}

.komunaliada-marker .marker-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.komunaliada-marker .marker-icon {
    transform: rotate(45deg);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Popup styles */
.komunaliada-popup {
    min-width: 180px;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
}

.komunaliada-popup h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
}

.komunaliada-popup p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.komunaliada-popup strong {
    color: #333;
}

/* Legend styles */
.komunaliada-map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    max-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
}

.komunaliada-map-legend h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.komunaliada-map-legend ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.komunaliada-map-legend li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
}

.komunaliada-map-legend li:last-child {
    margin-bottom: 0;
}

.komunaliada-map-legend .legend-marker {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 3px;
}

.komunaliada-map-legend .legend-marker.main {
    background-color: #e74c3c;
}

.komunaliada-map-legend .legend-marker.remote {
    background-color: #3498db;
}

.komunaliada-map-legend strong {
    display: block;
    color: #333;
    font-weight: 600;
}

.komunaliada-map-legend .legend-location {
    display: block;
    color: #666;
    font-size: 12px;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

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

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .komunaliada-map-legend {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 15px;
        max-width: 100%;
        max-height: none;
    }
}
