/* =====================================================================
   Thème hotel-egwii
   Couleurs, polices et arrondis : variables Bootstrap réglées dans le
   back-office (Apparence > Thèmes / page builder). Ce fichier n'utilise
   que ces variables : ne pas y mettre de couleurs en dur.
   ===================================================================== */

html { scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
main { display: block; }

/* ---------- Contenu du builder ---------- */
.hotel-main > section:first-child { margin-top: 0; }

/* ---------- Bandeau de page (page sans contenu builder, listes) ---------- */
.hotel-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 42vh;
  padding: 7rem 0 3.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pb-g1, var(--bs-primary)), var(--pb-g2, var(--bs-primary)));
  overflow: hidden;
}
.hotel-hero.is-home { min-height: 78vh; align-items: center; }
.hotel-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotel-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 20, .15), rgba(10, 12, 20, .55)); }
.hotel-hero > .container { position: relative; z-index: 1; }
.hotel-hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; opacity: .85; margin-bottom: .75rem; }
.hotel-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.08; margin: 0; }
.hotel-hero-lead { font-size: 1.15rem; max-width: 640px; opacity: .9; margin: 1rem 0 0; }

/* Texte d'une page sans builder (extrait saisi dans l'éditeur classique) */
.hotel-prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }
.hotel-prose img { border-radius: var(--bs-border-radius-lg); }

/* ---------- Listes de contenus ---------- */
.hotel-section { padding: 4rem 0; }
.hotel-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.hotel-filters .btn { border-radius: 999px; padding: .4rem 1.1rem; }
.hotel-filters .btn.active { background: var(--bs-primary); border-color: var(--bs-primary); color: var(--bs-btn-active-color, #fff); }

.hotel-card { height: 100%; border: 0; border-radius: var(--bs-border-radius-lg); overflow: hidden; background: var(--bs-body-bg); box-shadow: 0 .25rem 1.25rem rgba(16, 24, 40, .08); transition: transform .25s, box-shadow .25s; }
.hotel-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.5rem rgba(16, 24, 40, .14); }
.hotel-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bs-secondary-bg); }
.hotel-card-img:empty, .hotel-room-img:empty { background: linear-gradient(135deg, var(--bs-primary-bg-subtle), var(--bs-secondary-bg)); }
.hotel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hotel-card:hover .hotel-card-img img { transform: scale(1.05); }
.hotel-card .card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; }
.hotel-card-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bs-primary); font-weight: 600; margin-bottom: .35rem; }
.hotel-card h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.hotel-card h2 a { color: inherit; text-decoration: none; }
.hotel-card p { color: var(--bs-secondary-color); margin-bottom: 1.2rem; }
.hotel-card .hotel-more { margin-top: auto; font-weight: 600; text-decoration: none; }
.hotel-more i { transition: transform .2s; display: inline-block; }
.hotel-more:hover i { transform: translateX(4px); }

/* Chambres / offres : grande image et texte côte à côte */
.hotel-room { border-radius: var(--bs-border-radius-xl); overflow: hidden; background: var(--bs-body-bg); box-shadow: 0 .25rem 1.25rem rgba(16, 24, 40, .08); }
.hotel-room + .hotel-room { margin-top: 2rem; }
.hotel-room-img { min-height: 320px; height: 100%; background: var(--bs-secondary-bg); }
.hotel-room-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.hotel-room-body { padding: 2.5rem; }
.hotel-room h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 992px) {
  .hotel-room:nth-child(even) .hotel-room-media { order: 2; }
  .hotel-room-body { padding: 3.5rem; }
}

/* Galeries */
.hotel-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.hotel-gallery a, .hotel-gallery figure { position: relative; display: block; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--bs-border-radius); background: var(--bs-secondary-bg); }
.hotel-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; cursor: zoom-in; }
.hotel-gallery a img { cursor: pointer; }
.hotel-gallery a:hover img, .hotel-gallery figure:hover img { transform: scale(1.06); }
.hotel-gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

.hotel-empty { text-align: center; color: var(--bs-secondary-color); padding: 3rem 0; }

/* Message (inscription newsletter…) */
.hotel-notice { position: fixed; z-index: 1080; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: min(480px, calc(100% - 2rem)); }

/* Ancien contenu (balises %gallery%, sliders) */
.cS-hidden { height: 1px; opacity: 0; overflow: hidden; }
