/* ============================================================
   MORADA LUNA — ROOM PAGE CSS (room.css)
   Estilos exclusivos para páginas individuales de habitación
   ============================================================ */

/* ─── BREADCRUMB ────────────────────────────────────────────── */
.room-page__breadcrumb {
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 0;
}

.room-page__breadcrumb nav {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.room-page__breadcrumb a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.room-page__breadcrumb a:hover {
  color: var(--black);
}

.room-page__breadcrumb span:last-child {
  color: var(--black);
}

/* ─── ROOM DETAIL LAYOUT ────────────────────────────────────── */
.room-detail {
  padding: 40px 0 100px;
}

.room-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ─── INFO COLUMNA IZQUIERDA ────────────────────────────────── */
.room-detail__info {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.room-detail__num {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.room-detail__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.room-detail__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.5;
}

.room-detail__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 32px 0;
}

.room-detail__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.room-detail__desc:last-of-type {
  margin-bottom: 0;
}

/* ─── INCLUYE ───────────────────────────────────────────────── */
.room-detail__section-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.room-detail__includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.room-detail__includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.4;
}

.room-detail__includes li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
  flex-shrink: 0;
}

/* ─── AMENITIES ICONS ───────────────────────────────────────── */
.room-detail__amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
}

.rm-amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rm-amenity__icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.rm-amenity:hover .rm-amenity__icon {
  background: var(--black);
}

.rm-amenity:hover .rm-amenity__icon svg {
  stroke: var(--white);
}

.rm-amenity__icon svg {
  width: 18px;
  height: 18px;
  transition: stroke 0.2s;
}

.rm-amenity span {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ─── RESERVE CTA ───────────────────────────────────────────── */
.room-detail__reserve {
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.room-detail__reserve-note {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-400);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ─── GALERÍA COLUMNA DERECHA ───────────────────────────────── */
.room-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}

.gallery__main-img.is-switching {
  opacity: 0;
  transform: scale(1.02);
}

/* THUMBNAILS */
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  opacity: 0.6;
}

.gallery__thumb:hover img,
.gallery__thumb.is-active img {
  opacity: 1;
  transform: scale(1.04);
}

.gallery__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.25s;
  pointer-events: none;
}

.gallery__thumb.is-active::after {
  border-color: var(--black);
}

/* ─── OTRAS HABITACIONES ────────────────────────────────────── */
.other-rooms {
  padding: 80px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.other-rooms__header {
  margin-bottom: 40px;
}

.other-rooms__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.other-rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.other-room-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.other-room-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.other-room-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.other-room-card:hover .other-room-card__img img {
  transform: scale(1.04);
}

.other-room-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray-400);
  padding: 18px 20px 4px;
}

.other-room-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0 20px 20px;
  transition: opacity 0.2s;
}

.other-room-card:hover .other-room-card__name {
  opacity: 0.6;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .room-detail__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .room-detail__info {
    position: static;
    /* galería primero en mobile — ver orden con order */
    order: 2;
  }

  .room-detail__gallery {
    order: 1;
  }

  .room-detail__amenities {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .room-detail__amenities {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
  }

  .rm-amenity span {
    font-size: 10px;
  }

  .other-rooms__grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
}
