/* ============================================================
   ROOM DETAIL PAGE — Santval Lodge
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   HERO DE HABITACIÓN
   ══════════════════════════════════════════════════════════════ */
#rh-hero {
  position: relative;
  background: #2f4530; /* Verde muy oscuro marca */
}

.rh-img-wrap {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
}

.rh-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.rh-arrow:hover { background: rgba(0,0,0,.75); }
.rh-arrow--left  { left: 1rem; }
.rh-arrow--right { right: 1rem; }

.rh-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .45s ease;
}

.rh-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,.42);
}

/* Contenido sobre el hero */
.rh-content {
  position: absolute;
  bottom: 5.5rem;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
  padding: 0 2rem;
}

.rh-type {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 0.75rem;
}

.rh-h1 {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.rh-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
}

.rh-breadcrumb a {
  color: var(--green-lime);
  transition: opacity var(--ease);
}
.rh-breadcrumb a:hover { opacity: .75; }

.rh-bc-sep { color: rgba(255,255,255,.45); }

.rh-bc-current {
  color: var(--white);
  font-weight: 500;
}

/* Thumbnails */
.rh-thumbs-wrap {
  background: var(--bg-dark);
  padding: 0.85rem 0;
  position: relative;
  z-index: 3;
}

.rh-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.rh-thumbs::-webkit-scrollbar { display: none; }

.rh-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 65px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .68;
  transition: border-color var(--ease), opacity var(--ease);
}
.rh-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rh-thumb.active {
  border-color: var(--green-mid);
  opacity: 1;
}
.rh-thumb:hover:not(.active) {
  border-color: var(--green-lime);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   DETAIL GRID
   ══════════════════════════════════════════════════════════════ */
#rd-section {
  background: var(--bg-light);
  padding: 5.5rem 0 6rem;
}

.rd-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── LEFT ─────────────────────────────────────────────────────── */
.rd-title-block { margin-bottom: 2rem; }

.rd-type-label {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 0.5rem;
}

.rd-h2 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.rd-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 0.84rem;
  color: var(--sage);
}

.rd-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.rd-meta-item i { color: var(--green-mid); font-size: 0.78rem; }
.rd-meta-sep { color: rgba(133,185,117,.4); }

/* Descripción */
.rd-desc { margin-bottom: 2rem; }

.rd-p {
  font-family: var(--f-sans);
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.88;
  margin-bottom: 1.1rem;
}
.rd-p:last-child { margin-bottom: 0; }

.rd-p--italic {
  font-family: var(--f-label);
  font-style: italic;
  color: var(--sage);
  font-size: 1rem;
  border-left: 2.5px solid rgba(133,185,117,.4);
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

/* Separador */
.rd-sep {
  height: 1px;
  background: rgba(175,200,49,.2);
  margin: 2.25rem 0;
}

/* Check-in / Check-out */
.rd-cico {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

.rd-cico-block {
  background: rgba(151,175,34,.06);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}

.rd-cico-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.rd-cico-icon {
  color: var(--terra-dark);
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.rd-cico-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.rd-cico-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rd-cico-list li {
  font-family: var(--f-sans);
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.rd-cico-list li::before {
  content: '✓';
  color: var(--green-mid);
  font-size: 0.72rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Normas de la casa */
.rd-rules {
  background: rgba(133,185,117,.08);
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-left: 3px solid var(--green-mid);
}

.rd-rules-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.rd-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rd-rules-list li {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.rd-rules-list li::before {
  content: '✓';
  color: var(--green-mid);
  font-size: 0.72rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── RIGHT — Booking card ──────────────────────────────────────── */
.rd-right {
  position: sticky;
  top: 100px;
}

.rd-book-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.85rem;
  box-shadow: 0 8px 32px rgba(47,69,48,.10);
}

.rbc-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.rbc-desde {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.rbc-price strong {
  font-family: var(--f-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
}

.rbc-noche {
  font-family: var(--f-sans);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.rbc-stars {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  margin-bottom: 1.1rem;
  font-size: 0.7rem;
  color: var(--green-lime);
}

.rbc-reviews {
  font-family: var(--f-sans);
  font-size: 0.76rem;
  color: var(--muted);
  margin-left: 0.3rem;
}

.rbc-sep {
  height: 1px;
  background: rgba(30,30,30,.08);
  margin: 1rem 0;
}

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

.rbc-date-field,
.rbc-guests-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}
.rbc-dates .rbc-date-field { margin-bottom: 0; }

.rbc-children-note {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  color: #7a7a7a;
  margin: 0;
  line-height: 1.4;
}
.rbc-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.rbc-age-label {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  color: #555;
  white-space: nowrap;
}
.rbc-age-select {
  flex: 1;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  border: 1.5px solid rgba(30,30,30,.12);
  border-radius: 6px;
  background: var(--bg-light);
  color: #333;
  cursor: pointer;
}

.rbc-label {
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.rbc-label i { font-size: 0.65rem; }

.rbc-input {
  width: 100%;
  background: var(--bg-light);
  border: 1.5px solid rgba(30,30,30,.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-family: var(--f-sans);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
  cursor: pointer;
}
.rbc-input:focus { border-color: var(--green-mid); }

.rbc-guests-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-light);
  border: 1.5px solid rgba(30,30,30,.1);
  border-radius: 8px;
  overflow: hidden;
}

.rbc-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--green-dark);
  padding: 0.6rem 1rem;
  transition: background var(--ease), color var(--ease);
  font-weight: 600;
  line-height: 1;
}
.rbc-qty-btn:hover { background: var(--green-mid); color: var(--white); }

.rbc-qty-val {
  flex: 1;
  text-align: center;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* Total */
.rbc-total {
  background: rgba(151,175,34,.07);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.rbc-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.2rem 0;
}

.rbc-total-row--bold {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  border-top: 1px solid rgba(175,200,49,.25);
  margin-top: 0.3rem;
  padding-top: 0.5rem;
}

/* Botones */
.rbc-btn-reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--terra-dark);
  color: var(--white);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  margin-bottom: 0.65rem;
}
.rbc-btn-reserve:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125,151,41,.3);
  color: var(--white);
}

.rbc-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: transparent;
  color: var(--terra-dark);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--terra-dark);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.rbc-btn-contact:hover {
  background: var(--terra-dark);
  color: var(--white);
}

/* Policies */
.rbc-policies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(30,30,30,.07);
  padding-top: 1.1rem;
}

.rbc-policy-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-sans);
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.rbc-policy-item i {
  color: var(--green-mid);
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   AMENIDADES
   ══════════════════════════════════════════════════════════════ */
#rd-amenities {
  background: var(--white);
  padding: 5rem 0;
}

