/* =========================================================
   Room page (/rooms/<sid>/) — redesigned 2026-05-12.
   Pairs with scripts/build_short_room_pages.py.
   ========================================================= */

.rp-body {
  background: var(--bg, #FAF7F2);
  padding-bottom: 80px; /* room for mobile sticky bar */
}

.rp-page {
  max-width: 1180px;
  margin: 0 auto;
  /* top padding clears the position:fixed .site-header (≈64px tall) */
  padding: 96px clamp(16px, 4vw, 32px) 60px;
}
@media (max-width: 720px) {
  .rp-page { padding-top: 80px; }
}

/* Crumbs ---------------------------------------------------- */
.rp-crumbs {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #7a7468);
  margin: 10px 0 28px;
}
.rp-crumbs a { color: var(--muted, #7a7468); text-decoration: none; border-bottom: 1px solid transparent; }
.rp-crumbs a:hover { color: var(--ink, #1f1b15); border-color: currentColor; }
.rp-crumbs span { margin: 0 8px; opacity: .5; }
.rp-crumbs > span:last-child { color: var(--ink, #1f1b15); opacity: 1; }

/* Headline -------------------------------------------------- */
.rp-headline {
  margin: 0 0 24px;
}
.rp-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent, #B7894F);
  margin-bottom: 8px;
}
.rp-headline h1 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink, #1f1b15);
}
.rp-headline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  color: var(--ink-2, #3a342a);
  font-size: .94rem;
}
.rp-headline-meta > span { display: inline-flex; align-items: baseline; }
.rp-headline-meta > span + span::before {
  content: '·';
  margin-right: 18px;
  margin-left: -10px;
  color: var(--muted, #b6ada0);
}
.rp-meta-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #1f1b15);
}
.rp-meta-price small { font-weight: 400; color: var(--muted, #7a7468); margin-left: 2px; }
.rp-meta-avail { color: var(--accent, #B7894F); font-weight: 500; }

/* Mosaic photos -------------------------------------------- */
.rp-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 36px;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt, #F2EEE5);
}
.rp-tile {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt, #F2EEE5);
}
.rp-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.18,.7,.2,1);
}
.rp-tile:hover img { transform: scale(1.03); }
.rp-tile-lg img { border-top-left-radius: 18px; border-bottom-left-radius: 18px; }
.rp-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.rp-mosaic-grid .rp-tile:nth-child(2) img { border-top-right-radius: 18px; }
.rp-mosaic-grid .rp-tile:nth-child(4) img { border-bottom-right-radius: 18px; }
.rp-tile-empty { background: var(--bg-alt, #F2EEE5); }
.rp-all-photos {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink, #1f1b15);
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .2s var(--ease, ease);
}
.rp-all-photos:hover { transform: translateY(-1px); }

/* Body grid (split with sticky sidebar) ------------------- */
.rp-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 360px);
  gap: 56px;
  align-items: start;
}
.rp-body-main { min-width: 0; }

.rp-section { margin: 0 0 40px; padding: 0 0 36px; border-bottom: 1px solid var(--line, #e5e1d6); }
.rp-section:last-child { border-bottom: none; padding-bottom: 0; }
.rp-section-title {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink, #1f1b15);
}
.rp-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2, #3a342a);
  margin: 0;
  max-width: 60ch;
}
.rp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent, #B7894F);
  font-weight: 500;
  font-size: .94rem;
  text-decoration: none;
}
.rp-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease, ease); }
.rp-link:hover svg { transform: translateX(3px); }

/* Amenity chips ------------------------------------------- */
.rp-chips {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line, #e5e1d6);
  border-radius: 12px;
  font-size: .9rem;
  color: var(--ink-2, #3a342a);
  transition: border-color .15s var(--ease, ease), transform .15s var(--ease, ease);
}
.rp-chip:hover { border-color: var(--accent, #B7894F); transform: translateY(-1px); }
.rp-chip svg { width: 18px; height: 18px; color: var(--accent, #B7894F); flex-shrink: 0; }

/* Reserve sidebar card ------------------------------------ */
.rp-sidebar {
  position: sticky;
  top: 96px;
}
.rp-reserve-card {
  background: #fff;
  border: 1px solid var(--line, #e5e1d6);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.03);
}
.rp-price-card {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line, #e5e1d6);
}
.rp-price-from {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #7a7468);
  align-self: flex-end;
  margin-bottom: 6px;
}
.rp-price-big {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 2.3rem;
  font-weight: 500;
  color: var(--ink, #1f1b15);
  letter-spacing: -0.01em;
}
.rp-price-unit { color: var(--muted, #7a7468); font-size: .92rem; }
.rp-sticky-from { color: var(--muted, #7a7468); font-size: .78rem; font-weight: 500; letter-spacing: .04em; margin-right: 2px; text-transform: uppercase; }
.rp-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}
.rp-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .92rem;
  color: var(--ink-2, #3a342a);
  border-bottom: 1px dashed var(--line, #e5e1d6);
  padding-bottom: 8px;
}
.rp-specs li:last-child { border-bottom: none; padding-bottom: 0; }
.rp-specs strong { font-weight: 500; }
.rp-specs span {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #7a7468);
}
.rp-reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  background: var(--ink, #1f1b15);
  color: var(--bg, #FAF7F2);
  border-radius: 999px;
  font-weight: 500;
  font-size: .96rem;
  text-decoration: none;
  transition: background .2s var(--ease, ease), transform .15s var(--ease, ease);
}
.rp-reserve-btn:hover { background: var(--accent, #B7894F); transform: translateY(-1px); }
.rp-reserve-btn svg { width: 18px; height: 18px; }
.rp-ask-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 12px;
  color: var(--ink-2, #3a342a);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rp-ask-btn:hover { color: var(--accent, #B7894F); }
.rp-reserve-policy {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: .82rem;
  color: var(--muted, #888);
  line-height: 1.4;
}
.rp-reserve-policy a { color: var(--ink-2, #3a342a); text-decoration: underline; text-underline-offset: 2px; }
.rp-reserve-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e5e1d6);
  font-size: .78rem;
  color: var(--muted, #7a7468);
  text-align: center;
  line-height: 1.5;
}

/* Full gallery -------------------------------------------- */
.rp-gallery { margin: 40px 0; padding-top: 36px; border-top: 1px solid var(--line, #e5e1d6); }
.rp-section-head { margin-bottom: 18px; }
.rp-section-head .eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent, #B7894F);
  margin-bottom: 4px;
}
.rp-section-head h2 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  margin: 0;
  color: var(--ink, #1f1b15);
}
.rp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.rp-gphoto { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--bg-alt, #F2EEE5); }
.rp-gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease, ease); }
.rp-gphoto:hover img { transform: scale(1.04); }

/* Other rooms cards --------------------------------------- */
.rp-others {
  background: var(--bg-alt, #F2EEE5);
  margin: 60px -clamp(16px, 4vw, 32px) -60px;
  padding: 56px clamp(16px, 4vw, 32px) 70px;
  border-top: 1px solid var(--line, #e5e1d6);
}
.rp-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.rp-other-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line, #e5e1d6);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease);
}
.rp-other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.rp-other-photo {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt, #F2EEE5);
}
.rp-other-body { padding: 12px 14px 14px; }
.rp-other-bed {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent, #B7894F);
  font-weight: 600;
  margin-bottom: 4px;
}
.rp-other-title {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink, #1f1b15);
  line-height: 1.25;
}
.rp-other-price {
  color: var(--ink, #1f1b15);
  font-weight: 600;
  font-size: .95rem;
}
.rp-other-price small { font-weight: 400; color: var(--muted, #7a7468); }

/* Mobile sticky bottom bar -------------------------------- */
.rp-sticky-mobile {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line, #e5e1d6);
  z-index: 80;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rp-sticky-price { font-size: .92rem; color: var(--ink, #1f1b15); }
.rp-sticky-price strong { font-size: 1.1rem; font-weight: 600; }
.rp-sticky-price small { color: var(--muted, #7a7468); }
.rp-sticky-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--ink, #1f1b15);
  color: var(--bg, #FAF7F2);
  border-radius: 999px;
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
}
.rp-sticky-btn:hover { background: var(--accent, #B7894F); }

/* Monthly price grid (Spotahome-style) ---------------------- */
.rp-prices-block {
  padding: 28px 28px 24px;
  border: 1px solid #e8e2d4;
  background: #fdfcf8;
  border-radius: 18px;
  margin: 0 0 36px;
}
.rp-prices-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 6px;
}
.rp-prices-head .rp-section-title { margin: 0; }
.rp-prices-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.rp-prices-headline small {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .76rem;
  color: #888;
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rp-prices-range small:first-of-type { margin: 0 4px; color: #c4b89e; }
.rp-prices-lede {
  margin: 8px 0 18px;
  color: #555;
  font-size: .92rem;
  line-height: 1.55;
}
.rp-prices-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}
.rp-price-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px 14px;
  background: #fff;
  border: 1px solid #ede6d6;
  border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease;
}
.rp-price-cell-month {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #999;
  font-weight: 600;
  margin-bottom: 4px;
}
.rp-price-cell-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}
.rp-price-cell.is-summer {
  background: #fff8eb;
  border-color: #f3d7a7;
}
.rp-price-cell.is-summer .rp-price-cell-month { color: #b06a10; }
.rp-price-cell.is-summer .rp-price-cell-amount { color: #1a1a1a; }
.rp-price-cell.is-current {
  border-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.rp-price-cell.is-current .rp-price-cell-month { color: #fd8e20; }
.rp-price-cell.is-na .rp-price-cell-amount { color: #c4b89e; }
.rp-prices-note {
  margin: 14px 0 6px;
  padding: 10px 14px;
  background: #fff8eb;
  border-left: 3px solid #fd8e20;
  border-radius: 4px;
  font-size: .9rem;
  color: #5a4828;
  line-height: 1.5;
}
.rp-prices-foot {
  margin: 8px 0 0;
  font-size: .82rem;
  color: #888;
  line-height: 1.5;
}
.rp-prices-foot a { color: #1a1a1a; }
@media (max-width: 640px) {
  .rp-prices-block { padding: 22px 18px; border-radius: 14px; }
  .rp-prices-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .rp-price-cell { padding: 10px 4px 12px; border-radius: 10px; }
  .rp-price-cell-amount { font-size: 1.05rem; }
  .rp-prices-headline { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .rp-prices-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Responsive ---------------------------------------------- */
@media (max-width: 1000px) {
  .rp-body-grid { grid-template-columns: 1fr; gap: 32px; }
  .rp-sidebar { position: static; top: auto; order: -1; }
  .rp-reserve-card { display: none; } /* hide desktop card on mobile — use bottom bar */
}
@media (max-width: 720px) {
  .rp-mosaic {
    grid-template-columns: 1fr;
    aspect-ratio: 4/3;
  }
  .rp-mosaic-grid { display: none; }
  .rp-all-photos { bottom: 12px; right: 12px; }
  .rp-tile-lg img { border-radius: 18px; }
  .rp-headline h1 { font-size: 1.7rem; }
  .rp-headline-meta { gap: 6px 14px; font-size: .86rem; }
  .rp-headline-meta > span + span::before { display: none; }
  .rp-sticky-mobile { display: flex; }
  .rp-others { margin: 40px -16px -60px; padding: 40px 16px 80px; }
}
