.mapboxgl-map {
  font-size: 13px;
}

#flex-map {
  display: flex;
}

.sidebar {
  width: 30%;
  min-width: 300px;
  height: 600px;
  left: 0;
  overflow: visible;
  border-right: 1px solid rgba(0, 0, 0, 0.25);
  background-color: #fff;
}

.map {
  position: relative;
  width: 70%;
  height: 600px;
  top: 0;
  bottom: 0;
}
#geocoder-div {
  padding: 34px 0 32px;
  margin-top: -100px;
}
.heading {
  background: #00853e;
  min-height: 60px;
  line-height: 60px;
  padding: 0 10px;
  color: #fff;
}

.listings {
  height: 100%;
  overflow: auto;
  padding-bottom: 60px;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
}

.listings .item .title small {
  font-weight: 400;
}
.listings .item .title:hover,
.listings .item.active .title {
  color: #8cc63f;
}
.listings .item.active {
  background-color: #f8f8f8;
}
.mapboxgl-canvas-container,
.mapboxgl-container .leaflet-marker-icon,
.md-card-content .content span:hover input,
.md-card-content .content span:hover label {
  cursor: pointer;
}
.clearfix {
  display: block;
}
.clearfix:after {
  content: '.';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.mapboxgl-popup {
  padding-bottom: 30px;
}
.mapboxgl-popup-content {
  font-family: 'Red Hat', 'Helvetica Neue', Sans-serif;
  padding: 20px 12px 15px;
  width: 300px;
  min-width: 300px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}

#listings .title h2,
#listings .title h3,
.mapboxgl-popup-content h2,
.mapboxgl-popup-content h3 {
  font: 700 1.6em/1.2em 'Red Hat', 'Helvetica Neue',
    Sans-serif;
  display: block;
  margin: 16px auto;
  text-align: left;
  color: #130c34;
}

#listings .item div,
.mapboxgl-popup-content div {
  font-family: 'Overpass', 'Helvetica Neue', Sans-serif;
}
#listings .item div a.Caseys-store-link,
#listings .item div a.RiteAid-store-link,
#listings .item div a.WinnDixie-store-link,
#listings .item div a.CVS-store-link,
#listings .item div a.GetGo-store-link,
#listings .item div a.Loves-store-link,
#listings .item div a.Weis-store-link,
#listings .item div a.Harveys-store-link,
#listings .item div a.GiantEagle-store-link,
#listings .item div a.Tops-store-link,
#listings .item div a.OfficeMax-store-link,
.Caseys-onmap-store-link,
.Caseys-popup .mapboxgl-popup-content a:first-of-type,
.RiteAid-onmap-store-link,
.RiteAid-popup .mapboxgl-popup-content a:first-of-type,
.WinnDixie-onmap-store-link,
.WinnDixie-popup .mapboxgl-popup-content a:first-of-type,
.CVS-onmap-store-link,
.CVS-popup .mapboxgl-popup-content a:first-of-type,
.GetGo-onmap-store-link,
.GetGo-popup .mapboxgl-popup-content a:first-of-type,
.Loves-onmap-store-link,
.Loves-popup .mapboxgl-popup-content a:first-of-type,
.Weis-onmap-store-link,
.Weis-popup .mapboxgl-popup-content a:first-of-type,
.Harveys-onmap-store-link,
.Harveys-popup .mapboxgl-popup-content a:first-of-type,
.GiantEagle-onmap-store-link,
.GiantEagle-popup .mapboxgl-popup-content a:first-of-type,
.Tops-onmap-store-link,
.Tops-popup .mapboxgl-popup-content a:first-of-type,
.OfficeMax-onmap-store-link,
.OfficeMax-popup .mapboxgl-popup-content a:first-of-type,
.dropdown-container #drop,
.mapboxgl-ctrl-top-right
  .mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
  display: block;
}

.list-operator-icon {
  width: 40px;
  height: 40px;
}


