/* ============================================================
   hotel-card.css — carte HOTEL partagée (general/hotel-card.php)
   Pages-listes (modèle hotels-list) et placeholder {{hotel-card:slug}}
   du modèle article. Carte entièrement cliquable (lien étiré sur le
   nom), photos en défilement horizontal (scroll-snap), bouton affilié
   au-dessus du lien étiré.
   ============================================================ */
.hcard {
    --hc-ink: #0f172a; --hc-muted: #64748b; --hc-line: #e6e8ee; --hc-star: #f5a623;
    --hc-accent: var(--button-color, #2563eb); --hc-accent-hover: var(--button-color-hover, #1e4fd0);
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid var(--hc-line); border-radius: 16px; overflow: hidden;
    color: var(--hc-ink); transition: box-shadow .18s, transform .18s;
}
.hcard:hover, .hcard.is-active { box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }
.hcard.is-active { outline: 2px solid var(--hc-accent); outline-offset: -2px; }

/* ---- photos ---- */
.hcard-media { position: relative; aspect-ratio: 4 / 3; background: #eef1f6; overflow: hidden; }
.hcard-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hcard-track::-webkit-scrollbar { display: none; }
.hcard-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.hcard-slide picture, .hcard-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcard-nav {
    position: absolute; top: 50%; z-index: 3; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--hc-ink); font-size: 22px; line-height: 30px; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .15s;
}
.hcard-prev { left: 10px; } .hcard-next { right: 10px; }
.hcard:hover .hcard-nav, .hcard-nav:focus-visible { opacity: 1; }
@media (hover: none) { .hcard-nav { display: none; } }
.hcard-dots { position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.hcard-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.hcard-dots i.on { background: #fff; }

/* ---- texte ---- */
.hcard-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: .85rem 1rem 1rem; }
.hcard-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.hcard-badges { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.hcard-badge { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-muted); background: #f1f4f9; border-radius: 6px; padding: .18rem .45rem; }
.hcard-stars { display: inline-flex; gap: 1px; }
.hcard-stars svg { width: 13px; height: 13px; fill: var(--hc-star); }
.hcard-rating { display: inline-flex; align-items: center; gap: .25rem; font-size: .88rem; white-space: nowrap; }
.hcard-rating svg { width: 14px; height: 14px; fill: var(--hc-ink); }
.hcard-rating span { color: var(--hc-muted); font-size: .8rem; }
.hcard-name { font-size: 1.05rem; line-height: 1.3; margin: .1rem 0 0; font-weight: 700; }
.hcard-link { color: inherit; text-decoration: none; }
.hcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* carte entièrement cliquable */
.hcard-link:focus-visible { outline: none; }
.hcard-link:focus-visible::after { outline: 2px solid var(--hc-accent); outline-offset: -2px; border-radius: 16px; }
.hcard-loc { margin: 0; font-size: .86rem; color: var(--hc-muted); }
.hcard-tag { margin: .1rem 0 0; font-size: .9rem; line-height: 1.45; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .55rem; }
.hcard-price { font-size: .86rem; color: var(--hc-muted); }
.hcard-price strong { color: var(--hc-ink); font-size: 1.02rem; }
.hcard-cta {
    position: relative; z-index: 2; flex: 0 0 auto; padding: .5rem .9rem; border-radius: 999px;
    background: var(--hc-accent); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.hcard-cta:hover { background: var(--hc-accent-hover); color: #fff; }
.hcard-media .hcard-nav, .hcard-track { position: relative; z-index: 2; }   /* photos défilables malgré le lien étiré */
.hcard-nav { position: absolute; }

/* ---- variante large (placeholder {{hotel-card:}} dans un article) ---- */
.hcard--wide { margin: 1.2rem 0 1.6rem; }
@media (min-width: 700px) {
    .hcard--wide { flex-direction: row; }
    .hcard--wide .hcard-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 230px; }
    .hcard--wide .hcard-body { padding: 1.1rem 1.3rem; }
    .hcard--wide .hcard-tag { -webkit-line-clamp: 3; }
}

/* ---- dans un article : neutralise la typographie du corps de texte (liens soulignés, grands paragraphes) ---- */
.article-content .hcard a { text-decoration: none; }
.article-content .hcard .hcard-link, .article-content .hcard .hcard-link:hover { color: inherit; }
.article-content .hcard .hcard-cta, .article-content .hcard .hcard-cta:hover { color: #fff; }
.article-content .hcard p { margin: 0; font-size: .9rem; line-height: 1.45; }
.article-content .hcard .hcard-loc { font-size: .86rem; color: var(--hc-muted); }
.article-content .hcard .hcard-tag { margin-top: .1rem; color: #334155; }
.article-content .hcard .hcard-name { margin: .1rem 0 0; font-size: 1.08rem; line-height: 1.3; }
