/* Frontend Block Styles */

.wp-location-mapper-block {
    margin: 20px 0;
}

.wp-location-mapper-block .location-map-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-location-mapper-block .location-map {
    width: 100%;
    height: 100%;
}

.wp-location-mapper-block .location-list {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.wp-location-mapper-block .location-list h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.wp-location-mapper-block .location-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.wp-location-mapper-block .location-item {
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-location-mapper-block .location-item:hover {
    border-color: #4a90a4;
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.1);
    transform: translateY(-1px);
}

.wp-location-mapper-block .location-item strong {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.wp-location-mapper-block .location-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Location Trigger Styles */
.location-trigger {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7ed 100%);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid #4a90a4;
    font-weight: 500;
    display: inline-block;
}

.location-trigger:hover {
    background: linear-gradient(135deg, #d1e7ed 0%, #b8d4db 100%);
    color: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74, 144, 164, 0.2);
}

.location-trigger.active {
    background: linear-gradient(135deg, #4a90a4 0%, #3a7a8a 100%);
    color: white;
    border-bottom-color: #2c5d6a;
}

/* Empty States */
.wp-location-mapper-empty,
.location-pin-empty {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

/* Leaflet Map Customizations */
.wp-location-mapper-block .leaflet-container {
    font-family: inherit;
}

.wp-location-mapper-block .leaflet-popup-content {
    font-size: 14px;
    line-height: 1.4;
}

.wp-location-mapper-block .leaflet-popup-content strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

/* Custom Marker Styles */
.custom-marker {
    background-color: #4a90a4;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.custom-marker.restaurant {
    background-color: #e74c3c;
}

.custom-marker.hotel {
    background-color: #9b59b6;
}

.custom-marker.attraction {
    background-color: #f39c12;
}

.custom-marker.beach {
    background-color: #3498db;
}

.custom-marker.museum {
    background-color: #8e44ad;
}

.custom-marker.art {
    background-color: #e91e63;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-location-mapper-block .location-list {
        padding: 15px;
    }

    .wp-location-mapper-block .location-item {
        padding: 12px;
    }

    .wp-location-mapper-block .location-item strong {
        font-size: 14px;
    }

    .wp-location-mapper-block .location-item p {
        font-size: 13px;
    }

    .location-trigger {
        padding: 1px 6px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .wp-location-mapper-block .location-map-container {
        border: 2px solid #000;
        height: 300px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
    }

    .wp-location-mapper-block .location-map::before {
        content: 'Map view (visit online for interactive map)';
        font-weight: bold;
        color: #333;
    }

    .location-trigger {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-weight: bold;
        text-decoration: underline;
    }
}