/* Bloc « Autres ventes à proximité » (maillage interne fiche↔fiche, SEO).
   Thème émeraude (cf. dossier_theme_emeraude.css). Cartes-liens légères et
   crawlables, sous le footer décision de la fiche. */

.vl-section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  border-top: 4px solid var(--em-emerald, #0c6e4e);
  background: var(--em-ivory-2, #f3eee2);
}

.vl-section__lead {
  margin: 0.45rem 0 0;
  max-width: 62ch;
  color: var(--em-muted, #6f7a72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.vl-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.vl-card {
  margin: 0;
}

.vl-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--em-paper, #fff);
  border: 1px solid var(--em-line, #d7ccb4);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.vl-card__link:hover,
.vl-card__link:focus-visible {
  border-color: var(--em-emerald, #0c6e4e);
  box-shadow: 0 6px 18px rgba(12, 110, 78, .12);
  transform: translateY(-2px);
  outline: none;
}

.vl-card__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--em-ivory-2, #efe9da);
}

.vl-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vl-card__phbg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 0.7rem/1 var(--f-mono, ui-monospace, monospace);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--em-muted-2, #6b746c);
  background: var(--em-ivory-2, #efe9da);
}

.vl-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem 0.85rem;
}

.vl-card__type {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--em-ink, #16201b);
}

.vl-card__ville {
  font-size: 0.8rem;
  color: var(--em-ink-2, #45524b);
}

.vl-card__map {
  margin-top: 0.15rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--em-emerald, #0c6e4e);
}

.vl-card__date {
  font-size: 0.72rem;
  color: var(--em-muted-2, #6b746c);
}

@media (max-width: 720px) {
  .vl-section {
    margin-top: 28px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  /* Rail distinct du corps du dossier : l'aperçu de la carte suivante rend le
     défilement évident et évite six grandes cartes empilées. */
  .vl-grid {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .vl-grid::-webkit-scrollbar { display: none; }
  .vl-card {
    flex: 0 0 min(78vw, 286px);
    scroll-snap-align: start;
  }
  .vl-card__link { background: #fff; }
  .vl-card__photo { aspect-ratio: 16 / 9; }
  .vl-card__body { padding: 10px 11px 12px; }
  .vl-card__type { font-size: 0.86rem; }
}
