/* reset default margins and padding that create “extra boxes” */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
}

body {
    min-height: 100vh;
    min-height: 100dvh; /*for mobile viewport height*/
}

#map {
width: 100%;
height: 100%;
}

.leaflet-popup-content-wrapper {
    background: #1e1e1e;
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    max-width: none;
}

.leaflet-popup-content {
    margin: 8px 12px;
    white-space: nowrap;
    width: max-content;
    font-size: 2rem;
}

.leaflet-popup-tip {
    background: #1e1e1e;
}

.leaflet-control-layers-expanded {
    padding: 3rem;
    font-size: 1.5rem;
}

.map-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;

    background: rgba(30,30,30,0.95);
    color: white;

    padding: 12px 14px;
    border-radius: 6px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.4);

    font-family: sans-serif;
    font-size: 1rem;

    max-width: 400px;
    display: block;
}

.map-panel h4 {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
}
.map-panel img {
    width: 100%; 
}


/* Tablet Styles */
@media (min-width: 768px) {
    #map {
        height: 100vh;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    #map {
        height: 100vh;
    }
    .leaflet-popup-content {
        font-size: 1rem;
    }
    .leaflet-control-layers-expanded {
        padding: 1rem;
        font-size: 1rem;
    }

    .map-panel {
        font-size: 0.9rem;

        max-width: 220px;
        display: block;
    }

    .map-panel h4 {
        margin: 0 0 6px 0;
        font-size: 1rem;
    }
    .map-panel img {
        width: 100%;
    }
}