/*Locations Search Container Styles*/
.locations-search-container h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    margin-left: 16px;
    margin-bottom: 20px;
}

/* /Locations Search Container Styles*/

#map-canvas {
    width: 100%;
    height: 580px;
    -webkit-transform: initial !important;
}

/* Show filters div */
#locations-wrapper .show-filters {
    font-size: 11px;
    position: relative;
    cursor: pointer;
    padding: 10px 22px 12px 23px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}
#locations-wrapper .show-filters span {
    position: relative;
    display:  block;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #2C2A29;
}
#locations-wrapper .show-filters span:after {
    display:  block;
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    right: 0;
    margin-top: -5px;
    background: url(../images/custom-location-triangle.png);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 10px 10px;
}
/**/

.gm-style .gm-style-iw {
    font-size: 13px;
    font-weight: 400;
    margin-left: 12px;
}

.map-info-box .content {
    padding: 14px 0 0;
    border-top: 1px solid #75777B;
    margin-top: 12px;
}

.info-content-inner {
    display: table;
    width: 100%;
}

.info-block-column {
    display: table-cell;
}

.info-block-column.first {
    width: 48%;
    padding-right:10px;
    line-height: 1.25em;
}

.info-block-column.info-block-content {
    padding: 0 6px 0 12px;
    box-sizing: border-box;
    border-left: 1px solid #A4A9AE;
}

#locations-wrapper {
    position: relative;
    display: block;
    padding-top: 0 !important;
}

#locations-map-container {
    position: relative;
    min-height: 400px;
}

.regional-map #locations-map-container {
    position: static;
    max-height: 580px;
}

.map-section-materials #locations-list-container {
    padding: 20px 3%;
}
.map-section-energy #locations-list-container {
    padding: 20px 0;
}
.map-section-energy #locations-list-container .col_half {
    padding-left: 4.2125%;
    width: 45.2375%;
}
.map-section-energy #locations-list-container .col_half.omega {
    padding-left: 0;
    padding-right: 4.2125%;
}
#locations-none {
    margin-bottom: 32px;
}
#locations-list-container .results-heading,
#locations-none .results-heading {
    overflow: hidden;
    margin-bottom: 16px;
    padding-bottom: 2px;
    border-bottom: #272525 1px solid;
}
#locations-list-container .results-heading {
    padding-bottom: 6px;
}
#locations-list-container .results-heading h3,
#locations-none .results-heading h3 {
    float: left;
    margin-bottom: 0;
    font-size: 16px;
}
#locations-list-container .results-heading a,
#locations-none .results-heading a {
    display: inline-block;
    float: right;
    font-size: 16px;
}
#locations-none h3 {
    font-size: 16px;
}

.location_map_wrapper {
    position: relative;
    display: block;
    font-size: 2em;
    height: auto;
    left: auto !important;
    right: 135px !important;
    max-height: 80%;
    min-height: 325px;
    pointer-events: none;
    top: 20px !important;
    width: 227px;
    box-sizing: border-box;
}

.location_map_wrapper .map-panel {
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.61);
    display: block;
    position: relative;
    pointer-events: auto;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    transition: height 1s;
    -webkit-transition: height 1s;
    -moz-transition: height 1s;
    -o-transition: height 1s;
    overflow: hidden;
}
.location_map_wrapper .searchBox {
    padding: 10px;
    width: 280px;
}
.location_map_wrapper .searchInput {
    background: #fff;
    border: 1px solid #9CA4A9;
    color: #2D2D32;
    font-family: 'franklin-gothic-urw', Helvetica, Arial, sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 8px;
    pointer-events: auto;
    width: 262px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -webkit-touch-callout: default;
    -webkit-tap-highlight-color: rgba(0,0,0,0.25);
}
.location_map_wrapper .searchInput::-webkit-input-placeholder {
    color: #9CA4A9;
}
.location_map_wrapper .searchInput:-moz-placeholder {
    color: #9CA4A9;
}
.location_map_wrapper .searchInput::-moz-placeholder {
    color: #9CA4A9;
}
.location_map_wrapper .searchInput:-ms-input-placeholder {  
    color: #9CA4A9;
}

