﻿/* Sélecteur de langue en liens (indexables par Google) */
a.lang-btn { text-decoration: none; display: inline-block; }

/* Titre principal de la page cottage (h1) et titres de section */
.property-header h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 2.2rem; line-height: 1.2; color: var(--white); margin: 0; }
.sec-title { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.5rem; margin: 0 0 15px; }
.btn-avail { display: block; margin-top: 18px; color: var(--gold); font-weight: 600; font-size: .9rem; text-decoration: none; }
.btn-avail:hover { text-decoration: underline; }

/* ===== Présentation locale (Dinant et environs) ===== */
.local-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--light-grey); text-align: left; }
.local-section .local-intro { margin: 0 0 28px; max-width: 820px; }
.local-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 800px) { .local-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.local-section h3 { margin: 0 0 12px; font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); }
.local-section h4 { margin: 14px 0 2px; font-size: .95rem; font-weight: 600; color: var(--gold); }
.local-section p { margin: 0; font-weight: 300; }
.local-places { margin: 0; padding: 0; list-style: none; }
.local-places li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--light-grey); font-weight: 300; }
.local-places small { flex: none; color: var(--gold); font-weight: 600; font-size: .8rem; white-space: nowrap; }

/* ===== Disponibilités ===== */
.availability { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--light-grey); scroll-margin-top: 20px; }
.avail-intro { font-weight: 300; margin: 0 0 16px; }
.cal-price {
    display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 24px; padding: 10px 20px;
    border: 1px solid rgba(197,160,89,.5); border-radius: 999px; background: rgba(197,160,89,.12);
}
.cal-price-amount { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--gold); line-height: 1; }
.cal-price-unit { font-size: .9rem; opacity: .85; }
.cal-total { display: inline-block; margin-left: 4px; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: #000; font-weight: 700; }
.cal [hidden] { display: none !important; }
.cal-nav { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cal-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.3rem; cursor: pointer; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav button:hover:not(:disabled) { background: var(--gold); color: var(--emeraude); }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .cal-months { grid-template-columns: 1fr 1fr; } }
.cal-month h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin: 0 0 10px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--gold); padding-bottom: 4px; }
.cal-day {
    min-height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06); color: var(--white); font: inherit; font-size: .95rem; cursor: pointer;
}
.cal-day:not(:disabled):not(.na):not(.out-only):not(.blocked):hover { border-color: var(--gold); }
.cal-day.booked {
    color: rgba(255,255,255,.4); text-decoration: line-through; cursor: default;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, rgba(255,255,255,.12) 6px 7px);
}
/* Jours de bascule (départ 10 h / arrivée 16 h) : demi-case, coupée en diagonale. Matin en haut à gauche, après-midi en bas à droite. */
.cal-day.turn-out { background: linear-gradient(to bottom right, rgba(255,255,255,.2) calc(50% - .5px), rgba(197,160,89,.7) 50%, rgba(255,255,255,.06) calc(50% + .5px)); }   /* un voyageur part le matin */
.cal-day.turn-in  { background: linear-gradient(to bottom right, rgba(255,255,255,.06) calc(50% - .5px), rgba(197,160,89,.7) 50%, rgba(255,255,255,.2) calc(50% + .5px)); }   /* un voyageur arrive l'après-midi */
/* Pas cliquable à ce stade de la sélection (séjour trop court, nuit prise entre les deux…) : grisé, jamais barré */
.cal-day.na, .cal-day.blocked { opacity: .35; cursor: not-allowed; }
.cal-day.out-only { cursor: default; }
.cal-day.sel.na, .cal-day.sel-range.na { opacity: 1; }   /* le séjour choisi reste toujours lisible */   /* départ uniquement : on choisit d'abord l'arrivée */
.cal-day.past { opacity: .22; cursor: default; }
.cal-day.today { outline: 1px solid var(--gold); outline-offset: 1px; }
.cal-day.sel { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 600; text-decoration: none; }
.cal-day.sel-range { background: rgba(197,160,89,.35); border-color: rgba(197,160,89,.5); }
.cal-day:focus-visible { outline: 3px solid var(--white); outline-offset: 1px; }

