:host {
  display: block;
  width: 100%;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(20rem, 1.45fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.75rem);
  width: 100%;
  color: #666666;
  font-weight: 400;
}

.contact-page__details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.contact-page__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease;

  i {
    width: 0.9rem;
    color: inherit;
    font-size: 0.875rem;
    text-align: center;
    transition: color 150ms ease;
  }

  &:hover,
  &:focus-visible,
  &:active {
    color: var(--color-primary);
  }

  &:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
  }
}

.contact-page__location {
  margin-top: 0.15rem;

  & + & {
    margin-top: 1rem;
  }
}

.contact-page__location-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.3rem;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;

  i {
    width: 0.9rem;
    font-size: 0.875rem;
    text-align: center;
  }
}

.contact-page__addresses {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding-left: 2.3rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
}

.contact-page__empty {
  margin: 0;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
}

.contact-page__map {
  display: block;
  min-width: 0;

  &::ng-deep .location-map {
    min-height: clamp(15rem, 26vw, 20rem);
    border-radius: 0.25rem;
    filter: saturate(0.72) contrast(0.96);
  }
}

@media (max-width: 991.98px) {
  .contact-page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767.98px) {
  .contact-page__details {
    align-items: center;
    text-align: center;
  }

  .contact-page__location {
    width: 100%;
  }

  .contact-page__location-title {
    justify-content: center;
  }

  .contact-page__addresses {
    padding-left: 0;
    list-style-position: inside;
  }
}

@media (max-width: 575.98px) {
  .contact-page__map::ng-deep .location-map {
    min-height: 16rem;
  }
}
