/* =============================================================
   BOOKING ENGINE — Page /reserver
   Room result cards + layout
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

html { scroll-behavior: smooth; }

/* ---- Variables ---- */
.be-root {
  --be-cta:    #E8623D;
  --be-gold:   #C6A769;
  --be-ink:    #1B263B;
  --be-sea:    #2F5D73;
  --be-sea-lt: #4A90B8;
  --be-bg:     #F8F5F0;
  --be-white:  #FFFFFF;
  --be-border: #DDD8CF;
  --be-muted:  #7A7268;
  --be-ft:     'Cormorant Garamond', Georgia, serif;
  --be-fb:     'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ============================================================
   HERO PLEIN ÉCRAN — Photo + Overlay
   ============================================================ */

.be-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* overflow: hidden retiré → isolé sur .be-hero__bg-wrapper pour ne pas clipper le dropdown calendrier */
}

@media (max-width: 768px) {
  .be-hero { min-height: 80vh; }
}

/* Wrapper isole le overflow: hidden au fond image uniquement */
.be-hero__bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Photo de fond */
.be-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.lapalmedazur.com/images/57896377.jpg');
  background-size: cover;
  background-position: center 40%;
}

@media (min-width: 769px) {
  .be-hero__bg { background-position: center 35%; }
}

/* Overlay gradient */
.be-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,38,59,0.55) 0%,
    rgba(27,38,59,0.28) 40%,
    rgba(27,38,59,0.65) 100%
  );
}

/* Contenu centré — z-index retiré intentionnellement :
   z-index:1 créait un stacking context qui piégeait le dropdown (z-index:400)
   derrière l'overlay (z-index:200 dans le contexte racine).
   Le DOM order (bg-wrapper avant content) suffit pour le layering visuel. */
.be-hero__content {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  width: 100%;
  max-width: 900px;
}

@media (max-width: 768px) {
  .be-hero__content { padding: 100px 16px 60px; }
}

.be-hero__eyebrow {
  font-family: var(--be-fb);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
  display: block;
}

.be-hero__title {
  font-family: var(--be-ft);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.be-hero__sub {
  font-family: var(--be-fb);
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  letter-spacing: .04em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* Widget pill bar dans le hero */
.be-hero .bw-bar {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */

.be-results {
  background: var(--be-bg);
  padding: 48px 24px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.be-results__meta {
  font-family: var(--be-fb);
  font-size: 14px;
  color: var(--be-muted);
  margin-bottom: 32px;
  text-align: center;
}
.be-results__meta strong { color: var(--be-ink); }

/* Pill séjour sélectionné */
.be-stay-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 9px 22px;
  background: #fff;
  border: 1.5px solid rgba(232, 98, 61, 0.30);
  border-radius: 50px;
  font-family: var(--be-fb);
  font-size: 13.5px;
  color: var(--be-muted);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(232, 98, 61, 0.08);
}
.be-stay-pill.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.be-stay-pill svg { stroke: var(--be-cta); flex-shrink: 0; }
.be-stay-pill strong { font-weight: 600; color: var(--be-ink); }
.be-stay-pill__sep { color: var(--be-border); }
.be-stay-pill__arrow { color: var(--be-cta); font-weight: 500; }

/* Filters */
.be-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.be-filter {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--be-border);
  background: var(--be-white);
  font-family: var(--be-fb);
  font-size: 13px;
  color: var(--be-ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.be-filter:hover  { border-color: var(--be-sea); }
.be-filter.active { background: var(--be-sea); color: var(--be-white); border-color: var(--be-sea); }

/* Grid */
.be-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  scroll-margin-top: 24px;
}

/* ============================================================
   ROOM CARD
   ============================================================ */

.be-card {
  background: var(--be-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,38,59,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.be-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(27,38,59,.14);
}

/* Photo */
.be-card__photo {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #E8E4DC;
}
.be-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .be-card:hover .be-card__photo img { transform: scale(1.05); }
}

/* Gradient overlay */
.be-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(27,38,59,.4) 100%);
  pointer-events: none;
}

/* Carrousel photos de carte (slides lazy chargées au 1er geste) */
.be-card__photo--car .be-slide + .be-slide { position: absolute; inset: 0; }
.be-card__photo--car .be-slide { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.be-card__photo--car .be-slide.is-on { opacity: 1; }
.be-car__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 4; padding: 0; color: var(--be-ink, #1B263B);
  opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.be-car__nav--prev { left: 10px; }
.be-car__nav--next { right: 10px; }
.be-card:hover .be-car__nav { opacity: 1; }
.be-car__nav:hover { background: #fff; }
.be-car__nav svg { width: 14px; height: 14px; }
@media (hover: none) { .be-car__nav { opacity: .9; } }
.be-car__dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 4; pointer-events: none;
}
.be-car__dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: background .25s ease;
}
.be-car__dots span.is-on { background: #fff; }

/* Badge vue */
.be-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--be-fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1;
}
.be-card__badge--sea {
  background: rgba(47,93,115,.18);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.3);
}
.be-card__badge--pool {
  background: rgba(26,122,120,.18);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.3);
}
.be-card__badge--panoramic {
  background: rgba(198,167,105,.25);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.3);
}

