/* ============================================
   PÁGINAS INDIVIDUALES DE HABITACIONES
   Hostal Mi Paz — room-page.css
   ============================================ */

/* Breadcrumb */
.room-breadcrumb {
  font-size: 0.8125rem;
  color: var(--gray-500);
  padding-bottom: 0.875rem;
}

.room-breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

.room-breadcrumb a:hover { text-decoration: underline; }

.room-breadcrumb span[aria-hidden] {
  margin: 0 0.4rem;
  color: var(--gray-200);
}

/* Hero */
.room-hero {
  padding-top: 0;
}

.room-hero-img-wrap {
  margin-top: 0;
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.room-hero-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.room-hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.room-hero-badge.room-badge-shared {
  background: rgba(0,0,0,0.55);
}

/* Hero content: text + booking card */
.room-hero-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.room-mural-label {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.room-hero-text h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--near-black);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.room-hero-desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 54ch;
}

/* Booking card */
.room-booking-card {
  background: var(--white);
  border: 1.5px solid var(--teal-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(27,139,138,0.10);
  position: sticky;
  top: calc(var(--nav-h, 72px) + 1rem);
}

.room-price-display {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.room-price-display strong {
  font-size: 1.875rem;
  font-family: var(--font-title);
  color: var(--near-black);
}

.room-price-display span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.room-booking-note {
  font-size: 0.75rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.room-booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.room-date-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.room-date-field input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--near-black);
  background: var(--white);
  box-sizing: border-box;
}

.room-date-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,139,138,0.15);
}

.rp-reservar-btn {
  width: 100%;
  margin-bottom: 0.75rem;
  text-align: center;
  justify-content: center;
}

.room-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: #25D366;
  border: 1.5px solid #25D366;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.room-whatsapp-btn:hover {
  background: #25D366;
  color: #fff;
}

/* Amenities */
.room-amenities-section h2 {
  margin-bottom: 1.5rem;
}

.room-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.room-amenity {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--near-black);
  font-family: var(--font-body);
}

.room-amenity svg {
  flex-shrink: 0;
  color: var(--teal);
}

/* Other rooms CTA */
.room-other-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .room-hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .room-booking-card {
    position: static;
  }

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

@media (max-width: 480px) {
  .room-hero-img-wrap img {
    height: 260px;
  }

  .room-amenities-grid {
    grid-template-columns: 1fr;
  }

  .room-booking-dates {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery ──────────────────────────────────────────────────── */
.room-gallery-section {
  padding: 2rem 0 0;
}

.room-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}

.room-gallery-item {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.room-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.room-gallery-item:hover img {
  transform: scale(1.04);
}

.room-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.room-gallery-item:first-child img {
  height: 406px;
}

@media (max-width: 900px) {
  .room-gallery { grid-template-columns: repeat(3, 1fr); }
  .room-gallery-item:first-child { grid-column: span 3; grid-row: span 1; }
  .room-gallery-item:first-child img { height: 240px; }
  .room-gallery-item img { height: 170px; }
}

@media (max-width: 560px) {
  .room-gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .room-gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .room-gallery-item:first-child img { height: 200px; }
  .room-gallery-item img { height: 130px; }
}

/* ── Lo que ofrecemos ─────────────────────────────────────────── */
.room-section-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--near-black);
  margin-bottom: 2rem;
}

.room-offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 680px;
}

.room-offers-col h3 {
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-light);
}

.room-offers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.room-offers-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--near-black);
}

.room-offers-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

@media (max-width: 560px) {
  .room-offers-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: auto;
}
.lb-img {
  max-width: calc(100vw - 130px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  display: block;
}
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  line-height: 1;
  opacity: 0.75;
  transition: background 0.15s, opacity 0.15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.28); opacity: 1; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .lb-img { max-width: 100vw; }
  .lb-nav { font-size: 1.75rem; padding: 0.4rem 0.7rem; }
}
