/* Rancho Tucunaré — refinamento visual reversível, 2026-08-31. */
:root{
  --refresh-forest:#092e28;
  --refresh-forest-deep:#061e1a;
  --refresh-sand:#f6f1e7;
  --refresh-paper:#eee3cf;
  --refresh-box:#eee3cf;
  --refresh-box-border:rgba(9,46,40,.14);
  --refresh-primary:#176b5b;
  --refresh-primary-hover:#125748;
  --refresh-bronze:#a96f3f;
  --refresh-bronze-light:#d8aa78;
  --refresh-line:rgba(9,46,40,.13);
  --refresh-shadow:0 14px 36px rgba(8,39,33,.09);
}

html{scroll-padding-top:90px}
body{font-size:16px;letter-spacing:-.005em}
.container{width:min(1180px,calc(100% - clamp(2rem,6vw,5rem)))}
.section{padding-block:clamp(3.75rem,7vw,6rem)}
.section-heading h2,.form-intro h2,.location-title{letter-spacing:-.035em;line-height:1.02}
.eyebrow{letter-spacing:.16em}
.header .admin-link-header{display:none}

/* Hero editorial: imagem protagonista, conteúdo mais legível e menos ruído. */
.hero{height:100svh;min-height:0;align-items:center}
.hero-bg{inset:0;animation:none;background-position:center 52%}
.hero::before{background:linear-gradient(90deg,rgba(4,24,20,.72) 0%,rgba(4,24,20,.4) 46%,rgba(4,24,20,.08) 76%),linear-gradient(0deg,rgba(4,24,20,.58),transparent 55%)}
.hero-glow{opacity:.55}
.hero-content{display:grid;align-content:center;padding-top:calc(var(--header-h) + 1.5rem);padding-bottom:1.5rem}
.hero-content .eyebrow{margin:0 0 .8rem}
.hero h1{max-width:900px;margin:0;font-size:clamp(3.25rem,5.3vw,5rem);line-height:.96;letter-spacing:-.05em;text-wrap:balance}
.hero h1 .hero-brand-name{display:block;margin-bottom:.16em;color:var(--white);font-size:.56em;font-style:normal;line-height:1.1;letter-spacing:-.035em}
.hero-lead{max-width:610px;margin:.95rem 0 0;font-size:clamp(1.02rem,1.55vw,1.2rem);line-height:1.5}
.hero-facts{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.1rem 0 0;padding:0;list-style:none}
.hero-facts li{padding:.55rem .85rem;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(5,31,26,.32);backdrop-filter:blur(10px);font-size:.76rem;font-weight:700;letter-spacing:.04em}
.hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,260px));align-items:stretch;gap:1rem;margin-top:1.1rem}
.hero-actions .button{width:100%;min-width:0}
.scroll-cue{display:none}