/* Best seller badge */
.be-card__bestseller {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--be-gold);
  color: var(--be-white);
  font-family: var(--be-fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

/* Body */
.be-card__body {
  padding: 22px 22px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.be-card__name {
  font-family: var(--be-fb);
  font-size: 19px;
  font-weight: 600;
  color: var(--be-ink);
  margin-bottom: 12px;
  line-height: 1.25;
}

/* Chips */
.be-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.be-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F2EDE6;
  border: 1px solid var(--be-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--be-fb);
  font-size: 12px;
  color: var(--be-ink);
}
.be-chip svg {
  width: 13px;
  height: 13px;
  stroke: var(--be-sea);
  flex-shrink: 0;
}

/* Spacer */
.be-card__spacer { flex: 1; }

/* Footer (prix + CTA) */
.be-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--be-border);
  gap: 12px;
}

.be-card__price-label {
  font-family: var(--be-fb);
  font-size: 11px;
  color: var(--be-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.be-card__price {
  font-family: var(--be-fb);
  font-size: 28px;
  font-weight: 700;
  color: var(--be-ink);
  line-height: 1;
}
.be-card__price span {
  font-family: var(--be-fb);
  font-size: 13px;
  font-weight: 400;
  color: var(--be-muted);
}

/* Prix/nuit en secondaire (sous le total séjour) */
.be-card__price-per-night {
  font-family: var(--be-fb);
  font-size: 12px;
  color: var(--be-muted);
  margin-top: 4px;
}

.be-card__total {
  font-family: var(--be-fb);
  font-size: 12px;
  color: var(--be-muted);
  margin-top: 3px;
}

.be-card__cta {
  padding: 10px 20px;
  background: transparent;
  color: var(--be-cta);
  border: 1.5px solid var(--be-cta);
  border-radius: 8px;
  font-family: var(--be-fb);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.be-card__cta:hover,
.be-card__cta:active {
  background: var(--be-cta);
  color: var(--be-white);
  transform: translateY(-1px);
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.be-skeleton {
  animation: beSkeleton 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #EAE6DC 25%, #F5F1EA 50%, #EAE6DC 75%);
  background-size: 200% 100%;
  border-radius: 8px;
}

@keyframes beSkeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.be-card--loading .be-card__photo       { background: none; }
.be-card--loading .be-card__photo::after { display: none; }
.be-card--loading .be-skeleton-photo    { height: 240px; }
.be-card--loading .be-skeleton-title    { height: 22px; width: 70%; margin-bottom: 12px; }
.be-card--loading .be-skeleton-chip     { height: 28px; width: 90px; }
.be-card--loading .be-skeleton-price    { height: 32px; width: 100px; margin-top: 16px; }

/* ============================================================
   EMPTY / ERROR STATE
   ============================================================ */

.be-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.be-empty__icon {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
  background: var(--be-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-muted);
}
.be-empty__title {
  font-family: var(--be-ft);
  font-size: 24px;
  color: var(--be-ink);
  margin-bottom: 8px;
}
.be-empty__text {
  font-family: var(--be-fb);
  font-size: 14px;
  color: var(--be-muted);
  margin-bottom: 24px;
}
.be-empty__cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--be-sea);
  color: var(--be-white);
  border-radius: 8px;
  font-family: var(--be-fb);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .18s ease;
}
.be-empty__cta:hover { background: var(--be-ink); }

/* ============================================================
   STICKY SEARCH BAR — Desktop (apparaît au scroll)
   ============================================================ */

.be-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--be-border);
  box-shadow: 0 2px 16px rgba(27,38,59,0.1);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  padding: 10px 0;
}

