
/* ── 360° panoramas ─────────────────────────────────────────
   Deliberately identical geometry to the photo grid in tab-overview.css
   (.fm2-media .images): four columns, 20px gap, 200px tall, 16px radius.
   A panorama then sits in the page as one more photo, which is also why the
   height is fixed rather than inherited — the sources are 2:1 strips. */
#fresh-makelaars .fm2-360-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

#fresh-makelaars .fm2-360-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  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 .fm2-360-item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  filter: grayscale(70%) brightness(0.72);
  transition: filter var(--fm2-transition, 0.25s ease), transform var(--fm2-transition, 0.25s ease);
}

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

#fresh-makelaars .fm2-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 .fm2-360-icon {
  width: 48px;
  height: 48px;
  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 var(--fm2-transition, 0.25s ease), transform var(--fm2-transition, 0.25s ease);
}

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

#fresh-makelaars .fm2-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 .fm2-360-item:focus-visible {
  outline: 2px solid var(--fm2-blue, #0073aa);
  outline-offset: 2px;
}

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

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

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

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

#fresh-makelaars .fm2-virtual-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--fm2-border, #dde1e7);
  border-radius: var(--fm2-radius, 8px);
  color: var(--fm2-text, #1a1f2e);
  text-decoration: none;
  transition: background var(--fm2-transition, 0.2s ease);
}

#fresh-makelaars .fm2-virtual-tour-link:hover,
#fresh-makelaars .fm2-virtual-tour-link:focus-visible {
  background: var(--fm2-blue-light, #e8f3fa);
}

/* ── 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.
   .fm2-section-title already carries its own 16px, so only the plain video
   heading needs one. */
#fresh-makelaars .fm2-media-tours,
#fresh-makelaars .fm2-media-external-tours,
#fresh-makelaars .fm2-media .videos {
  margin-top: 40px;
}

#fresh-makelaars .fm2-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 .fm2-media .video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

#fresh-makelaars .fm2-media .video-item {
  height: 200px;
  border-radius: 16px;
}
