footer {
  grid-template-columns: minmax(440px, 2fr) minmax(170px, 1fr) minmax(160px, 1fr);
  align-items: start;
}

.footer-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 24px;
  align-items: start;
}

.map-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: #eadfc8 url("images/map-placeholder.svg") center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.map-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(0.82) contrast(0.96);
}

.map-preview-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.map-preview-link:focus {
  outline: 0;
}

.map-preview-link:focus-visible {
  outline: 3px solid #ffd34e;
  outline-offset: -5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.social-icon:active {
  transform: scale(0.94);
}

.social-icon:focus {
  outline: 0;
}

.social-icon:focus-visible {
  outline: 3px solid #ffd34e;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-location {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  footer {
    grid-template-columns: 1fr;
  }

  .footer-location {
    grid-template-columns: 1fr;
  }

  .map-preview {
    width: min(100%, 320px);
  }

  .footer-contact {
    gap: 16px;
  }
}

@media print {
  .map-preview,
  .social-icon {
    display: none;
  }
}
