/*
 * Recanto dos Ipês | Tema escuro premium v1.45
 * Ajustes de legibilidade e contraste. Não altera tema claro nem a lógica CMS.
 * Carregado após os estilos de rodapé para evitar sobreposição por regras antigas.
 */
html[data-theme="dark"]{
  color-scheme:dark;
  --ri-dark-canvas:#09241f;
  --ri-dark-section:#102e27;
  --ri-dark-surface:#173b31;
  --ri-dark-surface-raised:#21483b;
  --ri-dark-line:rgba(219,189,134,.25);
  --ri-dark-heading:#faf6ec;
  --ri-dark-body:#e1ebe3;
  --ri-dark-muted:#c4d5c9;
  --ri-dark-gold:#ebc583;
}
html[data-theme="dark"] body{background:var(--ri-dark-canvas)!important;color:var(--ri-dark-body)}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] body:has(.hero-reservas) .topbar{background:#082d26!important;border-bottom:1px solid rgba(228,191,122,.20)!important}
html[data-theme="dark"] .topbar__item,
html[data-theme="dark"] .topbar__item:hover{color:#ecf5ed!important}
html[data-theme="dark"] .topbar__item i{color:var(--ri-dark-gold)!important}
html[data-theme="dark"] .theme-btn{background:#225348!important;color:#f6d695!important;border:1px solid #527c64!important}
html[data-theme="dark"] .theme-btn:hover{background:#2a6453!important;color:#fff9e9!important}
html[data-theme="dark"] .lang__btn{background:#19463a!important;color:#fff9ed!important;border-color:#426655!important}
html[data-theme="dark"] .lang__btn .lang__chev{color:#f3d59a!important}
html[data-theme="dark"] .lang__menu{background:#12382e!important;border:1px solid #456456!important}
html[data-theme="dark"] .lang__menu .dropdown-item{color:#f5efe1!important}
html[data-theme="dark"] .lang__menu .dropdown-item:hover,
html[data-theme="dark"] .lang__menu .dropdown-item:focus-visible{background:#2c5545!important;color:#fff!important}
html[data-theme="dark"] .ri-header,
html[data-theme="dark"] body:has(.hero-reservas) .site-header{background:#0c2823!important;border-bottom:1px solid rgba(228,191,122,.25)!important;box-shadow:0 8px 28px rgba(0,9,7,.30)!important}
html[data-theme="dark"] .ri-nav a{color:#f1f3ea!important}
html[data-theme="dark"] .ri-nav a:hover,
html[data-theme="dark"] .ri-nav a:focus-visible{color:var(--ri-dark-gold)!important}
html[data-theme="dark"] .ri-nav .ri-nav-contact{background:#e4be7b!important;color:#122e26!important;border:1px solid #f5d99f!important;box-shadow:0 6px 22px rgba(0,0,0,.13)!important}
html[data-theme="dark"] .ri-nav .ri-nav-contact:hover{background:#f2d398!important;color:#092c24!important}
html[data-theme="dark"] .ri-menu-toggle{color:#e8d7b5!important;border-color:#6f886c!important;background:#173a31!important}
html[data-theme="dark"] .ri-menu-toggle:focus-visible{outline:2px solid #e4c07b;outline-offset:3px}
@media(max-width:800px){html[data-theme="dark"] .ri-nav{background:#102f27!important;border:1px solid #426150;box-shadow:0 20px 34px rgba(0,0,0,.36)!important}html[data-theme="dark"] .ri-nav a{border-bottom-color:#325346!important}}

/* Banner: havia uma regra antiga que forçava o título para verde escuro sobre a foto. */
html[data-theme="dark"] body:has(.hero-reservas) .hero-reservas .hero__copy h1,
html[data-theme="dark"] .hero.hero-reservas:not(.hero--dark) .hero__copy h1{color:#fffaf0!important;text-shadow:0 3px 22px rgba(0,18,13,.8)!important}
html[data-theme="dark"] body:has(.hero-reservas) .hero-reservas .hero__copy h1 span,
html[data-theme="dark"] .hero.hero-reservas:not(.hero--dark) .hero__copy h1 span{color:#f3ce8e!important}
html[data-theme="dark"] body:has(.hero-reservas) .hero-reservas .hero__copy .hero__kicker{color:#f0d199!important;text-shadow:0 2px 14px #001b17!important}
html[data-theme="dark"] body:has(.hero-reservas) .hero-reservas .hero__copy p{color:#f4f7f0!important;text-shadow:0 2px 12px #001b16!important}
html[data-theme="dark"] .hero-reservas::before{background:linear-gradient(180deg,rgba(1,24,20,.57),rgba(4,23,20,.08) 45%,rgba(2,19,15,.64))!important}
html[data-theme="dark"] .hero-reservas::after{background:var(--ri-dark-section)!important}
html[data-theme="dark"] .reserva-hero-note,
html[data-theme="dark"] .reserva-hero-note #ri-chale-status{color:#eff6e9!important;text-shadow:0 2px 10px #071d17!important}
/* Formulário da primeira dobra: vidro verde, campos distinguíveis e contraste alto. */
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca{background:linear-gradient(130deg,#1b4337,#12382f)!important;border:1px solid #547462!important;box-shadow:0 22px 55px rgba(0,12,8,.42)!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca label{border-color:#476556!important;color:#cbdccd!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca label span{color:#f4e7c7!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca label span i{color:var(--ri-dark-gold)!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca :is(select,input,.ri-date-trigger){color:#f4f8f0!important;background:transparent!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca :is(select,option){color:#fffaf1!important;background:#173b31!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca .ri-date-trigger:disabled{color:#c4d1c4!important;opacity:1!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca :is(select,input,.ri-date-trigger):focus-visible{outline:2px solid #e3c483!important;outline-offset:2px}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca #consultar-hero{background:#e6bd7a!important;border:1px solid #efdda6!important;color:#0c3328!important;box-shadow:0 9px 22px rgba(0,0,0,.12)!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca #consultar-hero i{color:#164539!important}
html[data-theme="dark"] body:has(.hero-reservas) .reserva-busca #consultar-hero:hover{background:#f1d29b!important}

/* Áreas editoriais — título, corpo, assinatura e CTA agora são legíveis. */
html[data-theme="dark"] #sobre.ri-story-v98{background:var(--ri-dark-section)!important;border-bottom:1px solid var(--ri-dark-line)!important}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-about-text h2{color:var(--ri-dark-heading)!important}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-about-text h2 em{color:var(--ri-dark-gold)!important}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-about-text p:not(.ri-story-signature){color:var(--ri-dark-body)!important}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-story-signature{color:#f4d6a3!important;border-color:var(--ri-dark-line)!important}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-plain-link{color:#f1d08d!important;font-weight:750!important}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-plain-link:hover{color:#fff4d4!important;text-decoration:underline}
html[data-theme="dark"] #sobre.ri-story-v98 .ri-kicker,
html[data-theme="dark"] #chales .ri-kicker,
html[data-theme="dark"] #galeria .ri-kicker,
html[data-theme="dark"] #depoimentos .ri-kicker{color:#deb575!important}
html[data-theme="dark"] #chales.ri-landing-section{background:#0d2923!important}
html[data-theme="dark"] #chales .ri-chales-intro-v122 h2{color:var(--ri-dark-heading)!important}
html[data-theme="dark"] #chales .ri-chales-intro-v122 h2 em{color:#dcb276!important}
html[data-theme="dark"] #chales .ri-chales-intro-v122 p{color:#d8e5db!important}
html[data-theme="dark"] #chales .ri-chales-intro-details-v122 span{color:#d9e6db!important}
html[data-theme="dark"] #chales .ri-chales-intro-details-v122 i{color:#eac078!important}
html[data-theme="dark"] #chales .ri-chale-v16{background:#183d32!important;border:1px solid rgba(210,193,149,.25)!important;box-shadow:0 14px 28px rgba(0,0,0,.13)!important}
html[data-theme="dark"] #chales .ri-chale-content-v16 h3{color:#f9f2e5!important}
html[data-theme="dark"] #chales .ri-chale-content-v16>p{color:#dce6dc!important}
html[data-theme="dark"] #chales .ri-boutique,
html[data-theme="dark"] #chales .ri-boutique-tabs{border-color:rgba(226,192,130,.25)!important}
html[data-theme="dark"] #chales .ri-boutique-tabs .ri-guide-tab{color:#c7d7ca!important}
html[data-theme="dark"] #chales .ri-boutique-tabs .ri-guide-tab.is-active{color:#fbe6bd!important;border-bottom-color:#e3b777!important}
html[data-theme="dark"] #chales .ri-boutique-tabs .ri-guide-tab:hover{color:#fff3db!important}
html[data-theme="dark"] #chales .ri-boutique-facts span,
html[data-theme="dark"] #chales .ri-boutique-content .ri-guide-panel,
html[data-theme="dark"] #chales .ri-boutique-note{color:#dce8dd!important}
html[data-theme="dark"] #chales .ri-boutique-facts i{color:#e5b870!important}
html[data-theme="dark"] #chales .ri-chale-soon-badge-v136{background:#11352a!important;border-color:#e2bf83!important;color:#f9edd1!important}

/* Galeria: painel escuro refinado, filtros e controles legíveis. */
html[data-theme="dark"] #galeria.ri-gallery-v99{background:#122f28!important;border-top:1px solid var(--ri-dark-line)!important;border-bottom:1px solid var(--ri-dark-line)!important}
html[data-theme="dark"] #galeria .ri-gallery-copy-v111 h2{color:var(--ri-dark-heading)!important}
html[data-theme="dark"] #galeria .ri-gallery-copy-v111 h2 em{color:var(--ri-dark-gold)!important}
html[data-theme="dark"] #galeria .ri-gallery-copy-v111 .ri-gallery-intro-v117{color:#f0e6cf!important}
html[data-theme="dark"] #galeria .ri-gallery-copy-v111 .ri-gallery-detail-v112,
html[data-theme="dark"] #galeria .ri-gallery-copy-v111 .ri-gallery-detail-v117{color:#dbe6dc!important}
html[data-theme="dark"] #galeria .ri-gallery-copy-v111 .ri-gallery-note-v112{color:#ebc78a!important}
html[data-theme="dark"] #galeria .ri-gallery-tabs button{background:#1a4237!important;color:#e5f0e5!important;border:1px solid #557365!important}
html[data-theme="dark"] #galeria .ri-gallery-tabs button:hover,
html[data-theme="dark"] #galeria .ri-gallery-tabs button:focus-visible{background:#2b5b48!important;color:#fff!important;border-color:#d4b57f!important}
html[data-theme="dark"] #galeria .ri-gallery-tabs button.is-active,
html[data-theme="dark"] #galeria .ri-gallery-tabs button[aria-selected="true"]{background:#e3bc79!important;color:#17382d!important;border-color:#e3bc79!important;font-weight:750!important}
html[data-theme="dark"] #galeria .ri-gallery-showcase{border:1px solid rgba(226,189,123,.35)!important;background:#10291f!important;box-shadow:0 20px 38px rgba(0,7,4,.25)!important}
html[data-theme="dark"] #galeria .ri-gallery-bottom{background:#1a3e33!important;border-top:1px solid #49695a!important}
html[data-theme="dark"] #galeria .ri-gallery-time,
html[data-theme="dark"] #galeria .ri-time-label{color:#deebdf!important}
html[data-theme="dark"] #galeria .ri-gallery-time strong{color:#ffe4a6!important}
html[data-theme="dark"] #galeria .ri-gallery-progress{background:#426255!important}
html[data-theme="dark"] #galeria .ri-gallery-controls button{background:#244e3f!important;color:#f2e9d4!important;border-color:#6c866e!important}
html[data-theme="dark"] #galeria .ri-gallery-controls button:hover{background:#e3bc79!important;color:#12382e!important}
html[data-theme="dark"] #galeria .ri-gallery-empty{background:#163a2f!important;color:#e2eee2!important}
html[data-theme="dark"] #galeria .ri-gallery-empty p{color:#d1e1d1!important}

/* Depoimentos: mantém grade desktop / carrossel mobile da versão 1.44. */
html[data-theme="dark"] #depoimentos.ri-testimonials{background:linear-gradient(170deg,#0d3027 0%,#153d31 100%)!important;border-top:1px solid var(--ri-dark-line)!important}
html[data-theme="dark"] #depoimentos .ri-section-head h2{color:var(--ri-dark-heading)!important}
html[data-theme="dark"] #depoimentos .ri-review-v16{background:#214b3d!important;border:1px solid rgba(218,193,140,.36)!important;box-shadow:0 12px 26px rgba(0,7,5,.16)!important}
html[data-theme="dark"] #depoimentos .ri-review-v16 blockquote{color:#f2f3e9!important}
html[data-theme="dark"] #depoimentos .ri-review-author-v16 strong{color:#fff7e5!important}
html[data-theme="dark"] #depoimentos .ri-review-origin-v16,
html[data-theme="dark"] #depoimentos .ri-demo-label{color:#cfdfcf!important}
html[data-theme="dark"] #depoimentos .ri-review-person-v16{border-color:rgba(222,192,130,.25)!important}
html[data-theme="dark"] #depoimentos .ri-review-avatar-v16{background:#dfe9de!important;color:#12382f!important}
html[data-theme="dark"] #depoimentos .ri-testimonials-navigation-v143{color:#edd19a!important}
html[data-theme="dark"] #depoimentos .ri-testimonials-navigation-v143 button{background:#1d493a!important;color:#f6e8cc!important;border-color:#587561!important}
html[data-theme="dark"] #depoimentos .ri-testimonials-navigation-v143 button:disabled{opacity:.48}

/* Rodapé e campos: informação clara, formulário acessível e CTA com contraste. */
html[data-theme="dark"] #contato.ri-site-footer{background:linear-gradient(150deg,#062a23 0%,#0c3b30 100%)!important;border-top:1px solid rgba(226,192,133,.30)!important;color:#e5f1e4!important}
html[data-theme="dark"] #contato .ri-footer-info h2,
html[data-theme="dark"] #contato .ri-footer-message h2{color:#f0c37d!important}
html[data-theme="dark"] #contato .ri-footer-info nav a,
html[data-theme="dark"] #contato .ri-footer-contact-link{color:#f1f5ec!important}
html[data-theme="dark"] #contato .ri-footer-info nav a:hover,
html[data-theme="dark"] #contato .ri-footer-contact-link:hover{color:#ffda91!important}
html[data-theme="dark"] #contato .ri-footer-message>p,
html[data-theme="dark"] #contato .ri76-bottom p{color:#d2e3d4!important}
html[data-theme="dark"] #contato .ri-footer-contact-form input,
html[data-theme="dark"] #contato .ri-footer-contact-form textarea{background:#153c31!important;color:#fbf9ed!important;border:1px solid #62816b!important;border-radius:5px!important}
html[data-theme="dark"] #contato .ri-footer-contact-form input::placeholder,
html[data-theme="dark"] #contato .ri-footer-contact-form textarea::placeholder{color:#c6d7c7!important;opacity:1!important}
html[data-theme="dark"] #contato .ri-footer-contact-form :is(input,textarea):focus-visible{outline:2px solid #e8c07c!important;outline-offset:1px}
html[data-theme="dark"] #contato .ri-footer-contact-form button{background:#e4bd7a!important;color:#123428!important;border:1px solid #efd499!important;box-shadow:none!important}
html[data-theme="dark"] #contato .ri-footer-contact-form button:hover{background:#f2d49b!important;color:#0f2b23!important}
html[data-theme="dark"] #contato .ri-footer-social>a{color:#f5d08a!important;border-color:#73856a!important;background:#18483a!important}
html[data-theme="dark"] #contato .ri-footer-social>a:hover{background:#e2bc80!important;color:#14362c!important}
html[data-theme="dark"] #contato .ri67-credit a{color:#f6cf8b!important}

/* Acessibilidade consistente em modo escuro. */
html[data-theme="dark"] :is(button,a,input,textarea,select):focus-visible{outline-color:#f3d192;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  html[data-theme="dark"] .ri-nav a,html[data-theme="dark"] .ri-gallery-controls button{transition:none!important}
}

/* Central de estadia, incluindo modal mobile e controles desabilitados. */
html[data-theme="dark"] .ri-booking-dialog{background:#16362d!important;border-color:#5a765c!important}
html[data-theme="dark"] .ri-booking-main{background:#193c31!important;color:#e8f1e6!important}
html[data-theme="dark"] .ri-booking-head h2,
html[data-theme="dark"] .ri-booking-page h3,
html[data-theme="dark"] .ri-booking-page h4{color:#fbf4e4!important}
html[data-theme="dark"] .ri-booking-head p,
html[data-theme="dark"] .ri-booking-section-description{color:#cfdfd2!important}
html[data-theme="dark"] .ri-booking-step{color:#c2d0c5!important;border-bottom-color:transparent}
html[data-theme="dark"] .ri-booking-step.is-active{color:#ffe1a6!important;border-bottom-color:#e0bd80!important}
html[data-theme="dark"] .ri-booking-progress,
html[data-theme="dark"] .ri-booking-actions{border-color:#4d6855!important}
html[data-theme="dark"] .ri-booking-fields label{color:#e1e9dc!important}
html[data-theme="dark"] .ri-booking-fields :is(input,select,textarea,button.ri-date-trigger){background:#204a3c!important;color:#f4f3e8!important;border:1px solid #67806b!important}
html[data-theme="dark"] .ri-booking-fields :is(input,textarea)::placeholder{color:#bfcebf!important;opacity:1}
html[data-theme="dark"] .ri-booking-fields select option{background:#204a3c!important;color:#f4f3e8!important}
html[data-theme="dark"] .ri-booking-fields button.ri-date-trigger:disabled{background:#244436!important;color:#c9d4c6!important;border-color:#4f6855!important;opacity:.8!important}
html[data-theme="dark"] .ri-booking-notice{background:#24473a!important;color:#e0eadf!important;border-left-color:#e0bd80!important}
html[data-theme="dark"] .ri-booking-summary>div{background:#20473a!important;border-color:#57715d!important}
html[data-theme="dark"] .ri-booking-summary :is(span,strong){color:#e8efe5!important}
html[data-theme="dark"] .ri-booking-payment{border-color:#546b59!important;background:#224438!important;color:#d7e6d8!important}
html[data-theme="dark"] .ri-booking-payment small{color:#c3d2c5!important}
html[data-theme="dark"] .ri-booking-soon{background:#345342!important;color:#ffe1ab!important}
html[data-theme="dark"] .ri-booking-actions .ri-booking-next,
html[data-theme="dark"] .ri-booking-actions .ri-booking-send{background:#e3be7d!important;color:#15382c!important;border-color:#efdda4!important}
html[data-theme="dark"] .ri-booking-actions .ri-booking-back{background:#234a3b!important;color:#f9f0df!important;border-color:#67806c!important}
html[data-theme="dark"] .ri-booking-close{background:#265040!important;color:#f5ebd9!important;border-color:#688574!important}
html[data-theme="dark"] .ri-booking-error{background:#4a2e28!important;color:#ffe5d8!important}
