/* ======================
      MOVE TO GLOBAL
===========================*/
button.btn:focus {
  color: #fff;
}
.btn-blue {
  background-color: #92b7bc;
}
.btn.btn-blue:hover {
  color: #fff;
  background-color: #7F9FA3;
}
a:hover {
  text-decoration: none !important; /*remove this later...*/
}

.btn-link{
  background: none!important;
  border: none;
  padding: 0!important;
  /*optional*/
  font-family: arial, sans-serif;
  /*input has OS specific font-family*/
  color: #069;
  text-decoration: underline;
  cursor: pointer;
}


/*========= MODULE GENERAL =========*/
html, body {
  background-color: #e4e4e4;
}
#TopContent {
  margin-top: -20px;
  background-color:  #e4e4e4 !important;
}
.locations {
  margin-top: 30px !important;
  background-color:  #e4e4e4;
}
.vfb-breadcrumb {
  display: none;
}
.hidden {
  visbility: hidden;
}
.small-address {
  font-size: 12px;
}

/*========= TOGGLE BUTTON =========*/
.locations .toggle-wrapper {
  display: block;
  max-width: 100%;
}
.locations .toggle-label {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: inline-block;
  height: 45px;
  width: 50%;
  border: 1px solid black;
  line-height: 45px;
  text-align: center;
  margin: 0;
  cursor: pointer;
}
.locations .toggle-label:nth-child(1) {
  -moz-border-radius: 5px 0px 0px 5px;
  -webkit-border-radius: 5px 0px 0px 5px;
  border-radius: 5px 0px 0px 5px;
}
.locations .toggle-label:nth-child(2) {
  margin-left: -6px;
  -moz-border-radius: 0px 5px 5px 0px;
  -webkit-border-radius: 0px 5px 5px 0px;
  border-radius: 0px 5px 5px 0px;
}
.locations .toggle-label {
  background: #e4e4e4;
  border-color: #bdbdbd;
  color: #333;
  font-size: 14px;
  box-shadow: inset 0 0 10px #969595;
}
.locations .toggle-label.selected {
  background-color: #799c4b;
  border-color: #799c4b;
  color: #fff;
  box-shadow: none;
}
.locations-search,
.search-btn,
.toggle-wrapper {
  width: 100%;
}