#listings .item div > div:nth-of-type(2),
.geocoder {
  position: relative;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 15px;
}
.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}
.storeDetailsBtn {
  background: green;
  color: #fff;
}
.geocoder {
  z-index: 1;
  width: 50%;
  left: 50%;
  margin-left: -25%;
  top: 10px;
}
.mapboxgl-popup-close-button {
  font-size: 1.7em;
  padding: 0;
  margin-right: 12px;
}
input.mapboxgl-ctrl-geocoder--input {
  padding-left: 30px;
  border: 1px solid #130c34;
  position: relative;
  z-index: 22;
}
input.mapboxgl-ctrl-geocoder--input:focus {
  border: 1px solid #1ee66e;
}
button.mapboxgl-popup-close-button,
button.mapboxgl-popup-close-button:hover {
  color: #130c34;
  background: transparent;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
 z-index: 30;
}
@media screen 
and (min-width: 640px) {
  .mapboxgl-ctrl-geocoder {
    min-width: 100%;
    width: 100% !important;
  }
}
/* .dropdown-container {
  border-radius: 3px;
  background: #fff;
  text-align: center;
  position: relative;
}
.dropdown-container label {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  background: #e7e7eb;
  color: #130c34;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0 10px;
  font: 400 17px/38px Overpass, 'Helvetica Neue', Sans-serif;
  transition: 0.2s;
  text-align: left;
}
.dropdown-container label:hover {
  background: #d9d9df;
}
.dropdown-container label:after {
  content: '›';
  position: absolute;
  width: 40px;
  font-size: 32px;
  padding-left: 0;
  bottom: 0;
  transform: rotate(90deg);
  top: 75%;
  right: -5px;
}
.dropdown-container .content {
  height: 0;
  max-height: 0;
  margin: 0;
  text-align: left;
  overflow: hidden;
  transition: 0.3s linear;
  position: relative;
  z-index: 999;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  padding: 0 8px;
}
.dropdown-container .content span {
  flex-grow: 1;
  width: 50%;
  margin: 10px 0;
  display: flex;
  align-items: center;
}
.dropdown-container .content span img {
  margin: 0 4px 0 6px;
}
.dropdown-container .content span input {
  cursor: pointer;
  width: 1em;
  height: 1em;
}
.dropdown-container #drop:checked ~ .content {
  height: auto;
  width: 100%;
  max-height: 900px;
  transition: max-height 0.2s ease-in;
  overflow: hidden;
} */
.md-caption {
  font-size: 0.7em;
  line-height: 1.4rem;
  opacity: 0.7;
}
.md-button {
  display: inline-block;
  font: 700 15px 'Red Hat', sans-serif;
  padding: 8px;
  min-width: 70px;
  border-radius: 2px;
  border: none;
  text-align: center;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  color: #130c34;
}
.md-button:hover {
  background-color: #f7f7f7;
}
.md-card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
}
.md-card-content {
  padding: 20px 25px;
}
@media (max-width: 767px) {
  .geocoder,
  .map,
  .sidebar {
    width: 100%;
    left: 0;
  }
  .sidebar {
    position: revert;
    height: 400px;
  }
  #map {
    position: relative;
    height: 400px;
    margin-top: 0;
  }
  .geocoder {
    margin-left: 0;
  }
  input.mapboxgl-ctrl-geocoder--input {
    padding-left: 40px;
  }
  #geocoder-div {
    margin-top: -20px;
  }
  .mapboxgl-popup-content {
    width: 100%;
    min-width: 300px;
  }
  button.mapboxgl-popup-close-button:hover {
    background: transparent;
  }
  .mapboxgl-popup-content h2,
  .mapboxgl-popup-content h3 {
    font-size: 1.4em;
  }
  #flex-map {
    display: flex;
    flex-direction: column;
  }
  #flex-map > .sidebar {
    order: 2;
  }
  #flex-map > .map {
    order: 1;
  }
  .md-card-content {
    padding: 20px;
  }
  .md-card-content .content span {
    font-size: 14px;
  }
}

.md-card-content .content {
  display: flex;
  flex-wrap: wrap;
}
.md-card-content p {
  font: 700 15px/18px 'Red Hat', sans-serif;
  margin-bottom: 20px;
}
.close-x,
.md-card-btns label {
  font: 500 15px 'Red Hat', sans-serif;
}
.close-container {
  background: #f7f7f7;
  float: right;
  position: absolute;
  top: 0;
  right: 0;
  border-bottom-left-radius: 5px;
  transition: 0.2s;
}
.close-container:hover {
  background: #f5f5f5;
}
.close-x {
  padding: 8px;
  color: #130c34;
}
.close-x:hover {
  cursor: pointer;
  color: #111;
}
.md-card-content .content span {
  flex-basis: 25%;
  font: 400 15px Overpass, sans-serif;
  color: #130c34;
  display: flex;
  align-items: center;
}

.md-card-content
  .content
  span:hover
  .md-card-content
  .content
  span:hover
  label {
  color: #111;
  font-weight: 400;
}
.md-card-content .content span label {
  margin-top: 2.5px;
}
.md-card-content .content input {
  margin-right: 4px;
}
.md-card-btns {
  border-top: 1px solid #ddd;
  padding: 8px 12px;
  min-height: 55px;
}
.md-card-btns label:first-of-type {
  position: absolute;
  left: 15px;
}
.md-card-btns label:nth-of-type(2) {
  position: absolute;
  right: 15px;
}

.infobox {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  min-width: 400px;
  max-width: 520px;
  z-index: 3;
  box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
    0 15px 12px rgba(0, 0, 0, 0.22);
  -webkit-transition: visibility 0s 0.4s, opacity 0.4s;
  transition: visibility 0s 0.4s, opacity 0.4s;
}
:checked + .infobox {
  visibility: visible;
  opacity: 1;
  -webkit-transition: visibility, opacity 0.4s 0.1s;
  transition: visibility, opacity 0.4s 0.1s;
}