.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 6px; padding: 0; font-size: .85rem; }
.cal-legend .sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 6px; vertical-align: -3px; border: 1px solid rgba(255,255,255,.25); }
.cal-legend .sw.free { background: rgba(255,255,255,.06); }
.cal-legend .sw.turn { background: linear-gradient(to bottom right, rgba(255,255,255,.06) calc(50% - .5px), rgba(197,160,89,.7) 50%, rgba(255,255,255,.3) calc(50% + .5px)); }
.cal-legend .sw.booked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 4px, rgba(255,255,255,.2) 4px 5px); }
.cal-legend .sw.sel { background: var(--gold); border-color: var(--gold); }
.cal-note { font-size: .8rem; font-weight: 300; opacity: .8; margin: 0 0 18px; }
.cal-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 28px; margin-bottom: 14px; font-weight: 600; }
.cal-reset { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.cal-cta { display: inline-block; cursor: pointer; border: 0; font-family: inherit; font-size: 1rem; }
.cal-airbnb { display: block; margin-top: 14px; color: var(--gold); font-size: .85rem; text-decoration: underline; }

/* ===== Fenêtre de demande de réservation ===== */
html.bk-open { overflow: hidden; }
.bk-modal {
    width: min(620px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 40px);
    padding: 0; border: 1px solid rgba(197,160,89,.35); border-radius: 20px;
    background: var(--emeraude-dark); color: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden;
}
.bk-modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.bk-modal[open] { animation: bk-in .25s ease-out; }
@keyframes bk-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bk-sheet { position: relative; max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 32px 30px; box-sizing: border-box; text-align: left; }
.bk-sheet [hidden] { display: none !important; }
.bk-close {
    position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.bk-close:hover { background: var(--gold); border-color: var(--gold); color: #000; }

/* En-tête : petite photo + nom du logement */
.bk-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.bk-head p { text-align: left; }
.bk-photo { flex: none; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.bk-place { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--gold); line-height: 1.2; }
.bk-where { margin: 2px 0 0; font-size: .82rem; font-weight: 300; opacity: .75; }

/* Résumé du séjour : arrivée → départ · nuits */
.bk-stay {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 12px;
    margin: 20px 0 26px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.bk-stay dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.bk-stay dd { margin: 0; font-weight: 600; line-height: 1.35; }
.bk-stay dd:first-letter { text-transform: uppercase; }
.bk-stay .bk-time { font-weight: 300; font-size: .78rem; opacity: .7; }
.bk-arrow { color: var(--gold); font-size: 1.2rem; }
.bk-nights {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
    padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; opacity: .95;
}
.bk-deposit { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; opacity: .85; }
.bk-deposit b { color: var(--gold); }
.bk-pay { margin: 4px 0 12px; font-weight: 300; line-height: 1.6; }
.bk-total {font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.bk-total strong { margin-left: 6px; font-family: 'Playfair Display', serif; font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--white); }

/* Formulaire */
.bk-form h3, .bk-done h3 { margin: 0 0 16px; font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.2rem; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.bk-form label { display: block; }
.bk-form label > span { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; opacity: .85; }
.bk-form input[type=text], .bk-form input[type=email], .bk-form input[type=tel], .bk-form select, .bk-form textarea {
    box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: var(--white);
    font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.bk-form select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c5a059' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.bk-form textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.bk-form ::placeholder { color: rgba(255,255,255,.35); }
.bk-form input:hover, .bk-form select:hover, .bk-form textarea:hover { border-color: rgba(255,255,255,.3); }
.bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus {
    outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(197,160,89,.22);
}
/* Voyageurs + bébé oui/non + animaux oui/non */
.bk-trio { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }   /* adultes | enfants, bébé | animaux */
.bk-yn { margin: 0; padding: 0; border: 0; min-width: 0; }
.bk-yn legend { padding: 0; margin-bottom: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; opacity: .85; white-space: nowrap; }
.bk-yn legend small { font-weight: 300; }
.bk-yn > div { display: flex; height: 48px; padding: 4px; box-sizing: border-box; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.bk-form .bk-yn label { flex: 1; position: relative; cursor: pointer; }
.bk-yn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-form .bk-yn label > span { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; border-radius: 9px; font-size: .9rem; opacity: .7; transition: background .2s, color .2s; }
.bk-yn input:checked + span { background: var(--gold); color: #000; opacity: 1; font-weight: 700; }
.bk-yn input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 1px; }

.bk-form label.invalid input, .bk-form label.invalid select { border-color: #ff8a80; }
.bk-form label.invalid > span, .bk-form label.invalid.bk-check { color: #ff8a80; }
.bk-form option { color: #000; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-policy { margin: 20px 0 14px; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.15); font-size: .82rem; }
.bk-policy strong { color: var(--gold); }
.bk-policy ul { margin: 6px 0 0; padding-left: 18px; font-weight: 300; line-height: 1.6; }
.bk-check { display: flex !important; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: .86rem; line-height: 1.5; cursor: pointer; }
.bk-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.bk-check a { color: var(--gold); }
.bk-error { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,138,128,.15); border: 1px solid #ff8a80; }
.bk-submit { width: 100%; margin-top: 18px; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.bk-submit:hover { transform: none; }
.bk-submit:disabled { opacity: .6; cursor: default; }
.bk-form .cal-note { margin: 12px 0 0; text-align: center; }
.bk-done { padding: 10px 0; text-align: center; }
.bk-done:focus { outline: none; }
.bk-spam { font-size: .85rem; font-weight: 300; opacity: .85; }
.bk-view { display: inline-block; margin-top: 6px; color: var(--gold); font-weight: 600; }
.bk-close-done { width: 100%; margin-top: 18px; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }

/* Mobile : plein écran */
@media (max-width: 600px) {
    .bk-modal { width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
    .bk-sheet { max-height: 100%; height: 100%; padding: 20px 18px 28px; }
    .bk-photo { width: 60px; height: 60px; border-radius: 12px; }
    .bk-place { font-size: 1.2rem; }
    .bk-stay { padding: 12px 14px; margin: 16px 0 22px; }
    .bk-grid { grid-template-columns: 1fr; }
}

