/* Modern Leaflet Map Styles - public/css/leaflet-map.css */
/* Color Palette:
   Primary: #022a29
   Secondary: #aaa798
   Accent: #a56a24
   Text-white: #e6e6e6
*/

.leaflet-map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.leaflet-map.modern-map {
    border-radius: 12px;
    z-index: 1;
}

/* Standard Leaflet marker - no custom styling needed, use default */

/* Modern Popup Styles with Color Palette */
.modern-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(230, 230, 230, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2, 42, 41, 0.15);
    border: 1px solid rgba(170, 167, 152, 0.3);
    padding: 0;
    overflow: hidden;
}

.modern-leaflet-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
    min-width: 250px;
    min-height: 175px;
}

.modern-popup {
    padding: 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.popup-title {
    font-size: 20px;
    font-family: 'JosefinSans';
    font-weight:800;
    color: #1e2525;
    margin-bottom: 12px;
    line-height: 1.4;
}
.popup-address {
    font-size: 16px;
    font-family: 'JosefinSans';
    font-weight: 600;
    color: #022a29;
    line-height: 1.4;
    max-width: 180px;
    text-align: center;
    margin: auto;
    margin-bottom: 12px;
}

.popup-link {
    display: inline-block;
    background: #a56a24;
    position: absolute;
    color: #e6e6e6 !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(165, 106, 36, 0.3);
    left: 50%;
    bottom: 15px;
    transform: translate(-50%, 0) scale(1, 1)!important;
    width: 210px;
}

.popup-link:hover {
    transform: translate(-50%, 0) scale(1.05, 1.05);
    box-shadow: 0 6px 20px rgba(165, 106, 36, 0.4);
    border: 2px solid #a56a24;
    color: #a56a24 !important;
    background: #022a29;
    color: #e6e6e6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-leaflet-popup .leaflet-popup-tip {
    background: rgba(230, 230, 230, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 167, 152, 0.3);
    box-shadow: 0 8px 25px rgba(2, 42, 41, 0.15);
}

.modern-leaflet-popup .leaflet-popup-close-button {
    background: rgba(2, 42, 41, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #022a29;
    transition: all 0.2s ease;
}

.modern-leaflet-popup .leaflet-popup-close-button:hover {
    background: rgba(2, 42, 41, 0.2);
    color: #022a29;
    transform: scale(1.1);
}

/* Modern Map Controls */
.leaflet-map.modern-map .leaflet-control-zoom {
    border: none;
    box-shadow: 0 6px 20px rgba(2, 42, 41, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(230, 230, 230, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.leaflet-map.modern-map .leaflet-control-zoom a {
    background: transparent;
    border: none;
    color: #022a29;
    font-weight: bold;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    line-height: 36px;
}

.leaflet-map.modern-map .leaflet-control-zoom a:hover {
    background: rgba(165, 106, 36, 0.1);
    color: #a56a24;
}

.leaflet-map.modern-map .leaflet-control-zoom a:first-child {
    border-radius: 0;
}

.leaflet-map.modern-map .leaflet-control-zoom a:last-child {
    border-radius: 0;
}

/* Attribution styling */
.leaflet-map.modern-map .leaflet-control-attribution {
    background: rgba(230, 230, 230, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    margin: 8px;
    padding: 4px 8px;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(2, 42, 41, 0.1);
    color: #022a29;
}

/* Responsive design */
@media (max-width: 768px) {
    .leaflet-map-container {
        border-radius: 8px;
    }
    
    .leaflet-map.modern-map {
        border-radius: 8px;
    }
    
    .modern-popup {
        padding: 15px;
    }
    
    .popup-address {
        font-size: 14px;
    }
    
    .popup-link {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.leaflet-bottom.leaflet-right{
    display: none;
}