/* ============================================
   FEEL FARO — Rooms page (rooms.html)
   Styles específicos da página de quartos.
   Usa as variáveis de css/style.css (--gold, --navy, --linen...).
   ============================================ */

:root { --rm-nav-h: 64px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Hero ─────────────────────────────────── */
.rm-hero h1 {
  font-size: clamp(2rem, 5.2vw, 4rem);
  max-width: 880px;
  color: #fff;
}
.rm-hero .page-hero__content .t-eyebrow { color: var(--gold-light); margin-bottom: 16px; }

/* ── Intro ────────────────────────────────── */
.rm-intro {
  background: var(--linen);
  padding: clamp(40px, 7vw, 76px) clamp(20px, 6vw, 80px) clamp(24px, 4vw, 40px);
  text-align: center;
}
.rm-intro__inner { max-width: 760px; margin: 0 auto; }
.rm-intro__text {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: #5b5853;
  font-weight: 300;
}
.rm-intro__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ocean);
  margin-top: 18px;
}

/* ── Accessibility note ───────────────────── */
.rm-access {
  max-width: 760px;
  margin: 28px auto 0;
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  background: var(--sand);
  font-size: 0.85rem; line-height: 1.65; color: #4d4a45;
}
.rm-access svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold); }
.rm-access a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sticky room navigation ───────────────── */
.rm-subnav {
  position: sticky; top: var(--rm-nav-h); z-index: 900;
  background: rgba(250, 249, 246, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--limestone);
  border-bottom: 1px solid var(--limestone);
}
.rm-subnav__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 10px clamp(12px, 3vw, 40px);
  overflow-x: auto; scrollbar-width: none;
}
.rm-subnav__inner::-webkit-scrollbar { display: none; }
.rm-subnav__link {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--limestone);
  color: var(--charcoal); background: #fff;
  transition: var(--transition-fast);
}
.rm-subnav__link:hover { border-color: var(--gold); color: var(--gold); }
.rm-subnav__link.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.rm-subnav__link b { font-weight: 500; color: var(--gold); margin-right: 6px; }
.rm-subnav__link.is-active b { color: var(--gold-light); }

/* ── Section titles (not headings: only room names are H2) ── */
.rm-section-title {
  font-family: var(--font-serif); font-weight: 300; color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2;
}

/* ── Comparison table ─────────────────────── */
.rm-compare {
  background: var(--linen);
  padding: clamp(32px, 5vw, 56px) clamp(16px, 6vw, 80px);
}
.rm-compare__inner { max-width: 1180px; margin: 0 auto; }
.rm-compare__head { text-align: center; margin-bottom: 28px; }
.rm-compare__head .t-eyebrow { margin-bottom: 10px; }
.rm-table {
  width: 100%; border-collapse: collapse; background: #fff;
  box-shadow: 0 4px 24px rgba(30,45,74,0.07);
  font-size: 0.86rem;
}
.rm-table th, .rm-table td {
  text-align: left; padding: 16px 18px; vertical-align: top;
  border-bottom: 1px solid var(--limestone); line-height: 1.5;
}
.rm-table thead th {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--gold); background: var(--sand);
}
.rm-table tbody tr:hover { background: #fcfbf8; }
.rm-table tbody th { font-weight: 400; }
.rm-table__room {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy);
}
.rm-table__room img { width: 64px; height: 48px; object-fit: cover; flex: 0 0 auto; }
.rm-table__room:hover { color: var(--gold); }
.rm-table small { display: block; color: #77746f; font-size: 0.76rem; margin-top: 2px; }
.rm-compare__note {
  margin-top: 16px; text-align: center; font-size: 0.82rem; color: #5b5853;
}

/* ── Room blocks ──────────────────────────── */
.rm-rooms { background: var(--linen); padding: clamp(24px, 4vw, 48px) clamp(14px, 5vw, 80px) clamp(40px, 6vw, 80px); }
.rm-rooms__inner { max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 48px); }

.rm-room {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px); align-items: start;
  background: #fff; padding: clamp(14px, 3vw, 40px);
  box-shadow: 0 4px 24px rgba(30,45,74,0.07), 0 1px 4px rgba(30,45,74,0.04);
  scroll-margin-top: calc(var(--rm-nav-h) + 70px);
}
.rm-legacy-anchor { position: absolute; scroll-margin-top: calc(var(--rm-nav-h) + 70px); }
.rm-room { position: relative; }

