.room-page { padding-bottom: 72px; }
.room-head { padding: 32px 0 24px; }
.room-head h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.02; }
.room-meta { margin: 12px 0 0; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 500; }
.room-meta span { display: inline-flex; align-items: center; gap: 6px; }

.room-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.gallery { flex: 1 1 420px; min-width: 0; position: sticky; top: 20px; }
.booking-col { flex: 1.25 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Galeria */
.gallery-main { position: relative; border-radius: 14px; overflow: hidden; background: var(--yellow-soft); aspect-ratio: 4 / 5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 32px; color: var(--yellow-deep); text-align: center; padding: 24px; }
.gal-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.gal-nav:hover { background: #fff; }
.gal-nav.prev { left: 14px; }
.gal-nav.next { right: 14px; }
.gal-count { position: absolute; right: 14px; bottom: 14px; background: rgba(30,30,30,.75); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gallery-thumbs:empty { display: none; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--line); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--yellow); }
.room-desc { margin-top: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.7; white-space: pre-line; }

/* Cartão de reserva */
.book-card { padding: clamp(18px, 3vw, 28px); }
.book-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.from-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow-deep); }
.from-price { margin: 2px 0 0; }
.from-price b { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.from-price span { color: var(--ink-2); }
.guests-inline { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.guests-inline .counter { gap: 8px; }
.c-label { font-weight: 600; font-size: 14px; min-width: 62px; }
.guests-inline .counter button { width: 40px; height: 40px; }
.cap-warn { margin: -6px 0 14px; color: var(--bad); font-size: 14px; font-weight: 600; }

/* Orçamento */
.quote { padding: 22px clamp(18px, 3vw, 28px); }
.q-dates { display: flex; align-items: center; gap: 16px; }
.q-dates > div { flex: 1; min-width: 0; background: var(--ground); border-radius: 10px; padding: 12px 14px; }
.q-dates span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.q-dates b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; margin-top: 2px; }
.q-dates small { color: var(--ink-2); font-size: 13px; }
.q-break { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.q-break summary { display: flex; justify-content: space-between; padding: 12px 0; cursor: pointer; font-size: 15px; list-style: none; }
.q-break summary::-webkit-details-marker { display: none; }
.q-break summary span:first-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.q-break ul { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--ink-2); }
.q-break li { display: flex; justify-content: space-between; padding: 4px 0; }
.q-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 700; }
.q-total b { font-family: var(--serif); font-weight: 400; font-size: 34px; }

.form-card { padding: clamp(18px, 3vw, 28px); }
.form-card h2 { font-size: 28px; }
.form-card form.guest { padding: 20px 0; }

@media (max-width: 980px) {
  .gallery { position: static; }
  .gallery-main { aspect-ratio: 4 / 3; }
}

/* Página inicial */
.search-grid { max-width: 920px; }
.rooms-title { font-size: clamp(30px, 4vw, 42px); margin: 56px 0 8px; }
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.show-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.show-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30,30,30,.10); }
.show-card.is-off { opacity: .6; }
.show-img { aspect-ratio: 4 / 3; background: var(--yellow-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--yellow-deep); }
.show-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.show-body h3 { font-size: 26px; }
.show-body p { margin: 0; }
.show-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.show-price small { display: block; font-size: 12px; color: var(--ink-2); }
.show-price b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.show-cta { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* ---------- Celular ---------- */
.mbar { display: none; }
@media (max-width: 640px) {
  .room-head { padding: 22px 0 16px; }
  .room-grid { gap: 20px; }
  .gallery-main { aspect-ratio: 4 / 3; border-radius: 12px; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); border-radius: 0; }
  .gallery-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .room-desc { font-size: 15px; margin-top: 16px; }
  .book-card, .quote, .form-card { border-radius: 12px; }
  .book-card { padding: 16px 14px; }
  .book-top { gap: 12px; margin-bottom: 12px; padding-bottom: 14px; }
  .from-price b { font-size: 28px; }
  .guests-inline { width: 100%; justify-content: space-between; gap: 8px; }
  .c-label { min-width: 0; font-size: 13px; }
  .q-dates { gap: 8px; }
  .q-dates > div { padding: 10px; }
  .q-dates b { font-size: 18px; }
  .q-dates small { font-size: 12px; }
  .q-total b { font-size: 28px; }
  .form-card form.guest { grid-template-columns: 1fr; }

  /* Barra fixa com total e botão, enquanto o resumo não está visível */
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    transform: translateY(110%); transition: transform .2s; }
  .mbar.show { transform: none; }
  .mbar small { display: block; font-size: 12px; color: var(--ink-2); }
  .mbar b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
  .mbar .btn { min-height: 48px; padding: 0 20px; flex: none; }
  body.has-mbar { padding-bottom: 84px; }

  /* Vitrine (/reservar): cartão horizontal compacto */
  .showcase { grid-template-columns: 1fr; gap: 12px; }
  .show-card { flex-direction: row; border-radius: 12px; }
  .show-img { aspect-ratio: auto; width: 118px; flex: none; font-size: 16px; text-align: center; padding: 6px; }
  .show-body { padding: 12px 14px; }
  .show-body h3 { font-size: 20px; }
  .show-body p { font-size: 13px; }
  .show-foot { padding-top: 8px; flex-wrap: wrap; gap: 6px; }
  .show-price b { font-size: 20px; }
  .rooms-title { margin-top: 40px; }
}

/* Destaques e comodidades do quarto */
.facts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.fact { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.fact svg { flex: none; color: var(--yellow-deep); margin-top: -1px; }
.facts + .room-desc { margin-top: 16px; }
.amenities { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.amenities h2 { font-size: 24px; margin-bottom: 14px; }
.amen-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 18px; }
.amen-icons li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; }
.amen-icons svg { flex: none; width: 24px; height: 24px; color: var(--ink); background: var(--yellow-soft); box-sizing: content-box; padding: 7px; border-radius: 10px; }
@media (max-width: 640px) { .amen-icons { grid-template-columns: 1fr 1fr; gap: 2px 10px; } .amen-icons li { font-size: 14px; gap: 10px; } .amen-icons svg { padding: 6px; } }

.promo { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.promo span { font-size: 13px; font-weight: 600; background: var(--yellow-soft); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.promo b { color: var(--yellow-deep); }
.q-disc { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ok); }
.q-next { margin: 10px 0 0; padding: 10px 12px; background: var(--yellow-soft); border-radius: 8px; font-size: 14px; font-weight: 600; }

.coupon { margin-top: 12px; }
.cup-box { display: flex; gap: 8px; margin-top: 8px; }
.cup-box input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid #C9C9C6; border-radius: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.cup-box input:focus { outline: none; border-color: var(--ink); }
.cup-msg { margin: 6px 0 0; font-size: 14px; font-weight: 600; min-height: 0; }
.cup-msg.ok { color: var(--ok); }
.cup-msg.bad { color: var(--bad); }
.linkish { border: 0; background: none; padding: 6px 0; min-height: 36px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
