/* ══════════════════════════════════════════════════════════════
   Opera Prestige — chalet-extra.css
   À placer dans : /wp-content/themes/uncode-child/css/chalet-extra.css
   Chargé par inc-chalet.php uniquement sur is_singular('chalet').

   Ne style QUE les blocs propres à la montagne. Tout le reste de la
   fiche réutilise les classes .vp- déjà définies dans le thème enfant.
   Palette alignée sur les pages villa : fond sombre, or #c9a96e,
   crème #f7f4f0, Cormorant Garamond + Inter.
══════════════════════════════════════════════════════════════ */

.cp-page .cp-access__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    margin-top: 36px;
    background: rgba(201, 169, 110, .18);
    border: 1px solid rgba(201, 169, 110, .18);
}

.cp-page .cp-access__item {
    background: #0f0f0f;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-page .cp-access__k {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #c9a96e;
}

.cp-page .cp-access__v {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    color: #f7f4f0;
}

/* ── Tarifs par saison ─────────────────────────────────────── */

.cp-page .cp-rates__wrap {
    margin-top: 36px;
    overflow-x: auto;
    border: 1px solid rgba(201, 169, 110, .18);
}

.cp-page table.cp-rates {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    color: #f7f4f0;
    background: #0f0f0f;
}

.cp-page table.cp-rates th {
    text-align: left;
    padding: 16px 20px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #c9a96e;
    background: rgba(201, 169, 110, .06);
    border-bottom: 1px solid rgba(201, 169, 110, .18);
    white-space: nowrap;
}

.cp-page table.cp-rates td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(201, 169, 110, .10);
    vertical-align: top;
    line-height: 1.55;
}

.cp-page table.cp-rates tbody tr:last-child td {
    border-bottom: none;
}

.cp-page .cp-rates__price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #f7f4f0;
}

.cp-page .cp-rates__note {
    color: #b9b4ad;
    font-size: 13px;
    font-weight: 300;
}

.cp-page .cp-rates__legal {
    margin-top: 18px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(247, 244, 240, .45);
    max-width: 62ch;
}

/* ── Chalets similaires ────────────────────────────────────── */

.cp-page .cp-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.cp-page .cp-related__card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f0f0f;
    border: 1px solid rgba(201, 169, 110, .14);
    text-decoration: none;
    color: inherit;
    transition: border-color .4s ease;
}

.cp-page .cp-related__card:hover,
.cp-page .cp-related__card:focus-visible {
    border-color: rgba(201, 169, 110, .45);
}

.cp-page .cp-related__card:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

.cp-page .cp-related__card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}

.cp-page .cp-related__card:hover img {
    transform: scale(1.04);
}

.cp-page .cp-related__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cp-page .cp-related__tag {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #c9a96e;
}

.cp-page .cp-related__name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    line-height: 1.15;
    color: #f7f4f0;
}

.cp-page .cp-related__meta {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12.5px;
    font-weight: 300;
    color: #b9b4ad;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .cp-page .cp-access__item { padding: 18px 20px; }
    .cp-page .cp-access__v { font-size: 19px; }
    .cp-page table.cp-rates th,
    .cp-page table.cp-rates td { padding: 14px 16px; }
    .cp-page .cp-related__card img { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-page .cp-related__card img,
    .cp-page .cp-related__card { transition: none; }
    .cp-page .cp-related__card:hover img { transform: none; }
}