/*========= GOOGLE MAPS INFOWINDOW =========*/
/*overriding the default infowindow overflow*/
.gm-style-iw {
  overflow: hidden !important;
}
.gm-style-iw div {
  overflow: hidden !important;
}
.gm-style-iw .btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*========= MOBILE RESULT INFO =========*/
.locations .mobile-contact-container {
  display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.locations .mobile-contact-container button {
  margin: 5px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 4px 20px;
  max-width: 170px;
  height: auto;
}
.locations .mobile-contact-container button span {
  margin-right: 5px;
}
.locations .mobile-contact-container button p {
  margin: 0;
}
.locations .mobile-contact-container button a {
  color: white;
  font-weight: normal;
}
.locations .mobile-contact-container button:hover a {
  color: white;
}
.locations .mobile-contact-container .alt-text {
  display: none;
}

/*========= DESKTOP RESULT INFO =========*/
.locations .desktop-contact-container {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

/*========= LOCATIONS BASE =========*/
.locations-search {
  background: #fff;
  width: 100%;
  border-radius: 2px;
  border: solid 1px #ccc;
  box-shadow: 2px 2px 3px #cccccc;
  padding: 15px;
  margin-bottom: 30px;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.locations {
  margin-bottom: 60px;
}
.locations-map {
  height: 645px;
  border-radius: 2px;
  border: solid 1px #ccc;
  box-shadow: 2px 2px 3px #ccc;
}
.locator-search-bar {
  flex-grow: 1;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  width: 100%;
  height: 43px; /*remove hardcoded height */
  margin: 15px 0 30px 0;
  padding: 10px 10px;
}


/*========= RESULTS =========*/
.locations-results-panel {
  display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  position: relative;
  background: #fff;
  width: 100%;
  height: 150px;
  border-radius: 2px;
  box-shadow: 2px 2px 3px #cccccc;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 14px;
}
.locations-results-panel a {
  text-decoration: none;
  cursor: pointer;
}
.locations-results-panel .photo-link {
  display: flex;
  display: -ms-flexbox;
}
.locations-results-panel .locations-results-image {
  float: left;
  max-width: 150px;
  border-radius: 2px 0 2px 0;
}
.locations-results-panel-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 10px 20px 10px 10px;
  margin-left: 10px;
  width: 56%;
  justify-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
.locations-results-panel-body .contact-info {
  margin-bottom: 0;
}
.locations-results-panel-body .phone {
  color: #333;
}
.locations-results-title {
  margin-top: 0px;
  font-size: 16px;
  font-weight: bold;
}
.locations-results-title a {
  word-break: break-word;
}
.locations-results-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.locations-results-label>h3 {
  color: #8a2432;
  font-weight: bold;
}

/*========= PAGINATION BUTTONS =========*/
.locations .btn.next {
  float: right;
}
.locations .btn.prev {
  float: left;
}
.locations .btn.next,
.locations .btn.prev {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 35%;
}
.locations .btn.next p {
  margin-right: 5px;
}
.locations .btn.prev p {
  margin-left: 5px;
}
.locations .btn.next p,
.locations .btn.prev p {
  margin-bottom: 0;
}

/*========= VIEW ALL SELECTORS =========*/
.locations .view-all-selector {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.locations .view-all-selector a {
  text-decoration: none;
  cursor: pointer;
}
.locations .view-all-selector a:after {
  content: "|";
  margin: 0 5px;
  color: #333;
}
.locations .view-all-selector a:last-of-type:after {
  content: "";
}

/*========= ERROR MESSAGE =========*/
.vfb-alert-error {
  display: none;
  background-color: #ff3333;
  color: #ffffff;
  padding: 15px;
  margin-bottom: 17px;
  border: 1px solid transparent;
  border-radius: 0;
  position: relative;
}
.error-msg {
  margin-bottom: 0;
  display: inline-block;
}
.vfb-alert-error .error-close {
  float: right;
  padding-top: 2px;
  cursor: pointer;
}

/*========= FILTERS =========*/
.locations .filter-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.filter-locations,
.filter-agents {
  color: #3366CC;
  cursor: pointer;
  font-weight: bold;
}
.filter-locations:hover,
.filter-agents:hover {
  color: #333366;
}
.filter-locations:after,
.filter-agents:after {
  content: "|";
  margin: 0 5px;
  color: #333;
}
.filter-locations:last-of-type:after,
.filter-agents:last-of-type:after {
  display: none;
}
.locations .filter-header {
  color: #333;
  margin-left: 15px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 2px solid #8d827a;
}
.filtered-section {
  margin-bottom: 25px;
}

/*========= SEARCH TOOLS =========*/
.back-to-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}
.back-to-search:hover {
  text-decoration: none;
}
.fa.return-top {
  color: white;
  text-shadow: 1px 1px 1px #333;
  position: fixed;
  bottom: 0;
  left: 0px;
  z-index: 501;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

/*========= MEDIA QUERIES =========*/
/* Weird media query to change buttons on very small devices */
@media (max-width: 400px) {
  .locations-results-title {
    max-width: 140px;
  }
  .locations .mobile-contact-container .alt-text {
    display: inline-flex;
    display: -webkit-inline-box;
    width: 100%;
    text-align: -webkit-center;
  }
  .locations .mobile-contact-container .icon-text {
    display: none;
  }
  .locations .mobile-contact-container button {
    min-width: 90px;
  }
  .locations-results-panel .locations-results-image {
    max-width: 115px;
    max-height: 115px;
  }
}

/* at some arbitrary point, remove the trailing pipe for the second view all filter */
@media (max-width: 490px) {
  .locations .view-all-selector a:nth-last-child(2):after {
    content: "";
  }
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .fa.return-top {
    left: 85px;
  }
  .locations .locations-search .button-primary {
    width: 20%;
  }
  .locator-search-bar {
    margin: 0 15px;
    width: auto;
  }
  /*.locations-results-panel-body {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }*/
  .locations .toggle-wrapper {
    display: inline-block;
    width: 25%;
  }
  div.locations-search {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .locations .mobile-contact-container {
    display: none;
  }
  .locations .desktop-contact-container {
    display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
  }
  .locations .view-all-selector a:nth-last-child(2):after {
    content: "|"
  }
}


/* Medium devices (desktops, 992px and up) */

@media (min-width: 992px) {

}


/* Large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {}
