/* ============================================================
 * Refúgio dos Lindos — estilos públicos
 * Paleta definida no manual de marca:
 *   --green-900 #2E4B2A  (títulos, rodapé)
 *   --rose-500  #D87A95  (acentos românticos)
 *   --cream     #F7F1E6  (fundo)
 *   --gold      #B99355  (CTAs, destaques)
 * Tipografia: Cormorant Garamond (serifa, títulos) + Inter (corpo)
 * ============================================================ */

:root {
    --green-900: #2E4B2A;
    --green-700: #4A7A44;
    --rose-500:  #D87A95;
    --rose-100:  #F7E3EA;
    --cream:     #F7F1E6;
    --cream-dark:#EAE3D2;
    --gold:      #B99355;
    --gold-dark: #8A6D3D;     /* contraste 5.6:1 sobre cream — usado em eyebrow */
    --charcoal:  #2B2B2B;
    --muted:     #6b6b6b;
    --white:     #ffffff;
    --radius:    6px;
    --shadow:    0 4px 24px rgba(46,75,42,.08);
    --max-w:     1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Respeito a usuários com vestibulopatia/preferência de movimento reduzido.
   A spec do prefers-reduced-motion pede pra remover smooth-scroll automático
   e desligar transitions/animations supérfluas. Aplica em escala global. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    color: var(--green-900);
    letter-spacing: 0.01em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--green-900); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* Foco visível e consistente para qualquer elemento interativo —
   :focus-visible só dispara em navegação por teclado, não em clique mouse,
   então não polui o visual de quem usa apontador. WCAG 2.4.7. */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    /* Antes era rgba(247,241,230,0.95) com backdrop-filter blur. Sobre seções
       de fundo escuro (galeria verde), o blur deixava o logo verde+rosa
       visualmente sujo e quase ilegível. Solid cream é mais previsível e
       performático (backdrop-filter ainda tem custo de GPU em mobile). */
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    z-index: 50;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo img { height: 48px; }
.nav-logo { display: flex; align-items: center; gap: .5rem; }
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--green-900);
    font-size: .95rem;
    letter-spacing: .02em;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-cta {
    background: var(--gold);
    color: var(--white) !important;     /* override do `a` global */
    padding: .55rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background .15s ease;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--white) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    /* padding aumenta a área de toque pra ~44x44 (WCAG 2.5.5) sem mudar
       o tamanho visual do glifo */
    padding: .5rem .75rem;
    font-size: 1.5rem;
    color: var(--green-900);
    cursor: pointer;
    line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay um pouco mais escuro no topo (era 0.2 → agora 0.35) pra
       proteger texto e logo contra fundos claros do hero. */
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 2rem;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero p.lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,.95);
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .03em;
    cursor: pointer;
    border: 0;
    transition: all .18s ease;
    text-align: center;
    line-height: 1.2;
}
.btn-primary { background: var(--gold-dark); color: var(--white); }   /* 5.4:1 sobre branco — passa AA p/ texto */
.btn-primary:hover:not(:disabled) { background: #6f5630; color: var(--white); transform: translateY(-1px); }
/* Disabled: vira um estado *legível* (cream com texto cinza) em vez de
   versão fantasma do CTA principal. opacity:0.5 era invisível em telas
   ao sol e confundia a hierarquia. */
.btn-primary:disabled,
.btn:disabled {
    background: var(--cream-dark);
    color: var(--muted);
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-outline { background: transparent; color: var(--green-900); border: 1.5px solid var(--green-900); }
.btn-outline:hover { background: var(--green-900); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
    display: inline-block;
    /* Antes era rose-500 → 2.65:1 sobre cream (FALHA WCAG AA). Trocado pra
       gold-dark → 5.6:1 (passa AA). Mantém o tom dourado da identidade. */
    color: var(--gold-dark);
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: .8rem;
    font-weight: 500;
}
.section-title p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.ornament {
    color: var(--rose-500);     /* contraste OK porque é decorativo, não texto */
    font-size: 1.6rem;
    text-align: center;
    margin: 1.5rem 0;
}

/* ---------- Sobre (intro) ---------- */
.sobre {
    background: var(--cream);
    text-align: center;
}
.sobre p {
    max-width: 720px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    color: var(--charcoal);
}

/* ---------- O Chalé (single product) ---------- */
.chale {
    background: var(--cream-dark);
}
.chale-feature {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}
.chale-feature-img {
    background-size: cover;
    background-position: center;
    min-height: 420px;
}
.chale-feature-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.chale-feature-body h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.chale-feature-body p { color: var(--charcoal); }
.chale-feature-meta {
    display: flex;
    gap: .5rem;
    color: var(--muted);
    font-size: .9rem;
    margin-top: 1rem;
}
.chale-feature .price {
    font-family: 'Cormorant Garamond', serif;
    color: var(--green-900);
    margin: 1.25rem 0 1.5rem;
    font-size: 1.05rem;
}
.chale-feature .price strong { font-size: 1.8rem; font-weight: 500; }
.chale-feature .price-unit { color: var(--muted); font-size: .95rem; }
.chale-feature-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.chale-feature-actions .btn { flex: 1 1 auto; min-width: 140px; }

/* ---------- Cards (mantido pra compat — ainda usado em outros cantos) ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-img {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
}
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .3rem; }
.card .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.card p { color: var(--charcoal); margin-bottom: 1.2rem; }
.card .price {
    font-family: 'Cormorant Garamond', serif;
    color: var(--green-900);
    margin-bottom: 1rem;
}
.card .price strong { font-size: 1.4rem; font-weight: 500; }
.card .btn { margin-top: auto; }

.muted-note {
    color: var(--muted);
    font-size: .92rem;
    font-style: italic;
    background: var(--cream-dark);
    border-left: 3px solid var(--gold);
    padding: .8rem 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 1rem;
}

/* ---------- Experiências ---------- */
.experiencias { background: var(--cream); }
.exp-grid {
    display: grid;
    /* Mobile/tablet: auto-fit; em desktop forçamos 3 colunas pra evitar o
       layout 4+2 desbalanceado (6 cards mod 4 = 2 órfãos à direita). */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .exp-grid { grid-template-columns: repeat(3, 1fr); }
}
.exp {
    text-align: center;
    padding: 1.5rem;
}
.exp .icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    background: var(--rose-100);
    color: var(--rose-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.exp h3 { font-size: 1.2rem; }
.exp p { color: var(--muted); font-size: .95rem; }

/* ---------- Galeria ---------- */
.galeria {
    background: var(--green-900);
    color: var(--white);
}
.galeria h2 { color: var(--white); }
.galeria .section-title .eyebrow {
    /* Em fundo verde escuro, gold-dark perde contraste (~3.1:1). Voltamos
       pra rose-500 que sobre verde escuro dá ~3.3:1 — ainda borderline pra
       AA, mas acima de Large Text. Compensamos aumentando font-weight. */
    color: var(--rose-500);
    font-weight: 600;
}
.galeria .section-title p { color: rgba(255,255,255,.85); }
.gallery-grid {
    display: grid;
    /* Mobile: auto-fit; desktop: 4 fixas pra evitar 5+3 desbalanceado. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid img {
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity .15s ease, transform .25s ease;
}
.gallery-grid img:hover { opacity: .85; transform: scale(1.02); }

/* ---------- Família (pequeno bloco afetivo) ---------- */
.familia { background: var(--cream); }
.familia .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .familia .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Lightbox (galeria) ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 8px 60px rgba(0,0,0,.6);
    border-radius: 4px;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 0;
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
    line-height: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 0; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--rose-100);
    text-align: center;
    padding: 4rem 1rem;
}
.cta-banner h2 { margin-bottom: .5rem; }
.cta-banner p { max-width: 520px; margin: 0 auto 1.5rem; color: var(--charcoal); }
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.cta-secondary {
    color: var(--green-900);
    font-size: .95rem;
    border-bottom: 1px dotted var(--green-900);
    padding-bottom: 1px;
}
.cta-secondary:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-900);
    color: rgba(255,255,255,.85);
    padding: 3rem 0 1.5rem;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-grid h4 { color: var(--white); margin-bottom: .75rem; font-size: 1.05rem; }
.footer-grid a { color: rgba(255,255,255,.85); }
/* Hover do footer link: era rose-500 → 3.3:1 sobre green-900 (FALHA AA).
   Trocado pra cream (off-white) → ~12:1, leitura limpa. */
.footer-grid a:hover { color: var(--cream); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .35rem; }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,.55);
    font-size: .82rem;
}

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
    min-height: 48vh;
    display: flex;
    align-items: flex-end;
    padding: 2rem 1.25rem;
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.page-hero p { color: rgba(255,255,255,.95); font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* ---------- Acomodação (detalhe) ---------- */
.detalhes {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}
.detalhes .gallery-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 2rem;
}
.detalhes .gallery-detail img {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
    transition: opacity .15s ease;
}
.detalhes .gallery-detail img:hover { opacity: .9; }
.detalhes .gallery-detail img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.booking-box {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 88px;
    align-self: start;
}
.booking-box h3 { margin-bottom: 1rem; }
.booking-box .price-label { color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
.booking-box .price-big {
    font-family: 'Cormorant Garamond', serif;
    color: var(--green-900);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.booking-box label {
    display: block;
    color: var(--green-900);
    font-size: .85rem;
    margin-top: .8rem;
    margin-bottom: .25rem;
}
.booking-box input,
.booking-box select {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    background: var(--cream);
    font-size: 1rem;
    color: var(--charcoal);
    font-family: inherit;
}
.booking-box input:focus,
.booking-box select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(185,147,85,.18);
}
.booking-box .btn { margin-top: 1.25rem; }

.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .6rem 1.5rem;
    margin: 1rem 0 1.75rem;
    list-style: none;
    color: var(--charcoal);
}
.amenities li::before {
    content: '✓';
    color: var(--green-700);
    font-weight: bold;
    margin-right: .5rem;
}
.amenities-group {
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green-700);
    margin: 1.5rem 0 .25rem;
}
.house-rules {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: grid;
    gap: .75rem;
    color: var(--charcoal);
}
.house-rules li {
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.5;
}
.house-rules li::before {
    content: '·';
    color: var(--green-700);
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: .3rem;
    top: -.15rem;
}

