/* =========================================================
   Página do imóvel
   ========================================================= */
.page-imovel { --header-h: 68px; background: var(--white); }
.page-imovel .header.is-solid { background: var(--green-900); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.pi { padding-top: var(--header-h); }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- título ---------- */
.pi-head { padding: 34px 0 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-dark); }
.pi-head .eyebrow { margin-bottom: 8px; }
.pi-title { font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); line-height: 1.05; color: var(--green-900); font-weight: 500; text-wrap: balance; }
.pi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: 14px; color: var(--ink); }
.pi-meta a { text-decoration: underline; text-underline-offset: 3px; }
.pi-dot { color: var(--muted); }
.pi-host { font-weight: 500; }
.pi-badge { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-dark); border: 1px solid var(--line); padding: 4px 10px; }

.verify { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--green-700); text-decoration: none !important; border-bottom: 1px solid var(--line); padding-bottom: 1px; margin-left: 4px; transition: color .2s, border-color .2s; }
.verify:hover { color: var(--gold-dark); border-color: var(--gold); }
.verify .ico { width: 18px; height: 18px; color: var(--gold-dark); }
.rv__all { margin-top: 36px; }

/* ---------- mosaico ---------- */
.mosaic {
  position: relative; display: grid; gap: 8px;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px;
  border-radius: 6px; overflow: hidden;
}
.mosaic__item { border: 0; padding: 0; background: var(--sand); overflow: hidden; cursor: zoom-in; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s; }
.mosaic__item:hover img { transform: scale(1.04); filter: brightness(.92); }
.mosaic__item--big { grid-row: 1 / 3; }
.mosaic__all {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--green-900); border: 1px solid var(--green-900);
  padding: 10px 16px; font-size: 13px; font-weight: 600; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: background .25s, color .25s;
}
.mosaic__all:hover { background: var(--green-900); color: var(--cream); }
.mosaic__all .ico { width: 18px; height: 18px; }

/* ---------- subnav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); margin-top: 36px; }
.subnav__inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover, .subnav a.on { color: var(--green-900); border-color: var(--gold); }

/* ---------- layout ---------- */
.pi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 90px); align-items: start; padding-bottom: 90px; }
.pi-main { min-width: 0; }
.pi-sec { padding: 48px 0; border-bottom: 1px solid var(--sand); scroll-margin-top: calc(var(--header-h) + 60px); }
.pi-sec:last-child { border-bottom: 0; }
.pi-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pi-h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); color: var(--green-900); line-height: 1.15; margin-bottom: 18px; text-wrap: balance; }
.pi-muted { color: var(--muted); }
.pi-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--green-900); text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--gold-dark); }

/* ---------- visão geral ---------- */
.pi-tagline { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); font-style: italic; color: var(--green-900); line-height: 1.3; margin-bottom: 26px; }
.facts { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--sand); }
.facts li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; text-align: center; font-size: 14px; border-left: 1px solid var(--sand); color: var(--green-900); font-weight: 500; }
.facts li:first-child { border-left: 0; }
.facts .ico { color: var(--gold-dark); width: 28px; height: 28px; }
.hl { display: grid; gap: 22px; margin-bottom: 36px; }
.hl__item { display: flex; gap: 20px; align-items: flex-start; }
.hl__item .ico { width: 34px; height: 34px; color: var(--gold-dark); stroke-width: 1.3; }
.hl__item h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--green-900); margin-bottom: 2px; }
.hl__item p { margin: 0; color: var(--muted); font-size: 15px; }
.pi-desc p { color: var(--ink); font-size: 16px; line-height: 1.8; }

