* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;

    font-family: Arial, sans-serif;

    overflow: hidden;

    background: #f5f7fb;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 60px;

    background: white;

    display: flex;
    align-items: center;

    padding: 0 16px;

    z-index: 2000;

    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.topbar h1 {
    font-size: 18px;

    margin-left: 14px;

    color: #1d2939;
}

#menuButton {
    border: none;
    background: none;

    font-size: 26px;

    cursor: pointer;

    color: #005fa3;
}

/* =========================
   MAPA
========================= */

#map {
    width: 100%;
    height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: 290px;
    max-width: 85%;

    height: 100%;

    background: white;

    z-index: 3000;

    transform: translateX(-100%);

    transition: transform .3s ease;

    overflow-y: auto;

    box-shadow: 4px 0 20px rgba(0, 0, 0, .18);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 22px 20px;

    border-bottom: 1px solid #edf1f7;

    background: #005fa3;

    color: white;
}

.sidebar-header h2 {
    font-size: 20px;
}

#points {
    list-style: none;
}

#points li {
    padding: 18px 20px;

    border-bottom: 1px solid #edf1f7;

    cursor: pointer;

    transition: .2s;

    background: white;

    font-size: 15px;
}

#points li:hover {
    background: #eef5ff;
}

/* =========================
   OVERLAY
========================= */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    z-index: 2500;

    backdrop-filter: blur(2px);
}

.hidden {
    display: none;
}

/* =========================
   POPUP
========================= */

.custom-popup {
    width: min(78vw, 240px);
}

.popup-image {
    width: 100%;

    height: 130px;

    object-fit: cover;

    border-radius: 14px;
}

.popup-content {
    padding-top: 10px;
}

.popup-content h3 {
    margin: 0 0 8px;

    font-size: 18px;

    line-height: 1.2;

    color: #111827;
}

.popup-content p {
    margin: 0 0 14px;

    font-size: 14px;

    line-height: 1.5;

    color: #4b5563;
}

/* AUDIO */

.popup-audio {
    width: 100%;

    min-width: 100%;

    height: 42px;
}

/* =========================
   LEAFLET POPUP
========================= */

.leaflet-popup-content-wrapper {
    border-radius: 18px;

    padding: 0;

    overflow: hidden;

    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.leaflet-popup-content {
    margin: 10px !important;

    width: auto !important;
}

.leaflet-popup-tip {
    background: white;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 10px;
    right: 10px;

    font-size: 18px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:480px) {

    .custom-popup {
        width: min(74vw, 220px);
    }

    .popup-image {
        height: 120px;
    }

    .popup-content h3 {
        font-size: 16px;
    }

    .popup-content p {
        font-size: 13px;
    }

}

@media(max-width:768px) {

    .sidebar {
        width: 85%;
    }

    .popup-image {
        height: 140px;
    }

    .leaflet-popup-content {
        width: 220px !important;
    }

}