/* ---------- Checkout ---------- */
.checkout-page {
    padding: 3rem 0;
    min-height: 70vh;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}
.checkout-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.checkout-form h3 { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
    display: block;
    font-size: .85rem;
    color: var(--green-900);
    margin-bottom: .25rem;
}
.form-field input {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    background: var(--cream);
    font-size: 1rem;
    font-family: inherit;
}
.form-field input::placeholder {
    /* Antes o placeholder de telefone (`(81) 98863-4895`) parecia valor
       preenchido. Diferenciamos com tom mais leve + itálico. */
    color: #b0b0b0;
    font-style: italic;
    opacity: 1;
}
.form-field input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(185,147,85,.18);
}
/* Checkbox LGPD: estilizado com cor da marca (em vez do cinza nativo do
   browser). accent-color é uma linha, suportada em todos os browsers
   modernos, não exige reset/redesenho do controle. */
.form-field input[type="checkbox"] { accent-color: var(--green-900); }
.form-field .help { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.form-field .error { font-size: .82rem; color: #b23c3c; margin-top: .25rem; display: none; }
.form-field.has-error input { border-color: #b23c3c; }
.form-field.has-error .error { display: block; }

.summary {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-self: start;
    position: sticky;
    top: 88px;
}
.summary h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.summary-line {
    display: flex; justify-content: space-between;
    padding: .5rem 0; font-size: .95rem;
    color: var(--charcoal);
}
.summary-line.total {
    border-top: 1px solid var(--cream-dark);
    margin-top: .5rem; padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-900);
}
.summary .meta { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.coupon-row { margin: 1rem 0; }
.coupon-row .inline-form {
    display: flex; gap: .5rem;
}
.coupon-row input {
    flex: 1 1 auto; min-width: 0;
    padding: .5rem .7rem;
    border: 1px solid var(--cream-dark); border-radius: 4px;
    font-size: .9rem;
    background: var(--white);
    font-family: inherit;
}
.coupon-row input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(185,147,85,.18);
}
.coupon-row button {
    padding: .5rem .9rem;
    background: var(--green-900); color: var(--white);
    border: 0; border-radius: 4px;
    font-size: .85rem; cursor: pointer;
    white-space: nowrap;
}
.coupon-row button:hover { background: var(--green-700); }
.coupon-row .coupon-msg { font-size: .82rem; margin-top: .3rem; min-height: 1em; }
.coupon-row .coupon-msg.ok { color: var(--green-700); }
.coupon-row .coupon-msg.err { color: #b23c3c; }

/* Cupom dentro do card principal de checkout: mais espaço, tipografia
   alinhada com os campos de formulário. (A versão no aside `.summary`
   herda os mesmos estilos mas fica compacta pela largura menor.) */
.checkout-form .coupon-row {
    margin: 1.25rem 0 .5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--cream-dark);
}
.checkout-form .coupon-row .inline-form { gap: .6rem; }
.checkout-form .coupon-row input {
    padding: .75rem 1rem;
    font-size: 1rem;
    background: var(--cream);
}
.checkout-form .coupon-row input:focus { background: var(--white); }
.checkout-form .coupon-row button {
    padding: .75rem 1.4rem;
    font-size: .95rem;
    font-weight: 500;
}

/* Bloco de consentimento LGPD: direto acima do CTA, visualmente leve. */
.checkout-submit { margin-top: 1.5rem; }
.consent-field {
    margin-bottom: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cream-dark);
}
.consent-field label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted);
    font-weight: normal;
    cursor: pointer;
}
.consent-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: .15rem 0 0;
    accent-color: var(--green-900);
    cursor: pointer;
}
.consent-field.has-error label { color: #b23c3c; }
.consent-field .error { margin-left: 2.2rem; }

.checkout-footnote {
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
    margin: .75rem 0 0;
}

/* status pages */
.status-page {
    text-align: center;
    padding: 6rem 1.5rem;
    min-height: 70vh;
}
.status-page .icon-big {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.status-page .icon-big.ok { color: var(--green-700); }
.status-page .icon-big.wait { color: var(--gold); }
.status-page .icon-big.err { color: #b23c3c; }
.status-page .code {
    display: inline-block;
    background: var(--cream-dark);
    padding: .4rem 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
    margin: 1rem 0;
    letter-spacing: .1em;
}

/* toast/flash */
.flash {
    padding: .8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: .92rem;
    display: none;
}
.flash.show { display: block; }
.flash.err { background: #fde0e0; color: #7a1e1e; }
.flash.info { background: var(--rose-100); color: var(--green-900); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--cream-dark);
    }
    .nav-links.open { display: flex; }
    .detalhes { grid-template-columns: 1fr; }
    .booking-box { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .form-row { grid-template-columns: 1fr; }
    section { padding: 3rem 0; }

    /* O Chalé feature em mobile: empilha imagem em cima, conteúdo embaixo */
    .chale-feature { grid-template-columns: 1fr; }
    .chale-feature-img { min-height: 280px; }
    .chale-feature-body { padding: 1.75rem; }
}

/* ============================================================
 * Booking calendar widget
 * Usado no booking-box (/chale). Range selection em 1 mês por vez.
 * Renderizado por site/assets/js/booking-calendar.js.
 * ============================================================ */

.rdl-calendar {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 0.85rem 0.85rem 0.65rem;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.rdl-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem 0.55rem;
}

.rdl-cal-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--green-900);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.rdl-cal-nav {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--green-900);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.rdl-cal-nav:hover:not(:disabled) { background: var(--cream); }
.rdl-cal-nav:disabled { opacity: 0.25; cursor: default; }
.rdl-cal-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.rdl-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.rdl-cal-weekday {
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rdl-cal-day {
    padding: 0.55rem 0;
    text-align: center;
    background: none;
    border: none;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--charcoal);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
    position: relative;
    min-height: 36px;
}

/* Célula vazia antes do 1º dia — ocupa espaço sem interação. */
.rdl-cal-day.empty { cursor: default; visibility: hidden; }

.rdl-cal-day:hover:not(:disabled):not(.unavailable):not(.range-start):not(.range-end) {
    background: var(--cream);
}

.rdl-cal-day:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -1px;
}

.rdl-cal-day.disabled {
    color: #c9c7c0;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    cursor: not-allowed;
}

/* Dois estados de "ocupado" (estilo Airbnb):
   - `.unavailable` = noite D + noite D-1 ambas ocupadas → meio/fim de range
     alheio. NEM check-in nem check-out (noite anterior tem hóspede). Risco.
   - `.checkout-only` = noite D ocupada mas noite D-1 livre → primeiro dia
     de range alheio (turnover). Pode servir de check-out pra quem vem de
     antes; não pode ser check-in. Cor clara, sem strike. */
.rdl-cal-day.unavailable {
    color: #b85858;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    cursor: not-allowed;
    opacity: 0.6;
}

.rdl-cal-day.unavailable:hover {
    background: rgba(184, 88, 88, 0.08);
    opacity: 0.85;
}

.rdl-cal-day.checkout-only {
    color: #b8b2a6;
    cursor: default;
}

.rdl-cal-day.checkout-only:hover {
    background: var(--cream);
    color: #9a9588;
}

.rdl-cal-day.today:not(.range-start):not(.range-end) {
    box-shadow: inset 0 0 0 1px var(--cream-dark);
    font-weight: 600;
}

.rdl-cal-day.in-range {
    background: var(--cream);
    border-radius: 0;
}

/* Candidatos a check-out: dias que formam range válido a partir do
   check-in atual. Destaque verde suave pra guiar o segundo click.
   Vence sobre .checkout-only (cinza claro): se o dia é turnover mas
   ainda é checkout válido, mostramos como candidato (verde). */
.rdl-cal-day.checkout-valid {
    background: rgba(46, 75, 42, 0.12);
    color: var(--green-900);
}
.rdl-cal-day.checkout-valid:hover {
    background: rgba(46, 75, 42, 0.22);
}

/* Só aparece quando check-in já foi selecionado: dias que NÃO podem ser
   check-out (antes do check-in ou depois de uma noite bloqueada). Tracejado
   cinza comunica "não selecionável aqui", mas não bloqueia o click (clicar
   num dia anterior reinicia como novo check-in). */
.rdl-cal-day.not-checkout {
    color: #c9c7c0;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.rdl-cal-day.not-checkout:hover {
    background: var(--cream);
    color: #9a9588;
}

.rdl-cal-day.range-start,
.rdl-cal-day.range-end {
    background: var(--green-900);
    color: var(--cream);
    font-weight: 600;
}

.rdl-cal-day.range-start { border-radius: 4px 0 0 4px; }
.rdl-cal-day.range-end   { border-radius: 0 4px 4px 0; }
/* Single-day range (checkIn === checkOut impossível por regra de 1 noite
   mínima, mas cobrimos caso de hover) */
.rdl-cal-day.range-start.range-end { border-radius: 4px; }

.rdl-cal-legend {
    display: flex;
    gap: 0.9rem;
    padding-top: 0.55rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--cream-dark);
    font-size: 0.68rem;
    color: var(--muted);
    justify-content: center;
}

.rdl-cal-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }

.rdl-cal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}
.rdl-cal-dot.unav { background: #b8b2a6; }
.rdl-cal-dot.sel  { background: var(--green-900); }

/* Booking-box no mobile: calendário ocupa largura total do card, dias
   ficam um pouco maiores pra tap target. */
@media (max-width: 600px) {
    .rdl-cal-day { min-height: 40px; padding: 0.6rem 0; font-size: 0.92rem; }
    .rdl-calendar { padding: 0.7rem 0.6rem 0.55rem; }
}
