.garage-locator-container {
  position: relative;
  overflow: hidden;
}

/* map */

.garage-locator .map-container {
  width: 100%;
  height: 800px;
}
#garage-locator-map { 
  height: 100%; 
  width: 100%; 
}

/* map overlay */

.garage-locator .loading-overlay {
  width: 100%;
  height: 600px;
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
}
.garage-locator .loading-overlay.hidden {
  display: none;
}
.garage-locator .loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #ef4444;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.garage-locator .loading-text {
  margin-top: 1rem;
  color: #cbd5e1;
}
.garage-locator .empty-state {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  padding: 2rem;
}

/* search */

.search-panel {
  position: absolute;
  padding: 20px;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  left: 0;
  top: 40px;
  min-height: 520px;
  width: 350px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #121a4c;
  transition: 0.5s all ease;
  z-index: 2;
  box-sizing: border-box;
}

.form-section {
  border: solid 1px rgba(255, 255, 255, .125);
  border-radius: 5px;
  padding: 10px 15px;
}
.search-from,
.search-to {
  margin: 0 0 10px 0;
}
.search-panel .search-range {
  color: #121a4c;
  font-size: 0.8em;
}
.search-panel label {
  display: block;
  color: #ffffff;
  font-size: 0.8em;
}
.search-panel #fromInput,
.search-panel #toInput {
  width: 100%;
  color: #121a4c;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 0.9em;
  padding: 5px 10px 4px 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 4px;
  border: 1px solid #121a4c;
}


.search-panel .filter-section.hidden {
    display: none;
}
.search-panel .collapse-toggle {
  width: 100%;
  padding: 12px 15px 13px 15px;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: transparent;
  color: #ffffff;
  border: solid 1px rgba(255, 255, 255, .125);
  margin: 15px 0 0 0;
  text-transform: uppercase;
  font-family: "swiss-721-bt-rounded", sans-serif;
  font-weight: 900;
  position: relative;
}
.search-panel .collapse-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
  position: absolute;
  right: 10px;
  top: 13px;
}
.search-panel .collapse-icon.collapsed {
    transform: rotate(-90deg);
}
.search-panel .filter-section {
  background-color: #ffffff;
  border-radius: 2px;
  padding: 10px;
}
.search-panel #fuelCardsContent {
  max-height: 160px;
  overflow: scroll;
}

.search-panel .filter-section label {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 0.8em;
  color: #121a4c;
  text-transform: initial;
}
.search-panel .filter-section label.underline {
  padding: 8px 0;
  border-bottom: 2px solid #eaeaea;
}

.card-group .col1,
.filter-label .col1 {
  float: left;
  width: 40px;
}
.card-group .col2,
.filter-label .col2 {
  float: left;
  width: 70px;
}
.card-group .col3,
.filter-label .col3 {
  float: right;
  width: 160px;
}


.search-panel .search-btn {
  background-color: #e41c14;
  padding: 8px 10px 8px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  font-family: "swiss-721-bt-rounded", sans-serif;
  font-weight: 900;
  font-size: 0.8em;
  text-align: center;
  border: 0;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  margin: 15px 0 0 0;
}
.search-panel .search-btn svg {
  width: 1rem;
  height: 1rem;
  margin: 0 0 -3px 0;
}

/* results */

.results-panel {
  position: absolute;
  padding: 20px;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  border: solid 3px rgba(12, 18, 57, 0.9);
  right: 0;
  top: 40px;
  height: 520px;
  width: 250px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-right-color: white;
  transition: 0.5s all ease;
  z-index: 2;
  box-sizing: border-box;
}
.results-panel .results-header {
  text-align: center;
  margin: 0 0 15px 0;
}
.results-list {
  overflow: scroll;
  height: 430px;
}
.results-panel .garage-item {
  margin: 0 0 15px 0;
}
.results-panel .garage-item .left {
  float: left;
  width: 45px;
}
.results-panel .garage-item .left img {
  width: 100%;	
}
.results-panel .garage-item .right {
  float: right;
  width: 140px;
  font-size: 0.7em;
  line-height: 140%;
}
.results-panel .garage-item .right span {
  background: #dc2626;
  color: #ffffff;
  padding: 2px 0 0 0;
  border-radius: 4px;
  text-align: center;
  width: 105px;
  display: block;
  font-size: 0.9em;
  margin: 3px 0 0 0;
}
.results-panel .garage-item h4 {
  font-weight: 600;
}

/* toggles */

.search-toggle-tab {
  background-image: url('/wp-content/themes/tatefleet/images/gl-search.gif');
  background-size: 100% 100%;
  height: 70px;
  width: 30px;
  background-color: #e41c14;
  position: absolute;
  right: -30px;
  top: 30%;
  cursor: pointer;
  -webkit-border-top-right-radius: 10px;
  -webkit-border-bottom-right-radius: 10px;
  -moz-border-radius-topright: 10px;
  -moz-border-radius-bottomright: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.search-panel.hide {
  left: -350px;
}
.results-toggle-tab {
  background-image: url('/wp-content/themes/tatefleet/images/gl-results.gif');
  background-size: 100% 100%;
  height: 100px;
  width: 30px;
  background-color: #e41c14;
  position: absolute;
  left: -33px;
  top: 30%;
  cursor: pointer;
  -webkit-border-top-left-radius: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -moz-border-radius-topleft: 10px;
  -moz-border-radius-bottomleft: 10px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.results-panel.hide {
  right: -250px;
}

@media screen and (max-width: 439px) {
  .search-panel {
    width: 80%;
  }
  .search-panel.hide {
    left: -80%;
  }
}
@media screen and (max-width: 319px) {
  .search-panel {
    width: 75%;
  }
  .search-panel.hide {
    left: -75%;
  }
}