body {
    margin: 0;
    background: black;
    color: white;
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', serif;
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 600;
    color: #d6c08d;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow:
        0 0 10px rgba(214,192,141,0.15);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;    
    width: 260px;
    height: 100dvh;
    padding: 24px;
    padding-bottom: 120px;
    background:
        linear-gradient(
            to bottom,
            #181512,
            #0d0c0b
        );
    border-right: 1px solid #3a3126;
    box-shadow:
        0 0 25px rgba(0,0,0,0.7);
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.sidebar.open + #map {
    pointer-events: none;
}

.book-title {
    margin-top: 28px;
    margin-bottom: 14px;

    font-size: 17px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #c9b37a;

    border-bottom: 1px solid #4a3f22;
    padding-bottom: 8px;
}

button {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
    background:
        linear-gradient(
            to bottom,
            #2a2723,
            #1a1816
        );
    color: #ddd;
    border: 1px solid #3a3328;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
    transition:
        all 0.2s ease;
}

button:hover {
    transform: translateX(4px);
    border-color: var(--c);
    color: white;
    box-shadow:
        0 0 10px rgba(255,255,255,0.08);
}

button.active {
    border: 1px solid var(--c);
    box-shadow: 0 0 12px var(--c);
    color: white;
}

#map {
    width: 100%;
    height: 100dvh;
    background: black;
    filter:
        contrast(1.05)
        saturate(1.05);
    touch-action: pan-x pan-y;
}

.leaflet-container {
    background: black !important;
    filter:
    drop-shadow(0 0 3px rgba(255,255,255,0.15));
    width: 100%;
    height: 100%;
}

.leaflet-image-layer {
    transition: opacity 0.4s ease;
}

#mobile-menu-button {
    display: none;
}

#overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
}

#overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* MOBILE STYLES */
@media (max-width: 768px) {

    #mobile-menu-button {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 2000;
        width: auto;
        padding: 10px 14px;
        background: #111;
        color: white;
        border: 1px solid #444;
        border-radius: 8px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 260px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .sidebar.open {
        left: 0;
    }

    #map {
        width: 100vw;
        height: 100vh;
    }

    .site-title {
        font-size: 26px;
    }

    button {
        font-size: 18px;
        padding: 14px;
    }
}
