/* =========================================================
   BLUUPI — HOTEL PAGE (hôtels de l'Extranet)
   Fiche hôtel : mobile et tablette
   Fichier : /app/assets/styles/pages/hotel.css
========================================================= */

:root{
  --primary:#0E3E61;
  --blue:#127194;
  --light-blue:#3CA6D6;
  --bg:#f5f9fc;
  --card:#ffffff;
  --text:#102f46;
  --muted:#6d7d8b;
  --line:#e5edf3;
  --shadow:0 18px 40px rgba(14,62,97,.12);
  --soft-shadow:0 10px 24px rgba(14,62,97,.08);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:#eef3f7;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-text-size-adjust:100%;
}

/* Menu et pied de page du site : affichés sur ordinateur (voir desktop/hotel.css).
   Sur téléphone et tablette, la navigation est la barre du bas. */
@media (max-width:1199px){
  .desktop-header,
  .desktop-footer{
    display:none !important;
  }
}


/* =========================================================
   1. PAGE
========================================================= */

.hotel-page{
  width:100%;
  max-width:820px;
  min-height:100vh;
  margin:0 auto;
  /* place pour la barre « Reservar » et la navigation du bas */
  padding-bottom:168px;
  background:var(--card);
  overflow-x:hidden;
}

.hotel-test-banner{
  padding:10px 16px;
  background:#fff4d6;
  color:#7a5200;
  font-size:13px;
  font-weight:800;
  text-align:center;
}


/* =========================================================
   2. PHOTO PRINCIPALE ET GALERIE
========================================================= */

.hotel-hero{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  max-height:62vh;
  background:#dfe9f0;
  overflow:hidden;
}

.hotel-hero img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.hotel-hero-actions{
  position:absolute;
  top:calc(14px + env(safe-area-inset-top));
  left:14px;
  right:14px;
  display:flex;
  justify-content:space-between;
}

.hotel-round-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--primary);
  font-size:19px;
  font-weight:900;
  box-shadow:var(--soft-shadow);
  cursor:pointer;
}

.hotel-gallery{
  display:flex;
  gap:8px;
  padding:10px 14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.hotel-gallery::-webkit-scrollbar{
  display:none;
}

.hotel-thumb{
  flex:0 0 92px;
  height:68px;
  padding:0;
  border:2px solid transparent;
  border-radius:12px;
  background:#dfe9f0;
  overflow:hidden;
  cursor:pointer;
}

.hotel-thumb.is-active{
  border-color:var(--blue);
}

.hotel-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}


/* =========================================================
   3. CONTENU
========================================================= */

.hotel-content{
  padding:18px 18px 8px;
}

.hotel-badge{
  display:inline-block;
  padding:6px 11px;
  border-radius:999px;
  background:#e8f5fb;
  color:var(--blue);
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.hotel-content h1{
  margin:12px 0 6px;
  color:var(--primary);
  font-size:27px;
  line-height:1.15;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
}

.hotel-place{
  margin:0;
  color:var(--muted);
  font-size:15px;
  font-weight:700;
}

.hotel-price{
  margin:16px 0 2px;
  color:var(--primary);
  font-size:21px;
  font-weight:900;
}

.hotel-price-note{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.hotel-features{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 0;
  padding:0;
  list-style:none;
}

.hotel-features li{
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--bg);
  color:var(--text);
  font-size:13px;
  font-weight:700;
}

.hotel-section{
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--line);
}

.hotel-section h2{
  margin:0 0 10px;
  color:var(--primary);
  font-size:18px;
}

.hotel-section p{
  margin:0 0 14px;
  color:#33506a;
  font-size:15px;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.hotel-link{
  color:var(--blue);
  font-weight:800;
}

.hotel-video{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:16px;
  overflow:hidden;
  background:#000;
}

.hotel-video iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}


/* =========================================================
   4. BOUTONS
========================================================= */

.hotel-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 20px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}

.hotel-btn-primary{
  background:linear-gradient(135deg,var(--blue),var(--light-blue));
  color:#fff;
  box-shadow:0 10px 22px rgba(18,113,148,.26);
}

.hotel-btn-secondary{
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--primary);
}

/* Carte de réservation : réservée à l'affichage ordinateur. */
.hotel-booking-card{
  display:none;
}

/* Barre « Reservar » fixe, au-dessus de la navigation du bas. */
.hotel-sticky-booking{
  position:fixed;
  left:0;
  right:0;
  bottom:72px;
  z-index:55;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 16px;
  background:rgba(255,255,255,.98);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 26px rgba(14,62,97,.07);
}

.hotel-sticky-booking div{
  min-width:0;
}

.hotel-sticky-booking strong{
  display:block;
  color:var(--primary);
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hotel-sticky-booking small{
  display:block;
  color:var(--muted);
  font-size:11px;
}


/* =========================================================
   5. NAVIGATION DU BAS (identique aux autres pages de l'app)
========================================================= */

.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  height:72px;
  padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  display:grid;
  grid-template-columns:repeat(5,1fr);
  background:rgba(255,255,255,.98);
  border-top:1px solid var(--line);
  backdrop-filter:blur(16px);
  box-shadow:0 -8px 26px rgba(14,62,97,.07);
}

.bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-decoration:none;
}

.bottom-nav a.active{
  color:var(--primary);
}

.bottom-nav svg{
  width:23px;
  height:23px;
  stroke-width:2.5;
}


/* =========================================================
   6. TABLETTE
========================================================= */

@media (min-width:700px){

  .hotel-page{
    margin-top:18px;
    border-radius:24px 24px 0 0;
    box-shadow:var(--soft-shadow);
  }

  .hotel-hero{
    aspect-ratio:16 / 9;
  }

  .hotel-content{
    padding:24px 28px 8px;
  }

  .hotel-content h1{
    font-size:32px;
  }

  .hotel-thumb{
    flex-basis:120px;
    height:84px;
  }
}