.rda-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rda-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.rda-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  font-family: var(--f-sans);
  font-size: 0.88rem;
  color: var(--text);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  border: 1.5px solid transparent;
}
.rda-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card);
  border-color: rgba(151,175,34,.25);
}

.rda-icon {
  width: 38px; height: 38px;
  background: rgba(151,175,34,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CARRUSEL — Otras habitaciones
   ══════════════════════════════════════════════════════════════ */
#rd-carousel {
  background: var(--forest);
  padding: 5rem 0 0;
  overflow: hidden;
  position: relative;
}
#rd-carousel::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1920&q=30') center/cover;
  opacity: .07;
}

.rdc-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 3rem;
}

.rdc-track-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding-bottom: 3.5rem;
}

.rdc-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: carouselScroll 38s linear infinite;
}

.rdc-track:hover { animation-play-state: paused; }

@keyframes carouselScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.rdc-card {
  flex-shrink: 0;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-decoration: none;
  display: block;
}

.rdc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
  border-color: rgba(175,200,49,.3);
}

.rdc-img {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.rdc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.rdc-card:hover .rdc-img img { transform: scale(1.07); }

.rdc-img-overlay {
  position: absolute; inset: 0;
  background: rgba(47,69,48,0);
  transition: background var(--ease);
}
.rdc-card:hover .rdc-img-overlay { background: rgba(47,69,48,.22); }

.rdc-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.75rem;
  border-radius: 50px;
  background: var(--green-mid);
  color: var(--white);
}
.rdc-badge--villa { background: var(--terra-light); }

.rdc-body {
  padding: 1.25rem;
}

.rdc-name {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.rdc-price {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 0.9rem;
}
.rdc-price strong {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

.rdc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 0.8rem;
}

.rdc-cta {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-mid);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: background var(--ease);
}
.rdc-card:hover .rdc-cta { background: var(--green-dark); }

.rdc-arrow {
  color: var(--white);
  font-size: 1rem;
  transition: color var(--ease), transform var(--ease);
}
.rdc-card:hover .rdc-arrow { color: var(--green-lime); transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .rd-grid { grid-template-columns: 1fr; gap: 3rem; }
  .rd-right { position: static; }
  .rda-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rh-content { bottom: 4rem; }
  .rh-h1 { font-size: 2rem; }
  .rd-cico { grid-template-columns: 1fr; }
  .rda-grid { grid-template-columns: repeat(2, 1fr); }
  .rbc-dates { grid-template-columns: 1fr; }
  .rdc-card { width: 260px; }
}

@media (max-width: 480px) {
  .rda-grid { grid-template-columns: 1fr 1fr; }
  .rh-breadcrumb { font-size: 0.72rem; gap: 0.35rem; }
}