.location_map_wrapper .map-types-wrapper, 
.location_map_wrapper .map-types-wrapper a,
.location_map_wrapper .category-wrapper,
.location_map_wrapper .category-wrapper label {
    font-family: 'franklin-gothic-urw', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.3;
    color: #2C2A29;
    margin-bottom: 0;
}

.location_map_wrapper .category-wrapper {
    position: relative !important; /*FIXME!! i have no idea why this works*/
}

.location_map_wrapper .map-types-wrapper a {
    color: #2C2A29;
}

.location_map_wrapper .map-types-wrapper a,
.location_map_wrapper .category-wrapper label {
    cursor: pointer;
}

.location_map_wrapper .map-types-wrapper a {
    text-decoration: none;
}

.location_map_wrapper .map-types-wrapper ul,
.location_map_wrapper .category-wrapper ul {
    list-style: none;
    overflow: hidden;
    margin: 0;
    padding: 0 24px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.location_map_wrapper .category-wrapper ul {
    padding: 16px 24px 16px;
}

.location_map_wrapper .map-types-wrapper ul {
    padding: 18px 24px 0;
    border-bottom: 1px solid #75777B;
}

.location_map_wrapper .map-types-wrapper li,
.location_map_wrapper .category-wrapper li {
    float: left;
    line-height: 0.25em;
    list-style: none;
    font-size: 18px;
    margin: 0 0 14px;
    padding: 0;
    width: 100%;
    white-space: nowrap;
}

.location_map_wrapper .category-wrapper li {
    margin-bottom: 14px;
}

.location_map_wrapper .category-wrapper li:first-child {
    width: 100%;
    clear: both;
}
.location_map_wrapper .locations-container {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 210px;
    bottom: 60px;
    height: auto;
    pointer-events: auto;
}
.location_map_wrapper ul.locations-list {
    border-top: 1px solid #9CA4A9;
    background: none;
    list-style: none;
    margin: 0 14px;
    padding: 0;
    max-height: 100%;
    overflow: auto;
    position: relative;
}
.location_map_wrapper ul.locations-list li.location {
    border-bottom: 1px solid #9CA4A9;
    cursor: pointer;
    font-family: 'franklin-gothic-urw', Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5em;
    margin: 0;
    padding: 15px 20px;
}
.location_map_wrapper ul.locations-list li:hover {
    background: #E8E9EB;
}
.location_map_wrapper ul.locations-list li.location h4 {
    color: #2D2D32;
    font-family:  'franklin-gothic-urw', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.25em;
    margin: 0 0 2px 0;
    text-align: left;
    text-transform: none;
}

.location-list-wrapper ul.locations-list li.location h5,
.location_map_wrapper ul.locations-list li.location h5 {
    color: #2D2D32;
    margin: 0 12px 3px 0;
    overflow: hidden;
    font-size: inherit !important;
    font-style: oblique;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 100;
}

.location-list-wrapper ul.locations-list li.location p,
.location_map_wrapper ul.locations-list li.location p {
    color: #9CA4A9;
    margin: 0;
    overflow: hidden;
    font-size: inherit !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height:1.3em;
    padding-top: 4px;
    font-weight: 100;
}

.location_map_wrapper .show-all {
    background: #fff;
    border-top: 1px solid #9CA4A9;
    bottom: 0;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    color: #969ebb;
    position: absolute;
    width: 100%;
    border-radius: 0 0 3px 3px;
    -webkit-border-radius: 0 0 3px 3px;
    -moz-border-radius: 0 0 3px 3px;
    -ms-border-radius: 0 0 3px 3px;
}

.location_map_wrapper .show-all.two-buttons a:first-child {
    width: 48%;
    padding: 0 !important;
    float: left;
}

.location_map_wrapper .show-all.two-buttons a:last-child {
    width: 48%;
    padding: 0 !important;
    float: right;
}

.map-info-box {
    min-width: 232px;
    margin: 10px 0 10px;
    width: 420px;
}

.map-info-box,
.map-info-box div.content p {
    color: #979797 !important;
    font-family:  'franklin-gothic-urw', Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.3em !important;
	font-weight: 100;
	padding-top: 10px;
}

.map-info-box div.content p {
    margin: 0 0 10px !important;
}

.map-info-box.without-content {
    width: 232px;
}

.map-info-box h4 {
    color: #2D2D32;
    font-family:  'franklin-gothic-urw', Helvetica, Arial, sans-serif;
    font-size: 18px !important;
    font-weight: normal !important;
    line-height: 18px !important;
    margin: 0 0 6px;
    text-align: left;
    text-transform: none;
}

.map-info-box h4.title {
    color: #D21419;
    margin-bottom: 6px;
    font-weight: 700;
}

.map-info-box h5.subtitle {
    margin-top: 0;
    margin-bottom: 6px;
    font-style: italic;
    font-weight: 100;
    color: #353134;
}

.info-block-content {
    color: #1C1C1B;
    line-height: 1.3 !important;
}

.info-block-content h1 {
    font-size: 14px;
    line-height: 14px !important;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-block-content h2 {
    font-size: 12px;
    line-height: 12px !important;
    font-style: oblique;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-block-content h3 {
    font-size: 12px;
    line-height: 12px !important;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-block-content ol,
.info-block-content ul {
    margin-left: 16px;
    margin-bottom: 0;
    padding-left: 10px;
    padding-bottom: 6px;
}

.map-info-box div.info-block-content p {
    margin-bottom: 4px !important;
    color: #1C1C1B !important;
}

.info-block-content ol li,
.info-block-content ul li {
    padding-left: 0;
    line-height: 1.5 !important;
    font-size: 12px;
}

#locations-list-container h2 {
    text-align: left;
}

.map-section-corporate .location-list-wrapper h3 {
    background: url(../images/separator-dots.png) bottom left repeat-x;
    font-family: 'franklin-gothic-urw','FranklinGotURWT-Med', 'Helvetica';
    font-weight: 500;
    font-size: 22px;
    letter-spacing: normal;
    line-height: 1.25em;
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    text-align: left;
}
.map-section-materials .location-list-wrapper h3 {
    border-bottom: 1px solid #9ca4a9;
    font-weight: 400;
    font-family: 'franklin-gothic-urw-cond';
    font-size: 22px;
    letter-spacing: 0.15em;
    line-height: 1;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    text-align: left;
}
.map-section-energy .location-list-wrapper h3 {
    border-bottom: 1px solid #e5e7e8;
    font-weight: 400;
    font-family: 'franklin-gothic-urw-cond';
    font-size: 22px;
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    text-align: left;
}
.map-section-energy #locations-list-container .location-list-wrapper {
    padding: 32px 4.2125%;
    width: 91.575%;
}
.map-section-energy #locations-list-container .location-list-wrapper .col_fourth {
    margin-right: 1.25%;
    width: 24.0625%;
}
.location-list-wrapper ul.locations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.location-list-wrapper ul.locations-list li.location {
    font-size: 12px;
    line-height: 1.5em;
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.location-list-wrapper ul.locations-list li.location:nth-child(4n+1) {
    clear: left;
}

span.attention {
    color: #D50032;
}

.location-list-wrapper ul.locations-list .location span.open,
.location-list-wrapper ul.locations-list .location span.close {
    display: none;
}

#locations-list-container a.btn,
#locations-wrapper a.btn {
    background: #D50032;
    color: #ffffff;
    cursor: pointer;
    display: inline-block !important;
    font-family: 'franklin-gothic-urw', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    height: 40px;
    line-height: 40px;
    margin: 0 0 5px 0;
    padding: 0 36px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -webkit-touch-callout: default;
    -webkit-tap-highlight-color: rgba(0,0,0,0.25);
}

#locations-list-container a.btn.btn-show-map,
#locations-wrapper a.btn-show-map {
    float: right;
    margin: 4px 0;
}