/* Consulta rápida cria transição limpa entre fotografia e conteúdo. */
.booking-shortcut{position:relative;z-index:1;margin-top:0;padding:clamp(1.25rem,2.5vw,2rem) 0}
.booking-shortcut-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.25rem 1.5rem;border:1px solid var(--refresh-box-border);border-radius:16px;background:var(--refresh-box);box-shadow:var(--refresh-shadow)}
.booking-shortcut-inner>div{display:grid;gap:.18rem}
.booking-shortcut span{color:var(--refresh-bronze);font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.booking-shortcut strong{color:var(--refresh-forest);font:700 clamp(1rem,2vw,1.25rem)/1.3 var(--font-display)}
.booking-shortcut .button{flex:none}

/* Divisores editoriais preservados em escala menor, incluindo seus efeitos. */
.editorial-divider{
  display:grid;
  place-items:center;
  min-height:clamp(82px,9vw,124px);
  padding:1rem max(1rem,calc((100vw - var(--container))/2));
  background:rgba(7,27,23,.88);
  box-shadow:none;
}
.editorial-divider img,.editorial-divider-wide img{
  justify-self:center;
  align-self:center;
  margin-inline:auto;
  max-width:min(78%,860px);
  max-height:clamp(58px,7vw,88px);
}
.divider-rancho,.divider-vem{min-height:clamp(118px,13vw,170px)}
.divider-rancho img,.divider-vem img{max-width:min(80%,900px);max-height:clamp(78px,9vw,112px)}

/* Superfícies padronizadas em todos os cartões principais. */
.box-glass,.faq-section,
.about-layout,.gallery .box-glass,.rooms .box-glass,.reserva-box,.mapa-info,
.testimonials .box-glass,.testimonials .testimonials-glass.box-glass{
  color:var(--color-body);
  border-color:var(--refresh-box-border);
  background:var(--refresh-box);
  background-image:none;
  box-shadow:var(--refresh-shadow);
  backdrop-filter:none;
}
.gallery .box-glass h2,.gallery .box-glass .split-heading>p,
.testimonials .box-glass h2{color:var(--color-heading)}
.gallery .box-glass .eyebrow,.testimonials .box-glass .eyebrow{color:var(--color-accent-strong)}
.about{padding-top:clamp(3.75rem,7vw,6rem);background:var(--refresh-paper);color:var(--refresh-forest)}
.about-layout{border:0;background:transparent;box-shadow:none;padding:clamp(1rem,3vw,2.5rem) 0}
.rooms .box-glass,.reserva-box,.testimonials-glass{border:1px solid var(--refresh-box-border)}
.liquid-glass::before{opacity:.15}
.about-layout{grid-template-columns:.55fr 1.45fr;padding:clamp(1rem,3vw,2.5rem) 0}
.about-copy>p:first-child{font-size:clamp(1.15rem,2vw,1.45rem);line-height:1.55;color:var(--refresh-forest)}
.about-copy>p:nth-child(2){font-size:.98rem}
.about-highlights{gap:0;border-top:1px solid var(--refresh-line)}
.about-highlights div{border-top:0;border-right:1px solid var(--refresh-line)}
.about-highlights div:last-child{border-right:0}

/* Galeria editorial com ritmo e foco na primeira imagem. */
.gallery{padding-block:clamp(4rem,6vw,5.5rem)}
.gallery .box-glass{padding:clamp(1.6rem,4vw,3.5rem)}
.grid-gallery{display:grid;grid-template-columns:1.4fr .8fr .8fr;grid-auto-rows:240px;gap:.75rem}
.grid-gallery>*:first-child{grid-row:span 2}
.grid-gallery img{width:100%;height:100%;border-radius:16px;object-fit:cover}

/* Acomodações informativas, sem excesso de decoração. */
.rooms .box-glass{padding:clamp(1.6rem,4vw,3.5rem)}
.room-grid{gap:.75rem}
.room-grid img,.room-grid picture{border-radius:14px;overflow:hidden}
.amenities-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:2rem 0 0;padding:1.5rem 0 0;border-top:1px solid var(--refresh-line);list-style:none}
.amenities-grid li{display:grid;grid-template-columns:auto 1fr;column-gap:.7rem;padding:.5rem 1rem;border-right:1px solid var(--refresh-line)}
.amenities-grid li:last-child{border-right:0}
.amenities-grid span{grid-row:span 2;color:var(--refresh-bronze);font-size:1.15rem}
.amenities-grid .amenity-icon{display:grid;place-items:center;width:1.4rem;height:1.4rem;margin-top:.05rem}
.amenities-grid .amenity-icon svg{display:block;width:100%;height:100%;overflow:visible}
.amenities-grid strong{color:var(--refresh-forest);font-size:.82rem}
.amenities-grid small{color:var(--muted);font-size:.7rem}

