@keyframes dp-loader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.dp-block-dentist-details-map{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px !important;
  margin: 0 auto;
}

.dd-map {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.dd-map .map {
  border-radius: 8px;
  overflow: hidden;
}

.dp-block-dentist-details-map:not(.dd-map--style-map-only) .map-container:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background: var(--wp--preset--color--secondary-pearl);
}
.dp-block-dentist-details-map:not(.dd-map--style-map-only) .map-container:empty::before {
  content: "";
  display: block;
  padding: 7px;
  margin: 0;
  border-radius: 50%;
  border: 7px solid rgba(75, 82, 96, 0.2509803922);
  border-top: 7px solid var(--wp--preset--color--primary);
  animation: dp-loader-spin 1.5s linear infinite;
}
.dp-block-dentist-details-map:not(.dd-map--style-map-only) .map-container:empty::after {
  content: "Loading map...";
  display: block;
  line-height: 1em;
  height: 1em;
}

.dp-block-dentist-details-map.dd-map--style-map-only .map-container:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("./map-thumbnail.png") no-repeat center center;
  background-size: cover;
  cursor: pointer;
}
.dp-block-dentist-details-map.dd-map--style-map-only .map-container:empty::before {
  content: "View on Map";
  display: block;
  padding: 10px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  color: #5B5B5B;
  background: #D0D0D0;
}