.map-section-materials #locations-wrapper a.btn-show-map {
    margin: 42px 0 31px 0;
}
img[src*="gstatic.com/"], img[src*="googleapis.com/"] {
    max-width: none;
}

.location-selector {
    display: none;
}

#map-sticky-header {
    display: none;
}

.map-info-box .get-directions-wrapper {
    display: table;
    margin: 32px 0 12px;
    width: 100%;
}

.map-info-box h4 {
    display: block;
}

.map-info-box.without-content .get-directions-wrapper .info-block-column {
    display: block;
}

.map-info-box.without-content .get-directions-wrapper a.btn {
    margin-top: 6px;   
    width: 100%;
}

/* New Map Styles */
#locations-search-form {
    padding-bottom: 40px;
}

#locations-search-form input[type="text"], 
#locations-search-form input[type="email"], 
#locations-search-form input[type="tel"] {
    font-family: "franklin-gothic-urw", sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 55px;
    color: #2D2D32;
    height: 55px;
    width: 100%;
    margin: 0;
    padding: 0 15px 0 25px;
    border: none;
    background-color: #eaeced;
    box-sizing: border-box;
}

#locations-search-form input[type="submit"] {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

#locations-search-form .location-column {
    position: relative;
    display: block;
    margin-right: -15px;
    margin-left: -15px;
    margin-bottom: 25px;
    box-sizing: border-box;
    vertical-align: top;
}

