/* Bloc « À réserver autour » — fiches activité et pages catégorie (offres-proches.js) */

.offres-proches[hidden] { display: none; }

.op-liste {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.op-card { min-width: 0; }
.op-card__lien {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid #e3e6ea; border-radius: 10px; overflow: hidden; background: #fff;
    color: inherit; text-decoration: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.op-card__lien:hover { border-color: #cfd5db; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.op-card__lien:focus-visible { outline: 3px solid #9bd08a; outline-offset: 2px; }

.op-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: #eef1f4; overflow: hidden; }
.op-card__media--vide {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8f3e4 0%, #dfeaf3 100%); color: #8fb58a; font-size: 2rem;
}
.op-card__media .photo-credit {
    position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 1px 6px;
    font-size: .68rem; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .45);
    border-top-left-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.op-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.op-card__lien:hover .op-card__media img { transform: scale(1.04); }

.op-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.op-card__lieu { font-size: .8rem; color: #6b747d; }
.op-card__ville { text-transform: uppercase; letter-spacing: .02em; font-size: .76rem; }
.op-card__titre {
    font-weight: 600; font-size: .95rem; line-height: 1.3; color: #1d2329;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.op-card__note { font-size: .85rem; color: #4a535c; }
.op-card__note span[aria-hidden] { color: #f5a623; }
.op-card__nb { color: #7a838c; }
.op-card__prix { margin-top: auto; padding-top: 4px; font-size: .85rem; color: #6b747d; }
.op-card__prix strong { font-size: 1.1rem; color: #1d2329; white-space: nowrap; }

@media (max-width: 768px) {
    .op-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile : carrousel horizontal, une carte et demie visible */
@media (max-width: 576px) {
    .op-liste {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
        padding-bottom: 6px; margin-right: -16px; padding-right: 16px;
    }
    .op-card { flex: 0 0 68%; scroll-snap-align: start; }
}

/* Mention (la fiche n'a pas forcément la section « Réserver » et sa CSS) */
.offres-proches .offres-mention { margin: 10px 0 0; font-size: .8rem; line-height: 1.4; color: #7a838c; }