/* ---------- onde dormir ---------- */
.sleep { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.sleep__card { border: 0; padding: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.sleep__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; transition: transform .6s var(--ease), box-shadow .4s; }
.sleep__card:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.sleep__txt strong { display: block; font-size: 16px; color: var(--green-900); font-weight: 600; }
.sleep__txt span { font-size: 14px; color: var(--muted); }

/* ---------- ambientes ---------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 14px; margin-top: 22px; }
.room { border: 0; padding: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.room__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; margin-bottom: 8px; background: var(--sand); box-shadow: 0 6px 16px -10px rgba(8,21,14,.35); }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.room:hover .room__img img { transform: scale(1.06); }
.room strong { font-size: 14px; color: var(--green-900); font-weight: 600; line-height: 1.3; }
.room span:last-child { font-size: 13px; color: var(--muted); }

/* ---------- comodidades ---------- */
.amen { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.amen li { display: flex; gap: 16px; align-items: center; font-size: 15px; }
.amen .ico { color: var(--green-700); }
.amen--list { grid-template-columns: 1fr; gap: 0; margin-bottom: 26px; }
.amen--list li { padding: 16px 0; border-bottom: 1px solid var(--sand); }

/* ---------- avaliações ---------- */
.score { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.score__big { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--green-900); display: flex; align-items: center; gap: 10px; }
.score__big .stars { font-size: 40px; }
.score__title { font-weight: 600; font-size: 17px; margin: 0; color: var(--green-900); }
.score__bars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 48px; margin-bottom: 36px; }
.bar { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 14px; font-size: 14px; }
.bar i { height: 4px; background: var(--sand); border-radius: 2px; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--green-900); }
.bar strong { text-align: right; font-variant-numeric: tabular-nums; }
.rv { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.rv__item { margin: 0; }
.rv__item figcaption { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.rv__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-900); color: var(--gold-light); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; }
.rv__item figcaption strong { display: block; font-size: 15px; }
.rv__item figcaption small { color: var(--muted); font-size: 13px; }
.rv__item .stars { font-size: 12px; margin: 0 0 6px; }
.rv__item blockquote { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); }