#locations-search-form .location-column > .row {
    display: table;
    width: 100%;
}

#locations-search-form .location-column > .row > div[class*="col-"] {
    display: table-cell;
    float: none;
    vertical-align: middle;
}

#locations-search-form input[name="zip"] {
    margin-right: 10px;
}

#locations-search-form #use-current-location {
    vertical-align: top;
    white-space: nowrap;
}

    /* Base for label styling */
#locations-search-form .search-categories {
    margin: 34px 0 0;
}

.location_map_wrapper .category-wrapper label,
#locations-search-form .search-categories span {
    display: inline-block;
    position: relative;
    margin: 0 0 28px;
}

#locations-search-form .search-categories span {
    width: 32%;
}

#locations-search-form .search-categories span:first-child {
    margin-right: 68%;
    padding-bottom: 10px;
    border-bottom: 1px solid #75777B;
}

.location_map_wrapper .category-wrapper label {
    margin: 0;
}

.location_map_wrapper .category-wrapper label span,
#locations-search-form .search-categories label {
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
}

.location_map_wrapper [type="checkbox"]:not(:checked),
.location_map_wrapper [type="checkbox"]:checked,
#locations-search-form [type="checkbox"]:not(:checked),
#locations-search-form [type="checkbox"]:checked {
    display: block;
    position: absolute;
    left: 0;
    height: 19px;
    width: 19px;
    margin: 0;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}

.location_map_wrapper .map-types-wrapper ul li a,
.location_map_wrapper [type="checkbox"]:not(:checked) + span,
.location_map_wrapper [type="checkbox"]:checked + span,
#locations-search-form [type="checkbox"]:not(:checked) + label,
#locations-search-form [type="checkbox"]:checked + label {
    position: relative;
    padding-left: 26px;
    vertical-align: middle;
}

.location_map_wrapper .map-types-wrapper ul li a {
    line-height: normal;
}

    /* checkbox aspect */
.location_map_wrapper .map-types-wrapper ul li a:before,
.location_map_wrapper [type="checkbox"]:not(:checked) + span:before,
.location_map_wrapper [type="checkbox"]:checked + span:before,
#locations-search-form [type="checkbox"]:not(:checked) + label:before,
#locations-search-form [type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    left:0; 
    top: 0;
    width: 19px; 
    height: 19px;
    border: 1px solid #979797;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}
    /* checked mark aspect */
.location_map_wrapper .map-types-wrapper ul li a.active:after,
.location_map_wrapper [type="checkbox"]:not(:checked) + span:after,
.location_map_wrapper [type="checkbox"]:checked + span:after,
#locations-search-form [type="checkbox"]:not(:checked) + label:after,
#locations-search-form [type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    top: 3px; 
    left: 3px;
    height: 13px;
    width: 13px;
    background-color: #75777B;
    transition: all .2s;
}
    /* checked mark aspect changes */
.location_map_wrapper [type="checkbox"]:not(:checked) + span:after,
#locations-search-form [type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}

.location_map_wrapper [type="checkbox"]:checked + span:after,
#locations-search-form [type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

    /* accessibility */
.location_map_wrappe [type="checkbox"]:checked:focus + span:before,
.location_map_wrappe [type="checkbox"]:not(:checked):focus + span:before,
#locations-search-form [type="checkbox"]:checked:focus + label:before,
#locations-search-form [type="checkbox"]:not(:checked):focus + label:before {
    border: 1px dotted #DD0031;
}

    /* hover style just for information */
.location_map_wrapper .map-types-wrapper ul li:hover a:before,
.location_map_wrapper [type="checkbox"]:hover + span:before,
.location_map_wrapper span:hover:before,
#locations-search-form [type="checkbox"]:hover + label:before,
#locations-search-form label:hover:before {
    border: 1px solid #DD0031 !important;
}

