/* Globals */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.text-capitalize {
  text-transform: capitalize;
}

.pointer-none {
  pointer-events: none;
}

.color-blue-dark {
  color: #001f40;
}

.fixed-top {
  top: 50px !important;
}

.list-none {
  list-style: none;
}

.p0 {
  padding: 0;
}

.p-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.m0 {
  margin: 0;
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #001f40;
}

.-transform-90 {
  transform: rotate(-90deg);
}

/* Custom button ui */
.button-custom {
  background-color: #1967d2 !important;
  color: #fff !important;
  font-size: 15px !important;
  padding: 3px 5px !important;
  border-radius: 3px;
  margin-top: 3px;
}

/* Make location panel smooth on scroll */
#locations-panel {
  scroll-behavior: smooth;
}

/* Installation types */
.installation-types {
  margin-bottom: 10px;
}

.installation-types span {
  padding: 3px 5px;
  background: red;
  border-radius: 15px;
  font-size: 12px;
  color: #fff !important;
  background-color: #1967d2;
}

.filter-by-installer-types {
  display: flex;
  flex-direction: column;
}
.filter-by-installer-types span {
  font-size: 12px;
}

/* Pre-Filters */
#pre-filter {
  margin-bottom: 5px;
}
#pre-filter #pre-filter-header {
  /* background-color: #d9d9dd; */
  background-color: #d2ebff;
  padding: 3px 20px;
  border-radius: 3px;
}

#pre-filter #pre-filter-header img {
  cursor: pointer;
}

#pre-filter-records-dropdown {
  /* background-color: #f5f5f5; */
  background-color: #f1f9ff;
  border-radius: 3px;
  padding-bottom: 5px;
  margin-top: 2px;
  /* margin-bottom: 5px; */
}

#pre-filter-records-dropdown ul {
  margin-top: 0;
  padding-top: 10px;
  overflow-y: auto;
}

#pre-filter-records-dropdown ul::-webkit-scrollbar {
  width: 7px;
}

#pre-filter-records-dropdown ul::-webkit-scrollbar-track {
  background-color: #eee;
}

#pre-filter-records-dropdown ul::-webkit-scrollbar-thumb {
  background-color: #001f40;
}

#pre-filter-records-dropdown ul > li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#pre-filter-records-dropdown ul > li:last-child {
  margin-bottom: 0;
}

#pre-filter-records-dropdown ul > li :is(input, label) {
  cursor: pointer;
}

#pre-filter-records-dropdown ul > li > label {
  margin-left: 5px;
}

#pre-filter-records-dropdown .pre-filter-footer {
  margin-bottom: 10px;
}

#pre-filter-records-dropdown .pre-filter-footer button {
  background-color: transparent;
  border: 1px solid #001f40;
  padding: 5px 10px;
  border-radius: 30px;
  margin-right: 5px;
  color: #001f40;
  transition: all 0.3s ease;
}

#pre-filter-records-dropdown .pre-filter-footer button:hover {
  background-color: #001f40;
  color: #fff;
}

#pre-filter-records-dropdown .pre-filter-footer button:last-child {
  margin-right: 0;
}

/* location */
.locating {
  transition: all 0.3s ease;
}

.location-info {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  background-color: #fff;
  box-shadow: 0 0 10px -3px rgba(0, 0, 0, 0.12);
  padding: 15px 20px;
  border-radius: 3px;
}

@media only screen and (max-width: 767px) {
  .location-info {
    width: max-content;
  }
}

.location-info h2 {
  margin: 0;
}

.no-location-hide {
  display: none;
}

/* Map container */
#map-container {
  width: 100%;
  height: 100%;
  position: relative;
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}

#map-container a {
  text-decoration: none;
  color: #1967d2;
}

#map-container button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
}

#gmp-map {
  position: absolute;
  left: 22em;
  top: 0;
  right: 0;
  bottom: 0;
}

#locations-panel {
  position: absolute;
  left: 0;
  width: 22em;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  background: white;
  padding: 0.5em;
  box-sizing: border-box;
}

@media only screen and (max-width: 876px) {
  #gmp-map {
    left: 0;
    bottom: 50%;
  }

  #locations-panel {
    top: 50%;
    right: 0;
    width: unset;
  }
}

#locations-panel-list > header {
  padding: 10px 1.4em 20px 1.4em;
}

#locations-panel-list h1.search-title {
  font-size: 1em;
  font-weight: 500;
  margin: 0;
}

#locations-panel-list h1.search-title > img {
  vertical-align: bottom;
  margin-top: -1em;
}

#locations-panel-list .search-input {
  width: 100%;
  margin-top: 0.8em;
  position: relative;
}

#locations-panel-list .search-input input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3em;
  height: 2.2em;
  box-sizing: border-box;
  padding: 0 2.5em 0 1em;
  font-size: 1em;
}