/* FAQ, mapa, avaliações e reserva com a mesma linguagem. */
.faq-section{width:min(calc(100% - 2rem),980px);margin:clamp(3rem,6vw,4.5rem) auto;border:1px solid var(--refresh-line);border-radius:20px;background:var(--refresh-paper);box-shadow:var(--refresh-shadow)}
.faq-question{font-size:1rem}
.mapa-section{background:var(--refresh-paper);color:var(--refresh-forest)}
.mapa-info{padding:clamp(1.25rem,3vw,2.5rem) 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.map-frame{border-radius:16px;box-shadow:none}
.testimonials .box-glass{border:1px solid var(--refresh-box-border);border-radius:24px}
.reserva-box{padding:clamp(1.5rem,4vw,3rem);border-radius:24px}
.reserva-box>.form-intro{position:sticky;top:110px}
.reserva-box{
  --reservation-panel:#f6edde;
  --reservation-input:#fffaf1;
  --reservation-border:rgba(122,87,45,.2);
}
.reservation-access-card,.reservation-data-group,.reservation-address-fields,
.guest-selector,.coupon-field,.reservation-price-preview,.reserva-data-field{
  border-color:var(--reservation-border);
  background:var(--reservation-panel);
  box-shadow:none;
}
.reservation-access-card{
  grid-template-columns:52px minmax(0,1fr);
  gap:.9rem;
  padding:clamp(1rem,2vw,1.35rem);
  border-radius:18px;
  box-shadow:none;
}
.reservation-access-icon{width:52px;height:52px}
.reservation-access-card h3{margin:0 0 .35rem;font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.18}
.reservation-access-card p{line-height:1.45}
.reservation-access-actions{gap:.6rem;margin-top:.9rem}
.reservation-access-actions .button{padding:.65rem .9rem}
.reserva-box:has(#reserva-locked:not([hidden])){
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  gap:clamp(1.5rem,4vw,3.5rem);
}
.reserva-box:has(#reserva-locked:not([hidden]))>.form-intro{
  display:grid;
  align-content:center;
  gap:.8rem;
}
.reserva-box:has(#reserva-locked:not([hidden])) .reserva-descricao{margin:0;line-height:1.5}
.reserva-box:has(#reserva-locked:not([hidden])) .reservation-important{margin-top:.25rem!important;padding:.75rem .9rem}
.reserva-box:has(#reserva-locked:not([hidden]))>.reservation-access-card{align-self:center}
.reservation-data-group,.reservation-address-fields,.guest-selector,.coupon-field{
  padding:clamp(1rem,2vw,1.25rem);
  border-radius:16px;
}
.reservation-group-title{
  display:block;
  margin:0 0 1rem;
  padding:0 0 .7rem;
  border-bottom:1px solid var(--reservation-border);
  color:var(--refresh-forest);
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.reserva-box input,.reserva-box textarea,.reserva-box select{
  border-color:var(--reservation-border);
  background:var(--reservation-input);
  color:var(--refresh-forest);
}
.reserva-box input:focus,.reserva-box textarea:focus,.reserva-box select:focus{
  border-color:var(--refresh-bronze);
  background:var(--reservation-input);
  box-shadow:0 0 0 4px rgba(169,111,63,.14);
}
.reserva-datas-row{gap:1rem}
.reserva-data-field{padding:1rem;border:1px solid var(--reservation-border);border-radius:16px}
.booking-form>.button[type="submit"]{grid-column:1/-1;width:100%;margin-top:.25rem}
.reservation-price-preview{padding:clamp(1rem,2.5vw,1.35rem);border-radius:16px}
.price-preview-grid div,.coupon-summary span{background:rgba(169,111,63,.09)}
.reservation-important{border-left-color:var(--refresh-bronze);background:rgba(169,111,63,.1)}
input,textarea,select{border-color:var(--refresh-line);border-radius:11px;box-shadow:none}

/* Botões e estados consistentes. */
.button{border-radius:10px;box-shadow:none}
.button-primary{background:var(--refresh-primary);box-shadow:none}
.button-primary:hover{background:var(--refresh-primary-hover);box-shadow:none}
.button-secondary{border-color:rgba(255,255,255,.45)}
.box-glass{border-radius:18px}
.nav-cta{border-color:rgba(255,255,255,.32);background:var(--refresh-primary);color:#fff}
.mobile-actions a:first-child{background:var(--refresh-primary)}
.mobile-actions a:first-child:hover{background:var(--refresh-primary-hover)}

/* O modo escuro usa uma única superfície verde profunda para todas as boxes. */
html[data-theme="dark"]{
  --refresh-box:#103a31;
  --refresh-paper:#0c2a23;
  --refresh-forest:#e5ece8;
  --refresh-box-border:rgba(204,228,220,.16);
  --refresh-line:rgba(221,181,129,.18);
  --refresh-shadow:0 14px 36px rgba(0,0,0,.2);
}
html[data-theme="dark"] .box-glass,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .about-layout,
html[data-theme="dark"] .gallery .box-glass,
html[data-theme="dark"] .rooms .box-glass,
html[data-theme="dark"] .reserva-box,
html[data-theme="dark"] .mapa-info,
html[data-theme="dark"] .testimonials .box-glass,
html[data-theme="dark"] .testimonials .testimonials-glass.box-glass{
  color:var(--color-body);
  border-color:var(--refresh-box-border);
  background:var(--refresh-box);
  background-image:none;
  box-shadow:var(--refresh-shadow),inset 0 1px rgba(255,255,255,.05);
}
html[data-theme="dark"] .about{background:var(--refresh-paper);color:var(--color-body)}
html[data-theme="dark"] .about-layout,
html[data-theme="dark"] .mapa-info{border:0;background:transparent;box-shadow:none}
html[data-theme="dark"] .gallery .box-glass h2,
html[data-theme="dark"] .gallery .box-glass .split-heading>p,
html[data-theme="dark"] .testimonials .box-glass h2{color:var(--color-heading)}
html[data-theme="dark"] .booking-shortcut strong{color:#f4ead8}
html[data-theme="dark"] .amenities-grid strong{color:#f4ead8}
html[data-theme="dark"] .amenities-grid small{color:#b7c7c0}
html[data-theme="dark"] .amenities-grid li{border-color:rgba(221,181,129,.18)}
html[data-theme="dark"] .editorial-divider{background:rgba(3,18,15,.92)}
html[data-theme="dark"] .reserva-box{
  --reservation-panel:#16483d;
  --reservation-input:#103a31;
  --reservation-border:rgba(221,181,129,.25);
}
html[data-theme="dark"] .reservation-access-card,
html[data-theme="dark"] .reservation-data-group,
html[data-theme="dark"] .reservation-address-fields,
html[data-theme="dark"] .guest-selector,
html[data-theme="dark"] .coupon-field,
html[data-theme="dark"] .reservation-price-preview,
html[data-theme="dark"] .reserva-data-field{background:var(--reservation-panel);border-color:var(--reservation-border)}
html[data-theme="dark"] .reserva-box input,
html[data-theme="dark"] .reserva-box textarea,
html[data-theme="dark"] .reserva-box select{background:var(--reservation-input);border-color:var(--reservation-border)}
html[data-theme="dark"] .reserva-box .reservation-group-title{
  color:#f4ead8;
}
html[data-theme="dark"] .reserva-box .reservation-address-grid label,
html[data-theme="dark"] .reserva-box .guest-row strong,
html[data-theme="dark"] .reserva-box .guest-total,
html[data-theme="dark"] .reserva-box .price-preview-heading strong{color:#f4ead8}
html[data-theme="dark"] .reserva-box .guest-row small,
html[data-theme="dark"] .reserva-box .price-preview-heading span,
html[data-theme="dark"] .reserva-box .price-preview-content>p{color:#b7c7c0}

@media(max-width:900px){
  .hero{height:100svh;min-height:0}
  .hero h1{font-size:clamp(2.9rem,9vw,5.1rem)}
  .booking-shortcut{margin-top:0}
  .booking-shortcut-inner{align-items:flex-start}
  .about-layout{grid-template-columns:1fr}
  .about-logo{width:135px;margin-left:0}
  .grid-gallery{grid-template-columns:1.25fr .75fr;grid-auto-rows:220px}
  .amenities-grid{grid-template-columns:repeat(2,1fr);row-gap:1rem}
  .amenities-grid li:nth-child(2){border-right:0}
  .reserva-box>.form-intro{position:static}
}

@media(max-width:700px){
  body{font-size:16px}
  .container{width:min(100% - 1.25rem,1180px)}
  .section{padding-block:4.5rem}
  .hero{height:100svh;min-height:0;align-items:stretch}
  .hero-bg{background-position:62% center}
  .hero::before{background:linear-gradient(0deg,rgba(4,24,20,.76) 0%,rgba(4,24,20,.38) 62%,rgba(4,24,20,.16))}
  .hero-content{box-sizing:border-box;min-height:100%;align-content:center;padding-top:calc(var(--header-h) + env(safe-area-inset-top) + 1.25rem);padding-bottom:calc(5.25rem + env(safe-area-inset-bottom))}
  .hero h1{font-size:clamp(2.55rem,11.5vw,4.25rem);line-height:.94}
  .hero-lead{font-size:1rem}
  .hero-facts{gap:.4rem;margin-top:.9rem}
  .hero-facts li{font-size:.66rem;padding:.45rem .65rem}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.9rem}
  .hero-actions .button{min-width:0;padding:.8rem .7rem;font-size:.8rem}
  .booking-shortcut{margin-top:0}
  .booking-shortcut-inner{display:grid;gap:1rem;padding:1.25rem;border-radius:18px}
  .booking-shortcut .button{width:100%}
  .about{padding-top:3.75rem}
  .about-layout,.rooms .box-glass,.reserva-box,.mapa-info{padding:1.3rem;border-radius:18px}
  .about-highlights{grid-template-columns:1fr}
  .about-highlights div{border-right:0;border-bottom:1px solid var(--refresh-line)}
  .grid-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:170px;gap:.5rem}
  .grid-gallery>*:first-child{grid-column:span 2;grid-row:auto}
  .amenities-grid{grid-template-columns:1fr;padding-top:1rem}
  .amenities-grid li{border-right:0;border-bottom:1px solid var(--refresh-line);padding: .75rem .25rem}
  .faq-section{padding:1.3rem;border-radius:18px}
  .faq-question{
    display:grid;
    width:100%;
    grid-template-columns:minmax(0,1fr) 36px;
    min-height:58px;
    gap:.75rem;
    padding:.8rem 0;
    align-items:center;
  }
  .faq-list{display:grid;grid-template-columns:1fr}
  .faq-item{width:100%}
  .faq-question .icon{justify-self:end}
  .lightbox .close,.lightbox .carousel-nav{
    z-index:4;
    width:48px;
    min-width:48px;
    height:48px;
    min-height:48px;
    padding:0;
    aspect-ratio:1;
    -webkit-tap-highlight-color:transparent;
    user-select:none;
    -webkit-user-select:none;
    pointer-events:auto;
  }
  .lightbox .close{
    display:grid;
    place-items:center;
    line-height:1;
    text-align:center;
    text-indent:0;
  }
  .reservation-access-card{grid-template-columns:1fr;gap:.7rem;padding:1rem}
  .reservation-access-icon{width:48px;height:48px}
  .reservation-access-actions{display:grid;grid-template-columns:1fr;gap:.55rem;margin-top:.8rem}
  .reservation-access-actions .button{width:100%}
  .reserva-box:has(#reserva-locked:not([hidden])){grid-template-columns:1fr;gap:1.25rem}
  .reserva-box:has(#reserva-locked:not([hidden]))>.form-intro{gap:.75rem}
  .editorial-divider{min-height:68px;padding:.65rem 1rem}
  .editorial-divider img,.editorial-divider-wide img{max-width:78%;max-height:54px}
  .divider-rancho,.divider-vem{min-height:104px}
  .divider-rancho img,.divider-vem img{max-width:84%;max-height:72px}
}

/* Contenção dos formulários em navegadores móveis, incluindo o min-content
   nativo de fieldset e inputs de data no Safari. */
.reservation-authenticated,
.reservation-panel,
.booking-form,
.reservation-data-group,
.reservation-address-fields,
.guest-selector,
.reserva-datas-row,
.reserva-data-field,
.coupon-field,
.reservation-price-preview,
.reservation-personal-grid,
.reservation-contract-grid,
.reservation-address-grid{
  width:100%;
  max-width:100%;
  min-width:0;
  min-inline-size:0;
}
.reservation-personal-grid>*,
.reservation-contract-grid>*,
.reservation-address-grid>*,
.reserva-datas-row>*,
.coupon-input-row>*{
  min-width:0;
  min-inline-size:0;
  max-width:100%;
}
.booking-form input,
.booking-form textarea,
.booking-form select{
  display:block;
  min-width:0;
  min-inline-size:0;
  max-width:100%;
}
.booking-form input[type="date"]{
  /* `width:100%` pode somar a largura intrínseca do seletor nativo no
     Chrome/Safari móvel. O tamanho automático de um bloco esticado respeita
     a caixa de conteúdo do campo e mantém borda e padding dentro do card. */
  align-self:stretch;
  inline-size:auto;
  width:auto;
  min-inline-size:0;
  min-width:0;
  max-inline-size:100%;
  max-width:100%;
  overflow:hidden;
}
.booking-form .field>input,
.booking-form .field>textarea,
.booking-form .field>select,
.booking-form .reserva-data-field>input{
  align-self:stretch;
  inline-size:auto;
  width:auto;
  min-inline-size:0;
  min-width:0;
  max-inline-size:100%;
  max-width:100%;
}
.reservation-group-title,
.booking-form label,
.booking-form small,
.guest-row strong,
.guest-row small,
.guest-total,
.coupon-feedback{
  overflow-wrap:anywhere;
  word-break:normal;
}

@media(max-width:520px){
  .reservation-data-group,
  .reservation-address-fields,
  .guest-selector,
  .coupon-field,
  .reserva-data-field{
    padding:.9rem;
  }
  .guest-row>span:first-child{min-width:0}
}

@media(max-width:380px){
  .hero-content{padding-top:calc(var(--header-h) + env(safe-area-inset-top) + .75rem);padding-bottom:calc(5rem + env(safe-area-inset-bottom))}
  .hero h1{font-size:clamp(2.3rem,11.5vw,2.8rem)}
  .hero-facts{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .hero-facts li{display:grid;min-height:36px;padding:.4rem .5rem;place-items:center;text-align:center}
  .hero-actions{grid-template-columns:1fr}
  .hero-actions .button{min-height:44px}
  .booking-shortcut-inner{padding:1rem}
}

@media(prefers-reduced-motion:reduce){.hero-bg{animation:none!important}}

/* Hierarquia editorial da página pública: usa as superfícies existentes e
   reforça leitura, sem alterar conteúdo, rotas ou regras de reserva. */
.hero-facts li{backdrop-filter:blur(8px);box-shadow:inset 0 1px rgba(255,255,255,.12)}
.booking-shortcut,.reservation-price-preview{box-shadow:0 18px 42px rgba(7,27,23,.1)}
.reservation-price-preview[data-state="calculated"]{border-color:rgba(38,116,82,.34)}
.price-preview-grid>div:last-child{border:1px solid rgba(184,131,77,.18);background:rgba(184,131,77,.1)}
.faq-item{transition:border-color .2s ease,background .2s ease}.faq-item:has(.faq-question[aria-expanded="true"]){border-color:rgba(184,131,77,.42);background:rgba(255,253,248,.34)}
html[data-theme="dark"] .faq-item:has(.faq-question[aria-expanded="true"]){background:rgba(255,255,255,.045)}

/* Estado aberto: destaque contido e alinhado, sem criar um retângulo solto
   nem deixar a resposta encostada nas bordas do item. */
.faq-item:has(.faq-question[aria-expanded="true"]){
  margin-block:8px;
  border:1px solid rgba(184,131,77,.42);
  border-radius:14px;
  overflow:hidden;
}
/* Background exclusivo da página principal. */
body{background-image:linear-gradient(rgba(7,27,23,.58),rgba(7,27,23,.74)),image-set(url("img/optimized/main-back-1600.webp") type("image/webp")) !important;background-position:center;background-size:cover;background-attachment:fixed}
.hero-bg{background-color:#193029;background-image:url("img/optimized/new-back-1920.webp") !important;background-position:center 60%;background-size:cover;background-repeat:no-repeat}
html[data-theme="dark"] body{background-image:linear-gradient(rgba(2,14,11,.72),rgba(3,18,15,.86)),image-set(url("img/optimized/main-back-1600.webp") type("image/webp")) !important}
@media(max-width:700px){
  body{background-attachment:scroll !important}
  body{position:relative;isolation:isolate;background-image:none !important;background-color:#071b17 !important}
  body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(7,27,23,.58),rgba(7,27,23,.74)),image-set(url("img/optimized/main-back-960.webp") type("image/webp"));background-position:center;background-size:cover;background-repeat:no-repeat}
  .hero-content{display:flex;flex-direction:column;align-items:stretch;justify-content:center;align-content:initial;padding-top:calc(var(--header-h) + env(safe-area-inset-top) + 1.25rem);padding-bottom:calc(5.25rem + env(safe-area-inset-bottom));padding-inline:.25rem}
  .hero h1{font-size:clamp(2.55rem,12vw,3.55rem);line-height:.93;max-width:14ch}
  .hero-lead{max-width:34rem;line-height:1.45}
  .hero-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;width:100%}
  .hero-facts li{display:grid;place-items:center;min-height:52px;padding:.45rem .35rem;text-align:center;font-size:.68rem;line-height:1.15}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:.65rem;margin-top:1.1rem;padding-top:0}
  .hero-actions .button{min-height:52px;padding:.85rem 1rem;font-size:1rem}
  .hero-bg{background-position:center;background-size:cover;background-repeat:no-repeat}
}

@media(max-width:700px){
  .hero-bg{background-image:url("img/optimized/new-back-1920.webp") !important;background-position:center 60%}
}
.faq-item:has(.faq-question[aria-expanded="true"]) .faq-question{
  padding-inline:16px;
}
.faq-item:has(.faq-question[aria-expanded="true"]) .faq-answer{
  padding-inline:16px;
}
html[data-theme="dark"] .faq-item:has(.faq-question[aria-expanded="true"]){border-color:rgba(221,181,129,.34)}

@media(min-width:900px){
  .reserva-box{grid-template-columns:minmax(0,.72fr) minmax(340px,1.28fr);gap:clamp(2rem,5vw,4.5rem)}
  .reserva-box>.form-intro{position:sticky;top:calc(var(--header-h) + 1.5rem);align-self:start}
  .reservation-price-preview{position:relative}
}

/* Organização própria da reserva pública em telefones. As regras não alteram
   a grade, os tamanhos nem os espaçamentos do desktop. */
@media(max-width:700px){
  .contact-form,.booking-form{gap:1rem}
  .booking-form>.field-full,.booking-form>.reservation-data-group,.booking-form>.reservation-address-fields,.booking-form>.guest-selector,.booking-form>.coupon-field,.booking-form>.reservation-price-preview{margin-top:.15rem}
  .reservation-data-group,.reservation-address-fields,.guest-selector,.coupon-field,.reservation-price-preview,.reserva-data-field{border-radius:16px}
  .reservation-group-title{line-height:1.25}
  .guest-row{align-items:center;gap:.75rem}
  .guest-stepper{justify-self:end}
  .price-preview-grid div{min-height:44px;align-items:center}
  .price-preview-grid dt{padding-right:.5rem}
  .reservation-important{line-height:1.55}
  .footer-brand p{white-space:normal;line-height:1.45}
}

@media(max-width:480px){
  .section{padding-block:3.5rem}
  .split-heading{gap:.75rem}
  .split-heading>p,.section-copy{line-height:1.6}
  .booking-form>.button[type="submit"]{min-height:52px;margin-top:.5rem}
  .guest-row{grid-template-columns:minmax(0,1fr) auto}
  .guest-row small{line-height:1.45}
  .reserva-box>.form-intro h2{line-height:1.08}
}

@media(max-width:700px) and (max-height:650px){
  .hero{height:auto;min-height:100svh}
  .hero-content{min-height:0;padding-bottom:calc(6rem + env(safe-area-inset-bottom))}
}

/* Reaplica o respiro específico para telas estreitas após a regra mobile geral. */
@media(max-width:380px){.hero-content{padding-top:calc(var(--header-h) + env(safe-area-inset-top) + .75rem);padding-bottom:calc(6rem + env(safe-area-inset-bottom))}}

/* Em paisagem, deixa o hero crescer quando a altura útil não comporta o conteúdo. */
@media(max-height:500px) and (orientation:landscape) and (max-width:1000px){
  .hero{height:auto;min-height:100svh}
  .hero-content{min-height:0;align-content:start;padding-top:calc(var(--header-h) + env(safe-area-inset-top) + .75rem);padding-bottom:calc(5.25rem + env(safe-area-inset-bottom))}
}

/* Resolve a maior especificidade do estado inicial das imagens da galeria. */
html.reveal-enabled .fade-in.visible .room-grid img{opacity:1;transform:none}
@media(hover:hover) and (pointer:fine){html.reveal-enabled .fade-in.visible .room-grid img:hover{transform:translateY(-5px) scale(1.015)}}