.location_map_wrapper .map-types-wrapper ul li:hover a.active:after,
.location_map_wrapper [type="checkbox"]:hover + span:after,
.location_map_wrapper span:hover:after,
#locations-search-form [type="checkbox"]:hover + label:after,
#locations-search-form label:hover:after {
    background-color: #DD0031;
}

#locations-search-form input[type="submit"]:hover, #locations-search-form input[type="submit"] {
    display: block;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
    margin: 42px auto 24px;
    padding: 10px 0;
    width: 196px;
    border-radius: 3px;
    background-color: #DD0031;
}

#locations-search-form #use-current-location,
#locations-search-form #show-search-filters,
#locations-search-form #hide-search-filters {
    clear: left;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

#locations-search-form #show-search-filters {
    margin-bottom: 0;
}

#locations-search-form #show-search-filters span,
#locations-search-form #hide-search-filters span {
    display: inline-block;
    font-size: 12px;
    margin-left: 10px;
}

#locations-list-container {
    margin-top: 25px;
    padding: 0 11px 26px;
}

#locations-list-container h3 {
    float: left;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #2C2A29;
    margin-bottom: 0;
}

#locations-list-container .clear-search {
    float: right;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #DD0031;
    text-decoration: underline;
}

#locations-list-container .clear-search:hover {
    color: #8e8e8e;
}

#locations-list-container .location-list-wrapper {
    margin-top: 6px;
    padding-top: 8px;
}

#locations-list-container ul.locations-list li.location {
    font-size: 16px;
    line-height: 1.5;
    color: #2C2A29;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #2C2A29;
}

#locations-list-container ul.locations-list li.location a.location-link {
    display: inline-block;
    color: #2C2A29;
    text-decoration: none;
}

#locations-list-container ul.locations-list li.location a.location-link h4 {
    font-weight: 600px;
    font-size: 16px;
    margin: 0;
}

#locations-list-container .location-categories {
    font-style: italic;
    font-weight: 400;
    color: #2C2A29;
    padding: 0;
    margin-bottom: 8px;
}

#locations-list-container .distance {
    float: right;
    font-weight: 400;
    color: #75777B;
}

#locations-list-container a.search-get-directions {
    font-style: italic;
    font-weight: 400;
    color: #DD0031;
}

    /* Pagination */
#locations-list-container .view-more-item {
    text-align: center;
}

#locations-list-container #view-more {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #DD0031;
    text-decoration: underline;
}

#locations-list-container .location-list-pagination {
    text-align: center;
    margin-bottom: 64px;
}

#locations-list-container .search-page {
    display: inline-block;
    margin: 0 15px;
}

#locations-list-container .search-page a, 
#locations-list-container .search-page.current span {
    display: inline;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2C2A29;
    text-decoration: none;
}

#locations-list-container .search-page.current span {
    font-weight: 600;
    text-decoration: underline;
}

#locations-list-container .search-page.current a,
#locations-list-container .search-page span {
    display: none;
}

#locations-list-container .search-control {
    display: inline-block;
    text-indent: -9999pt;
    font-size: 0;
}

#locations-list-container .search-control a {
    display: block;
    height: 16px;
}

#locations-list-container .search-control.prev,
#locations-list-container .search-control.first {
    float: left;
}

#locations-list-container .search-control.next,
#locations-list-container .search-control.last {
    float: right;
}

#locations-list-container .search-control.prev,
#locations-list-container .search-control.next {
    margin: 0 15px;
}

#locations-list-container .search-control.first a {
    width: 29px;
    background-image: url(../images/first.png);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 29px 16px;
}

#locations-list-container .search-control.prev a {
    width: 16px;
    background-image: url(../images/prev.png);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 16px 16px;
}

#locations-list-container .search-control.next a {
    width: 16px;
    background-image: url(../images/next.png);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 16px 16px;
}

#locations-list-container .search-control.last a {
    width: 29px;
    background-image: url(../images/last.png);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 29px 16px;
}

