
/* ── 360° panoramas ─────────────────────────────────────────
   Sized like the photo grid above (.media .images): four columns, same gap,
   so a panorama reads as one more photo instead of a full-width strip.
   Panoramas are equirectangular (2:1), so the tile fixes its own ratio rather
   than letting the source dictate a short, wide row. */
#fresh-makelaars .media .images-360-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

@media (max-width: 1024px) {
  #fresh-makelaars .media .images-360-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

#fresh-makelaars .images-360-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

/* Held back so the 360° marker is what the eye lands on, and so the tile
   plainly does something other than open a photo. */
#fresh-makelaars .images-360-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%) brightness(0.72);
  transition: filter 0.25s ease, transform 0.25s ease;
}

#fresh-makelaars .images-360-item:hover img,
#fresh-makelaars .images-360-item:focus-visible img {
  filter: grayscale(0) brightness(0.9);
  transform: scale(1.03);
}

#fresh-makelaars .images-360-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  /* The label must never eat the click; the tile itself is the trigger. */
  pointer-events: none;
}

#fresh-makelaars .images-360-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.25s ease;
}

#fresh-makelaars .images-360-item:hover .images-360-icon,
#fresh-makelaars .images-360-item:focus-visible .images-360-icon {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.08);
}

#fresh-makelaars .images-360-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

#fresh-makelaars .images-360-item:focus-visible {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #fresh-makelaars .media .images-360-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fresh-makelaars .images-360-item img,
  #fresh-makelaars .images-360-icon {
    transition: none;
  }

  #fresh-makelaars .images-360-item:hover img,
  #fresh-makelaars .images-360-item:focus-visible img {
    transform: none;
  }
}

#fresh-makelaars .virtual-tour-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

#fresh-makelaars .virtual-tour-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  color: #1a1f2e;
  text-decoration: none;
}

#fresh-makelaars .virtual-tour-link:hover,
#fresh-makelaars .virtual-tour-link:focus-visible {
  background: #f1f3f5;
}

/* ── Section spacing ────────────────────────────────────────
   The photo grid otherwise runs straight into the 360°/tour/video blocks. Set on
   the following sections rather than as a margin-bottom on the grid above, so the
   gap is one value no matter which of these an object actually has. */
#fresh-makelaars .media .images-360,
#fresh-makelaars .media .virtual-tours,
#fresh-makelaars .media .videos {
  margin-top: 40px;
}

#fresh-makelaars .media .images-360 h3,
#fresh-makelaars .media .virtual-tours h3,
#fresh-makelaars .media .videos h3 {
  margin: 0 0 16px;
}

/* ── Videos ─────────────────────────────────────────────────
   The tab renders play tiles, not <video> elements, so a 200MB file is never
   fetched just because someone opened the tab. Geometry deliberately matches the
   360° grid above, which matches the photo grid — one shape for the whole tab.
   The tile's surface lives in video-overlay.css. */
#fresh-makelaars .media .video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

@media (max-width: 1024px) {
  #fresh-makelaars .media .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #fresh-makelaars .media .video-grid {
    grid-template-columns: 1fr;
  }
}

#fresh-makelaars .media .video-item {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}
