:root {
  --green-900: #15291f;
  --green-800: #1f3b33;
  --green-600: #3c6150;
  --sand-50: #fbf8f2;
  --sand-100: #f3ece0;
  --sand-300: #e2d6c2;
  --clay: #b8532f;
  --clay-dark: #9a4224;
  --ink: #22261f;
  --muted: #5d6458;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(21 41 31 / 0.12);
  --header-h: 68px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--sand-50); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--green-900); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
svg { flex-shrink: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-dark); margin-bottom: .7em; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-accent { background: var(--clay); color: #fff; }
.btn-accent:hover { background: var(--clay-dark); }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-ghost { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--green-900); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .25s, box-shadow .25s; color: #fff; }
.site-header.is-solid { background: rgb(251 248 242 / .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--sand-300); color: var(--green-900); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.brand img { border-radius: 50%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a:not(.btn) { display: block; padding: 8px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover, .nav a.is-current { background: rgb(184 83 47 / .14); }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 12px; background: transparent; border: 0; color: inherit; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--sand-50); color: var(--green-900); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
  .site-header.menu-open { background: var(--sand-50); color: var(--green-900); }
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 72px; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 20 15 / .55) 0%, rgb(10 20 15 / .15) 40%, rgb(10 20 15 / .7) 100%); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #f3d3b8; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Destaques */
.highlights { background: var(--green-800); color: #fff; }
.highlight-list { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.highlight-list strong { display: block; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: #f3d3b8; line-height: 1.1; }
.highlight-list span { font-size: .92rem; opacity: .9; }
@media (max-width: 640px) { .highlight-list { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

/* Seções */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--sand-100); }
.section-dark { background: var(--green-900); color: #e9efe9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #f3b896; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; margin-bottom: 56px; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
#pousada .split-media img { aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.amenities { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.amenities li { display: flex; align-items: center; gap: 10px; font-size: .97rem; }
.amenities svg { width: 22px; height: 22px; color: var(--clay); }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.filters-label { font-weight: 600; margin-right: 6px; }
.chip { min-width: 48px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sand-300); background: #fff; font: 500 .95rem var(--font-sans); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--green-600); }
.chip.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.filter-empty { padding: 20px; background: #fff; border-radius: var(--radius); }

/* Cards de acomodação */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .rooms { grid-template-columns: 1fr; } }
.room { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgb(21 41 31 / .06); transition: box-shadow .2s, transform .2s; }
.room:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.room[hidden] { display: none; }
.room-media, .common-media { position: relative; display: block; padding: 0; border: 0; background: var(--sand-300); cursor: zoom-in; width: 100%; }
.room-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.room-media:hover img { transform: scale(1.03); }
.room-media { overflow: hidden; }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(21 41 31 / .8); color: #fff; font-size: .82rem; font-weight: 500; }
.room-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.room-tag { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--clay-dark); margin-bottom: .4em; }
.room-body h3 { margin-bottom: .4em; }
.features { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.features li { padding: 4px 10px; border-radius: 999px; background: var(--sand-100); font-size: .86rem; }
.note { font-size: .9rem; color: var(--muted); }
.room-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }

.common-area { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; margin-top: 40px; padding: 24px; background: #fff; border-radius: var(--radius); }
.common-media { border-radius: 10px; overflow: hidden; }
.common-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 720px) { .common-area { grid-template-columns: 1fr; } }
.price-note { margin-top: 28px; font-size: .92rem; color: var(--muted); }

/* Avaliações */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
@media (min-width: 1100px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.review { position: relative; margin: 0; padding: 28px 24px 22px; background: #fff; border: 1px solid var(--sand-300); border-radius: var(--radius); scroll-snap-align: start; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 16px; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.5; color: var(--green-900); flex: 1; }
.review figcaption { font-size: .9rem; color: var(--muted); }
.review-score { position: absolute; top: -14px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--green-800); color: #fff; font-weight: 600; }

/* Região */
.distance { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #f3d3b8; }
.distance svg { width: 20px; height: 20px; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
@media (max-width: 380px) { .places { grid-template-columns: 1fr; } }
.place { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); overflow: hidden; }
.place img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.place-body { padding: 20px 20px 18px; }
.place-body h3 { font-size: 1.25rem; }
.place-body p { font-size: .97rem; }
.place details summary { cursor: pointer; font-weight: 600; color: #f3b896; min-height: 32px; }
.place details[open] summary { margin-bottom: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--sand-300); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; color: var(--green-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--clay); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 12px; color: var(--muted); }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.contact-list svg { width: 24px; height: 24px; color: var(--green-600); }
.contact-list a { color: var(--ink); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--sand-300); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--green-900); color: #cdd6cf; padding: 40px 0 110px; font-size: .92rem; }
.footer-inner { display: grid; gap: 6px; justify-items: center; text-align: center; }
.footer-inner .brand { color: #fff; margin-bottom: 8px; }
.footer-inner p { margin: 0; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 15px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(37 211 102 / .55); animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } 100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); } }
.wa-float-label { padding-right: 6px; }
@media (max-width: 640px) { .wa-float-label { display: none; } .wa-float { width: 60px; justify-content: center; padding: 0; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 14 11 / .96); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px; }
.lb-title { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; flex: 1; }
.lb-counter { margin: 0; font-size: .9rem; opacity: .8; }
.lb-close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover, .lb-close:hover { background: rgb(255 255 255 / .28); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; justify-content: safe center; }
.lb-thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .55; }
.lb-thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 64px; height: 64px; object-fit: cover; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 44px; height: 44px; background: rgb(0 0 0 / .45); }
  .lb-thumbs img { width: 52px; height: 52px; }
}

/* Carrosséis com "espiada" do próximo card (avaliações e região no celular) */
.swipe-hint { display: none; font-size: .88rem; color: var(--muted); margin: -12px 0 14px; }
.section-dark .swipe-hint { color: #b9c6bd; }

/* ---------- Ajustes para celular e tablet ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .split-top { margin-bottom: 32px; }
  #pousada .split-media { order: -1; }
  #pousada .split-media img { aspect-ratio: 16/10; }
  .split-top .split-media { display: none; }

  .places {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(82%, 340px);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .places::-webkit-scrollbar, .reviews::-webkit-scrollbar { display: none; }
  .place { scroll-snap-align: start; }
  .swipe-hint { display: block; }
}

@media (max-width: 1099px) {
  .reviews {
    grid-auto-columns: min(82%, 340px); margin-inline: -16px; padding: 18px 16px 12px;
    scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none;
  }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); }

  /* Hero cabe numa tela, com os botões visíveis */
  .hero { min-height: auto; padding: calc(var(--header-h) + 72px) 0 36px; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  .hero .lead { font-size: 1rem; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { width: 100%; }

  .highlight-list { padding: 18px 0; gap: 14px 8px; }
  .highlight-list span { font-size: .82rem; line-height: 1.35; display: block; }

  .amenities { gap: 10px; margin-top: 20px; }

  /* Filtro em uma linha */
  .filters { flex-wrap: nowrap; gap: 6px; }
  .filters-label { font-size: .9rem; margin-right: 2px; white-space: nowrap; }
  .chip { min-width: 44px; min-height: 44px; padding: 0 12px; }
  .chip[data-filter="0"] { padding: 0 14px; }

  /* Cards de acomodação compactos */
  .rooms { gap: 18px; }
  .room-media img { aspect-ratio: 16/10; }
  .room-body { padding: 16px 16px 18px; }
  .room-body h3 { font-size: 1.3rem; }
  .room-body > p:not(.room-tag):not(.note) { font-size: .95rem; margin-bottom: .7em; }
  .features { display: block; margin-bottom: 10px; font-size: .9rem; line-height: 1.55; color: var(--ink); }
  .features li { display: inline; padding: 0; background: none; border-radius: 0; font-size: inherit; }
  .features li:not(:last-child)::after { content: " · "; color: var(--clay); font-weight: 600; }
  .note { font-size: .85rem; margin-bottom: .8em; }
  .room-actions .btn { flex: 1; min-height: 46px; }

  .common-area { padding: 0; overflow: hidden; gap: 0; }
  .common-area > div { padding: 18px 16px 20px; }
  .common-media { border-radius: 0; }
  .common-media img { aspect-ratio: 16/10; }
  .common-area .btn { width: 100%; }

  .review { padding: 24px 18px 18px; }
  .review blockquote { font-size: 1.02rem; }

  .place-body { padding: 16px 16px 12px; }
  .place details summary { display: flex; align-items: center; min-height: 44px; }

  .faq summary { padding: 16px 36px 16px 0; font-size: 1rem; }

  .contact-list a, .contact-list span { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list { gap: 4px; }
  .contact .btn { width: 100%; }
  .price-note a { display: inline-block; padding: 6px 0; }

  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

/* Botão flutuante some enquanto o topo (que já tem botão de WhatsApp) está visível */
.wa-float { transition: transform .25s, opacity .25s; }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
.places-title { font-size: 1.35rem; margin-bottom: 16px; }

@media (max-width: 640px) {
  .filters { flex-wrap: wrap; }
  .filters-label { flex-basis: 100%; margin: 0 0 2px; }
}
/* Áreas de toque confortáveis em qualquer tela */
.place details summary { display: flex; align-items: center; min-height: 44px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list { gap: 4px; }
.price-note a { display: inline-block; padding: 8px 0; }
.features li { white-space: nowrap; }
.place details summary { list-style: none; gap: 8px; }
.place details summary::-webkit-details-marker { display: none; }
.place details summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.place details[open] summary::after { content: "–"; }
.features li::after { white-space: normal; }
@media (max-width: 900px) { #pousada .split-media img { max-height: 420px; width: 100%; } }
.contact-list address { font-style: normal; line-height: 1.45; padding: 6px 0; }
