/* Rooms page styles */

.rooms-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.rooms-toc a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--pine-900);
  background: var(--paper);
  transition: background .2s ease, border-color .2s ease;
}
.rooms-toc a:hover { background: var(--pine-900); color: var(--cream); border-color: var(--pine-900); }
.rooms-toc a span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
}
.rooms-toc a:hover span { color: var(--brass-light); }

.room-detail {
  padding: clamp(72px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.room-detail.dark {
  background: var(--pine-900);
  color: var(--cream);
  border-bottom: none;
}
.room-detail.dark h2 { color: var(--cream); }

.rd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.rd-grid.reverse .rd-media { order: 2; }

.rd-media { position: relative; }
.rd-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21,40,31,0.4);
}
.rd-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 12s ease-out;
}
.rd-media:hover .rd-main img { transform: scale(1.06); }
.rd-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.rd-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: opacity .2s ease, transform .35s ease;
}
.rd-thumbs img:hover { opacity: 0.85; transform: translateY(-2px); }

.rd-copy h2 { margin: 18px 0 24px; }
.rd-features {
  list-style: none; padding: 0; margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.rd-features.dark { border-color: rgba(255,255,255,0.16); }
.rd-features li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding-right: 18px;
}
.rd-features.dark li { border-color: rgba(255,255,255,0.16); }
.rd-features li:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 18px; }
.rd-features strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--pine-900);
  letter-spacing: -0.01em;
}
.rd-features.dark strong { color: var(--cream); }
.rd-features span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.rd-features.dark span { color: rgba(255,255,255,0.55); }

.rd-included { margin: 32px 0; }
.rd-included h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 16px;
}
.rd-included.dark h4 { color: var(--brass-light); }
.rd-included ul {
  list-style: none; padding: 0; margin: 0;
  columns: 2;
  column-gap: 32px;
}
.rd-included ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-soft);
  break-inside: avoid;
}
.rd-included.dark ul li { color: rgba(255,255,255,0.78); }
.rd-included ul li::before {
  content: '·';
  color: var(--brass);
  margin-right: 10px;
  font-weight: 700;
}

.rd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  flex-wrap: wrap;
}
.room-detail.dark .rd-foot { border-color: rgba(255,255,255,0.16); }
.rd-price { display: flex; align-items: baseline; gap: 6px; }
.rd-price .cur {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--brass-dark);
}
.rd-price.light .cur { color: var(--brass-light); }
.rd-price .num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--pine-900);
  letter-spacing: -0.02em;
}
.rd-price.light .num { color: var(--cream); }
.rd-price .per {
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: 8px;
}
.rd-price.light .per { color: rgba(255,255,255,0.6); }

/* Split AC / non-AC rate, for room types that have both */
.rd-price-split { flex-direction: column; align-items: flex-start; gap: 4px; }
.rd-rates { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rd-rate { display: flex; align-items: baseline; gap: 6px; }
.rd-rate .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 4px;
}
.rd-price.light .rd-rate .lbl { color: rgba(255,255,255,0.6); }
.rd-price-split .num { font-size: 34px; }
.rd-price-split .per { margin-left: 0; }

/* Compare */
.rooms-compare { background: var(--cream-50); }
.compare-table {
  border-top: 1px solid var(--rule);
  /* --cols is set inline from the template: one column per room type. */
  --cols: 3;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(var(--cols), 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.compare-row > div {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  border-left: 1px solid var(--rule);
}
.compare-row > div:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
  border-left: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream-50);
}
.compare-head > div:first-child,
.compare-foot > div:first-child { background: var(--paper); }
.compare-head { padding: 24px 0; background: var(--paper); }
.compare-head > div { padding: 24px; position: relative; }
/* Clear the absolutely-positioned "Most loved" pill (top:12px, ~22px tall). */
.compare-head > div:not(:first-child) { padding-top: 44px; }
.compare-head h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--pine-900);
}
.compare-head .cp-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brass-dark);
}
.compare-head .cp-price span,
.compare-head .cp-price em {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-right: 4px;
}
.compare-head .cp-price em {
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.75;
}
.compare-head .cp-price + .cp-price { margin-top: 2px; }
.cp-badge {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--brass);
  color: var(--cream-50);
  border-radius: 999px;
  font-weight: 600;
}
.featured-col {
  background: var(--pine-900);
  color: var(--cream) !important;
}
.featured-col h4, .featured-col .cp-price { color: var(--cream) !important; }
.featured-col .cp-price { color: var(--brass-light) !important; }
.compare-foot { background: var(--paper); }
.compare-foot > div { padding: 24px; }



/* Below 1100px the room columns get too narrow to read without sideways
   scrolling, so the table is dropped: each room section above already lists
   the same specs and prices. */
@media (max-width: 1100px) {
  .rooms-compare { display: none; }
}
@media (max-width: 1024px) {
  .rd-grid, .rd-grid.reverse { grid-template-columns: 1fr; }
  .rd-grid.reverse .rd-media { order: 0; }
  .rd-main { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .rd-included ul { columns: 1; }
  .rd-features { grid-template-columns: 1fr; }
  .rd-features li, .rd-features li:nth-child(2n) { padding: 18px 0; border-right: none; }
}
