:root {
    --green: rgb(52, 115, 122);
    --red: rgb(191,72,71);
    --white: rgb(255,255,255);
    --dark: rgb(20,20,20);
    --blue: rgb(89, 144, 246);
}

#main-content .full-width-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
}

.map-container {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    /*margin-bottom: 15px;*/
}

#facilities-map {
    width: 70%;
    min-width: 70%;
    height: 100%;
}

#filter-sidebar {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    width: 30%;
    max-width: 360px;
    min-width: 320px;
    border-right: 2px solid var(--red);
    min-height: 100%;
    background: var(--white);
    padding-top: 10px;
    overflow-y: scroll;
}

.map-container #resources ol,
.map-container #resources ul {
    padding-left: 1em;
}

.filter-sidebar-section {
    width: 100%;
    padding: 1em 0;
}
.filter-sidebar-section .reset {
    float: right;
    margin: 0.5em 0 0 0;
}

.input-container-vertical {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#filter-form {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding-top: 2px;
}

#filter-form hr {
    background-color: gainsboro;
    border: none;
    height: 2px;
    width: 92%;
}

.modal-line {
    background-color: var(--green);
    border: none;
    height: 1px;
    width: 100%;
}

.modal-section {
    margin-top: 1.6em;
}

.modal-section h3 {
    margin-bottom: 1em;
}

#facility-modal-content ul {
    margin-top: 1em;
    line-height: 1.4em;
}
#facility-modal-content .indent {
    padding-left: 1.4em;
}
#facility-modal-content .hospital-staff {
    line-height: 1.4em;
}
#facility-modal-content .hospital-staff .title-line {
    font-size: 1.1em;
}

#facility-modal-content .location {
    font-size: 1.1em;
    line-height: 1.4em;
}

.filter-section-header, #map-url-label {
    font-size: 1.125em;
    line-height: 1.625em;
    font-weight: 700;
}

.filter-section-subheader {
    font-weight: 700;
}

.field-row {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.form-options {
    display: flex;
    flex-flow: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.filter-row-checkbox {
    display: flex;
    flex-flow: row;
    align-items: center;
    margin: 5px 0;
    width: 100%;
}

.filter-row-checkbox label {
    margin: 0 4px 0 8px;
}

.add-indent {
    margin: 5px 0 5px 30px;
}

.remove {
    display: none !important;
}

.btn {
    font-weight: 700;
    font-size: 1.125em;
    padding: 9px 20px;
    background-color: var(--white);
    border-radius: 6px;
    margin: 5px;
}

.btn-small {
    font-weight: 700;
    font-size: 1em;
    line-height: 1.125em;
    padding: 7px 14px;
    background-color: var(--white);
    border-radius: 6px;
    margin: 4px;
}

.btn-ex-small {
    font-weight: 700;
    font-size: .875em;
    line-height: 1.0625em;
    padding: 5px 10px 4px 10px;
    background-color: var(--white);
    border-radius: 5px;
    margin: 4px;
}

.btn-green {
    color: var(--green);
    border: 2px solid var(--green);
}

.btn-red {
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-dark {
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-light {
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--white);
    border: none;
    background: transparent;
}

.btn-light svg:hover {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
    -webkit-transition: -webkit-transform 350ms;
    transition: -webkit-transform 350ms;
    -o-transition: transform 350ms;
    transition: transform 350ms;
    transition: transform 350ms, -webkit-transform 350ms;
}

.btn-green:hover {
    color: var(--white);
    background-color: var(--green);
    transition: color 350ms, background-color 350ms;
}

.btn-red:hover {
    color: var(--white);
    background-color: var(--red);
    transition: color 350ms, background-color 350ms;
}

.btn-dark:hover {
    color: var(--white);
    background-color: var(--green);
    border-color: var(--green);
    transition: color 350ms, background-color 350ms, border-color 350ms;
}

#address-search {
    margin: 0;
    width: 100%;
}

#search-form-error {
    font-size: 12px;
    line-height: 14px;
    color: red;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

#map-feedback {
    position: fixed;
    bottom: 50%;
    left: 50%;
    z-index: 999999;
}

#feedback {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    color: var(--red);
}

input {
    font-size: 1em;
    line-height: 1.125em;
    font-weight: 400;
    padding: 4px 2px 4px 6px !important;
    border-radius: 6px;
}

select {
    border-radius: 6px;
}


/*  ----------  FACILITY MODAL  ----------  */

