/* src/lib/spatial.css */

.map {
    width: 100%;
    height: 400px;
    position: relative;
    border: 1px solid var(--theme-foreground-faintest);
}

.map:-webkit-full-screen {
    height: 100%;
    margin: 0;
}

.map:fullscreen {
    height: 100%;
}

#infooverlay {
    position: absolute;
    display: inline-block;
    height: auto;
    width: auto;
    z-index: 100;

    /* --- THEME AWARE COLORS --- */
    background-color: var(--theme-background-alt);
    color: var(--theme-foreground);
    border: 1px solid var(--theme-foreground-faint);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    text-align: center;
    border-radius: 4px;
    padding: 8px;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    pointer-events: none;
    font-size: 0.8rem;
    font-family: var(--sans-serif);
}