.listing-distance {
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  color: #130c34;
}

.mapboxgl-popup-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.map-popup-partner-cmc {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-top: 0 !important;
}

.popup-partner-title {
  display: flex;
  align-items: center;
  gap: 8px;

  h2 {
    margin: 0;
  }
}

.popup-partner-info {
  width: 100%;
  p {
    margin: 0;
  }
}

.popup-badge-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 6px;
  background: transparent;
}

.popup-badge-wrapper.cmc-badge-wrapper {
  gap: 6px;
  padding: 4px;
  border-radius: 4px;
  background: #d2fae2;
  color: #30812e;
}

.cmc-icon {
  width: 16px;
  height: 16px;
}

.cmc-value-prop {
  background: transparent;
  padding: 8px !important;
  border-radius: 4px;
  margin: 6px 0;
  width: 100%;
}

.savings-highlight {
  p {
    margin: 0 !important;
    font-size: 13px;
    color: #130c34;
  }

  img {
    width: 80px;
    height: 53px;
  }
}

.popup-value-prop.cmc-value-prop {
  background: linear-gradient(
    135deg,
    #e6f7ff 0%,
    #f0fdf4 100%
  );
}

.savings-highlight {
  display: flex;
  align-items: center;
  gap: 6px;
}

.savings-icon {
  font-size: 20px;
}

.cmc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.cmc-primary-cta {
  min-width: 50%;
  background: #1ee66e;
  color: #130c34;
  padding: 10px 6px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
  font-size: 13px !important;
}

.cmc-primary-cta:hover {
  background: #1ee66edd;
  color: #130c34 !important;
}

.map-popup-get-directions {
  width: 100%;
  color: #130c34;
  padding: 10px 6px;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  font-size: 13px !important;
  white-space: nowrap;
}

.map-popup-get-directions:hover {
  background: #f5f5f5;
  color: #130c34 !important;
}

/* Listing styles to match popup appearance */
.map-listing-partner {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px 12px 15px;
  width: 100%;
  min-width: 300px;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-listing-partner.map-listing-partner-cmc {
  /* background: linear-gradient(
    135deg,
    #f0fdf4 0%,
    #ffffff 100%
  ); */
  /* border-left: 3px solid #1ee66e; */
}

.listing-partner-title {
  a {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.listing-partner-title h2 {
  margin: 0;
  font: 700 24px 'Red Hat', 'Helvetica Neue', Sans-serif;
  color: #130c34;
  margin: 0 !important;
}
.listing-partner-info {
  width: 100%;
  margin-top: 6px;
}
.listing-partner-info p {
  font-size: 15px;
  color: #130c34;
  opacity: 0.9;
  margin: 0;
}

.listing-savings-highlight {
  display: flex;
  align-items: center;
  gap: 6px;

  img {
    width: 80px;
    height: 53px;
  }

  p {
    font-size: 15px;
    color: #130c34;
    margin: 0;
  }
}

.listing-address {
  font-size: 13px !important;
  color: #130c34;
  opacity: 0.7;
  margin: 0;
}

.listing-badge-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 6px;
  background: transparent;
}
.listing-badge-wrapper.listing-cmc-badge-wrapper {
  gap: 6px;
  padding: 4px;
  border-radius: 4px;
  background: #d2fae2;
  color: #30812e;
}

.cmc-icon {
  width: 16px;
  height: 16px;
}
.listing-value-prop {
  background: transparent;
  padding:0;
  border-radius: 4px;
  margin: 6px 0;
  width: 100%;
}
.listing-value-prop.cmc-value-prop {
  background: linear-gradient(
    135deg,
    #e6f7ff 0%,
    #f0fdf4 100%
  );
}
.savings-highlight {
  display: flex;
  align-items: center;
  gap: 6px;
}
.savings-highlight p {
  margin: 0 !important;
  font-size: 13px;
  color: #130c34;
}
.savings-icon {
  font-size: 20px;
}
.list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}
.listing-cmc-primary-cta {
  min-width: 50%;
  background: #1ee66e;
  color: #130c34;
  padding: 10px 6px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 15px;
  text-align: center;
}
.listing-cmc-primary-cta:hover {
  background: #1ee66edd;
  color: #130c34 !important;
}
.map-listing-get-directions {
  width: 100%;
  color: #130c34;
  padding: 10px 6px;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 15px;
  text-align: center;
}
.map-listing-get-directions:hover {
  background: #f5f5f5;
  color: #130c34 !important;
}

@media (max-width: 767px) {
  .listing-cmc-primary-cta, .map-listing-get-directions, .listing-savings-highlight > p  {
    font-size: 14px;
}

@media (max-width: 375px) {
  .mapboxgl-popup-content {
    min-width: 240px;
  }
}
