/* =========================
   GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f5f5f5;
  color: #1f3f46;
}

/* =========================
   NAVBAR / BACK HOME
========================= */
.back-home {
  position: fixed;
  top: 10px;
  left: 15px;
  background: rgba(1,25,30,0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 25px;
  text-decoration: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.back-home i {
  font-size: 0.75rem;
}

.back-home:hover {
  background: rgba(47,100,109,0.95);
}

/* =========================
   HEADER
========================= */
.room-header {
  text-align: center;
  padding: 15px 20px;
  background: linear-gradient(180deg,#01191e,#2f646d);
  color: #fff;
  margin-bottom: 30px;
}

.room-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.room-header p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* =========================
   ROOMS SECTION
========================= */
.rooms-section {
  padding: 50px 40px;
  text-align: center;
}

.rooms-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #01313c;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* =========================
   ROOMS GRID
========================= */
.rooms {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* =========================
   ROOM CARD HORIZONTAL
========================= */
.room-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-height: 260px;
  margin-bottom: 50px;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* =========================
   ROOM GALLERY LEFT
========================= */
.room-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 120px);
  gap: 4px;
  flex: 1 1 60%;
  position: relative;
}

.room-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.3s ease;
}

.room-gallery img:hover {
  transform: scale(1.05);
}

/* =========================
   BUTTON CENTRAL SUR LA GALERIE
========================= */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.gallery-overlay .view-btn {
  pointer-events: auto;
  padding: 8px 20px;
  border-radius: 35px;
  background: rgba(1,25,30,0.85);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(3px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-overlay .view-btn:hover {
  background: rgba(47,100,109,0.95);
  transform: translateY(-2px);
}

/* =========================
   ROOM INFO RIGHT
========================= */
.room-info {
  flex: 1 1 40%;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.room-info h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #01313c;
}

.room-info p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
}

.room-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4px 10px;
  margin-bottom: 10px;
}

.room-features li {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #355b61;
}

.room-features i {
  color: #2fc4b2;
  font-size: 0.8rem;
}

.room-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e4ecee;
  padding-top: 8px;
}

.room-price span {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.book-btn {
  background: rgb(153,3,3);
  color: #fff;
  padding: 5px 15px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.book-btn:hover {
  background: #27a598;
  transform: translateY(-2px);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 12px;
}

.lightbox .close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.lightbox .prev,
.lightbox .next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(1,25,30,0.7);
  color: white;
  font-size: 28px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2100;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  background: rgba(47,100,109,0.95);
  transform: translateY(-50%) scale(1.1);
}

.lightbox .prev { left: 15px; }
.lightbox .next { right: 15px; }

/* =========================
   RESPONSIVE
========================= */
@media(max-width:1024px){
  .room-card { flex-direction: column; max-height: none; }
  .room-gallery { grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,100px); flex: 1 1 100%; }
  .room-info { flex:1 1 100%; padding:15px; text-align:center; }
}

@media(max-width:768px){
  .room-card { flex-direction: column; max-height: none; }
  .room-gallery { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,80px); }
  .room-info { text-align:center; padding:10px; }
}

/* Ajout pour très petits écrans mobiles */
@media(max-width:480px){
  .room-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(6,80px); }
  .room-info h2 { font-size: 1.2rem; }
  .room-info p, .room-features li { font-size: 0.75rem; }
  .book-btn { font-size: 0.7rem; padding: 4px 10px; }
}
