﻿.map-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden; /* Prevents the map from overflowing past rounded corners */
    padding: 0px;
    line-height: 0; /* Removes small vertical gaps at the bottom */
    font-size: 0; /* Removes spacing between internal inline elements */
    position: relative; /* Required for absolute positioning of the toolbar */
    margin-top: 5px;
}

#map {
    height: 500px;
    width: 100% !important;
    display: block; /* Changes display to block to prevent inline-block whitespace/margins */
    margin: 0;
    padding: 0;
}

/* Floats the toolbar on top of the map  */
.mapToolbar {
    position: absolute;
    top: 60px; /* Lowered from 10px to 60px to sit below default map controls */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row; /* Aligns items horizontally */
    flex-wrap: nowrap; /* Prevents the toolbar from wrapping to a new line */
    align-items: center; /*  Centers items verticall */
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
    .mapToolbar button {
        background: lightblue;
        border: 1px solid #dee2e6;
        color: #333;
        padding: 10px 20px; /* Adjusts spacing: 10px top/bottom, 20px left/right for a comfortable fit */
        font-size: 14px; /*  Essential settings to prevent text overlapping */
        font-weight: normal;
        white-space: nowrap; /*  Prevents text from wrapping or overlapping */
        word-break: keep-all; /*  Ensures words stay intact without breaking */
        display: inline-block;
        min-width: max-content; /* Ensures button width expands to fit content */
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
        .mapToolbar button:hover {
            background: #f1f3f5;
            border-color: #adb5bd;
        }

