﻿.map-container {
    position: relative;
}

#map, .map {
    flex: 1 1 auto;
    min-height: 175px;
    border: 1px solid #006671;
}

.map-small #map {
    height: 400px;
    width: 400px;
    border: 1px solid #ddd;
}

.map-full-width #map {
    width: 100%;
}

.map-label-fixed {
    border: 1px solid;
    border-radius: 4px;
}

.map-label-county {
    color: #474c62;
    border-color: #474c62;
}

.map-label-fixed:before {
    border: none;
}

.map-sidebar-program {
    padding: 10px;
    min-height: 50px;
}

.map-sidebar-program .glyphicon {
    font-size: 16px;
    padding-top: 4px;
}

.map-sidebar-program .map-sidebar-heading {
    font-size: 16px;
    font-weight: bold;
}

.map-sidebar-project {
    width: 500px;
    padding: 10px 10px 10px 30px;
}

.map-sidebar-project .map-sidebar-heading {
    font-size: 14px;
}

.map-sidebar-project .map-sidebar-text {
    font-size: 12px;
}

.map-sidebar-project .glyphicon {
    font-size: 13px;
    padding-top: 2px;
}

.map-sidebar-project-status {
    font-size: 12px;
    display: inline-block;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 4px;
    margin-right: 10px;
}

.status-pending {
    background-color: #f0f0f0;
}

.status-active {
    background-color: #fff;
}

.map-info {
    margin-top: 15px;
}

.map-addon {
    position: absolute;
    top: 10px;
    left: 50px;
}

.map-search {
    height: 34px;
    max-width: 400px;
}

.map-search input {
    max-width: 400px;
}

.basemap-toggle {
    border-radius: 4px;
    border-width: 0;
    overflow: auto;
}

.spacing .basemap-toggle {
    left: 20px;
    bottom: 15px;
}

.map-sidebar-hover {
    background-color: #f5f5f5;
}

.map-legend {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px 8px;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.19), 0 2px 4px rgba(0,0,0,0.23);
}

.map-search > .glyphicon.glyphicon-preinput {
    top: 0;
}

.leaflet-bar {
    box-shadow: 0 3px 6px rgba(0,0,0,0.19), 0 2px 4px rgba(0,0,0,0.23);
}

@media print {
    .map-legend {
        background-color: #fff;
    }
}

.map-header-controls {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 10px 0 36px;
}

    .map-header-controls .leaflet-bar input {
        border: none;
    }

    .map-header-controls > * {
        flex: 0 1 auto;
        margin-left: 10px;
    }

    .map-header-controls > .map-search,
    .map-header-controls > .control-stack {
        flex: 1 1 auto;
    }

.control-stack > * {
    margin-bottom: 6px;
}

.map-legend-item {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
}

.map-legend-symbol {
    flex: 0 1 auto;
}

.map-legend-label {
    flex: 1 1 auto;
}

.map-legend-label span {
    white-space: pre;
}

.legend {
    border: none;
    padding: 6px;
    box-shadow: none;
    margin: -10px -10px 0 auto;
    background-color: rgba(255,255,255,.7);
}

.legend-layer-name {
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.map-legend-label {
    font-size: 12px;
    padding-left: 4px;
    display: inline-block;
    transition: all .02s;
}

.legend .map-legend-item,
.legend .legend-layer-name {
    background-color: rgba(255,255,255,.95);
    padding: 0 2px;
    min-height: 18px;
    display: flex;
    flex-flow: row nowrap;
}

.legend .map-legend-item > .glyphicon,
.legend .legend-layer-name > .glyphicon {
    margin-right: 5px;
}

.legend.googleAerial .map-legend-label,
.legend.googleAerial .map-legend-line,
.legend.googleAerial .map-legend-polygon {
    text-shadow: 0 0 6px #fff;
}

.map-legend-line {
    width: 18px;
    stroke-width: 6px;
    height: 4px;
    margin: 0;
    align-self: center;
}

.map-legend-polygon {
    width: 18px;
    min-width: 18px;
    height: 11px;
    margin: 1px 0;
}

.map-legend-polygon > svg {
    display: block;
    background: #fff;
}

.map-legend-gradient {
    width: 100%;
    height: auto;
    margin: 1px 0;
}

.map-legend-symbol {
    float: left;
}

.map-legend-circle {
    width: 17px;
    height: 17px;
}

.legend .map-legend-polygon {
    height: 18px;
    margin: 0;
    padding: 2px 0 3px;
}

.legend .map-legend-line {
    margin-top: 7px;
}

@media (max-width: 649px) {
    .map-medium *[fit-to-height] {
        height: auto !important;
        overflow-y: visible;
    }
}

@media (min-width: 650px) and (max-width: 767px) {
    .map-sidebar-program .map-sidebar-text {
        display: none;
    }

    .map-sidebar {
        float: left;
        width: 200px;
    }

    .map-medium {
        margin-left: 200px;
        padding-left: 15px;
    }
}


@media (min-width: 768px) {
    .map-sidebar {
        float: left;
        width: 300px;
    }

    .map-medium {
        margin-left: 300px;
        padding-left: 15px;
    }
}

@media (min-width: 1260px) {
    .map-sidebar {
        width: 400px;
    }

    .map-medium {
        margin-left: 400px;
    }
}

@media (min-width: 1900px) {
    .map-sidebar {
        width: 450px;
    }

    .map-medium {
        margin-left: 450px;
    }
}

@media (min-width: 2500px) {
    .map-sidebar {
        width: 550px;
    }

    .map-medium {
        margin-left: 550px;
    }
}

.list-group-item-withbody {
    padding: 0;
}

.list-group-cards .list-group-item-withbody.active:hover {
    background-color: #fff;
}

.list-group-item-body {
    padding: 10px 15px;
    transition: all .2s ease-in-out;
}

.list-group-item-body aecom-select > .btn-group {
    width: 100%;
    margin-bottom: 10px;
}

.list-group-item-body aecom-select > .btn-group .dropdown-menu {
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, .15);
}

