/* Location layout: photos first, a compact map, and no stretched columns. */
#ubicacion .store-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
#ubicacion .section-heading { margin-bottom: 16px; }
#ubicacion .store-location-info { min-width: 0; }
#ubicacion .store-location-info h3 { margin-bottom: 8px; }
#ubicacion .store-location-info > p { margin-bottom: 8px; line-height: 1.5; }
#ubicacion .store-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
#ubicacion .store-location-actions a { width: auto; min-height: 44px; }
#ubicacion .store-map { align-self: start; }
#ubicacion .store-map iframe {
  flex: none;
  height: 280px;
  min-height: 0;
}
#ubicacion .store-map > a { padding: 10px 14px; }

.store-photos {
  display: block;
  margin-top: 10px;
  max-width: none;
  width: 100%;
  min-width: 0;
}
.store-photos[hidden] { display: none; }
.store-photos .store-photo {
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.store-photo-row { position: relative; }
.store-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  touch-action: pan-y pinch-zoom;
  background: #f3ece5;
}
.store-photos .store-photo-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
}
/* Preserve a useful original photo while the catalogue is loading. */
.store-photos .store-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #f3ece5;
}
.store-photos .store-photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #493b33;
  cursor: pointer;
}
.store-photo-arrow:first-child { left: 2px; }
.store-photo-arrow:last-child { right: 2px; }
.store-photo-arrow svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px #ffffffd9);
}
.store-photos .store-photo-arrow[hidden] { display: none; }
.store-photo-arrow:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.store-photos .store-photo figcaption {
  height: 3.2em;
  overflow: auto;
  padding: 6px 8px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #695440;
}
.store-photos .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 651px) {
  #ubicacion { padding: 32px 5%; }
  .store-photo-frame, .store-photos .store-photo > img { aspect-ratio: 1 / 1; }
}
@media (min-width: 900px) and (orientation: landscape) {
  #ubicacion .store-location-grid {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    grid-template-areas: "info info" "photos map";
    align-items: stretch;
    gap: 16px 20px;
  }
  #ubicacion .store-location-info { grid-area: info; }
  #ubicacion #storePhotos { grid-area: photos; margin-top: 0; }
  #ubicacion .store-map { grid-area: map; align-self: stretch; min-height: 0; }
  #ubicacion .store-map iframe { flex: 1; height: 0; min-height: 0; }
  #ubicacion .store-photo-frame,
  #ubicacion .store-photos .store-photo > img {
    aspect-ratio: auto;
    height: clamp(340px, 35vw, 540px);
  }
  #ubicacion .store-location-grid:has(#storePhotos[hidden]) .store-map {
    grid-column: 1 / -1;
    height: 360px;
  }
}
