#map_canvas img {
    height: 100%; /*max-width: none;*/
}

#legend img {
    vertical-align: middle;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#submitSearch {
    position: relative;
    /*vertical-align: middle;*/
}

#search-miles {
    background-color: #fff;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    margin-left: 12px;
    padding: 0 11px 0 13px;
    text-overflow: ellipsis;
    width: 250px;
}

    #search-miles:focus {
        border-color: #4d90fe;
    }

#loader2 {
    /*background-color: #fff;
                border: 16px solid #f3f3f3;*/
    font-size: 14px;
    /*border-radius: 50%;*/
    /*border-top: 16px solid #3498db;*/
    width: 258px;
    height: 106px;
    /*animation: spin 2s linear infinite;*/
    display: none;
}

#loadingSRspinner {
    border: none;
    overflow: hidden;
    display: block;
}

#loader3 {
    background-color: #fff;
    font-size: 14px;
    /*border-radius: 50%;*/
    /*border-top: 16px solid #3498db;*/
    width: 240px;
    height: 240px;
    /*animation: spin 2s linear infinite;*/
    /*display: none;*/
}

#loader4 {
    background-color: #fff;
    border: 16px solid #f3f3f3;
    font-size: 14px;
    /*border-radius: 50%;*/
    /*border-top: 16px solid #3498db;*/
    width: 240px;
    height: 120px;
    /*animation: spin 2s linear infinite;*/
    display: none;
}

#loader5 {
    /*background-color: #fff;
                border: 16px solid #f3f3f3;*/
    font-size: 14px;
    /*border-radius: 50%;*/
    /*border-top: 16px solid #3498db;*/
    width: 258px;
    height: 106px;
    /*animation: spin 2s linear infinite;*/
    display: none;
}

/*This css creates an infowindow when a marker is clicked on the map*/
.infoDiv {
    height: 480px;
    width: 1560px;
    /*width: 1260px;*/
    -webkit-user-select: none;
    user-select: none;
    background-color: white;
}

.gm-ui-hover-effect {
    display: none !important;
}

/* Container for the Custom Select */
#srZoomToList {
    position: relative;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    text-overflow: ellipsis;
    width: 0px;
    padding: 0 11px 12px 13px;
}

.custom-select {
    position: relative;
    background-color: #fff;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    text-overflow: ellipsis;
    width: 240px;
    padding: 0 11px 0 13px;
}

.select-editable {
    position: relative;
    background-color: white;
    border: solid grey 1px;
    width: 180px;
    height: 18px;
}

    .select-editable select {
        position: absolute;
        top: 0px;
        left: 0px;
        font-size: 14px;
        border: none;
        width: 180px;
        margin: 0;
    }

    .select-editable input {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 155px;
        padding: 1px;
        font-size: 12px;
        border: none;
    }

        .select-editable select:focus, .select-editable input:focus {
            outline: none;
        }

.inputAddress {
    display: none;
}
/* items added to the custom select including the selected item: */
.select-selected {
    background-color: DodgerBlue;
}
    /* Point the arrow upwards when the select box is open (active): */
    .select-selected.select-arrow-active:after {
        border-color: transparent transparent #fff transparent;
        top: 7px;
    }

.select-items div, .select-selected {
    color: #ffffff;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    vertical-align: middle;
}

.select-items {
    position: absolute;
    background-color: DodgerBlue;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}
/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

#serviceRequestInput {
    padding-bottom: 12px;
    margin-right: 12px;
}

#sr-input {
    background-color: #fff;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    margin-left: 12px;
    padding: 0 11px 0 13px;
    text-overflow: ellipsis;
    width: 175px;
}

    #sr-input:focus {
        border-color: #4d90fe;
    }

#sr-search {
    position: relative;
    vertical-align: middle;
    background-color: honeydew;
    border-color: deepskyblue;
}


#SRLegend {
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 10px;
    margin: 10px;
    border: 3px solid #000;
}

#SR-View-Load {
    margin-left: 12px;
    position: relative;
    vertical-align: middle;
}

    #SR-View-Load:focus {
        border-color: #4d90fe;
    }

