/* ---------- base ---------- */

:root {                                       /* :root = the whole page */
    --maroon: #5c0005;
    --font: "Inter", system-ui, sans-serif; 
    --radius-inner: 20px;
    --radius-panel: calc(var(--radius-inner) + 17px);  /* inner + padding + border */
    --radius-list: 12px;    /* lists and cards */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);                /* var() reads a saved value */
}

#map {
    position: fixed;   /* pinned to the screen, so the page itself can't scroll */
    inset: 0;          /* top, right, bottom, left all 0 = fill the screen */
}

/* ---------- top bar ---------- */

#top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;            /* full width */
    height: 64px;
    background: var(--maroon);
    color: white;
    display: flex;
    align-items: center; /* center the stuff inside from up and down */
    padding: 0 16px;
    z-index: 10;
    gap: 16px; 
}

#top-bar h1 {
    margin: 0;           /* browsers add space around h1 by default */
    font-size: 24px;
}

#top-bar-logo {
    width: 64px;
    height: auto;
    mix-blend-mode: screen;   /* hides the logo's dark background on the maroon */
}

/* move MapLibre's top-right buttons below the top bar */
.maplibregl-ctrl-top-right {
    top: 64px; /* same as the bar's height */
}

html, body {
    overscroll-behavior: none;   /* no pull to refresh or page bounce */
}