/* CSS Styles */

.screen-reader-only {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute !important;
    color: black;
    background-color: white;
}

* {
    font-family: Arial, hevetica, Verdana, sans-serif;
    color: black;
}

.skip-to-content {
    padding: 6px;
    position: absolute;
    top: -7rem;
    left: 0px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left:1rem;
    padding-right:1rem;
    margin-left: 0.2rem;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    border-bottom-right-radius: 2rem;
    color: white;
    font-size: xx-large;
    font-weight: bold;
    background-color: #000090;
    text-decoration: underline;
    -webkit-transition: top 1s ease-out, background 1s linear;
    transition: top 1s ease-out, background 1s linear;
    z-index: 100;
}

a.skip-to-content:focus {
    position: absolute;
    left: 0px;
    top: 0px;
    outline: 0;
    -webkit-transition: top .1s ease-in, background .5s linear;
    transition: top .1s ease-in, background .5s linear;
}

a.skip-to-content:hover {
    color: white;
    background-color: #000090;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

h1 {
    display: flex;
    gap: 0.3em;
}
h1 span {
   /*  min-width: 21ch;  */
}

#mainMenuNav {
}

main {
    display: flex;
    gap: 0.3em;
    align-items: flex-start;
}


#searchBlock {
    border: 1px solid black;
    border-radius: 1.5rem;
    padding-left: 1.5em;
    padding-right: 1.5em;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-top:0;

}

#searchBlock form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#searchBlock input::placeholder {
     color: #5B7487;
}

#searchBox {
}

#searchButton {
    margin:0;
    padding:0;
    border:none;
}

#searchResults {
}

#mainMenuList {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    color: #1E3A8A;
}

.mainMenuItem a {
    text-decoration: none;
    padding-left: 1em;
    padding-right: 1em;
    font-size: x-large;
    font-weight:bolder;
    color: #1E3A8A;
}  

#map {
    background-color: whitesmoke;
    margin: 0;
    padding:0;
    overflow: hidden;
    /* Two-finger pinch / Ctrl+wheel are handled in JS to zoom only the map.
       touch-action:none keeps the browser from zooming the whole page instead. */
    touch-action: none;
}

#mapSection {
    width: 100%;
    /* Clip the SVG when it is scaled up by the map zoom transform. */
    overflow: hidden;
}

.waterline {
    
}

#control-height {
    height: 100vh;
    width: 0;
    position: absolute;
}

.addressOutline {

}
main {
    position: relative;
}

.rightSideBar {
    position: fixed;
    top: 10px;
    right: 16px;
    font-size:large;
    z-index: 100;    
    display: flex;
    flex-direction: column;
    background-color: lavender;
    border: 1px solid gray;
    padding: 3px;
}

.filterBox {
    font-size:large;
    display: flex;
    flex-direction: column;
    background-color: lavender;
    border: 1px solid gray;
    padding: 3px;
}

.rotorBox {
    font-size:large;
    display: flex;
    flex-direction: column;
    background-color: lavender;
    border: 1px solid gray;
    padding: 3px;
}


.filterButton {

}

.filterCheckbox {
}

/* Sticky tooltip — shows a focused/hovered feature's name on screen (ported
   from the terminal map). pointer-events:none so it never blocks the marker;
   sticky so magnifier users can pan/zoom to read it. */
.poi-tooltip {
    position: fixed;
    max-width: 260px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    color: black;
    border: 1px solid #1E3A8A;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(8, 17, 46, 0.22);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    z-index: 200;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 22px));
    white-space: normal;
}
.poi-tooltip[hidden] { display: none; }
.poi-tooltip::before,
.poi-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-style: solid;
    border-color: transparent;
}
/* Navy outline of the tail — continues the bubble's 1px border down the V. */
.poi-tooltip::before {
    top: 100%;
    border-width: 11px;
    border-top-color: #1E3A8A;
}
/* White fill, 1px smaller and nudged 1px back into the bubble so the fill is
   continuous (no border line across the base) and navy shows only on the sides. */
.poi-tooltip::after {
    top: calc(100% - 1px);
    border-width: 10px;
    border-top-color: rgba(255, 255, 255, 0.97);
}
body.tooltip-below .poi-tooltip {
    transform: translate(-50%, calc(0% + 22px));
}
body.tooltip-below .poi-tooltip::before {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1E3A8A;
}
body.tooltip-below .poi-tooltip::after {
    top: auto;
    bottom: calc(100% - 1px);
    border-top-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.97);
}

/* Location marker — a constant-size ring pinned at the feature point. Navy ring
   + white halo so it shows over parks, water, roads and buildings alike. Lives in
   the screen-space overlay, so it never scales with the map zoom (stays findable
   when zoomed out). aria-hidden — the name is announced from the feature itself. */
.poi-marker {
    position: fixed;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 3px solid #1E3A8A;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
    transform: translate(-50%, -50%);
    z-index: 199;
    pointer-events: none;
}
.poi-marker[hidden] { display: none; }

/* Map view controls (zoom + pan) — keyboard / switch / voice / pointer. */
.mapViewBox {
    font-size: large;
    display: flex;
    flex-direction: column;
    background-color: lavender;
    border: 1px solid gray;
    padding: 3px;
    margin-top: 0.3rem;
}
.mapViewBox .mapViewTitle {
    font-size: large;
    font-weight: bold;
    margin: 0 0 0.3rem 0;
}
.mapViewBox button {
    font-size: large;
    margin: 1px 0;
    padding: 0.25rem 0.5rem;
    background-color: white;
    color: black;
    border: 1px solid #1E3A8A;
    border-radius: 4px;
    cursor: pointer;
}
.mapViewBox button:hover {
    background-color: #e6e6fa;
}