/* gallery */
.rm-gallery { min-width: 0; }
.rm-stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--limestone);
}
.rm-stage::before {
  content: ''; position: absolute; inset: -24px; opacity: 0;
  background: var(--bg) center / cover no-repeat;
  filter: blur(22px) brightness(0.92); transition: opacity 0.3s;
}
.rm-stage[data-orient="p"]::before,
.rm-stage[data-orient="w"]::before { opacity: 1; }
.rm-stage__img {
  position: relative; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.rm-stage[data-orient="p"] .rm-stage__img,
.rm-stage[data-orient="w"] .rm-stage__img { object-fit: contain; }
.rm-stage__open {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: zoom-in; background: transparent; z-index: 1;
}
.rm-stage__open:focus-visible, .rm-thumb:focus-visible, .rm-subnav__link:focus-visible,
.rm-stage__nav:focus-visible, .rm-lightbox button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.rm-stage__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2; pointer-events: none;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); color: #fff;
}
.rm-stage__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); color: #fff; transition: background 0.2s;
}
.rm-stage__nav:hover { background: rgba(0,0,0,0.72); }
.rm-stage__nav--prev { left: 10px; }
.rm-stage__nav--next { right: 10px; }
.rm-stage__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  font-size: 0.7rem; letter-spacing: 0.1em; color: #fff;
  background: rgba(0,0,0,0.5); padding: 4px 10px;
}
.rm-thumbs {
  display: flex; gap: 8px; margin-top: 8px; padding-bottom: 4px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.rm-thumbs li { flex: 0 0 auto; scroll-snap-align: start; }
.rm-thumb {
  display: block; width: 92px; height: 69px; overflow: hidden;
  border: 2px solid transparent; opacity: 0.7; transition: var(--transition-fast);
}
.rm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rm-thumb:hover { opacity: 1; }
.rm-thumb.is-active { border-color: var(--gold); opacity: 1; }

/* info */
.rm-info { min-width: 0; }
.rm-num {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 300; line-height: 1;
  color: var(--gold-light); opacity: 0.55; margin-bottom: 6px;
}
.rm-floor { margin-bottom: 4px; }
.rm-name {
  font-family: var(--font-serif); font-weight: 300; color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; margin: 6px 0 16px;
}
.rm-desc { font-size: 0.95rem; line-height: 1.85; color: #4d4a45; font-weight: 300; margin-top: 18px; }
.rm-inspo {
  font-family: var(--font-serif); font-style: italic; font-size: 1.05rem;
  color: var(--ocean); margin-top: 10px;
}
.rm-specs { margin: 22px 0 0; border-top: 1px solid var(--limestone); }
.rm-specs > div {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--limestone); font-size: 0.88rem; line-height: 1.55;
}
.rm-specs dt {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--gold); padding-top: 3px;
}
.rm-specs dd { color: var(--charcoal); }
.rm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.rm-tag {
  font-size: 0.68rem; letter-spacing: 0.06em; padding: 5px 11px;
  background: var(--sand); color: #4d4a45;
}
.rm-tag--hl { background: var(--navy); color: #fff; }
.rm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.rm-back { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ocean); }
.rm-back:hover { color: var(--gold); }

/* ── Related links ────────────────────────── */
.rm-related { background: var(--sand); padding: clamp(32px, 5vw, 56px) clamp(20px, 6vw, 80px); }
.rm-related__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.rm-related__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.rm-related__intro { max-width: 640px; margin: 12px auto 0; font-size: 0.9rem; line-height: 1.75; color: #5b5853; }

/* ── Lightbox ─────────────────────────────── */
.rm-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(20, 22, 28, 0.94);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 64px 24px;
}
.rm-lightbox.is-open { display: flex; }
.rm-lightbox__fig { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.rm-lightbox__img {
  max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto;
  margin: 0 auto; object-fit: contain;
}
.rm-lightbox__cap { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin-top: 12px; line-height: 1.5; }
.rm-lightbox__count { color: var(--gold-light); font-size: 0.7rem; letter-spacing: 0.16em; margin-top: 6px; }
.rm-lightbox__btn {
  position: absolute; color: #fff; background: rgba(255,255,255,0.08);
  width: 48px; height: 48px; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.rm-lightbox__btn:hover { background: rgba(255,255,255,0.22); }
.rm-lightbox__close { top: 12px; right: 12px; }
.rm-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.rm-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ── Aguarelas da Margarida (foto + texto) ── */
.rm-margarida {
  max-width: 920px; margin: 0 auto; text-align: center;
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(24px, 5vw, 56px); align-items: center;
}
.rm-margarida__photo { margin: 0; }
.rm-margarida__photo img {
  display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover;
  object-position: 50% 40%; box-shadow: 0 8px 28px rgba(30,45,74,0.14);
}
.rm-margarida__photo figcaption {
  margin-top: 10px; font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--warm-grey); font-style: italic;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 720px) {
  .rm-margarida { grid-template-columns: 1fr; }
  .rm-margarida__photo { max-width: 300px; margin: 0 auto; }
  .rm-margarida__photo img { max-height: 380px; }
}
@media (max-width: 960px) {
  .rm-room { grid-template-columns: 1fr; }
  .rm-table th, .rm-table td { padding: 14px 12px; }
}
@media (max-width: 720px) {
  .rm-subnav__inner { justify-content: flex-start; }
  .rm-table, .rm-table tbody, .rm-table tr, .rm-table th, .rm-table td { display: block; }
  .rm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .rm-table { background: transparent; box-shadow: none; }
  .rm-table tr {
    background: #fff; margin-bottom: 14px; padding: 6px 0 8px;
    box-shadow: 0 3px 16px rgba(30,45,74,0.07);
  }
  .rm-table th, .rm-table td { border: 0; padding: 7px 16px; }
  .rm-table tbody th { padding-top: 12px; padding-bottom: 8px; }
  .rm-table td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  body.pt .rm-table td::before { content: attr(data-label-pt); }
  .rm-table td::before {
    content: attr(data-label); font-size: 0.62rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold); font-weight: 500; padding-top: 3px;
  }
  .rm-lightbox { padding: 56px 8px 16px; }
  .rm-lightbox__prev { left: 4px; }
  .rm-lightbox__next { right: 4px; }
  .rm-lightbox__btn { width: 42px; height: 42px; background: rgba(0,0,0,0.5); }
}
@media (max-width: 480px) {
  .rm-specs > div { grid-template-columns: 96px 1fr; gap: 10px; }
  .rm-thumb { width: 76px; height: 57px; }
  .rm-stage__nav { width: 38px; height: 38px; }
  .rm-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-stage::before, .rm-thumb { transition: none; }
}
