/*
|--------------------------------------------------------------------------
| Whitsunday Marine Dashboard
| Interactive Map
|--------------------------------------------------------------------------
*/

/*--------------------------------------------------------------
Map Container
--------------------------------------------------------------*/

#map {
    width: 100%;
    height: 80vh;
    min-height: 700px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    box-shadow: 0 5px 18px rgba(0,0,0,.20);
}

/*--------------------------------------------------------------
Leaflet
--------------------------------------------------------------*/

.leaflet-container {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #d8eefc;
}

/*--------------------------------------------------------------
Popup
--------------------------------------------------------------*/

.leaflet-popup-content {
    margin: 10px 14px;
    min-width: 220px;
    line-height: 1.5;
    font-size: 14px;
}

.leaflet-popup-content h5 {
    margin-bottom: 8px;
    font-weight: 600;
}

.leaflet-popup-content hr {
    margin: 8px 0;
}

/*--------------------------------------------------------------
Zoom Buttons
--------------------------------------------------------------*/

.leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 18px;
}

/*--------------------------------------------------------------
Layer Control
--------------------------------------------------------------*/

.leaflet-control-layers {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.leaflet-control-layers-expanded {
    padding: 10px;
    min-width: 180px;
}

/*--------------------------------------------------------------
Scale
--------------------------------------------------------------*/

.leaflet-control-scale {
    margin-bottom: 15px !important;
}

/*--------------------------------------------------------------
Marker Popup Buttons
--------------------------------------------------------------*/

.map-button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background .2s;
}

.map-button:hover {
    background: #0b5ed7;
    color: #fff;
}

/*--------------------------------------------------------------
Loading Overlay (Future)
--------------------------------------------------------------*/

.map-loading {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    padding: 10px 16px;
    background: rgba(255,255,255,.95);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    font-weight: 600;
}

/*--------------------------------------------------------------
Mobile
--------------------------------------------------------------*/

@media (max-width: 768px) {

    #map {
        height: 70vh;
        min-height: 500px;
    }

    .leaflet-control-layers-expanded {
        min-width: 150px;
    }

}