.dd-map_info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
@media screen and (max-width: 767px) {
  .dd-map_info {
    padding: 0 1rem;
  }
}
.dd-map_info-dentist {
  width: calc(34% - 0.5rem);
}
@media screen and (max-width: 767px) {
  .dd-map_info-dentist {
    width: 100%;
  }
}
.dd-map_info-dentist h2 {
  margin: 0;
  font-weight: var(--wp--custom--body--typography--font-weight);
  font-size: 16px !important;
  line-height: 28px;
  color: #080709;
}
.dd-map_info-dentist p {
  margin: 0;
  font-weight: var(--wp--custom--heading--typography--font-weight);
  font-size: 20px !important;
  line-height: 32px;
  color: #080709;
}
.dd-map_info-card {
  width: calc(50% - 0.5rem);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 32px;
  background: #FFFFFF;
  box-shadow: 0px 1.2375px 7.85127px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
@media screen and (max-width: 767px) {
  .dd-map_info-card {
    width: 100%;
    gap: 2rem;
  }
}
.dd-map_info-card_addres {
  width: calc(50% - 0.5rem);
}
@media screen and (max-width: 767px) {
  .dd-map_info-card_addres {
    width: 100%;
  }
}
.dd-map_info-card_addres .practice-name {
  margin: 0;
  font-weight: var(--wp--custom--heading--typography--font-weight);
  font-size: 16px !important;
  line-height: 28px;
}
.dd-map_info-card_addres p:not(.practice-name) {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-weight: var(--wp--custom--body--typography--font-weight);
  font-size: 14px !important;
  line-height: 28px;
}
.dd-map_info-card_addres a {
  color: var(--wp--preset--color--primary);
  font-size: 14px !important;
  text-decoration: underline;
}
.dd-map_info-card_select {
  width: calc(50% - 0.5rem);
  display: flex;
  justify-content: flex-end;
  position: relative;
}
@media screen and (max-width: 767px) {
  .dd-map_info-card_select {
    width: 100%;
  }
}
.dd-map_info-card_select-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding: 0;
  border: 0;
  background-color: transparent;
  font-weight: var(--wp--custom--heading--typography--font-weight);
  font-size: 14px !important;
  line-height: 26px;
  color: var(--wp--preset--color--primary);
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .dd-map_info-card_select-button {
    width: 100%;
    justify-content: space-between;
  }
}
.dd-map_info-card_select-button span {
  position: relative;
}
.dd-map_info-card_select-button span::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background-color: var(--wp--preset--color--primary);
  overflow: hidden;
}
.dd-map_info-card_select-options {
  pointer-events: none;
  opacity: 0;
  width: 240%;
  max-width: 600px;
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: #FFFFFF;
  border-radius: 8px;
  z-index: 10;
  height: auto;
  max-height: 450px;
  padding: 40px 32px;
  box-shadow: 0px 1.2375px 7.85127px rgba(0, 0, 0, 0.3);
  transform: scale(0);
  transform-origin: top right;
  transition: transform 300ms ease-out, opacity 150ms ease-out;
  overflow-y: auto;
}
@media screen and (max-width: 767px) {
  .dd-map_info-card_select-options {
    width: 100%;
    min-width: calc(100vw - 64px);
    min-width: calc(100dvw - 64px);
  }
}
.dd-map_info-card_select-options.active {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
}
.dd-map_info-card_select-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 24px 0px;
  border-bottom: 2px solid var(--wp--preset--color--secondary-pearl);
}
.dd-map_info-card_select-option:last-child {
  border-bottom: 0;
}
.dd-map_info-card_select-option_address {
  width: calc(50% - 0.5rem);
}
.dd-map_info-card_select-option_address h3 {
  margin: 0;
  font-weight: var(--wp--custom--heading--typography--font-weight);
  font-size: 14px !important;
  line-height: 28px;
}
.dd-map_info-card_select-option_address p {
  margin: 0;
  font-weight: var(--wp--custom--body--typography--font-weight);
  font-size: 14px !important;
  line-height: 28px;
}
.dd-map_info-card_select-option_link {
  width: calc(50% - 0.5rem);
  text-align: center;
}
.dd-map_info-card_select-option_link .location-choice {
  font-weight: var(--wp--custom--body--typography--font-weight);
  font-size: 14px;
  line-height: 26px;
}
.dd-map_info-card_select-option_link .location-choice.location-selected {
  font-weight: var(--wp--custom--heading--typography--font-weight) !important;
}
.dd-map_close-button-box {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

.show-phone-dentist-container .show-phone-dentist {
  font-weight: var(--wp--custom--body--typography--font-weight);
  font-size: 14px !important;
  text-decoration: underline;
  color: var(--wp--preset--color--primary);
  cursor: pointer;
}
.show-phone-dentist-container .phone-dentist {
  display: none;
  font-weight: var(--wp--custom--heading--typography--font-weight);
  font-size: 14px !important;
}

.dd-map-marker {
  position: relative;
  transition: transform 0.2s ease-in-out;
  transform-origin: center;
  transform: scale(1);
}
.dd-map-marker:hover {
  transform: scale(2);
}
.dd-map-marker--primary {
  transform-origin: bottom center;
}
.dd-map-marker--primary:hover {
  transform: scale(1.5);
}
.dd-map-marker-info__title {
  width: calc(100% - 48px);
  font-weight: var(--wp--custom--heading--typography--font-weight);
  font-size: 14px !important;
  line-height: 1.5em;
  margin-bottom: 10px;
}
.dd-map-marker-info__address {
  font-weight: var(--wp--custom--body--typography--font-weight);
  font-size: 13px !important;
  line-height: 1.5em;
  margin-bottom: 10px;
}
.dd-map-marker-info .view-link a {
  font-size: 13px !important;
}
.dd-map-marker-info .view-link strong {
  font-weight: var(--wp--custom--heading--typography--font-weight) !important;
}

.gm-style .gm-style-iw-d {
  margin-top: -24px;
}

/* Compact style */
.dd-map--style-compact .dd-map {
  flex-direction: row;
}
.dd-map--style-compact .dd-map .dd-map_info-card {
  width: 100%;
  max-width: 500px;
}
.dd-map--style-compact .dd-map .dd-map_info,
.dd-map--style-compact .dd-map .map {
  flex: 1;
}
@media screen and (max-width: 767px) {
  .dd-map--style-compact .dd-map {
    flex-direction: column;
  }
}