#locations-panel-list .search-input-overlay {
  position: absolute;
}

#locations-panel-list .search-input-overlay.search {
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 2.4em;
}

#locations-panel-list .search-input-overlay.search button {
  width: 100%;
  height: 100%;
  border-radius: 0.2em;
  color: black;
  background: transparent;
}

#locations-panel-list .search-input-overlay.search .icon {
  margin-top: 0.05em;
  vertical-align: top;
}

#locations-panel-list .section-name {
  font-weight: 500;
  font-size: 0.9em;
  margin: 1.8em 0 1em 1.5em;
}

#locations-panel-list .location-result {
  position: relative;
  padding: 0.8em 3.69em 0.8em 1.4em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

#locations-panel-list .location-result:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

#locations-panel-list .location-result:last-of-type {
  border-bottom: none;
}

#locations-panel-list .location-result.selected {
  outline: 2px solid #4285f4;
}

#locations-panel-list button.select-location {
  margin-bottom: 0.6em;
  text-align: left;
  margin-right: 5px;
}

#locations-panel-list .location-result h2.name {
  font-size: 1em;
  font-weight: 500;
  margin: 0;
}

#locations-panel-list .location-result .address {
  font-size: 0.9em;
  margin-bottom: 0.5em;
}

#locations-panel-list .directions-button {
  position: absolute;
  right: 1.2em;
  top: 2.3em;
}

#locations-panel-list .directions-button-background:hover {
  fill: rgba(116, 120, 127, 0.1);
}

#locations-panel-list .directions-button-background {
  fill: rgba(255, 255, 255, 0.01);
}

#locations-panel-list .location-result .distance {
  position: absolute;
  top: 0.9em;
  right: 0;
  text-align: center;
  font-size: 0.9em;
  width: 5em;
}

#locations-panel-list .option-container {
  display: inline-block;
  margin: 0.2em 0;
  position: relative;
}

#locations-panel-list .option-container button:hover,
#locations-panel-list .option-container a:hover {
  background-color: #f1f3f4;
}

#locations-panel-list .option {
  border: 1px solid #bdc1c6;
  border-radius: 0.9em;
  color: #1967d2;
  font-size: 0.9em;
  font-weight: 500;
  padding: 0.3em 0;
}

#locations-panel-list .option > span {
  margin: 0 0.9em;
}

#location-results-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* ------------- DETAILS PANEL ------------------------------- */
#locations-panel-details {
  padding: 1.4em;
  box-sizing: border-box;
  display: none;
}

#locations-panel-details .back-button {
  font-size: 1em;
  font-weight: 500;
  color: #1967d2;
  display: block;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

#locations-panel-details .back-button .icon {
  width: 20px;
  height: 20px;
  vertical-align: bottom;

  /* Match link color #1967d2 */
  filter: invert(30%) sepia(67%) saturate(7379%) hue-rotate(209deg)
    brightness(95%) contrast(80%);
}

#locations-panel-details > header {
  text-align: center;
}

#locations-panel-details .banner {
  margin-top: 1em;
}

#locations-panel-details h2 {
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 0.3em;
}

#locations-panel-details .distance {
  font-size: 0.9em;
  text-align: center;
}

#locations-panel-details .address {
  text-align: center;
  font-size: 0.9em;
  margin-top: 1.3em;
}

#locations-panel-details .atmosphere {
  text-align: center;
  font-size: 0.9em;
  margin: 0.8em 0;
}

#locations-panel-details .star-rating-numeric {
  color: #555;
}

#locations-panel-details .star-icon {
  width: 1.2em;
  height: 1.2em;
  margin-right: -0.3em;
  margin-top: -0.08em;
  vertical-align: top;
  filter: invert(88%) sepia(60%) saturate(2073%) hue-rotate(318deg)
    brightness(93%) contrast(104%);
}

#locations-panel-details .star-icon:last-of-type {
  margin-right: 0.2em;
}

#locations-panel-details .price-dollars {
  color: #555;
}

#locations-panel-details hr {
  height: 1px;
  color: rgba(0, 0, 0, 0.12);
  background-color: rgba(0, 0, 0, 0.12);
  border: none;
  margin-bottom: 1em;
}

#locations-panel-details .contact {
  font-size: 0.9em;
  margin: 0.8em 0;
  display: flex;
  align-items: center;
}

#locations-panel-details .contact .icon {
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
}

#locations-panel-details .contact .right {
  padding: 0.1em 0 0 1em;
}

#locations-panel-details .hours .weekday {
  display: inline-block;
  margin-right: 10px;
  /* width: 5em; */
}

#locations-panel-details .website a {
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
  max-width: 16em;
  text-overflow: ellipsis;
}

#locations-panel-details p.attribution {
  color: #777;
  margin: 0;
  font-size: 0.8em;
  font-style: italic;
}
