/* Styles propres a la page (repris du prototype v5) */
/* Stays page: choose a place, then a room. French Polynesia is open; the three next
   destinations are teased (blurred photo, teaser name, waitlist). The booking engine follows
   the booking spec V2 (rates, tiers, promos, meals and hours, 3rd guest, extra bed in Hotu only, Discover). */

/* Search bar on the hero's edge (same pattern as the homepage finder) */
.finder { position: relative; z-index: 5; margin-top: -56px; }
.finder form { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-lg); background: var(--glass); color: var(--glass-text); border: 1px solid var(--nav-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finder .field--wide, .finder .btn { grid-column: 1 / -1; }
@media (min-width: 1100px) { .finder form { grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)) auto; border-radius: var(--pill); padding: 8px 8px 8px 12px; } .finder .field--wide, .finder .btn { grid-column: auto; } }
.finder .btn { min-height: 56px; }
.finder__alt { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; margin-top: 14px; font-size: 14px; color: var(--text-soft); text-align: center; }
/* Destinations */
.dests { padding-block: clamp(88px, 10vw, 130px) 0; }
.dests__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 32px; padding-bottom: 6px; }
.dests__row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .dests__row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.dcard { position: relative; scroll-snap-align: start; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; color: #EEE8E1; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; isolation: isolate; background: #083E4B; }
.dcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter 1s var(--ease); }
.dcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,41,44,.1) 20%, rgba(0,41,44,.86) 100%); }
.dcard:hover > img { transform: scale(1.05); }
.dcard--locked > img { filter: blur(3px) saturate(1.05); transform: scale(1.06); }
.dcard--locked:hover > img { filter: blur(1.5px) saturate(1.05); transform: scale(1.08); }
.dcard__body { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; min-width: 0; }
.dcard h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.02; color: #EEE8E1; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.dcard p { font-size: 15px; color: rgba(238,232,225,.92); }
.dcard .dest-lock { width: 44px; height: 44px; }
.dcard__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--pill); background: #EEE8E1; color: #083E4B; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }
.dcard__go svg { width: 16px; height: 16px; }
.dcard__go--ghost { background: rgba(0,41,44,.35); color: #EEE8E1; border: 1px solid rgba(238,232,225,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dcard .waitlist { background: rgba(251,249,246,.95); border-color: transparent; }
.dcard .waitlist input { color: #00292C; }
.dcard .waitlist .btn { background: #083E4B; color: #EEE8E1; }
.dcard .waitlist__ok { color: #EEE8E1; font-size: 13px; margin-top: 0; }
.dcard .guess { display: flex; gap: 6px; width: 100%; max-width: 100%; box-sizing: border-box; padding: 5px; border-radius: var(--pill); background: rgba(251,249,246,.95); }
.dcard .guess input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: none; padding: 0 12px; font: inherit; font-size: 16px; color: #00292C; }
.dcard .guess input:focus { outline: none; }
.dcard .guess .btn { flex: none; min-height: 42px; padding: 0 18px; background: #083E4B; color: #EEE8E1; }
.dcard .guess__ok { font-size: 13px; color: #EEE8E1; }
.dcard .guess__ok:empty { display: none; }
.amen { padding-block: clamp(72px, 8vw, 110px); }
.amen__grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.amen__grid li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; padding: 18px 20px; border-radius: var(--r-md); background: var(--bg-alt); }
.amen__grid svg { width: 24px; height: 24px; grid-row: span 2; color: var(--heading); }
.amen__grid b { font-weight: 500; color: var(--heading); }
.amen__grid span { font-size: 14px; color: var(--text-soft); }
.finder__disc { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 0; padding: 0 8px; font-size: 14px; color: var(--text-soft); text-align: center; }
.finder__disc svg { width: 18px; height: 18px; flex: none; }
.finder__disc .textlink { min-height: 32px; margin-left: 6px; }
.finder__disc.is-on { color: var(--heading); font-weight: 500; }
.finder input.is-reserved { box-shadow: inset 0 0 0 2px #B08A5C; border-radius: 8px; }

/* French Polynesia */
.fp { padding-block: clamp(96px, 11vw, 150px) clamp(64px, 8vw, 100px); }
.fp__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .fp__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; } }
.fp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; width: 100%; }
.fact { padding: 16px; border-radius: var(--r-md); background: var(--bg-alt); display: grid; gap: 2px; align-content: start; }
.fact b { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--heading); }
.fact span { font-size: 14px; line-height: 1.35; color: var(--text-soft); }
/* Rate ladder */
.ladder { position: relative; background: var(--band); color: var(--on-band); padding-block: clamp(56px, 7vw, 90px) clamp(80px, 9vw, 120px); }
.ladder__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .ladder__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; height: 300px; }
.step { container-type: inline-size; position: relative; height: var(--h); border-radius: var(--r-md) var(--r-md) 6px 6px; background: rgba(238,232,225,.1); border: 1px solid rgba(238,232,225,.2); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.step b { font-family: var(--serif); font-weight: 500; font-size: min(clamp(24px, 3vw, 38px), 26cqi); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.step small { display: block; font-size: 12px; color: var(--on-band-soft); margin-top: 4px; }
.step span { font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.step.is-on { background: #CFB99C; color: #00292C; border-color: #CFB99C; transform: translateY(-6px); }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; align-items: stretch; } .step { height: auto; min-height: 150px; gap: 28px; } .step.is-on { transform: none; } }
.step.is-on small { color: #2F3B3C; }
.ladder__note { margin-top: 18px; font-size: 14px; color: var(--on-band-soft); }
.ladder__you { margin-top: 10px; font-size: 16px; color: var(--on-band); min-height: 1.6em; }

/* Rooms */
.rooms { padding-block: clamp(72px, 9vw, 120px); }
.rooms__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; }
.rooms__query { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; color: var(--text-soft); }
.rooms__query b { color: var(--heading); font-weight: 500; }
.rooms__notes { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.gal { position: relative; aspect-ratio: 4 / 3; background: #083E4B; }
.gal__track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gal__nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 6px; }
.gal__nav button { width: 40px; height: 40px; border-radius: 6px; border: 0; background: rgba(251,249,246,.9); color: #083E4B; display: grid; place-items: center; cursor: pointer; }
.gal__nav button svg { width: 18px; height: 18px; }
.gal__dots { position: absolute; left: 14px; bottom: 26px; display: flex; gap: 6px; }
.gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(238,232,225,.55); transition: transform .3s, background-color .3s; }
.gal__dots i.is-on { background: #EEE8E1; transform: scale(1.4); }
.gal__badge { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.room__body { padding: 22px; display: grid; gap: 12px; flex: 1; align-content: start; }
.room__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.room h3 { font-size: 38px; line-height: 1; }
.room__latin { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; }
.room__sig { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.room__story { color: var(--text-soft); font-size: 15px; display: -webkit-box; line-clamp: 3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.room__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.room__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.price b { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--heading); font-variant-numeric: tabular-nums; }
.price span { display: block; font-size: 13px; color: var(--muted); }
.room__foot .btn { min-height: 48px; padding: 0 20px; }
.empty { margin-top: 32px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--bg-alt); display: grid; gap: 14px; justify-items: start; }
.empty h3 { font-size: 32px; }
.empty p { color: var(--text-soft); max-width: 56ch; }

/* Practical */
.info { padding-block: clamp(80px, 9vw, 120px); }
.info__grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .info__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.tbc { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--pill); border: 1px dashed var(--muted); font: 500 11px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