/* /New Map Styles */
@media handheld, only screen and (max-width: 767px) {
    #map-canvas {
        height: 580px !important;
    }
    
    .location_map_wrapper {
        width: 100%;
        left: 20px !important;
        right: auto !important;
    }
    
    .location_map_wrapper .map-panel {
        margin-right: 64px;
    }
    
    #locations-search-form #use-current-location,
    #locations-search-form #show-search-filters,
    #locations-search-form #hide-search-filters {
        margin: 12px 0 18px;
    }

    .map-section-materials {
        margin: 0 0 -24px 0 !important;
    }
    .map-section-materials #locations-list-container,
    .map-section-energy #locations-list-container {
        padding-top: 0;
    }
    .map-section-materials #locations-list-container .location-list-wrapper {
        padding: 0;
    }
    .map-section-energy #locations-list-container .location-list-wrapper {
        padding: 16px 0;
        width: auto;
    }
    .map-section-energy #locations-list-container .col_half,
    .map-section-energy #locations-list-container .col_half.omega {
        clear: both;
        float: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
        width: auto;
        width: -moz-available;
    }
    .map-section-energy #locations-list-container .location-list-wrapper .col_fourth {
        margin-right: 0;
        width: auto;
    }
    .map-section-corporate #locations-wrapper,
    .map-section-materials #locations-wrapper a.btn-show-map,
    .map-section-energy #locations-wrapper a.btn-show-map,
    .map-section-materials #locations-map-container {
        /*display: none !important;*/
    }
    .map-section-materials #locations-list-container,
    .map-section-energy #locations-list-container {
        display: block;
    }
    .map-section-energy #locations-list-container h2 {
        margin: 0;
        padding: .5em 0 .535em;
    }
    
    .locations-section.container,
    #locations-list-container.container,
    .locations-search-container.container {
        padding-right: 30px;
        padding-left: 30px;
    }
    
    #locations-wrapper .location-selector {
        display: block;
        width: 100%;
        margin-top: 24px;
        padding: 0 60px 0 30px;
        text-transform: uppercase;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    #locations-wrapper .location-selector ul {
        margin: 0;
        padding: 0;
    }
    
    #locations-wrapper .location-selector ul li {
        list-style: none;
        margin: 0 4px;
        padding: 0;
        background-color: #fff;
        border: #808688 1px solid;
        border-top: none;
    }
    
    #locations-wrapper .location-selector a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
    }
    
    #mobile-locations-list-container .ui-state-default .ui-icon {
        background: url(../images/icon-hide.png) center right no-repeat;
    }
    
    #mobile-locations-list-container .ui-state-active .ui-icon {
        background-image: url(../images/icon-open.png);
    }
    
    #mobile-locations-list-container .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
        display:  block;
        content: "";
        position: absolute;
        width: 12px;
        height: 12px;
        top: 50%;
        left: auto;
        right: 0;
        margin-top: -6px;
        margin-right: 18px;
        background-size: 12px 12px;
    }
    
    #map-sticky-header {
        display: block;
        padding: 13px 18px 11px 30px;
        color: #fff;
        font-size: 11px;
        text-transform: uppercase;
        background-color: #808688;
    }
    
    #mobile-locations-list-container.hidden {
        display: none !important;
    }
    
    #locations-wrapper  #map-sticky-header a {
        float: right;
        cursor: pointer;
        display: inline-block;
        margin: 0;
        padding: 0 0 0 20px;
        color: #fff;
        text-decoration: none;
        vertical-align: top;
    }
    
    #locations-wrapper  #map-sticky-header a.btn-show-list {
        background-image: url(../images/icon-list.png);
        background-repeat: no-repeat;
        background-size: auto 100%;
    }
    
    #locations-wrapper  #map-sticky-header a.btn-show-map {
        background-image: url(../images/icon-map.png);
        background-repeat: no-repeat;
        background-size: auto 100%;
    }
    
    #locations-wrapper #map-sticky-header .current {
        display: none;
    }
    
    #mobile-locations-list-container .location-list-wrapper {
        margin: 0;
        padding: 0;
    }
    
    #mobile-locations-list-container .location-list-wrapper h3 {
        margin: 0;
        padding: 11px 30px 9px;
        font-size: 11px;
        font-family: Helvetica;
        color: #fff;
        background: #2d2d32 none;
        border-width: 0;
        border-top: #fff 1px solid;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
    }
    
    #mobile-locations-list-container .location-list-wrapper h3:first-child {
        border-top: none;
    }
    
    #mobile-locations-list-container .location-list-wrapper h4 {
        margin: 0;
        padding: 11px 45px 9px;
        font-size: 11px;
        font-family: Helvetica;
        color: #fff;
        text-transform: uppercase;
        background: #808688 none;
        border-width: 0;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
    }
    
    #mobile-locations-list-container .location-list-wrapper > div {
        margin: 0;
        padding: 0;
        border-width: 0;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
    }
    
    #mobile-locations-list-container .location-list-wrapper > div ul.locations-list li.location {
        position: relative;
        margin: 0;
        padding: 7px 55px 7px 45px;
        border-top: #98a4a8 1px solid;
    }
    
    #mobile-locations-list-container .location-list-wrapper > div ul.locations-list li.location:first-child {
        border-top: none;
    }
    
    #mobile-locations-list-container .location-list-wrapper .location h4 {
        margin: 0;
        padding: 0;
        color: #000;
        font-size: 16px;
        text-transform: none;
        background: transparent none;
    }
    
    #mobile-locations-list-container .location-list-wrapper > div ul.locations-list li.location span.open {
        cursor: pointer;
        position: absolute;
        display: block;
        width: 48px;
        height: 48px;
        right: 0;
        top: 50%;
        margin-top: -24px;
        margin-right: 12px;
        padding: 8px;
        font-size: 32px;
        line-height: 32px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    /* mobile location info popup styles */
    
    #location-modal {
        position: fixed;
        width: 100%;
        padding: 42px 0 8px 0;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        z-index: 10001;
        right: 0;
        bottom: 0;
        overflow-y: scroll;
    }
    
    #location-modal .close {
        cursor: pointer;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 10px;
        font-size: 24px;
        text-align: center;
        z-index: 4;
    }
    
    #location-modal .thumbnail-wrapper {
        margin: 0 18px 18px;
    }
    
    #location-modal .map-thumbnail {
        display: block;
        max-width: 100% !important;
        margin: 0;
    }
    
    #location-modal div.title-wrapper {
        padding:  0 18px 16px;
        background: url(../images/separator-dots.png) bottom left repeat-x;
    }
    
    #location-modal h5.subtitle,
    #location-modal h4.title {
        font-size: 18px;
        line-height: 1.3;
        margin: 0;
        color: #353134;
        font-weight: 500;
        text-transform: capitalize;
    }
    
    #location-modal h5.subtitle {
        font-style: oblique;
        font-weight: 400;
    }
    
    #location-modal .content-wrapper {
        margin-top: 18px;
        padding: 0 18px;
    }
    
    .info-block-content {
        padding: 0 18px;
        font-size: 14px;
    }
    
    #location-modal p {
        line-height: 1.5;
        font-size: 14px;
    }
    
    #location-modal p.phone {
        text-decoration: none;   
    }
    
    #location-modal p.phone span {
        display: inline-block;
        width: auto;
        padding-left: 22px;
        background: url(../images/phone-icon.png) center left no-repeat;
        background-size: auto 20px;
    }
    
    #location-modal .btn {
        color: #ffffff;
        cursor: pointer;
        display: inline-block;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 16px;
        font-weight: normal;
        height: 48px;
        line-height: 48px;
        margin: 10px auto 0;
        padding: 0 22px;
        width: auto;
        text-align: center;
        text-transform: uppercase;
        text-decoration: none;
        background: #D50032 border-box;
        background: -webkit-linear-gradient(#D50032, #D50032) 0 0 border-box;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -webkit-touch-callout: default;
        -webkit-tap-highlight-color: rgba(0,0,0,0.25);
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    #map-sticky-header.sticked {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        z-index: 99;
    }
    
    img[src="http://maps.gstatic.com/mapfiles/api-3/images/mapcnt3.png"],
    img[src="https://maps.gstatic.com/mapfiles/api-3/images/mapcnt3.png"] {
        display: none !important;
    }
    
    #back-to-search {
        display: block;
        padding: 8px 32px;
        text-align: center;
        color: #fff;
        background-color: #dd0031;
    }
    
    
    /* infoWindow styles */
    
    .map-info-box {
        margin-top: 0;   
    }
    
    .map-info-box .get-directions-wrapper {
        overflow: hidden;
        margin-top: 0;
        margin-bottom: 0;
        clear: both;
    }
    
    #locations-wrapper .get-directions-wrapper a.btn {
        display: block;
        height: auto;
        line-height: 1.3;
        padding: 0 16px 0 0;
        padding: 0;
        color: #000;
        text-align: left;
        text-decoration: underline !important;
        background: transparent none;
    }
    
    .map-info-box .content {
        margin-top: 4px;
        padding-top: 8px;
    }
    
    .map-info-box h5.subtitle {
    }
    
    .map-info-box .content {
    }
    
    /* EOf: infoWindow */
    
    
    .locations-list-container,
    .locations-search-container,
    .locations-section {
        padding-right: 31px;
        padding-left: 31px;
    }
    
    .locations-search-container h3 {
        margin-left: 0;   
    }
    
    #locations-search-form #use-current-location {
        margin-left: 0;   
    }
    
    #locations-search-form .location-column {
        padding: 0;  
        width: 100%;
    }
    
    #locations-search-form .location-column.select-wrapper {
        padding: 0 0 8px 0;   
    }
    
    #locations-search-form input[type="text"] {
        min-width: 100%;   
        margin-bottom: 14px;
    }
    
    #locations-search-form input[name="zip"] {
        width: 100%;  
        margin-bottom: 16px;
    }
    
    #locations-search-form .search-categories span:first-child {
        margin-right: 50%;
    }
    
    #locations-wrapper .show-filters,
    .location_map_wrapper .map-types-wrapper ul {
        padding-right: 30px;
        padding-left: 30px;
    }
    
    .location_map_wrapper .map-types-wrapper ul {
        display: table;
        width: 100%;
        padding-top: 10px;
    }
    
    #locations-wrapper .show-filters {
        padding-right: 11px;   
    }
    
    .location_map_wrapper .map-types-wrapper li {
        display: table-cell;
        float: none;
        width: auto;
        margin-bottom: 0;
        padding-bottom: 10px;
    }
    
    .location_map_wrapper .category-wrapper ul {
        padding: 10px 30px;   
    }
    
    .location_map_wrapper .category-wrapper li {
        margin-bottom: 7px;   
    }
    
    #locations-search-form .search-categories span {
        width: 49%;
        margin-bottom: 23px;   
    }
    
    .gm-style .gm-style-iw {
        margin-left: 7px;
    }
}