/* ---------- localização ---------- */
.map { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--sand); margin: 10px 0 20px; max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- regras ---------- */
.know { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.know h3 { font-size: 15px; font-weight: 600; color: var(--green-900); margin-bottom: 14px; }
.know ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.know li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.know li .ico { width: 20px; height: 20px; color: var(--gold-dark); }
.know__col:last-child li::before { content: "✦"; color: var(--gold); }

/* ---------- anfitriões ---------- */
.host { display: flex; gap: 30px; align-items: flex-start; }
.host__logo { width: 110px; height: 110px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.host .pi-h2 { margin-bottom: 6px; }

/* ---------- reserva ---------- */
.pi-aside { position: sticky; top: calc(var(--header-h) + 76px); padding-top: 48px; scroll-margin-top: calc(var(--header-h) + 60px); }
.book {
  border: 1px solid var(--sand); border-radius: 8px; padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(8, 21, 14, .35); background: var(--white);
  display: grid; gap: 14px;
}
.book__title { font-family: var(--serif); font-size: 28px; color: var(--green-900); line-height: 1.1; margin: 0; }
.book__title span { display: block; font-style: italic; color: var(--gold-dark); font-size: 24px; }
.book__sub { margin: 0; color: var(--muted); font-size: 14px; }
.book__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book__field { display: flex; flex-direction: column; gap: 4px; border: 1px solid #cfc6b2; border-radius: 6px; padding: 8px 12px; transition: border-color .2s; }
.book__field:focus-within { border-color: var(--green-900); box-shadow: 0 0 0 1px var(--green-900); }
.book__field span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--green-900); }
.book__field input, .book__field select { font: inherit; font-size: 15px; border: 0; padding: 2px 0; background: transparent; color: var(--ink); outline: none; min-width: 0; width: 100%; }
.book__field input[aria-invalid="true"] { color: #b3412f; }
.book__field:has(input[aria-invalid="true"]) { border-color: #c4553f; }
.book__nights { margin: 0; font-size: 14px; color: var(--green-900); font-weight: 500; min-height: 1.2em; }
.book .form__error { color: #b3412f; }
.book__perks { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--sand); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- outros ---------- */
.others__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.other { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease); }
.other:hover { transform: translateY(-4px); }
.other__img { position: relative; min-height: 240px; }
.other__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.other__body { padding: 28px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.other__body strong { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--green-900); line-height: 1.1; }
.other__meta { font-size: 13px; color: var(--muted); }
.other__cta { margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-dark); }

/* ---------- barra fixa do celular ---------- */
.mbar { display: none; }

/* ---------- tour ---------- */
.tour { position: fixed; inset: 0; z-index: 90; background: var(--white); display: flex; flex-direction: column; }
.tour[hidden] { display: none; }
.tour__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(16px, (100% - 1200px) / 2); border-bottom: 1px solid var(--sand); }
.tour__back { background: none; border: 0; font-weight: 600; font-size: 14px; color: var(--green-900); padding: 8px 0; }
.tour__name { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--green-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour__chips { display: flex; gap: 14px; overflow-x: auto; padding: 14px max(16px, (100% - 1200px) / 2); border-bottom: 1px solid var(--sand); scrollbar-width: thin; flex: none; }
.tour__chips a { flex: none; width: 96px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.25; }
.tour__chips img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; transition: border-color .2s; }
.tour__chips a.on { color: var(--green-900); }
.tour__chips a.on img, .tour__chips a:hover img { border-color: var(--gold); }
.tour__body { flex: 1; overflow-y: auto; padding: 0 max(16px, (100% - 1200px) / 2) 80px; scroll-behavior: smooth; }
.tour__room { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--sand); scroll-margin-top: 0; }
.tour__room header { position: sticky; top: 20px; align-self: start; }
.tour__room h2 { font-family: var(--serif); font-size: 32px; color: var(--green-900); line-height: 1.1; margin-bottom: 6px; }
.tour__room header p { margin: 0 0 4px; color: var(--ink); font-size: 14px; }
.tour__room header span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.tour__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour__grid button { border: 0; padding: 0; background: var(--sand); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.tour__grid button:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.tour__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tour__grid button:hover img { transform: scale(1.03); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(8, 21, 14, .6); display: grid; place-items: center; padding: 24px 16px; }
.modal[hidden] { display: none; }
.modal__box { background: var(--white); width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px 0; }
.modal__head .pi-h2 { margin: 0; }
.modal__x { background: none; border: 0; font-size: 32px; line-height: 1; color: var(--green-900); }
.modal__body { overflow-y: auto; padding: 10px 28px 20px; }
.modal__body h3 { font-size: 17px; font-weight: 600; color: var(--green-900); margin: 20px 0 4px; }

.lightbox { z-index: 100; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .pi-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .know { grid-template-columns: 1fr 1fr; }
  .others__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pi-layout { grid-template-columns: minmax(0, 1fr); }
  .pi-aside { position: static; padding-top: 0; order: 2; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 140px; }
  .mosaic__item--big { grid-column: 1 / -1; grid-row: 1; }
  .mosaic__item:nth-child(n+4) { display: none; }
  .tour__room { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .tour__room header { position: static; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--white); border-top: 1px solid var(--sand);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(8,21,14,.08);
    transition: transform .3s var(--ease);
  }
  .mbar.is-hidden { transform: translateY(110%); }
  .mbar strong { display: block; font-size: 14px; color: var(--green-900); }
  .mbar span { font-size: 12px; color: var(--muted); }
  .page-imovel .wa-float { bottom: 86px; }
  .page-imovel .footer { padding-bottom: 70px; }
}
@media (max-width: 640px) {
  .pi-head { padding: 22px 0 16px; }
  .mosaic { border-radius: 0; margin-inline: -16px; grid-template-rows: 240px 110px; gap: 4px; }
  .mosaic__all { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }
  .subnav__inner { gap: 22px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--sand); }
  .amen, .rv, .score__bars, .know { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 110px 1fr 32px; }
  .score__big { font-size: 48px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .host { flex-direction: column; gap: 18px; }
  .host__logo { width: 80px; height: 80px; }
  .other { grid-template-columns: 1fr; }
  .other__img { min-height: 200px; }
  .tour__chips a { width: 80px; }
  .tour__chips img { width: 80px; height: 54px; }
  .tour__grid { grid-template-columns: 1fr; }
  .tour__grid button:nth-child(3n + 1) { aspect-ratio: 4 / 3; }
  .tour__name { font-size: 18px; }
  .modal { padding: 0; }
  .modal__box { max-height: 100vh; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tour__body { scroll-behavior: auto; }
}

/* =========================================================
   Calendário de disponibilidade
   ========================================================= */
.cal { position: relative; }
.cal.is-loading { opacity: .55; pointer-events: none; }
.cal__nav { position: absolute; left: 0; right: 0; top: -4px; display: flex; justify-content: space-between; pointer-events: none; }
.cal__arrow {
  pointer-events: auto; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--sand); background: var(--white); color: var(--green-900);
  font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.cal__arrow:hover:not(:disabled) { border-color: var(--green-900); }
.cal__arrow:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 40px; }
.cal__title { text-align: center; font-family: var(--serif); font-size: 22px; color: var(--green-900); text-transform: capitalize; margin: 0 0 16px; line-height: 28px; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__week span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; padding-bottom: 8px; }
.cal__day {
  position: relative; aspect-ratio: 1; border: 0; background: none; padding: 2px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cal__day span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.cal__day:not(:disabled):hover span { border-color: var(--green-900); }
.cal__day:disabled { cursor: default; }
.cal__day.is-past { color: #c3c0b6; }
.cal__day.is-blocked { color: #b9b4a6; }
.cal__day.is-blocked span { text-decoration: line-through; text-decoration-color: #b9b4a6; }
.cal__day.is-checkout { color: var(--ink); }
.cal__day.is-checkout span { text-decoration: none; border-style: dashed; border-color: var(--line); }
.cal__day.is-today span { box-shadow: inset 0 0 0 1px var(--gold); }
.cal__day.is-range { background: var(--cream); }
.cal__day.is-range span { border-radius: 0; }
.cal__day.is-start.has-range { background: linear-gradient(to right, transparent 50%, var(--cream) 50%); }
.cal__day.is-end.has-range, .cal__day.is-preview.has-range { background: linear-gradient(to left, transparent 50%, var(--cream) 50%); }
.cal__day.is-start span, .cal__day.is-end span { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }
.cal__day.is-preview span { border-color: var(--green-900); border-style: dashed; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg--free { border: 1px solid var(--green-900); }
.lg--busy { background: repeating-linear-gradient(135deg, #cfc9b9 0 2px, transparent 2px 5px); border: 1px solid #cfc9b9; }
.lg--sel { background: var(--green-900); }
.cal-status { margin: 14px 0 0; font-size: 13px; color: var(--green-700); display: flex; gap: 8px; align-items: center; }
.cal-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f9a62; flex: none; }
.cal-status.is-error { color: #a5651b; }
.cal-status.is-error::before { background: #d08a2a; }

/* cartão de reserva */
.book { position: relative; }
.book__date { text-align: left; background: var(--white); cursor: pointer; }
.book__date strong { font-size: 15px; font-weight: 500; color: var(--muted); }
.book__date.is-set strong { color: var(--ink); }
.book__date[aria-expanded="true"] { border-color: var(--green-900); box-shadow: 0 0 0 1px var(--green-900); }
.book__pop {
  position: absolute; z-index: 20; top: 150px; right: 0; width: max(100%, 340px);
  background: var(--white); border: 1px solid var(--sand); border-radius: 8px;
  padding: 20px; box-shadow: 0 24px 60px -20px rgba(8, 21, 14, .45);
}
.book__pop[hidden] { display: none; }
.book__pop .cal__months { grid-template-columns: 1fr; }
.book__pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sand); }

@media (max-width: 900px) {
  .book__pop { position: static; width: 100%; box-shadow: none; padding: 12px 0 0; border: 0; border-top: 1px solid var(--sand); border-radius: 0; }
}
@media (max-width: 640px) {
  #calMain .cal__month:nth-child(2) { display: none; }
  .cal__months { grid-template-columns: 1fr; }
}

/* ---------- seletor de hóspedes ---------- */
.guests { position: relative; }
.guests__btn { width: 100%; position: relative; padding-right: 40px; }
.guests__btn strong { color: var(--ink) !important; }
.guests__chev { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--green-900); transition: rotate .25s; }
.guests__btn[aria-expanded="true"] .guests__chev { rotate: 180deg; }
.guests__pop { top: calc(100% + 8px); left: 0; right: 0; width: auto; }
.guests__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand); }
.guests__row:first-child { padding-top: 4px; }
.guests__row strong { display: block; font-size: 15px; font-weight: 600; color: var(--green-900); }
.guests__row span { font-size: 13px; color: var(--muted); }
.guests__ctrl { display: flex; align-items: center; gap: 12px; flex: none; }
.guests__ctrl output { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.guests__step {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #b9b2a0; background: var(--white);
  color: var(--green-900); font-size: 18px; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.guests__step:hover:not(:disabled) { border-color: var(--green-900); background: var(--cream); }
.guests__step:disabled { opacity: .3; cursor: not-allowed; }
.guests__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.book__pop-foot--end { justify-content: flex-end; }
@media (max-width: 900px) {
  .guests__pop { position: static; margin-top: 4px; }
}

/* ---------- preço no calendário e resumo da reserva ---------- */
.cal__day span { flex-direction: column; line-height: 1.05; gap: 1px; }
.cal__day small { font-size: 9.5px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.cal__day.is-start small, .cal__day.is-end small { color: var(--gold-light); }
.cal__day.is-short { color: #c8c2b4; }
.cal__day.is-short span { text-decoration: none; }
.quote { display: grid; gap: 8px; padding: 14px 0 4px; border-top: 1px solid var(--sand); font-size: 14px; }
.quote > div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.quote > div span:first-child { color: var(--muted); }
.quote__total { padding-top: 8px; border-top: 1px solid var(--sand); font-weight: 600; font-size: 16px; color: var(--green-900); }
.quote__total span:first-child { color: var(--green-900) !important; }
.quote__pix { color: #2f7a4c; font-weight: 600; }
.quote__pix span:first-child { color: #2f7a4c !important; }
.quote__note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- ajustes finos para celular ---------- */
@media (max-width: 900px) {
  .pi-aside, .book, .pi-main > * { min-width: 0; }
}
@media (max-width: 640px) {
  .book { padding: 22px 18px; }
  .book .btn, .rv__all { white-space: normal; letter-spacing: .12em; line-height: 1.4; text-align: center; }
  .rv__all { width: 100%; }
}

/* =========================================================
   Celular: reserva em tela cheia (abre pela barra de baixo)
   ========================================================= */
.msheet__head { display: none; }
@media (max-width: 900px) {
  .pi-aside {
    position: fixed; inset: 0; z-index: 85; order: 0;
    background: var(--white); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  body.book-open .pi-aside { transform: none; visibility: visible; }
  .msheet__head {
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 3; background: var(--white);
    margin: 0 -16px 8px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    border-bottom: 1px solid var(--sand);
  }
  .msheet__head strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--green-900); line-height: 1.1; }
  .msheet__head span { font-size: 12px; color: var(--muted); }
  .msheet__x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sand); background: var(--white); font-size: 16px; color: var(--green-900); }

  .book { border: 0; box-shadow: none; padding: 0; gap: 14px; }
  .book__title { display: none; }
  /* calendário sempre aberto e grande dentro da tela de reserva */
  .pi-aside #bPop[hidden] { display: block; }
  .pi-aside #bPop { position: static; width: 100%; box-shadow: none; border: 0; padding: 4px 0 0; }
  .pi-aside #bPop .cal__months { gap: 28px; }
  .pi-aside #bPop .cal__month:nth-child(2) { display: block; }
  .pi-aside #bPop .book__pop-foot { display: none; }
  .pi-aside .cal__day { font-size: 16px; }
  .pi-aside .cal__title { font-size: 24px; }
  /* só os campos de check-in/out ficam travados (o calendário já está aberto); hóspedes continua clicável */
  #bInBtn, #bOutBtn { pointer-events: none; }
  /* botão de enviar sempre visível embaixo */
  .book button[type="submit"] {
    position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 2;
    box-shadow: 0 0 0 10px var(--white), 0 -14px 24px 6px rgba(255,255,255,.9);
  }
  .mbar #mName { font-family: var(--serif); font-size: 19px; }
}
@media (max-width: 900px) {
  .mbar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .mbar #mInfo { min-width: 0; flex: 1; }
  .mbar #mInfo strong, .mbar #mInfo > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
  .mbar #mName { font-size: 18px; }
  .mbar .btn { flex: none; padding: 13px 16px; }
}

/* no computador, o calendário do cartão mostra 1 mês */
#bPop .cal__month:nth-child(2) { display: none; }
@media (max-width: 900px) {
  /* o formulário vira uma camada própria, para o cabeçalho fixo ficar por cima */
  .pi-aside .book { z-index: 0; }
  .msheet__head { z-index: 10; }
}
@media (max-width: 640px) {
  /* avaliações do imóvel em carrossel de arrastar */
  .rv { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .rv::-webkit-scrollbar { display: none; }
  .rv__item { flex: 0 0 86%; scroll-snap-align: center; border: 1px solid var(--sand); border-radius: 10px; padding: 18px; }
  .rv__all { margin-top: 22px; }
  .pi-sec { padding: 36px 0; }
  .pi-meta .pi-dot { display: none; }
}

/* celular: sem calendário no meio da página — a reserva abre pelo botão "Ver datas livres" */
@media (max-width: 900px) {
  #disponibilidade { display: none; }
  .subnav a[href="#disponibilidade"] { display: none; }
}

/* iPhone: botões dos dias nunca alargam a coluna */
.cal__day { min-width: 0; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cal, .cal__month, .book, .book__pop { min-width: 0; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