.list-group-item-header {
    display: block;
    color: #555;
    cursor: pointer;
    padding: 10px 15px;
}

.list-group-item-header:hover {
    color: #555;
    text-decoration: none;
    background-color: #f5f5f5;
}

.list-group-item-header:focus {
    color: #555;
    text-decoration: none;
    outline: none;
}

.list-group-header.active {
    padding-bottom: 10px;
}

.sidebar {
    padding: 0;
}

.sidebar-contents {
    margin: 5px;
    height: calc(100% - 10px);
    flex: 0 1 300px !important;
}

@media (max-width: 800px) { 
    .sidebar-contents { min-width: 200px; }
    .nav-tabs > li > a { padding: 6px 8px; }
    .tab-label { display: inline-block; vertical-align: bottom; width: 40px; overflow-x: hidden; text-overflow: ellipsis; }
    .active .tab-label { width: auto; }
}

.sidebar-contents .tab-content {
    padding: 5px;
    border-radius: 0;
}

.img-tab {
    background-size: 20px 20px;
    background-position: left center;
    background-repeat: no-repeat;
    padding-left: 23px;
}

.spacing {
    margin: 5px;
}

.inset-legend {
    padding-left: 15px;
    overflow-y: hidden;
    transition: max-height .25s ease-in-out;
}

.layer .inset-legend,
.layer .list-group-item-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: hidden;
}

layer-legend {
    display: block;
}

.sidebar-contents svg {
    vertical-align: top;
}

.sidebar-contents .list-group-item {
    padding: 10px 0 0 15px;
}

.sidebar-contents .inset-legend {
    visibility: hidden;
    padding-bottom: 10px;
}

.sidebar-contents .list-group-item > * {
    padding: 0; 
}

.layer.active .inset-legend,
.layer.active .list-group-item-body {
    visibility: visible;
    max-height: 800px;
    overflow-y: auto;
}

.layer.active .list-group-item-body {
    padding: 10px 15px;
}

.back-link {
    position: absolute;
    bottom: 0;
    text-align: center;
}

.map-container {
    flex: 1 1 100%;
    margin: 5px;
    margin-left: 0;
    display: flex;
    flex-flow: column nowrap;
    position: relative;
}

.list-group-cards p {
    font-size: 12px;
    font-style: italic;
}

.info {
    padding: 5px 5px 0;
    margin-left: -5px;
}

.fix-bottom {
    position: absolute;
    bottom: 0;
}

.sidebar .list-group-cards {
    padding-right: 5px;
}

.map-content {
    display: flex;
}

.map-content > * {
    flex: 1 1 auto;
}

.map-content > .sidebar {
    flex: 0 1 auto;
}

.leaflet-container a,
.leaflet-container button {
    transition: all .2s ease-in-out;
}

.leaflet-touch + .map-header-controls .leaflet-bar {
    box-shadow: none;
    border: 2px solid rgba(0,0,0,0.2);
}

.leaflet-touch + .map-header-controls .leaflet-bar input {
    box-shadow: none;
}

.leaflet-tooltip-right {
    margin-left: 15px;
}

@media (max-width: 799px) {
    .leaflet-container .leaflet-control-zoomslider,
    .leaflet-left .leaflet-control {
        margin-left: 5px;
    }

    .leaflet-container .leaflet-control-zoomslider,
    .leaflet-top .leaflet-control {
        margin-top: 5px;
    }

    .map-header-controls {
        padding: 5px 5px 0 44px;
    }

    .map-search {
        margin-right: 5px;
    }
}

@media (max-width: 567px) {
    .map-content {
        flex-flow: column nowrap;
    }

    .sidebar {
        /*order: 2;*/
    }

    .sidebar .list-group-cards {
        max-height: 200px;
    }

    .map-container {
        padding-left: 5px;
    }
}

.leaflet-control-draw-measure {
    transition: all .2s ease-in-out;
}

.leaflet-control-measure h3, .leaflet-measure-resultpopup h3 {
    font-size: 16px;
    margin-top: 0;
}

.leaflet-tooltip {
    border-color: #006671;
    padding: 2px 8px;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
}

.leaflet-tooltip-right:before {
    border-right-color: #006671;
}
.leaflet-tooltip-left:before {
    border-left-color: #006671;
}
.leaflet-tooltip-bottom:before {
    border-bottom-color: #006671;
}

.feature-data td {
    padding: 2px 5px;
}

.feature-data .field {
    font-weight: 400;
}

.leaflet-pointer {
    cursor: pointer !important;
}

.layer > div > *.glyphicon:last-child {
    margin-right: 10px;
}

.esri-truncated-attribution  .esri-dynamic-attribution {
    display: none;
}

.esri-truncated-attribution:hover .esri-dynamic-attribution {
    display: initial;
}

.leaflet-control-scale-line, .esri-truncated-attribution a {
    overflow: visible !important;
}

.leaflet-control-zoom-min:focus {
    outline: auto;
}

.leaflet-control-scale-line {
    line-height: 1;
    font-size: 9px;
}

.leaflet-control-scale-line:not(:first-child) {
    margin-top: 2px;
    border-top: none;
    border-bottom: 2px solid #777;
}