/* iPad portrait */
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
    .location_map_wrapper .locations-container {
        top: 204px;
    }
    
}

/* iPad landscape */
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
    .location_map_wrapper .locations-container {
        top: 204px;
    }

}

@media only screen and (max-width: 991px) {
    .map-info-box {
        width: auto;
    }
    
    .info-block-column.first {
        width: 100%;   
    }
    
    .map-info-box .info-block-column.info-block-content {
        display: none;
    }
    
    .get-directions-wrapper .info-block-column {
        display: block;
    }
    
    .location-list-wrapper ul.locations-list li.location:nth-child(4n+1) {
        clear: none;
    }
    
    .location-list-wrapper ul.locations-list li.location:nth-child(3n+1) {
        clear: left;
    }
    
    #locations-search-form .location-column {
        margin-right: 0;
        margin-left: 0;
    }

    #locations-search-form .location-column > .row {
        display: block;
        width: auto;
    }

    #locations-search-form .location-column > .row > div[class*="col-"] {
        display: block;
        float: left;
        width: 100%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .location_map_wrapper {
        right: 65px !important;   
    }
    
    #locations-wrapper .get-directions-wrapper a.btn {
        margin-top: 6px;   
        width: 100%;
    }
    
    #locations-list-container {
        margin-top: 0;   
    }
    
    #locations-search-form #use-current-location,
    #locations-search-form #show-search-filters,
    #locations-search-form #hide-search-filters {
        display: inline-block;
        margin-top: 18px;
    }
    
    #locations-search-form #use-current-location {
        float: none;
    }
    
    #locations-search-form #show-search-filters,
    #locations-search-form #hide-search-filters {
        float: right;
    }
}

/*
 * Spinner (Loading Animation) styles
 **/
 
 .spinner {
    width: 30px;
    height: 30px;
    background-color: #2f2f2f;
    margin: 100px auto;
    -webkit-animation: rotateplane 1.2s infinite ease-in-out;
    animation: rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg)  rotateX(180deg) }
}

@keyframes rotateplane {
    0% { 
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    } 50% { 
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    } 100% { 
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}