#SRLegend h3 {
    margin-top: 0;
    font-family: Roboto;
    font-size: 12px;
}

#SRLegend h4 {
    margin-top: 0;
    font-family: Roboto;
    font-size: 12px;
}

#legend {
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 10px;
    margin: 10px;
    border: 3px solid #000;
    display: none;
}

    #legend h3 {
        margin-top: 0;
        font-family: Roboto;
        font-size: 12px;
    }

/* Style the tab */
.tab {
    overflow: auto;
    border: 1px solid #ccc;
    background-color: #d8f5f2;
    white-space: nowrap;
}
    /* #f1f1f1; */
    /* Style the buttons that are used to open the tab content */
    .tab button {
        /*background-color: inherit;*/
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
    }
        /* Change background color of buttons on hover */
        .tab button:hover {
            background-color: #ddd;
        }
        /* Create an active/current tablink class */
        .tab button.active {
            background-color: #ccc;
        }

.SRInfo {
    overflow: auto;
    border: 1px solid #ccc;
    background-color: #d8f5f2;
    white-space: nowrap;
}
    /* #f1f1f1; */

    /* Style the buttons that are used to open the tab content */
    .SRInfo button {
        /*background-color: inherit;*/
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
    }
        /* Change background color of buttons on hover */
        .SRInfo button:hover {
            background-color: #ddd;
        }
        /* Create an active/current tablink class */
        .SRInfo button.active {
            background-color: #ccc;
        }
/* END CSS Style section for html elements */
ul, #srAreaSubareaMenu {
    list-style-type: none;
    /*list-style-type: initial;*/
}

#srAreaSubareaMenu {
    margin-top: 0;
    margin-left: 10px;
    font-family: Roboto;
    font-size: 12px;
    background: #fff;
    padding: 10px;
    margin: 10px;
    border: 3px solid #000;
    /*position: relative;
            vertical-align: middle;*/
}

.radioSel {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .radioSel::before {
        /*content: "\2610";*/
        color: black;
        display: inline-block;
        margin-right: 6px;
    }



.clickSel {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .clickSel::before {
        content: "\2610";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.check-box::before {
    content: "\2611";
    color: dodgerblue;
}

.sRmultiselect {
    width: 200px;
}

.sRselectBox {
    position: relative;
}

    .sRselectBox select {
        width: 100%;
        font-weight: bold;
    }

.overSelect {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.menuHeaders {
    font-weight: bold;
}

#sRcheckboxes {
    display: none;
    border: 1px #dadada solid;
}

    #sRcheckboxes label {
        display: block;
    }

        #sRcheckboxes label:hover {
            background-color: #1e90ff;
        }


.caret {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .caret::before {
        content: "\25B6";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.caret-down::before {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
    transform: rotate(90deg);
}

.box {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

    .box::before {
        content: "\2610";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.check-box::before {
    content: "\2611";
    color: dodgerblue;
}

.nested {
    display: none;
}

.active {
    display: block;
}


/* Full-page map shell (search is overlaid, not a Maps API control). */
.map-page {
    position: relative;
    width: 100%;
    height: 100%;
}

#map_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.map-search-panel {
    position: absolute;
    left: 0;
    top: 100px;
    z-index: 10;
    background-color: #d8f5f2;
    padding: 6px 8px 8px 8px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-family: Roboto, "Segoe UI", sans-serif;
    max-width: min(304px, calc(100vw - 24px));
    box-sizing: border-box;
    overflow: visible;
}

.map-search-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#pac-input {
    background-color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    padding: 0 8px 0 10px;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    height: 30px;
    line-height: 28px;
    box-sizing: border-box;
    border: 1px solid #b0d4cf;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

    #pac-input:focus {
        border-color: #1a73e8;
        outline: none;
    }

#pac-search-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
    height: 30px;
    line-height: 28px;
    box-sizing: border-box;
    background-color: #1a73e8;
    color: #fff;
    border: 1px solid #1a73e8;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    white-space: nowrap;
}

    #pac-search-btn:hover {
        background-color: #1765cc;
        border-color: #1765cc;
    }

    #pac-search-btn:focus {
        outline: 2px solid #1a73e8;
        outline-offset: 1px;
    }

