/* Equinoccio Hotel: páginas de habitaciones (listado e internas) */
:root {
  --rm-nav-h: 95px;
  --rm-ink: #072c2b;
  --rm-teal: #003e52;
  --rm-mint: #c9fffd;
  --rm-sand: #f6f3ec;
  --rm-line: #e4e0d6;
  --rm-text: #47585a;
  --rm-radius: 14px;
  --rm-serif: "Playfair Display", serif;
  --rm-sans: "Manrope", sans-serif;
}

html.rm-locked,
html.rm-locked body {
  overflow: hidden;
}

.rm {
  background: #fff;
  color: var(--rm-text);
  font-family: var(--rm-sans);
  font-size: 16px;
  line-height: 1.7;
}

.rm *,
.rm *::before,
.rm *::after {
  box-sizing: border-box;
}

.rm-wrap {
  width: min(1320px, 100% - 96px);
  margin-inline: auto;
}

.rm h1,
.rm h2,
.rm h3 {
  color: var(--rm-ink);
  font-family: var(--rm-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.rm p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 1em;
}

.rm a:hover {
  text-decoration: none;
}

.rm .material-symbols-outlined {
  flex: none;
  font-size: 22px;
  line-height: 1;
}

.rm-eyebrow {
  color: #17706a;
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ---------- Botones ---------- */
.rm-btn {
  align-items: center;
  background: var(--rm-teal);
  border: 1px solid var(--rm-teal);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.rm-btn:hover,
.rm-btn:focus-visible {
  background: var(--rm-ink);
  border-color: var(--rm-ink);
  color: #fff;
}

.rm-btn--ghost {
  background: transparent;
  color: var(--rm-teal);
}

.rm-btn--mint {
  background: var(--rm-mint);
  border-color: var(--rm-mint);
  color: var(--rm-ink);
  width: 100%;
}

.rm-btn--mint:hover,
.rm-btn--mint:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--rm-ink);
}

/* ---------- Mosaico de fotos ---------- */
.rm-mosaic {
  display: grid;
  gap: 10px;
  position: relative;
}

.rm-mosaic--3 {
  aspect-ratio: 3 / 2;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.rm-mosaic--5 {
  aspect-ratio: 21 / 9;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.rm-mosaic .rm-tile:first-child {
  grid-row: span 2;
}

.rm-tile {
  appearance: none;
  background: var(--rm-sand);
  border: 0;
  border-radius: var(--rm-radius);
  cursor: zoom-in;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.rm-tile img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

.rm-tile:hover img {
  transform: scale(1.04);
}

.rm-tile:focus-visible,
.rm-more:focus-visible,
.rm-viewer button:focus-visible,
.rm a:focus-visible {
  outline: 3px solid #17a398;
  outline-offset: 2px;
}

.rm-tag {
  background: rgba(7, 44, 43, 0.82);
  border-radius: 6px;
  bottom: 10px;
  color: #fff;
  font-family: var(--rm-sans);
  font-size: 12px;
  font-weight: 600;
  left: 10px;
  line-height: 1.3;
  padding: 4px 9px;
  position: absolute;
}

/* En el mosaico la etiqueta va arriba para no quedar debajo del botón de fotos. */
.rm-mosaic .rm-tag {
  bottom: auto;
  top: 10px;
}

.rm-more {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  bottom: 14px;
  box-shadow: 0 4px 18px rgba(7, 44, 43, 0.25);
  color: var(--rm-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--rm-sans);
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  position: absolute;
  right: 14px;
  transition: background-color 0.2s;
}

.rm-more:hover {
  background: var(--rm-mint);
}

/* ---------- Listado: portada ---------- */
.rm-hero {
  align-items: flex-end;
  background: linear-gradient(to top, rgba(7, 44, 43, 0.82), rgba(7, 44, 43, 0.12) 65%),
    url("/assets/img/Habitaciones/panoramica/panoramica-01.webp") center 55% / cover no-repeat;
  display: flex;
  min-height: 72vh;
  padding: calc(var(--rm-nav-h) + 40px) 0 56px;
}

.rm .rm-hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  max-width: 14em;
}

.rm-hero p {
  color: #fff;
  font-size: clamp(17px, 1.6vw, 21px);
  margin: 16px 0 0;
}

.rm-jump {
  border-bottom: 1px solid var(--rm-line);
}

.rm-jump ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}

.rm-jump ul::-webkit-scrollbar {
  display: none;
}

.rm-jump a {
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  color: var(--rm-ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  transition: background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.rm-jump a:hover {
  background: var(--rm-mint);
  border-color: var(--rm-mint);
  color: var(--rm-ink);
}

/* ---------- Listado: habitaciones ---------- */
.rm-room {
  padding: 72px 0;
  scroll-margin-top: var(--rm-nav-h);
}

.rm-room:nth-of-type(even) {
  background: var(--rm-sand);
}

.rm-room__grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.rm-room--flip .rm-room__grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.rm-room--flip .rm-mosaic {
  order: 2;
}

.rm .rm-room__title {
  font-size: clamp(30px, 3.2vw, 44px);
  margin-bottom: 16px;
}

.rm-facts {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
}

.rm-facts li {
  align-items: center;
  color: var(--rm-ink);
  display: flex;
  font-weight: 600;
  gap: 12px;
  line-height: 1.35;
}

.rm-facts .material-symbols-outlined {
  color: #17706a;
}

.rm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
}

.rm-pills li {
  align-items: center;
  border: 1.5px solid var(--rm-teal);
  border-radius: 999px;
  color: var(--rm-teal);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
  line-height: 1.25;
  padding: 7px 14px 7px 11px;
}

.rm .rm-pills .material-symbols-outlined {
  font-size: 18px;
}

.rm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Habitación: encabezado ---------- */
.rm-page-top {
  background: var(--rm-ink);
  height: var(--rm-nav-h);
}

.rm-head {
  padding: 28px 0 24px;
}

.rm-back {
  align-items: center;
  color: var(--rm-text);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 4px;
  margin-bottom: 18px;
  min-height: 32px;
}

.rm-back:hover {
  color: var(--rm-ink);
}

.rm .rm-head h1 {
  font-size: clamp(36px, 4.6vw, 60px);
}

/* ---------- Habitación: contenido ---------- */
.rm-body {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 56px 0 72px;
}

.rm p.rm-lead {
  color: var(--rm-ink);
  font-family: var(--rm-serif);
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.35;
  margin-bottom: 24px;
}

.rm p.rm-note {
  background: var(--rm-sand);
  border-radius: 8px;
  color: var(--rm-ink);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  padding: 12px 16px;
}

.rm .rm-subtitle {
  font-size: clamp(25px, 2.4vw, 32px);
  margin-bottom: 24px;
}

.rm-amenities-block {
  border-top: 1px solid var(--rm-line);
  margin-top: 40px;
  padding-top: 40px;
}

.rm-amenities {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-amenities li {
  align-items: center;
  color: var(--rm-ink);
  display: flex;
  font-size: 15px;
  gap: 12px;
  line-height: 1.35;
}

.rm-amenities .material-symbols-outlined {
  color: #17706a;
}

.rm-book {
  background: var(--rm-ink);
  border-radius: var(--rm-radius);
  color: #fff;
  padding: 30px;
  position: sticky;
  top: calc(var(--rm-nav-h) + 20px);
}

.rm .rm-book h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 4px;
}

.rm-book .rm-facts {
  margin: 20px 0 24px;
}

.rm-book .rm-facts li {
  color: #fff;
}

.rm-book .rm-facts .material-symbols-outlined {
  color: var(--rm-mint);
}

/* ---------- Habitación: galería ---------- */
.rm-gallery-block {
  background: var(--rm-sand);
  padding: 72px 0;
}

.rm-gallery {
  display: grid;
  gap: 10px;
  grid-auto-flow: dense;
  grid-auto-rows: 230px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-gallery .rm-tile--big {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- Habitación: otras habitaciones ---------- */
.rm-others {
  padding: 72px 0 88px;
}

.rm-others__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-card {
  color: var(--rm-ink);
  display: block;
}

.rm-card:hover {
  color: var(--rm-ink);
}

.rm-card__img {
  aspect-ratio: 3 / 2;
  background: var(--rm-sand);
  border-radius: var(--rm-radius);
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
}

.rm-card__img img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

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

.rm-card__name {
  display: block;
  font-family: var(--rm-serif);
  font-size: 23px;
  line-height: 1.25;
}

.rm-card__facts {
  color: var(--rm-text);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Visor de fotos ---------- */
.rm-viewer {
  background: rgba(4, 22, 22, 0.97);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: var(--rm-sans);
  inset: 0;
  position: fixed;
  z-index: 100000;
}

.rm-viewer[hidden] {
  display: none;
}

.rm-viewer__bar {
  align-items: center;
  display: flex;
  flex: none;
  justify-content: space-between;
  padding: 10px 16px;
}

.rm-viewer__count {
  font-size: 15px;
  font-weight: 600;
  padding-left: 8px;
}

.rm-viewer__btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: none;
  height: 46px;
  justify-content: center;
  transition: background-color 0.2s;
  width: 46px;
}

.rm-viewer__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.rm-viewer__stage {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 16px;
  justify-content: space-between;
  min-height: 0;
  padding: 0 16px;
}

.rm-viewer__figure {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.rm-viewer__figure img {
  border-radius: 6px;
  flex: 0 1 auto;
  max-height: calc(100% - 40px);
  max-width: 100%;
  min-height: 0;
  object-fit: contain;
}

.rm-viewer__figure figcaption {
  flex: none;
  font-size: 15px;
  line-height: 1.3;
  padding-top: 12px;
  text-align: center;
}

.rm-viewer__thumbs {
  display: flex;
  flex: none;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px;
  scrollbar-width: none;
}

.rm-viewer__thumbs button {
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
  height: 62px;
  opacity: 0.55;
  overflow: hidden;
  padding: 0;
  transition: opacity 0.2s, border-color 0.2s;
  width: 88px;
}

.rm-viewer__thumbs button:first-child {
  margin-left: auto;
}

.rm-viewer__thumbs button:last-child {
  margin-right: auto;
}

.rm-viewer__thumbs button:hover,
.rm-viewer__thumbs button.is-active {
  opacity: 1;
}

.rm-viewer__thumbs button.is-active {
  border-color: var(--rm-mint);
}

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

/* ---------- Tableta ---------- */
@media (max-width: 1100px) {
  .rm-wrap {
    width: calc(100% - 56px);
  }

  .rm-room__grid,
  .rm-room--flip .rm-room__grid {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-room--flip .rm-mosaic {
    order: 0;
  }

  .rm-mosaic--5 {
    aspect-ratio: 16 / 9;
  }

  .rm-body {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-book {
    position: static;
  }

  .rm-gallery {
    grid-auto-rows: 170px;
  }
}

/* ---------- Móvil ---------- */
@media (max-width: 680px) {
  .rm-wrap {
    width: calc(100% - 32px);
  }

  .rm-hero {
    min-height: 58vh;
    padding-bottom: 36px;
  }

  .rm-room,
  .rm-gallery-block,
  .rm-others {
    padding: 44px 0;
  }

  .rm-body {
    padding: 36px 0 44px;
  }

  .rm-mosaic--3,
  .rm-mosaic--5 {
    aspect-ratio: auto;
    gap: 6px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .rm-mosaic .rm-tile {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .rm-mosaic .rm-tile:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .rm-mosaic--5 .rm-tile:nth-child(n + 4):not(.rm-more) {
    display: none;
  }

  .rm-tile {
    border-radius: 10px;
  }

  .rm-more {
    bottom: 8px;
    font-size: 13px;
    padding: 6px 12px;
    right: 8px;
  }

  .rm-tag {
    bottom: 6px;
    font-size: 11px;
    left: 6px;
    padding: 3px 7px;
  }

  .rm-mosaic .rm-tag {
    bottom: auto;
    top: 6px;
  }

  .rm-actions .rm-btn {
    flex: 1 1 100%;
  }

  .rm-pills {
    gap: 6px;
  }

  .rm-pills li {
    font-size: 13px;
    padding: 6px 12px 6px 9px;
  }

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

  .rm-gallery {
    gap: 6px;
    grid-auto-rows: 130px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-others__grid {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-viewer__stage {
    padding: 0 6px;
    position: relative;
  }

  .rm-viewer__nav {
    display: none;
  }

  .rm-viewer__thumbs button {
    height: 50px;
    width: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-tile img,
  .rm-card__img img {
    transition: none;
  }

  .rm-tile:hover img,
  .rm-card:hover .rm-card__img img {
    transform: none;
  }
}
