/* Dynamic Property Card (288885cf) — image plein cadre, infos overlay, desc au survol */
.pc-288885cf {
    --pc-accent: #0F6E56;
    --pc-title: #ffffff;
    --pc-text: rgba(255,255,255,.92);
    --pc-muted: rgba(255,255,255,.72);
    --pc-hover-dark: .96;
    position: relative;
    height: 460px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
}

/* image de fond */
.pc-bg-288885cf {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.pc-288885cf:hover .pc-bg-288885cf { transform: scale(1.06); }

/* dégradé bas pour lisibilité */
.pc-grad-288885cf {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 32%, rgba(0,0,0,0) 62%);
    transition: background .35s ease;
}
.pc-288885cf:hover .pc-grad-288885cf {
    background: linear-gradient(to top,
        rgba(0,0,0, var(--pc-hover-dark)) 0%,
        rgba(0,0,0, calc(var(--pc-hover-dark) * .8)) 40%,
        rgba(0,0,0, calc(var(--pc-hover-dark) * .52)) 70%,
        rgba(0,0,0, calc(var(--pc-hover-dark) * .33)) 100%);
}

/* lien plein carte */
.pc-link-288885cf { position: absolute; inset: 0; z-index: 2; }

/* badge */
.pc-badge-288885cf {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: var(--pc-accent); font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* actions (galerie + voir) — apparaissent au survol */
.pc-actions-288885cf {
    position: absolute; top: 12px; right: 12px; z-index: 4;
    display: flex; align-items: center; gap: 8px;
    opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease;
}
.pc-288885cf:hover .pc-actions-288885cf { opacity: 1; transform: translateY(0); }
.pc-gal-288885cf, .pc-view-288885cf {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #1e293b; border: none; border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.pc-gal-288885cf { width: 40px; height: 40px; justify-content: center; padding: 0; }
.pc-view-288885cf { height: 40px; padding: 0 16px; color: var(--pc-accent); }
.pc-gal-288885cf:hover, .pc-view-288885cf:hover { background: #fff; }
.pc-actions-288885cf .pc-ic-288885cf { width: 18px; height: 18px; }

/* infos overlay bas */
.pc-info-288885cf {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 18px 20px 20px; color: var(--pc-text); pointer-events: none;
}
.pc-crumb-288885cf { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--pc-muted); margin-bottom: 6px; }
.pc-title-288885cf { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--pc-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-288885cf:hover .pc-title-288885cf { white-space: normal; overflow: visible; text-overflow: clip; }
.pc-project-288885cf { font-size: 13px; font-weight: 500; color: var(--pc-text); margin-top: 3px; opacity: .95; }
.pc-loc-288885cf { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--pc-text); margin-top: 6px; }
.pc-loc-288885cf span { display: inline-flex; align-items: center; gap: 6px; }
.pc-ic-288885cf { width: 16px; height: 16px; flex: 0 0 auto; }
.pc-loc-288885cf .pc-ic-288885cf { color: #fff; }

/* description : révélée au survol */
.pc-desc-288885cf {
    margin: 0; font-size: 13px; line-height: 1.55; color: var(--pc-text);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}
.pc-288885cf:hover .pc-desc-288885cf { max-height: 120px; opacity: 1; margin-top: 8px; }

/* pied : sans dates = prix + pills (comme image 1) ; avec dates = prix, puis pills à gauche + Réserver à droite */
.pc-foot-288885cf { margin-top: 12px; }
.pc-foot-row-288885cf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-foot-dates-288885cf { display: flex; flex-direction: column; gap: 8px; }
.pc-dates-row-288885cf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-dates-row-288885cf .pc-book-288885cf { margin-left: auto; }
.pc-amount-288885cf { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.pc-per-288885cf { font-size: 13px; font-weight: 500; color: var(--pc-muted); }
.pc-sub-288885cf { display: block; font-size: 12px; color: var(--pc-muted); margin-top: 2px; }
.pc-specs-288885cf {
    display: inline-flex; width: fit-content; max-width: 100%; gap: 12px; font-size: 13px; font-weight: 500; color: #fff;
    background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    border-radius: 10px; padding: 7px 11px;
    opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.pc-288885cf:hover .pc-specs-288885cf { opacity: 1; transform: translateY(0); }
.pc-specs-288885cf span { display: inline-flex; align-items: center; gap: 5px; }
.pc-specs-288885cf .pc-ic-288885cf { color: #fff; }

/* Bouton Réserver (Vacances + dates) — cliquable au-dessus du lien carte */
.pc-info-288885cf a, .pc-info-288885cf button { pointer-events: auto; }
.pc-book-288885cf {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--pc-accent); color: #fff; text-decoration: none;
    font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .2s ease, filter .2s ease;
}
.pc-book-288885cf:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pc-book-288885cf .pc-ic-288885cf { width: 16px; height: 16px; }

/* ---- Responsive (largeur de carte) : évite que badge et boutons se touchent ---- */
@container (max-width: 320px) {
    .pc-view-288885cf span { display: none; }
    .pc-view-288885cf { width: 40px; padding: 0; justify-content: center; }
    .pc-actions-288885cf { gap: 6px; }
    .pc-badge-288885cf { font-size: 11px; padding: 5px 11px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pc-title-288885cf { font-size: 18px; }
}
@container (max-width: 240px) {
    .pc-actions-288885cf .pc-view-288885cf { display: none; }
}

/* ---- Lightbox galerie ---- */
.pc-lb-288885cf {
    position: fixed; inset: 0; z-index: 99999; display: none;
    background: rgba(0,0,0,.9); align-items: center; justify-content: center;
}
.pc-lb-288885cf.is-open { display: flex; }
.pc-lb-288885cf img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.pc-lb-close-288885cf, .pc-lb-prev-288885cf, .pc-lb-next-288885cf {
    position: absolute; background: rgba(255,255,255,.15); color: #fff; border: none; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.pc-lb-close-288885cf { top: 20px; right: 20px; }
.pc-lb-prev-288885cf { left: 20px; top: 50%; transform: translateY(-50%); }
.pc-lb-next-288885cf { right: 20px; top: 50%; transform: translateY(-50%); }
.pc-lb-close-288885cf:hover, .pc-lb-prev-288885cf:hover, .pc-lb-next-288885cf:hover { background: rgba(255,255,255,.28); }
.pc-lb-count-288885cf { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }
.pc-lb-288885cf svg { width: 22px; height: 22px; }