/* ADA 311 link: top center of map (outside search panel). */
.map-top-ada-link {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    box-sizing: border-box;
    max-width: min(420px, calc(100vw - 24px));
    padding: 8px 14px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    color: #0a3d62;
    background-color: #d8f5f2;
    border: 1px solid #2a8a7e;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    white-space: normal;
    word-wrap: break-word;
    cursor: pointer;
}

    .map-top-ada-link:hover {
        background-color: #c5ebe6;
        color: #062a44;
        text-decoration: underline;
    }

    .map-top-ada-link:focus {
        outline: 2px solid #1a73e8;
        outline-offset: 2px;
    }

        .map-top-ada-link:focus:not(:focus-visible) {
            outline: none;
        }

.msg-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
}

.msg-box {
    background: white;
    padding: 20px;
    width: 340px;
    border-radius: 8px;
    text-align: center;
    margin: 15% auto;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

#messageText {
    margin-bottom: 20px;
    font-size: 15px;
}

.msg-box button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 7px 20px;
    border-radius: 4px;
    cursor: pointer;
}

    .msg-box button:hover {
        background-color: #0b5ed7;
    }

/* SR InfoWindow — compact; same palette as map-search-panel, fits without scrolling. */
.ada-sr-form {
    max-width: 268px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.2;
    color: #202124;
    background: #d8f5f2;
    border: 1px solid #2a8a7e;
    border-radius: 6px;
    padding: 6px 8px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin: 0;
}

    .ada-sr-form form {
        display: grid;
        grid-template-columns: minmax(72px, 34%) 1fr;
        gap: 4px 6px;
        align-items: center;
        margin: 0;
    }

.ada-sr-form__header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 5px;
    margin-bottom: 1px;
    border-bottom: 1px solid #b0d4cf;
}

.ada-sr-form__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0a3d62;
    line-height: 1.2;
}

.ada-sr-form__label {
    font-weight: 500;
    color: #3c4043;
    font-size: 11px;
    padding-right: 2px;
    align-self: center;
}

.ada-sr-form__input,
.ada-sr-form__select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 26px;
    padding: 0 6px;
    font: inherit;
    font-size: 12px;
    border: 1px solid #b0d4cf;
    border-radius: 3px;
    background: #fff;
    color: #202124;
}

    .ada-sr-form__input:focus,
    .ada-sr-form__select:focus {
        outline: none;
        border-color: #1a73e8;
        box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.35);
    }

.ada-sr-form__field-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    align-self: center;
}

.ada-sr-form__readonly {
    width: 100%;
    box-sizing: border-box;
    min-height: 26px;
    padding: 4px 6px;
    line-height: 1.25;
    border: 1px solid #dadce0;
    border-radius: 3px;
    background: #e8eaed;
    color: #5f6368;
    font-size: 12px;
    cursor: default;
    user-select: none;
}

.ada-sr-form__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ada-sr-form__actions {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #b0d4cf;
    display: flex;
    justify-content: flex-end;
}

.ada-sr-form__btn {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
}

.ada-sr-form__btn--primary {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

    .ada-sr-form__btn--primary:hover {
        background: #1765cc;
        border-color: #1765cc;
    }

.ada-sr-form__btn--secondary {
    background: #fff;
    color: #0a3d62;
    border-color: #b0d4cf;
}

    .ada-sr-form__btn--secondary:hover {
        background: #f0faf9;
    }

.ada-sr-form__btn:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

    .ada-sr-form__btn:focus:not(:focus-visible) {
        outline: none;
    }

.ada-sr-form select.ada-sr-form__select {
    cursor: pointer;
}

/* In-app alert/confirm (replaces browser "… says" dialogs). */
.app-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    max-width: min(420px, calc(100vw - 32px));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    font-family: Roboto, "Segoe UI", sans-serif;
    color: #202124;
}

    .app-dialog::backdrop {
        background: rgba(0, 0, 0, 0.45);
    }

.app-dialog__panel {
    background: #d8f5f2;
    border: 1px solid #2a8a7e;
    border-radius: 8px;
    padding: 14px 16px 16px;
    box-sizing: border-box;
}

