.app-google-map-section {
  width: 100%;
  padding-block: var(--app-section-block-padding, 4rem);
  padding-inline: 5vw;
}

.app-google-map-section__intro,
.app-google-map-section__body {
  width: 100%;
}

.app-google-map-section__intro {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.app-google-map-section__body > :last-child,
.app-google-map-section__fallback > :last-child {
  margin-bottom: 0;
}

.app-google-map-section__frame {
  position: relative;
  width: 100%;
  height: clamp(28rem, 58vh, 45rem);
  overflow: hidden;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: max(var(--border-radius2x, 0.9rem), 0.9rem);
  background: #eef2f5;
  box-shadow: 0 24px 60px -42px rgba(18, 52, 64, 0.55);
}

.app-google-map-section__canvas,
.app-google-map-section__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-google-map-section__fallback {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, #f6f8fa, #e8eef3);
  color: #46515c;
  text-align: center;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.app-google-map-section__fallback a {
  font-weight: 600;
}

.app-google-map-section__frame[data-map-state="ready"] .app-google-map-section__fallback {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.app-google-map-section__frame[data-map-state="fallback"] .app-google-map-section__canvas,
.app-google-map-section__frame[data-map-state="error"] .app-google-map-section__canvas {
  display: none;
}

.app-google-map-section--overlay-info-card {
  padding: 0;
}

.app-google-map-section--compact-card {
  padding: 0;
}

.app-google-map-section--compact-card .app-google-map-section__frame {
  height: clamp(15rem, 24vw, 19rem);
  border: 0;
  border-top: 1px solid var(--app-color-border, rgba(33, 37, 41, 0.12));
  border-radius: 0 0 1rem 1rem;
  box-shadow: none;
}

.app-google-map-section--height-compact { --app-google-map-stage-height: 32rem; }
.app-google-map-section--height-standard { --app-google-map-stage-height: 39.375rem; }
.app-google-map-section--height-tall { --app-google-map-stage-height: 46rem; }

.app-google-map-section__stage {
  position: relative;
  min-height: var(--app-google-map-stage-height, 39.375rem);
}

.app-google-map-section--overlay-info-card .app-google-map-section__frame {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-google-map-section__overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.app-google-map-section__overlay-container,
.app-google-map-section__overlay-layout {
  height: 100%;
}

.app-google-map-section__overlay-layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.app-google-map-section__overlay-layout--position-end {
  justify-content: flex-end;
}

.app-google-map-section__overlay-layout--vertical-start { align-items: flex-start; }
.app-google-map-section__overlay-layout--vertical-end { align-items: flex-end; }

.app-google-map-section__card-slot {
  width: 100%;
  pointer-events: auto;
}

.app-google-map-section__card-slot--sm { max-width: 24rem; }
.app-google-map-section__card-slot--md { max-width: 31rem; }
.app-google-map-section__card-slot--lg { max-width: 39rem; }

.app-google-map-section__info-card {
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: max(var(--border-radius2x, 0.9rem), 0.9rem);
  box-shadow: 0 28px 68px -28px rgba(18, 52, 64, 0.68);
}

.app-google-map-section__info-card .app-general-column__title,
.app-google-map-section__info-card h3,
.app-google-map-section__info-card h4,
.app-google-map-section__info-card h5,
.app-google-map-section__info-card h6,
.app-google-map-section__info-card p {
  color: inherit;
}

.app-google-map-section__info-card a[href^="tel:"] {
  color: var(--primary);
}

.app-google-map-section__fallback--with-card {
  align-items: flex-end;
  padding-inline: max(5vw, calc((100vw - 1140px) / 2));
  text-align: end;
}

.app-google-map-info-window {
  min-width: 13rem;
  padding: 0.2rem 0.15rem;
  color: #212529;
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

.app-google-map-info-window__title {
  display: block;
  margin-bottom: 0.25rem;
  color: #212529;
  font-size: 1rem;
  font-weight: 700;
}

.app-google-map-info-window__address {
  margin: 0 0 0.65rem;
  color: #495057;
  font-size: 0.875rem;
  font-style: normal;
}

.app-google-map-info-window__directions {
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.app-google-map-info-window__directions:hover,
.app-google-map-info-window__directions:focus-visible {
  color: #174ea6;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .app-google-map-section__frame {
    height: clamp(20rem, 50vh, 28rem);
  }

}

@media (max-width: 991.98px) {
  .app-google-map-section__stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .app-google-map-section--overlay-info-card .app-google-map-section__frame {
    position: relative;
    order: 2;
    height: clamp(20rem, 50vh, 30rem);
  }

  .app-google-map-section__overlay {
    position: relative;
    order: 1;
    background: var(--app-color-surface, #fff);
    pointer-events: auto;
  }

  .app-google-map-section__overlay-layout {
    padding-block: clamp(2rem, 7vw, 3.5rem);
  }

  .app-google-map-section__card-slot {
    max-width: none;
  }

  .app-google-map-section__info-card {
    border: 0;
    box-shadow: none;
  }

  .app-google-map-section__fallback--with-card {
    align-items: center;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
  }
}