#facility-modal, #save-modal, #manage-saves-modal {
    position: fixed;
    top: 10%;
    left: calc( (100% - 800px) / 2);
    width: 800px;
    max-width: 800px;
    height: 80%;
    border: 2px solid var(--dark);
    border-radius: 8px;
    background: var(--white);
    z-index: 99999999;
    animation-duration: 1000ms;
    box-sizing: border-box;
    overflow-y: scroll;
}

#manage-saves-modal {
    left: calc( (100% - 600px) / 2);
    width: 600px;
    max-width: 600px;
}

#save-modal {
    top: 25%;
    min-height: 100px;
    height: 100px;
    width: 360px;
    max-width: 360px;
    left: calc( (100% - 400px) / 2);
}

#info-modal {
    display: none;
    position: fixed;
    border: 2px solid var(--dark);
    border-radius: 8px;
    background: var(--white);
    z-index: 99999999;
    animation-duration: 1000ms;
    box-sizing: border-box;
    top: 25%;
    min-height: 100px;
    height: 160px;
    width: 360px;
    max-width: 360px;
    left: calc( (100% - 400px) / 2);
}

#map-modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0, 0.7);
    animation-duration: 1000ms;
    z-index: 99999990;
}

.map-modal-header, .facility-modal-header, .save-modal-header, .info-modal-header {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    background: var(--green);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.map-modal-header button, .facility-modal-header button, .save-modal-header button {
    margin: 12px;
}

#facility-modal-title, #save-modal-title, #info-modal-title, #manage-save-modal-title {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--white);
    margin-left: 15px;
}

#facility-modal-content, #saved-maps-modal-content {
    display: block;
    overflow-y: scroll;
    padding: 5px 25px 3em;
}

#save-modal-content, #info-modal-content {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100px;
}

.legend {
    background: rgba(255,255,255,0.65);
    padding: 8px 12px 8px 0;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
}

.legend-markers-list {
    list-style-type: none !important;
    padding-bottom: 0 !important;
}

.legend-markers-list li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.legend-markers-list li span {
    margin-left: 8px;
}

.legend-markers-list li img {
    width: 18px;
    height: 18px;
}

/*Saved Map Modal*/
#saved-maps-list {
    margin-top: 25px;
    list-style-type: none !important;
}

#saved-maps-list li {
    margin-top: 15px;
    border-bottom: 1px solid gainsboro;
}

.modal-list-label {
    font-size: 1.25em;
    line-height: 1.5em;
}

.modal-list-link {
    margin-left: 5px;
    color: var(--blue);
}

.modal-list-link:hover {
    color: var(--green);
    transition: color 350ms;
}

.save-map-actions .fa-trash-can {
    font-size: 1.25em;
    color: var(--dark);
    margin: 0 10px;
}

.save-map-actions .fa-trash-can:hover {
    color: var(--red);
    transition: color 350ms;
}

.save-map-actions .fa-pen-to-square {
    font-size: 1.25em;
    color: var(--blue);
    margin: 0 4px;
}

.save-map-actions:hover .fa-pen-to-square:hover, .fa-trash-can:hover {
    cursor: pointer;
}

.edit-saved-map, .delete-saved-map {
    border: none !important;
    background: transparent !important;
}

.filter-count {
    margin-left: 5px;
    background: var(--white);
    border: 2px solid #ccc;
    padding: 3px 6px;
    border-radius: 3px;
    height: 35px;
}

#result-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--red);
}

.leaflet-left {
    display: flex;
}

#main-footer { display: none; }

@media only screen and (max-width: 1100px) {

    #facilities-map {
        min-width: 50%;
    }

    .legend {
        padding: 6px 9px 6px 0;
    }

    .legend-markers-list li span {
        margin-left: 6px;
        font-size: 12px;
        line-height: 20px;
        font-weight: 400;
    }

    .legend-markers-list li img {
        width: 16px;
        height: 16px;
    }
}

@media only screen and (max-width: 700px) {
    .leaflet-left {
        display: block;
    }

    .filter-count {
        padding: 2px 5px;
        height: 30px;
    }

    #result-count {
        font-size: 14px;
        font-weight: 400;
    }
}

@media only screen and (max-width: 650px) {
    .map-container {
        flex-flow: row wrap-reverse;
    }

    #facilities-map {
        width: 100%;
        min-width: 100%;
        height: 100%;
        border-bottom: 2px solid var(--red);
    }

    #filter-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        border-right: none;
    }
}

@media print {
    #main-header {
        display: none !important;
    }

    #filter-sidebar {
        display: none;
    }

    #facilities-map {
        width: 100%;
        min-width: 100%;
        height: 100%;
    }

    .leaflet-left {
        display: none !important;
    }

    #main-footer {
        display: none !important;
    }
}