.app-dialog__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0a3d62;
    line-height: 1.25;
}

.app-dialog__form {
    margin: 0;
    padding: 0;
}

.app-dialog__message {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #3c4043;
    white-space: pre-wrap;
    word-break: break-word;
}

.app-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.app-dialog__btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
    min-width: 72px;
}

.app-dialog__btn--primary {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

    .app-dialog__btn--primary:hover {
        background: #1765cc;
        border-color: #1765cc;
    }

.app-dialog__btn--secondary {
    background: #fff;
    color: #0a3d62;
    border-color: #b0d4cf;
}

    .app-dialog__btn--secondary:hover {
        background: #f0faf9;
    }

.app-dialog__btn:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

    .app-dialog__btn:focus:not(:focus-visible) {
        outline: none;
    }

.app-dialog__btn--cancel[hidden] {
    display: none;
}

/* Responsive tuning for phones, tablets, foldables, and smart displays. */

/* Small phones: iPhone SE / Galaxy S8+ (narrow viewport). */
@media (max-width: 380px) {
    .map-search-panel {
        left: 8px;
        right: 8px;
        top: 100px;
        max-width: none;
        border-radius: 6px;
        padding: 6px;
    }

    .map-top-ada-link {
        top: 54px;
        max-width: calc(100vw - 16px);
        font-size: 11px;
        padding: 6px 10px;
    }

    #pac-input {
        font-size: 12px;
        height: 32px;
    }

    #pac-search-btn {
        font-size: 11px;
        padding: 0 9px;
        height: 32px;
    }

    .ada-sr-form {
        max-width: min(280px, calc(100vw - 18px));
    }

    .app-dialog {
        max-width: calc(100vw - 16px);
    }

    .msg-box {
        width: calc(100vw - 24px);
        margin: 24% auto;
        box-sizing: border-box;
    }
}

/* Modern phones: iPhone XR/12/14 Pro Max, Pixel 7, Galaxy A51/71, S20 Ultra. */
@media (min-width: 381px) and (max-width: 767px) {
    .map-search-panel {
        left: 10px;
        right: 10px;
        top: 106px;
        max-width: none;
        border-radius: 6px;
        padding: 7px;
    }

    .map-top-ada-link {
        top: 54px;
        max-width: calc(100vw - 20px);
        font-size: 12px;
        padding: 7px 12px;
    }

    #pac-input {
        height: 34px;
        line-height: 32px;
    }

    #pac-search-btn {
        height: 34px;
        line-height: 32px;
    }

    .ada-sr-form {
        max-width: min(304px, calc(100vw - 22px));
    }

    .msg-box {
        width: min(360px, calc(100vw - 28px));
        margin: 20% auto;
    }
}

/* Foldables and small tablets: Surface Duo, Galaxy Z Fold, iPad Mini portrait. */
@media (min-width: 768px) and (max-width: 1024px) {
    .map-search-panel {
        top: 108px;
        left: 10px;
        right: 10px;
        max-width: min(360px, calc(100vw - 26px));
    }

    .map-top-ada-link {
        top: 52px;
        max-width: min(560px, calc(100vw - 30px));
    }

    .ada-sr-form {
        max-width: min(320px, calc(100vw - 30px));
    }

    .app-dialog {
        max-width: min(460px, calc(100vw - 30px));
    }
}

/* Tablets and 2-in-1: iPad Air/Pro, Surface Pro 7, Asus Zenbook Fold. */
@media (min-width: 1025px) and (max-width: 1368px) {
    .map-search-panel {
        top: 108px;
        left: 10px;
        right: 10px;
        max-width: min(380px, calc(100vw - 34px));
    }

    .map-top-ada-link {
        top: 52px;
        max-width: min(640px, calc(100vw - 34px));
    }
}

/* Nest Hub family: short landscape displays. */
@media (max-height: 650px) and (min-width: 1024px) and (max-width: 1368px) and (orientation: landscape) {
    .map-top-ada-link {
        top: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .map-search-panel {
        top: 72px;
    }

    .ada-sr-form {
        font-size: 11px;
    }

    .ada-sr-form__input,
    .ada-sr-form__select {
        height: 24px;
    }
}
