:root {
  --primaryColor: #393939;
  --pink: linear-gradient(
    90deg,
    #d4b269 0,
    #7a6332 29%,
    #816b3c 59%,
    #d4b269 100%
  );
  --darkBlue: #393939;
}

.page-template-sirona-dealer-locator-php .post-password-form {
  position: relative;
  z-index: 1000;
}

.dealer-locator-container {
  max-width: 1360px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.deader-locator {
  display: flex;
  gap: 14px;
  height: 950px;
  margin-bottom: 100px;
}

.dealer-locator__map {
  flex: 1;
  position: relative;
}

.dealer-locator__listing {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  justify-content: space-between;
}

.dealer-locator__listing__logo {
  flex: 0 0 100px;
}

.dealer-locator-header {
  padding-top: 180px;
  background: #009ade;
  position: relative;
  padding-bottom: 5px;
}

.dealer-locator-header:after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: -4px;
  width: 100%;
  height: 10vw;
  background: url(https://poolife.com/wp-content/themes/poolife/assets/images/wave.svg)
    top center no-repeat;
  background-size: 104% auto;
}

.dealer-locator-header h1 {
  color: var(--poolife-com-white, var(--color-white-solid, #fff));
  font-family: acumin-pro-extra-condensed, sans-serif;
  font-size: 48px;
  font-style: normal;
  max-width: 500px;
  line-height: 48px;
  /* 100% */
  text-transform: capitalize;
}

.dealer-locator-header__container {
  margin: auto;
  max-width: 960px;
  width: 90%;
}

.dealer-locator__intro {
  padding-bottom: 50px;
}

.dealer-locator__intro h2 {
  color: var(--poolife-com-regal-blue, var(--color-azure-22, #003a70));
  font-family: 'Inter';
  margin-bottom: 5px;

  font-size: 30.953px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: var(--line-height-56, 56px);
  /* 180.919% */
}

.dealer-locator__intro ol {
  list-style: decimal;
  padding-left: 20px;
}

.dealer-locator__intro li {
  color: var(--poolife-com-regal-blue, var(--color-azure-22, #003a70));

  font-family: 'Inter';

  font-size: 15.625px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: var(--line-height-27_2, 27.2px);
  /* 174.08% */
}

.dealer-locator__search {
  display: flex;
  justify-content: space-between;

  margin-bottom: 30px;
  gap: 16px;
}

.dealer-locator__search__legend__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.dealer-locator__search__legend__list li > div:first-child {
  flex: 0 0 40px;
}

.dealer-locator__search__legend__list li > div:last-child {
  flex: 1;
}
.dealer-locator__listings {
  border-radius: 15px;
  border: 2px solid var(--darkBlue);
  background: #fff;
  padding: 15px;
  flex: 0 0 450px;
  overflow: auto;
}

.dealer-locator-filter-toggle {
  font-family: 'Inter';

  display: flex;
  width: 120px;
  height: 52px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 18.139px;
  transition: all 0.4s ease-in-out;
  background: var(--pink);
  color: var(--poolife-com-white, var(--color-white-solid, #fff));
  gap: 10px;
  font-size: 19.349px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 17.293px;
  /* 89.375% */
  border: none;
  cursor: pointer;
}

.dealer-locator-filter-toggle:hover {
  background-position: right center;
  background-size: 150% auto;
}

.dealer-locator-search-form {
  border-radius: 20px;
  border: 1.368px solid #d1d1d1;
  background: #fff;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dealer-locator-search-form input {
  border-radius: 20px;
  width: 100%;
  border: none;
  outline: none;
  font-family: 'Nunito';
  font-size: 20px;
  padding: 8px 13px;
  flex: 1;
}

.dealer-locator-search-form button {
  flex: 0 0 50px;
  border-radius: 20px;
  border: 1.368px solid #d1d1d1;
  background: var(--pink);
  transition: all 0.4s ease-in-out;
  display: flex;
  width: 49.263px;
  height: 52px;
  padding: 10.947px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  outline: none;
}

.dealer-locator-search-form button:hover {
  background-position: right center;
  background-size: 150% auto;
}

.dealer-locator__search__input {
  flex: 0 0 50%;
}

.dealer-locator__search__input__label {
  color: #393939;
  font-family: 'Nunito';
  font-size: 20px;
  font-style: normal;
  font-weight: var(--font-weight-500, 500);
  line-height: var(--line-height-19_6, 19.6px);
  /* 98% */
  margin-bottom: 12px;
  text-transform: capitalize;
}

.dealer-locator__search__legend ul {
  padding-left: 0;
  list-style: none;
}

.dealer-locator__search__legend li {
  color: var(
    --agilestorelocator-com-shuttle-gray,
    var(--color-grey-37, #555d66)
  );
  font-family: 'Nunito';
  font-size: 16px;
  font-style: normal;
  font-weight: var(--font-weight-500, 500);
  line-height: 1.25;
  /* 145.455% */
}

.dealer-locator__listing-name {
  align-items: center;
  color: #003a70;

  /* poolife.com/Semantic/Link */
  font-family: 'Inter';
  font-size: 17px;
  line-height: 1.2;
}

.dealer-locator-listing__meta {
  display: flex;
  color: var(--darkBlue);
  gap: 9px;

  color: var(--darkBlue);

  font-family: 'Inter';
  font-size: 17px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 1.2;
}

.dealer-locator__listing__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dealer-locator-listing__meta a {
  text-decoration: none;
}

.dealer-locator-listing__meta__icon {
  width: 22px;
  display: flex;
  justify-content: center;
}

.dealer-locator__listing-name__counter {
  background: var(--darkBlue);
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  color: #fff;
  text-align: center;
  border-radius: 50%;

  /* poolife.com/Semantic/Link */
  font-family: 'Inter';
  font-size: 15px;
  font-style: normal;
  font-weight: var(--font-weight-400, 700);
  line-height: 22px;
  /* 172.698% */
}

.dealer-locator__listing {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--darkBlue);
}

.dealer-locator__listing__buttons {
  display: flex;
  gap: 12px;
}

.dealer-locator-button {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  background: var(--pink);
  transition: all 0.4s ease-in-out;
  width: 116px;
  height: 38px;
  flex-shrink: 0;
  color: var(--poolife-com-white, var(--color-white-solid, #fff));
  text-align: center;
  font-family: 'Inter';
  font-size: 15px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 1;
  /* 95.333% */
}

.dealer-locator-button:hover {
  background-position: right center;
  background-size: 150% auto;
}

.dealer-locator__search__filters {
  position: relative;
}

.dealer-locator__filters {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 1000;
  left: 0;
  padding: 25px 30px;
  background: #fff;
  border-radius: 38px;
  border: 2px solid var(--darkBlue);
  box-shadow: 0px 5.071px 12.677px 0px rgba(0, 0, 0, 0.25);
  width: 397px;
  box-sizing: border-box;
  transition: 0.3s linear;
  opacity: 0;
  pointer-events: none;
}

.dealer-locator__filters.-active {
  opacity: 1;
  pointer-events: all;
}

.dealer-locator__filters__header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  align-items: center;
}

.dealer-locator__filters__label,
.dealer-locator__filters__group__label {
  color: var(--darkBlue);
  font-family: 'Inter';
  font-size: 22.463px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 1.2;
  /* 172.698% */
}

.dealer-locator__filters__group__label {
  margin-bottom: 6px;
}

.dealer-locator__filters__clear {
  color: var(--pink);
  text-align: center;
  font-family: 'Nunito';
  font-size: var(--font-size-18, 18px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-16, 16px);
  /* 88.889% */
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

.dealer-locator__filters__close {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: var(--pink);
  font-family: 'Inter';
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.dealer-locator__filters__group:not(:last-child) {
  margin-bottom: 12px;
}

.dealer-locator__filters__group__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dealer-locator__filters__group__options label {
  color: var(--darkBlue);

  font-family: 'Inter';
  font-size: 15.625px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 18px;
  /* 174.08% */
}

.dealer-locator__starting-location {
  width: 100%;
  display: block;
  border-radius: 3px;
  border: 1px solid #d1d1d1;
  background: #fff;
  padding: 3px 8px;
  font-size: 15px;
  font-family: 'Nunito';
  font-weight: 400;
  line-height: 1;
  color: #000;
}

/* Hide Google Maps pan (move) control (4-way navigation icon) and related controls */
.gmnoprint[title='Move map'],
.gm-svpc,
.gm-bundled-control-on-bottom .gmnoprint,
.gm-control-active.gm-fullscreen-control,
.gm-bundled-control-on-bottom .gm-control-active {
  display: none !important;
}

/* Optionally hide all controls in the bottom right (uncomment if needed) */
.gm-bundled-control-on-bottom {
  display: none !important;
}

/* Custom Zoom Controls - match screenshot */
.custom-zoom-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 10;
}
.custom-zoom-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--darkBlue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.custom-zoom-controls button:hover {
  background: var(--primaryColor);
}
.custom-zoom-controls svg {
  display: block;
}

.dealer-locator__listing__distance {
  display: block;
  margin-bottom: 5px;
  text-align: right;
  color: var(--pink);
  font-family: 'Inter';
  font-size: 17px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 1.2;
}
.dealer-locator__filters__apply-container {
  display: flex;
  justify-content: flex-end;
}

.dealer-locator__filters__apply {
  font-family: 'Inter';

  display: flex;
  width: auto;
  height: 36px;
  padding: 2px 12px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 18.139px;
  background: var(--pink);
  transition: all 0.4s ease-in-out;
  color: var(--poolife-com-white, var(--color-white-solid, #fff));
  gap: 10px;
  font-size: 15px;
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: 17.293px;
  /* 89.375% */
  border: none;
  cursor: pointer;
}

.dealer-locator__filters__apply:hover {
  background-position: right center;
  background-size: 150% auto;
}

@media (max-width: 960px) {
  .dealer-locator__intro h2 {
    font-size: 24px;
    line-height: 1.25;
  }
  .dealer-locator__intro {
    padding-bottom: 20px;
  }
  .dealer-locator__search {
    flex-direction: column;
  }
  .dealer-locator__search__filters {
    order: 2;
  }
  .dealer-locator__search__input {
    order: 3;
  }
  .dealer-locator__search__input__label.-placeholder {
    display: none;
  }
  .deader-locator {
    flex-direction: column-reverse;
    height: auto;
    gap: 10px;
  }
  .dealer-locator__map {
    height: 400px;
    flex: 0 0 400px;
  }

  #map {
    min-height: 400px !important;
  }
}
@media (max-height: 800px) {
  .dealer-locator-listing__meta {
    font-size: 14px;
  }

  .dealer-locator__listing-name {
    font-size: 14px;
  }
  .dealer-locator__listing__content {
    gap: 9px;
  }
  .dealer-locator-button {
    width: 80px;
    height: 30px;
    font-size: 13px;
  }
}

.dealer-locator__legend__badges {
  max-width: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