.be-sticky.visible { transform: translateY(0); }

.be-sticky__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.be-sticky__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.be-sticky__dates {
  font-family: var(--be-fb);
  font-size: 14px;
  font-weight: 600;
  color: var(--be-ink);
}

.be-sticky__sep { color: var(--be-muted); font-size: 12px; }

.be-sticky__guests {
  font-family: var(--be-fb);
  font-size: 14px;
  color: var(--be-muted);
}

.be-sticky__edit {
  font-family: var(--be-fb);
  font-size: 13px;
  font-weight: 500;
  color: var(--be-sea);
  background: none;
  border: 1px solid var(--be-sea);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.be-sticky__edit:hover { background: var(--be-sea); color: #fff; }

.be-sticky__cta {
  font-size: 13px;
  padding: 8px 18px;
  white-space: nowrap;
  border-radius: 6px;
}

@media (max-width: 767px) { .be-sticky { display: none; } }


/* ============================================================
   2026 FEATURES — Performance + Animations
   ============================================================ */

/* content-visibility : les cartes hors écran ne sont pas rendues */
.be-grid {
  container-type: inline-size;
}

.be-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 480px;
}

/* @starting-style : animation d'entrée des cartes */
@supports (animation-timeline: scroll()) {
  .be-card {
    animation: cardEnter 0.4s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Container Queries : cartes s'adaptent à leur colonne */
@container (max-width: 400px) {
  .be-card__name { font-size: 18px; }
  .be-card__chips { gap: 4px; }
  .be-chip { font-size: 11px; padding: 3px 8px; }
  .be-card__price { font-size: 24px; }
}

/* CSS has() : CTA se remplit au hover de la carte */
.be-card:has(:hover) .be-card__cta:not(.be-card__cta--alt) {
  background: var(--be-cta);
  color: var(--be-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette (640–1023px) : 2 colonnes côte à côte */
@media (min-width: 640px) and (max-width: 1023px) {
  .be-grid        { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .be-results     { padding: 36px 20px 48px; }
  .be-card__photo { height: 185px; }
  .be-card__name  { font-size: 17px; }
}

/* Mobile (<640px) : 1 colonne pleine largeur */
@media (max-width: 639px) {
  .be-grid        { grid-template-columns: 1fr; gap: 16px; }
  .be-results     { padding: 28px 16px 40px; }
  .be-card__photo { height: 200px; }
}

/* ============================================================
   NOUVEAUX ÉLÉMENTS v3.0 — Promos, Unavail, Description, Beds
   ============================================================ */

/* Badge promo bi-couleur (photo, haut gauche) */
.be-card__promo-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.be-card__promo-bar__label {
  font-family: var(--be-fb);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--be-ink);
  background: rgba(255,255,255,0.96);
  padding: 5px 11px;
  white-space: nowrap;
  letter-spacing: .01em;
}
.be-card__promo-bar__pct {
  font-family: var(--be-fb);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--be-cta);
  padding: 5px 11px;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* Overlay Non disponible */
.be-card__unavail {
  position: absolute;
  inset: 0;
  background: rgba(27,38,59,.52);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--be-fb);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
}

/* Carte indisponible : légère désaturation */
.be-card--unavailable { opacity: 0.6; }
.be-card--unavailable:hover { transform: none; box-shadow: 0 2px 16px rgba(27,38,59,.08); }

/* CTA alternatif (Consulter — chambre non disponible) */
.be-card__cta--alt { color: var(--be-muted); border-color: var(--be-muted); }
.be-card__cta--alt:hover,
.be-card__cta--alt:active { background: var(--be-muted); color: var(--be-white); transform: none; }

/* Prix barré (promotion) */
.be-card__price-orig {
  font-family: var(--be-fb);
  font-size: 15px;
  font-weight: 400;
  color: var(--be-muted);
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 2px;
}
.be-card__price-orig span { font-size: 11px; }

/* Description courte */
.be-card__desc {
  font-family: var(--be-fb);
  font-size: 13px;
  color: var(--be-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Résumé literie */
.be-card__beds {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--be-fb);
  font-size: 12px;
  color: var(--be-muted);
  margin-bottom: 10px;
  line-height: 1.55;
}
.be-card__beds-lines { display: flex; flex-direction: column; gap: 3px; }
.be-card__beds-line { display: flex; align-items: center; gap: 5px; }
.be-card__beds-line svg { flex-shrink: 0; stroke: var(--be-sea); }
.be-card__beds-line em { font-style: normal; font-weight: 600; color: var(--be-ink); }

/* Footer actions (CTA + Voir l'appartement) */
.be-card__footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.be-card__know-more {
  font-family: var(--be-fb);
  font-size: 11px;
  color: var(--be-sea);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.be-card__know-more:hover { color: var(--be-ink); text-decoration: underline; }

/* ── Stock badge — overlay image, rectangulaire premium ───── */
.be-card__stock {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 3px;
  font-family: var(--be-fb);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.be-card__stock:empty { display: none; }
/* avail ≤ 2 — ambre doré LPA sur image */
.be-card__stock--low {
  background: rgba(107, 77, 0, 0.82);
  border: 1px solid rgba(198, 167, 105, 0.35);
}
/* avail = 1 — terracotta corail LPA sur image */
.be-card__stock--critical {
  background: rgba(139, 46, 15, 0.88);
  border: 1px solid rgba(232, 98, 61, 0.35);
}
/* avail = 0 — encre discrète sur image, CTA désactivé */
.be-card__stock--full {
  background: rgba(27, 38, 59, 0.62);
  color: rgba(255,255,255,0.80);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   SPRINT F — Intelligence layer (urgency, scarcity, alt dates)
   ═══════════════════════════════════════════════════════ */

/* ── Top urgency banner (forte demande) ──────────────────── */
.be-urgency-banner[hidden],
.be-scarcity-timer[hidden],
.be-alt-dates[hidden],
.be-personalize-hero[hidden] { display: none !important; }

.be-urgency-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(198, 167, 105, 0.55);
  background: linear-gradient(135deg, rgba(252, 248, 243, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 1px 3px rgba(27, 38, 59, 0.04);
  font-family: var(--be-fb);
}
.be-urgency-banner--high {
  border-color: rgba(232, 98, 61, 0.50);
  background: linear-gradient(135deg, rgba(252, 248, 243, 0.96) 0%, rgba(254, 244, 240, 0.92) 100%);
}
.be-urgency-banner__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(198, 167, 105, 0.14);
  color: #6B4D00;
}
.be-urgency-banner--high .be-urgency-banner__icon {
  background: rgba(232, 98, 61, 0.12);
  color: #8B2E0F;
}
.be-urgency-banner__text { flex: 1; min-width: 0; }
.be-urgency-banner__label {
  font-size: 14px; font-weight: 600; color: var(--be-ink);
  letter-spacing: -0.005em;
}
.be-urgency-banner__sub {
  font-size: 12.5px; color: var(--be-ink-2, #3A3A4A);
  margin-top: 2px;
}
.be-urgency-banner__close {
  flex-shrink: 0;
  background: transparent; border: 0; cursor: pointer;
  color: var(--be-ink-3, #6B7280);
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.be-urgency-banner__close:hover { color: var(--be-ink); background: rgba(0, 0, 0, 0.04); }

/* ── Scarcity countdown timer ────────────────────────────── */
.be-scarcity-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  border-radius: 8px;
  background: rgba(27, 38, 59, 0.06);
  border: 1px solid rgba(27, 38, 59, 0.16);
  font-family: var(--be-fb);
  font-size: 12.5px;
  color: var(--be-ink);
  font-variant-numeric: tabular-nums;
}
.be-scarcity-timer__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--be-cta, #E8623D);
  animation: be-scarcity-pulse 1.6s ease-in-out infinite;
}
@keyframes be-scarcity-pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }
.be-scarcity-timer__icon { display: inline-flex; opacity: 0.7; }
.be-scarcity-timer__text strong { font-weight: 700; color: var(--be-ink); }

/* ── Alternative dates suggester ─────────────────────────── */
.be-alt-dates {
  background: var(--be-bg, #FAF7F3);
  border: 1px solid rgba(27, 38, 59, 0.10);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 0 0 24px;
  text-align: center;
}
.be-alt-dates__title {
  font-family: var(--be-fh, 'Cormorant Garamond', Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--be-ink);
  margin: 0 0 6px;
}
.be-alt-dates__sub {
  font-family: var(--be-fb);
  font-size: 13.5px;
  color: var(--be-ink-2, #3A3A4A);
  margin: 0 0 20px;
}
.be-alt-dates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 740px;
  margin: 0 auto;
}
.be-alt-dates__card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(27, 38, 59, 0.10);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--be-fb);
  text-align: left;
}
.be-alt-dates__card:hover {
  border-color: var(--be-cta, #E8623D);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(27, 38, 59, 0.07);
}
.be-alt-dates__dates {
  font-size: 14px; font-weight: 600; color: var(--be-ink);
  margin-bottom: 4px;
}
.be-alt-dates__free {
  font-size: 12px; color: var(--be-ink-3, #6B7280);
  margin-bottom: 8px;
}
.be-alt-dates__price {
  font-size: 13px; color: var(--be-ink);
  margin-top: auto;
  font-weight: 500;
}
.be-alt-dates__price strong { font-weight: 700; }

/* ── Cross-sell upgrade bridge entre cartes ──────────────── */
.be-card__upsell-bridge {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  margin: -6px 0;
  background: linear-gradient(90deg, transparent, rgba(198, 167, 105, 0.08), transparent);
  border: 0;
  border-top: 1px dashed rgba(198, 167, 105, 0.40);
  border-bottom: 1px dashed rgba(198, 167, 105, 0.40);
  font-family: var(--be-fb);
  font-size: 12.5px;
  color: #6B4D00;
  cursor: pointer;
  transition: background 0.18s;
}
.be-card__upsell-bridge:hover { background: rgba(198, 167, 105, 0.14); }
.be-card__upsell-bridge strong { color: var(--be-ink); font-weight: 700; }

/* ── Smart secondary CTA sous le prix ────────────────────── */
.be-card__cta-secondary {
  font-family: var(--be-fb);
  font-size: 11.5px;
  color: var(--be-ink-3, #6B7280);
  padding: 6px 0 0;
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.be-card__cta-secondary--accent { color: #6B4D00; font-weight: 500; }
.be-card__cta-secondary--urgent { color: #8B2E0F; font-weight: 500; }

/* ── Personalize hero banner returning visitor ───────────── */
.be-personalize-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 0 0 14px;
  background: linear-gradient(135deg, rgba(252, 248, 243, 0.96), rgba(255, 255, 255, 0.92));
  border-left: 3px solid var(--be-cta, #E8623D);
  border-radius: 0 8px 8px 0;
  font-family: var(--be-fb);
  font-size: 13px;
  color: var(--be-ink);
}
.be-personalize-hero__icon { flex-shrink: 0; opacity: 0.75; }
.be-personalize-hero__text { flex: 1; }
.be-personalize-hero__cta {
  color: var(--be-cta, #E8623D);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.be-personalize-hero__cta:hover { text-decoration: underline; }
.be-personalize-hero__close {
  background: transparent; border: 0; cursor: pointer;
  color: var(--be-ink-3, #6B7280);
  padding: 4px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .be-urgency-banner { padding: 12px 14px; gap: 10px; }
  .be-urgency-banner__icon { width: 28px; height: 28px; }
  .be-urgency-banner__label { font-size: 13px; }
  .be-urgency-banner__sub { font-size: 11.5px; }
  .be-scarcity-timer { font-size: 11.5px; padding: 7px 12px; }
  .be-alt-dates { padding: 22px 16px; }
  .be-alt-dates__title { font-size: 19px; }
}

/* ── Demand pressure badge — top-right overlay sober premium ─── */
.be-card__demand {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 3px;
  font-family: var(--be-fb);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  max-width: 65%;
}
.be-card__demand:empty { display: none; }
.be-card__demand--active {
  background: rgba(27, 38, 59, 0.78);
  border: 1px solid rgba(198, 167, 105, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Live viewers badge ─────────────────────────────────────── */
.be-card__live {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 3px;
  font-family: var(--be-fb);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.be-card__live:empty { display: none; }
.be-card__live--active {
  background: rgba(27, 38, 59, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}
.be-card__live--active svg {
  opacity: 0.85;
  animation: be-live-blink 2.5s ease-in-out infinite;
}
@keyframes be-live-blink {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0.40; }
}

/* ── Site-wide live visitors banner ─────────────────────────── */
#be-live-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(27, 38, 59, 0.06);
  border: 1px solid rgba(27, 38, 59, 0.12);
  font-size: 12.5px;
  color: var(--be-ink);
  font-family: var(--be-fb);
}
#be-live-banner[hidden] { display: none; }
#be-live-banner svg { flex-shrink: 0; opacity: 0.7; animation: be-live-blink 2.5s ease-in-out infinite; }
#be-live-banner strong { font-weight: 700; }

/* ── Restriction banner (Phase 3) ─────────────────────────── */
.be-restriction-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 4px;
  font-family: var(--be-fb);
  font-size: 13px;
  color: #92400E;
}
.be-restriction-banner__icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.be-restriction-banner__body { flex: 1; line-height: 1.5; }
.be-restriction-banner__name { font-weight: 700; color: #78350F; }
.be-restriction-banner__detail { color: #92400E; }

/* ── Unavail overlay — reason text ─────────────────────────── */
.be-card__unavail {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.be-card__unavail span { pointer-events: none; }

/* ── Suggestion alternative dates ───────────────────────────── */
.be-card__suggest {
  padding: 8px 0 2px;
  font-size: 12px;
  color: var(--be-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.be-card__suggest-link {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.be-card__suggest-link:hover {
  background: #C7D2FE;
  color: #312E81;
}

/* ── Reviews Strip ── */
.be-reviews-strip {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 20px;
  margin-bottom: 12px;
  justify-content: center;
}
.be-reviews-strip:empty { display: none; }
.be-reviews-strip::-webkit-scrollbar { display: none; }

.be-review-card {
  background: var(--be-white);
  border: 1px solid var(--be-border);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 240px;
  max-width: 300px;
  flex-shrink: 0;
}
.be-review-card__stars {
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.be-review-card__text {
  font-size: 13px;
  color: var(--be-ink);
  line-height: 1.5;
  margin-bottom: 8px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.be-review-card__author {
  font-size: 11.5px;
  color: var(--be-muted);
  font-weight: 500;
}
.be-review-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #059669;
  background: #D1FAE5;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
}

@media (max-width: 768px) {
  .be-reviews-strip {
    justify-content: flex-start;
    padding-left: 16px;
    margin: 0 -24px 16px;
    padding-right: 16px;
  }
}

/* ── Trust Bar ── */
.be-trust-bar {
  background: var(--be-white);
  border-bottom: 1px solid var(--be-border);
  padding: 12px 0;
}
.be-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.be-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--be-ink);
  padding: 4px 20px;
}
.be-trust-bar__item svg { stroke: var(--be-cta); flex-shrink: 0; }
.be-trust-bar__item strong { font-weight: 600; }
.be-trust-bar__sep {
  width: 1px;
  height: 20px;
  background: var(--be-border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .be-trust-bar__inner { gap: 8px; }
  .be-trust-bar__sep { display: none; }
  .be-trust-bar__item { font-size: 11.5px; padding: 4px 10px; }
}

/* =============================================================
   SMART BOOKING ADVISOR — replaces .be-restriction-banner
   ============================================================= */
.be-advisor {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  margin: 0 0 24px;
  border-radius: 14px;
  background: #faf7f3;
  border: 1px solid rgba(27, 38, 59, 0.08);
  box-shadow: 0 1px 2px rgba(27, 38, 59, 0.04);
  transition: opacity 0.25s ease, transform 0.25s ease;
  position: relative;
}

.be-advisor[hidden] { display: none; }

.be-advisor__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 38, 59, 0.06);
}

.be-advisor__content {
  flex: 1 1 auto;
  min-width: 0;
}

.be-advisor__headline {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: #1B263B;
  line-height: 1.3;
  margin-bottom: 4px;
}

.be-advisor__body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  color: rgba(27, 38, 59, 0.78);
  line-height: 1.5;
}

.be-advisor__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.be-advisor__date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(232, 98, 61, 0.4);
  color: #E8623D;
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.be-advisor__date-chip:hover,
.be-advisor__date-chip:focus-visible {
  background: #E8623D;
  color: #fff;
  border-color: #E8623D;
  outline: none;
}

.be-advisor__pill {
  flex: 0 0 auto;
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- Variant: restriction (amber) --- */
.be-advisor--restriction {
  background: #fff8ec;
  border-color: rgba(217, 119, 6, 0.25);
}
.be-advisor--restriction .be-advisor__icon {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: #b45309;
}

/* --- Variant: promo (green halo + coral pill) --- */
.be-advisor--promo {
  background: #f3faf6;
  border-color: rgba(34, 139, 87, 0.22);
}
.be-advisor--promo .be-advisor__icon {
  background: rgba(34, 139, 87, 0.12);
  border-color: rgba(34, 139, 87, 0.28);
  color: #228b57;
}
.be-advisor--promo .be-advisor__pill {
  background: #E8623D;
  color: #fff;
}

/* --- Variant: urgency (soft red + animated live dot) --- */
.be-advisor--urgency {
  background: #fef5f3;
  border-color: rgba(220, 38, 38, 0.22);
}
.be-advisor--urgency .be-advisor__icon {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  color: #b91c1c;
}
.be-advisor--urgency .be-advisor__pill {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.be-advisor--urgency .be-advisor__pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  animation: be-advisor-pulse 1.6s ease-in-out infinite;
}
@keyframes be-advisor-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.25); }
}

/* --- Variant: validation (soft green) --- */
.be-advisor--validation {
  background: #f3faf6;
  border-color: rgba(34, 139, 87, 0.18);
}
.be-advisor--validation .be-advisor__icon {
  background: rgba(34, 139, 87, 0.1);
  border-color: rgba(34, 139, 87, 0.22);
  color: #228b57;
}

/* --- Variant: info (neutral fallback) --- */
.be-advisor--info {
  background: #faf7f3;
  border-color: rgba(27, 38, 59, 0.1);
}
.be-advisor--info .be-advisor__icon {
  background: rgba(27, 38, 59, 0.06);
  color: #1B263B;
}

/* --- Skeleton loading --- */
.be-advisor--loading .be-advisor__headline,
.be-advisor--loading .be-advisor__body {
  color: transparent;
  background: linear-gradient(90deg, #ece9e3 0%, #f5f3ef 50%, #ece9e3 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: be-advisor-shimmer 1.4s linear infinite;
}
.be-advisor--loading .be-advisor__headline { height: 14px; width: 65%; }
.be-advisor--loading .be-advisor__body     { height: 12px; width: 90%; margin-top: 6px; }
.be-advisor--loading .be-advisor__pill,
.be-advisor--loading .be-advisor__dates { display: none; }
@keyframes be-advisor-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Responsive --- */
@media (max-width: 540px) {
  .be-advisor {
    padding: 14px 14px;
    gap: 12px;
    border-radius: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .be-advisor__icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .be-advisor__headline { font-size: 14.5px; }
  .be-advisor__body     { font-size: 13px; }
  .be-advisor__pill {
    order: 3;
    flex: 1 0 auto;
    text-align: center;
    margin-top: 4px;
  }
}

/* --- Legacy banner kept hidden for safety (overridden if present) --- */
.be-restriction-banner { display: none !important; }

/* Restricted arrival notice — shown instead of room cards when arrival day is invalid */
.be-restricted-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--be-muted, #6b7280);
  font-size: 15px;
  line-height: 1.6;
}
.be-restricted-notice p {
  margin: 0 0 8px;
}
.be-restricted-notice p:last-child {
  margin: 0;
}
