/* ==========================================================================
   Hotel Minas — folha de estilos
   1. Tokens e base      6. Acomodações
   2. Utilitários        7. Páginas internas
   3. Botões             8. Mapa, rodapé e flutuantes
   4. Cabeçalho e menu   9. Foto ampliada (galeria)
   5. Home              10. Foto 360°

   Regras do visual:
   - cantos retos: nada de border-radius em fotos, cartões, botões ou campos;
   - textos corridos sempre justificados;
   - as distâncias entre os elementos saem da escala --sp-* (não usar valores soltos);
   - caixas ("cartões") só nos quartos, na busca por datas e no cartão de reserva;
   - botões de WhatsApp sempre nas cores oficiais (--whatsapp);
   - realces de "mouse em cima" em fotos e setas ficam dentro de @media (hover: hover).
   ========================================================================== */

/* 1. Tokens e base ---------------------------------------------------------- */

:root {
  --charcoal: #434947;
  --charcoal-deep: #2e3331;
  --ink: #333a38;
  --muted: #68706d;
  --blue: #43647f;
  --blue-deep: #253a58;
  --blue-soft: #e9eff4;
  --soft: #f4f3f0;
  --line: #e4e2dd;
  --white: #fff;
  --night: #161918;
  --whatsapp: #25d366; /* verde oficial do WhatsApp: botão flutuante e todos os botões de WhatsApp */
  --whatsapp-deep: #128c7e; /* verde-escuro oficial do WhatsApp: os mesmos botões com o mouse em cima */

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 18px 50px rgb(46 51 49 / 18%); /* só no que flutua sobre a página: menu, busca e cartão do mapa */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Espaçamentos: escala única do site */
  --sp-xs: 8px; /* dentro de um item: ícone ↔ texto, rótulo ↔ campo, linhas de uma lista */
  --sp-sm: 16px; /* entre itens iguais: parágrafos, fotos, cartões, botões lado a lado */
  --sp-md: 24px; /* título ↔ texto e respiro interno das caixas */
  --sp-lg: clamp(32px, 3vw, 40px); /* entre blocos diferentes: texto ↔ botão, texto ↔ foto, texto ↔ lista, cabeçalho ↔ conteúdo */
  --sp-xl: clamp(32px, 5vw, 64px); /* colunas lado a lado (no celular, empilhadas, vale o mesmo que --sp-lg) */
  --section: clamp(56px, 8vw, 96px); /* respiro vertical das seções */
  --gutter: clamp(20px, 4vw, 40px); /* margem lateral da página */
  --header-h: 88px;
  --booking-overlap: 56px; /* quanto a busca por datas sobe sobre o banner da home */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-sm));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Proteção das fotos: não dá para arrastar nem selecionar e, no celular, pressionar e segurar não abre o
   menu de salvar ou copiar a imagem. O clique com o botão direito é bloqueado em modules/protecao.js. */
img,
canvas,
.zoom,
.room-card__media {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Em telas de toque, a foto nem chega a ser o alvo do dedo: pressionar e segurar atinge o que está em
   volta dela (o link ou a seção), que não oferece "salvar imagem". Com mouse a foto continua sendo o
   alvo, para o título dela aparecer ao passar o cursor. */
@media (hover: none) {
  img {
    pointer-events: none;
  }
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.band :focus-visible,
.footer :focus-visible,
.feature :focus-visible,
.topbar :focus-visible,
.location__info :focus-visible,
.lightbox :focus-visible,
.pano :focus-visible {
  outline-color: var(--white);
}

/* Textos corridos: sempre justificados */
main p,
main li,
.footer__brand p {
  text-align: justify;
  overflow-wrap: break-word;
}

/* No celular a linha é curta e justificar abriria buracos entre as palavras: lá as palavras longas são hifenizadas */
@media (max-width: 639px) {
  main p,
  main li,
  .footer__brand p {
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
  }
}

/* Em blocos centralizados, a última linha do texto justificado fica no centro */
.section-head--center p,
.narrow p {
  text-align-last: center;
}

/* Rótulos e dados curtos não são texto corrido */
.eyebrow,
.facts li,
.breadcrumb li,
.room-card__meta li,
.reserve-card__facts li,
.feature__tiles li,
.channels li,
.booking__error {
  text-align: inherit;
  text-align-last: auto;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* Legendas sob os ícones: centralizadas (em coluna estreita, justificar abre buracos) */
.amenity,
.highlight {
  text-align: center;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* A partir daqui as colunas de comodidades e atrações têm largura para o texto justificado */
@media (min-width: 900px) {
  .amenity,
  .highlight {
    text-align: justify;
    text-align-last: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2. Utilitários ------------------------------------------------------------ */

.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
  text-align: center;
}

.skip-link {
  position: absolute;
  left: var(--sp-sm);
  top: -80px;
  z-index: 200;
  padding: 12px var(--sp-sm);
  background: var(--charcoal-deep);
  color: var(--white);
}

.skip-link:focus {
  top: var(--sp-sm);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.eyebrow {
  margin-bottom: var(--sp-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow--light,
.section--dark .eyebrow {
  color: rgb(255 255 255 / 78%);
}

.section {
  padding-block: var(--section);
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: var(--charcoal);
  color: rgb(255 255 255 / 88%);
}

.section-title {
  font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
  text-wrap: balance;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: var(--sp-sm);
  background: var(--blue);
}

.section--dark .section-title,
.feature .section-title {
  color: var(--white);
}

.section--dark .section-title::after,
.feature .section-title::after {
  background: rgb(255 255 255 / 55%);
}

.section-head {
  max-width: 800px;
  margin-bottom: var(--sp-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-title::after,
.narrow .section-title::after {
  margin-inline: auto;
}

.section-lead {
  margin-top: var(--sp-md);
  color: var(--muted);
}

.section--dark .section-lead {
  color: rgb(255 255 255 / 80%);
}

.section-cta {
  margin-top: var(--sp-lg);
  text-align: center;
}

.split {
  display: grid;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }

  .split--reverse {
    grid-template-columns: 1fr 1.05fr;
  }
}

/* Ritmo dos blocos de texto, igual no site inteiro:
   título → texto (--sp-md) · parágrafo → parágrafo (--sp-sm) · texto → botão, lista ou foto (--sp-lg) */
:is(.split__text, .feature__text, .narrow, .room__text) > * + * {
  margin-top: var(--sp-lg);
}

:is(.split__text, .feature__text, .narrow, .room__text) > p + p {
  margin-top: var(--sp-sm);
}

:is(.split__text, .feature__text, .narrow, .room__text) > .section-title + * {
  margin-top: var(--sp-md);
}

:is(.split__text, .feature__text, .narrow, .room__text) > .eyebrow + * {
  margin-top: 0;
}

:is(.split__text, .feature__text) > .btn {
  display: flex;
  width: fit-content;
}

.split__text p:not(.eyebrow),
.room__text p {
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.btn-row--center {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.link-arrow .icon {
  transition: transform 0.25s var(--ease);
}

a:hover > .link-arrow .icon,
.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* Listas com ícone: destaques do hotel, itens do café e itens do quarto */
.checklist,
.chips,
.feature-list {
  display: grid;
  gap: var(--sp-xs) var(--sp-md);
}

@media (min-width: 640px) {
  .checklist,
  .chips,
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist li,
.chips li,
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
  font-size: 0.94rem;
  font-weight: 500;
}

.checklist .icon,
.chips .icon,
.feature-list .icon {
  margin-top: 0.25em;
  color: var(--blue);
}

/* Grades de ícone + título + texto: comodidades e atrações */
.amenities,
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg) var(--sp-sm);
}

@media (min-width: 900px) {
  .amenities,
  .highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

.amenity,
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 72%);
}

.amenity__icon {
  font-size: 1.75rem;
  color: var(--white);
}

.amenity__label,
.highlight strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  hyphens: manual;
  -webkit-hyphens: manual;
  color: var(--white);
}

/* Revelação ao rolar (só com JavaScript ativo) */
[data-reveal] {
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.has-reveal [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

/* Fotos ampliáveis */
.zoom {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--line);
}

.zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.zoom__hint {
  position: absolute;
  top: var(--sp-xs);
  right: var(--sp-xs);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgb(46 51 49 / 72%);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s;
}

.zoom:focus-visible .zoom__hint {
  opacity: 1;
}

/* Os realces de "mouse em cima" das fotos e das setas só valem onde existe mouse:
   no toque, eles ficariam grudados no item depois de tocar. */
@media (hover: hover) {
  .zoom:hover img {
    transform: scale(1.05);
  }

  .zoom:hover .zoom__hint {
    opacity: 1;
  }
}

/* 3. Botões ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  min-height: 48px;
  padding: 12px var(--sp-md);
  border: 1.5px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.btn--solid {
  background: var(--charcoal);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--blue);
}

.btn--outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn--outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--charcoal-deep);
}

.btn--light:hover {
  background: var(--blue-soft);
}

.btn--ghost-light {
  border-color: rgb(255 255 255 / 75%);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: var(--white);
  color: var(--charcoal-deep);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-deep);
}

.btn--sm {
  min-height: 40px;
  padding: var(--sp-xs) var(--sp-sm);
  font-size: 0.72rem;
}

.btn--block {
  width: 100%;
}

.btn--icon-end .icon {
  order: 2;
}

/* 4. Cabeçalho e menu ------------------------------------------------------- */

.topbar {
  background: var(--charcoal-deep);
  color: rgb(255 255 255 / 82%);
  font-size: 0.78rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: 40px;
}

.topbar__address,
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-left: auto;
}

.topbar__links a {
  min-height: 40px;
  transition: color 0.2s;
}

.topbar__links a:hover {
  color: var(--white);
}

@media (max-width: 899px) {
  .topbar__address,
  .topbar__email,
  .topbar__handle {
    display: none;
  }

  .topbar__links {
    width: 100%;
    justify-content: space-between;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.header.is-stuck {
  box-shadow: 0 6px 24px rgb(46 51 49 / 10%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: var(--header-h);
}

.header__logo img {
  width: auto;
  height: 64px;
}

.header__burger {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--charcoal-deep);
  font-size: 1.4rem;
}

.header__burger:hover {
  background: var(--soft);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgb(30 34 32 / 55%);
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--blue);
}

.nav__toggle {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.nav__toggle .icon {
  transition: transform 0.25s var(--ease);
}

.nav__sublink {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav__sublink:hover,
.nav__sublink[aria-current='page'] {
  color: var(--blue);
}

/* Mobile: gaveta lateral */
@media (max-width: 1099px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 120;
    display: flex;
    flex-direction: column;
    width: min(380px, 90vw);
    padding: 0 var(--sp-md) var(--sp-md);
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition:
      transform 0.35s var(--ease),
      visibility 0s 0.35s;
  }

  .nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }

  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .nav__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    font-size: 1.3rem;
  }

  .nav__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-top: 1px solid var(--line);
  }

  .nav__link {
    padding: var(--sp-sm) 0;
    font-size: 0.88rem;
  }

  .nav__toggle {
    width: 48px;
    height: 48px;
    margin-right: -12px;
    font-size: 1.1rem;
  }

  .nav__sub {
    grid-column: 1 / -1;
    display: none;
    padding: 0 0 var(--sp-sm) var(--sp-sm);
    border-left: 2px solid var(--line);
    margin-bottom: var(--sp-sm);
  }

  .nav__item.is-expanded .nav__sub {
    display: block;
  }

  .nav__item.is-expanded .nav__toggle .icon {
    transform: rotate(180deg);
  }

  .nav__sublink {
    padding: var(--sp-xs) 0;
  }

  .nav__cta {
    margin-top: var(--sp-md);
  }
}

/* Desktop: menu horizontal com dropdown */
@media (min-width: 1100px) {
  .header__burger,
  .nav__head {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
  }

  .nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav__link {
    position: relative;
    padding: 34px 0;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .nav__link:hover::after,
  .nav__link.is-current::after {
    transform: scaleX(1);
  }

  .nav__toggle {
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
  }

  .nav__sub {
    position: absolute;
    top: calc(100% - 12px);
    left: calc(-1 * var(--sp-md));
    min-width: 250px;
    padding: var(--sp-xs);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
      opacity 0.2s,
      transform 0.25s var(--ease),
      visibility 0s 0.25s;
  }

  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub,
  .nav__item.is-expanded .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.2s,
      transform 0.25s var(--ease);
  }

  .nav__item--has-sub:hover .nav__toggle .icon,
  .nav__item.is-expanded .nav__toggle .icon {
    transform: rotate(180deg);
  }

  .nav__sublink {
    padding: var(--sp-xs) var(--sp-sm);
    white-space: nowrap;
  }

  .nav__sublink:hover,
  .nav__sublink[aria-current='page'] {
    background: var(--blue-soft);
  }

  .nav__cta {
    min-height: 46px;
    padding: 11px 20px;
  }
}

/* 5. Home ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 78vh, 780px);
  padding-block: var(--section) calc(var(--section) + var(--booking-overlap));
  color: var(--white);
  background: var(--charcoal-deep);
  overflow: hidden;
  touch-action: pan-y pinch-zoom; /* deslizar para os lados troca a foto, em vez de "voltar página" no navegador */
}

/* Sem a busca por datas, o banner não guarda o espaço dela */
.hero--no-booking {
  --booking-overlap: 0px;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero__slide.is-active img {
  transform: scale(1);
}

.hero__slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(30 34 32 / 78%) 0%, rgb(30 34 32 / 45%) 45%, rgb(30 34 32 / 10%) 80%),
    linear-gradient(0deg, rgb(30 34 32 / 55%) 0%, transparent 40%);
}

@media (max-width: 767px) {
  .hero__slides::after {
    background: linear-gradient(0deg, rgb(30 34 32 / 72%) 0%, rgb(30 34 32 / 58%) 100%);
  }
}

.hero__content {
  position: relative;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero__text {
  max-width: 52ch;
  margin-top: var(--sp-md);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: rgb(255 255 255 / 90%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--booking-overlap) + var(--sp-md));
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.hero__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgb(255 255 255 / 60%);
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* toques seguidos trocam as fotos em vez de dar zoom na página */
  transition:
    background-color 0.2s,
    color 0.2s;
}

@media (hover: hover) {
  .hero__arrow:hover {
    background: var(--white);
    color: var(--charcoal-deep);
  }
}

.hero__arrow:active {
  background: var(--white);
  color: var(--charcoal-deep);
}

.hero__dots {
  display: flex;
  gap: 4px;
}

.hero__dot {
  position: relative;
  width: 28px;
  height: 28px;
}

.hero__dot::before {
  content: '';
  position: absolute;
  inset: 13px 3px;
  background: rgb(255 255 255 / 45%);
  transition: background-color 0.25s;
}

.hero__dot.is-active::before {
  background: var(--white);
}

@media (max-width: 639px) {
  .hero__arrow {
    display: none;
  }

  .hero__controls {
    left: 0;
    right: 0;
    justify-content: center;
  }
}

/* Busca de disponibilidade */
.booking-wrap {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--booking-overlap));
}

.booking {
  display: grid;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .booking {
    grid-template-columns: 1fr 1fr;
  }

  .booking__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .booking {
    grid-template-columns: 1.3fr 1.3fr 0.8fr 0.8fr auto;
    align-items: end;
  }

  .booking__submit {
    grid-column: auto;
  }
}

.booking__field {
  display: grid;
  gap: var(--sp-xs);
  min-width: 0;
}

.booking__field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking__field input,
.booking__field select {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 500;
  transition: border-color 0.2s;
}

.booking__field input:hover,
.booking__field select:hover,
.booking__field input:focus,
.booking__field select:focus {
  border-color: var(--blue);
}

.booking__error {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  font-weight: 500;
  color: #a12c2c;
}

/* Bem-vindo */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
}

.facts li {
  display: flex;
  flex-direction: column-reverse;
}

.facts strong {
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--blue);
}

.facts span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 1fr);
  grid-template-areas:
    'a b'
    'a b'
    'a d'
    'c d'
    'c d';
  gap: var(--sp-sm);
  aspect-ratio: 1 / 1.02;
}

.collage > :nth-child(1) {
  grid-area: a;
}

.collage > :nth-child(2) {
  grid-area: b;
}

.collage > :nth-child(3) {
  grid-area: c;
}

.collage > :nth-child(4) {
  grid-area: d;
}

/* Central de reservas */
.band {
  background: var(--charcoal-deep);
  color: rgb(255 255 255 / 82%);
  padding-block: var(--sp-xl);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg) var(--sp-xl);
}

.band__title,
.location__title {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.band__text p:last-child {
  margin-top: var(--sp-xs);
}

.band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* Café da manhã */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}

.mosaic > :first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.mosaic > :not(:first-child) {
  aspect-ratio: 1;
}

/* Três Marias (destaque) */
.feature {
  position: relative;
  padding-block: var(--section);
  color: rgb(255 255 255 / 90%);
  background: var(--charcoal-deep);
  overflow: hidden;
}

.feature__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(26 30 28 / 86%) 0%, rgb(26 30 28 / 62%) 55%, rgb(26 30 28 / 40%) 100%);
}

.feature__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .feature__inner {
    grid-template-columns: 1fr 1.1fr;
  }
}

.feature__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}

.feature__tiles li {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
}

.feature__tiles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__tiles span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-lg) var(--sp-sm) var(--sp-sm);
  background: linear-gradient(0deg, rgb(20 24 22 / 85%), transparent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 479px) {
  .feature__tiles span .icon {
    display: none;
  }
}

/* 6. Acomodações ------------------------------------------------------------ */

.room-group + .room-group {
  margin-top: var(--sp-lg);
}

.room-group__title {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.room-group__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* A mesma grade para todas as categorias: os cartões têm sempre o mesmo tamanho */
.room-grid {
  display: grid;
  gap: var(--sp-sm);
}

@media (min-width: 640px) {
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.room-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    border-color 0.3s,
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.room-card:hover {
  border-color: var(--charcoal);
}

.room-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.room-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.room-card:hover .room-card__media img {
  transform: scale(1.06);
}

.room-card__badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  padding: 4px var(--sp-xs);
  background: rgb(255 255 255 / 94%);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
}

.room-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--sp-md);
}

.room-card__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
}

.room-card__title a:hover {
  color: var(--blue);
}

.room-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--sp-sm);
  margin-top: var(--sp-xs);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
}

.room-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.room-card__text {
  flex: 1;
  margin-top: var(--sp-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.room-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--line);
}

/* Página do quarto */
.room {
  display: grid;
  gap: var(--sp-xl);
}

@media (min-width: 1024px) {
  .room {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .room__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-md));
  }
}

.room-gallery__cover {
  aspect-ratio: 3 / 2;
}

.room-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}

.room-gallery__thumbs .zoom {
  aspect-ratio: 4 / 3;
}

.room__text {
  margin-top: var(--sp-lg);
}

.room__subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
}

.room__text > .room__subtitle + * {
  margin-top: var(--sp-sm);
}

.reserve-card {
  display: grid;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  border: 1px solid var(--line);
  background: var(--white);
}

.reserve-card .eyebrow {
  margin-bottom: calc(-1 * var(--sp-xs));
}

.reserve-card__title {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
}

.reserve-card__facts {
  display: grid;
  gap: var(--sp-xs);
  padding-block: var(--sp-sm);
  border-block: 1px solid var(--line);
  font-size: 0.92rem;
}

.reserve-card__facts li {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.reserve-card__facts .icon {
  color: var(--blue);
}

.reserve-card__note,
.contact__note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.reserve-card__note a,
.contact__note a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 7. Páginas internas ------------------------------------------------------- */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, min(40vw, 68vh), 640px);
  padding-block: var(--sp-lg);
  color: var(--white);
  background: var(--charcoal-deep);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(26 30 28 / 86%) 0%, rgb(26 30 28 / 40%) 45%, rgb(26 30 28 / 22%) 100%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--sp-xs);
  margin-top: var(--sp-sm);
  font-size: 0.8rem;
  color: rgb(255 255 255 / 80%);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--sp-xs);
  opacity: 0.55;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}

.gallery .zoom {
  aspect-ratio: 4 / 3;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery--wide .zoom {
  aspect-ratio: 3 / 2;
}

/* Contato */
.split--top {
  align-items: start;
}

.split__text > .btn-row + .contact__note {
  margin-top: var(--sp-sm);
}

/* No celular, os botões do contato ocupam a largura toda, um embaixo do outro */
@media (max-width: 639px) {
  .btn-row--fill .btn {
    flex: 1 1 100%;
  }
}

/* Canais de atendimento: uma linha por canal, separadas por fios (sem caixas) */
.channels {
  border-bottom: 1px solid var(--line);
}

.channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-xs) var(--sp-md);
  padding-block: var(--sp-md);
  border-top: 1px solid var(--line);
}

.channel__icon {
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--blue-soft);
  font-size: 1.4rem;
  color: var(--blue);
  transition:
    background-color 0.25s,
    color 0.25s;
}

.channel__label,
.channel__value {
  display: block;
}

.channel__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel__value {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--charcoal-deep);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.channel .link-arrow {
  grid-column: 2;
}

@media (min-width: 640px) {
  .channel {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .channel__icon {
    grid-row: auto;
    align-self: center;
  }

  .channel .link-arrow {
    grid-column: auto;
  }
}

@media (hover: hover) {
  .channel:hover .channel__icon {
    background: var(--blue);
    color: var(--white);
  }

  .channel:hover .channel__value {
    color: var(--blue);
  }
}

/* Localização: mapa do Google e endereço em um bloco só */
.location {
  display: grid;
  background: var(--charcoal-deep);
  color: rgb(255 255 255 / 82%);
}

@media (min-width: 900px) {
  .location:not(.location--solo) {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
}

.location__map {
  position: relative;
  min-height: clamp(320px, 36vw, 460px);
  background: var(--line);
}

.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.location__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-xl) var(--sp-lg);
}

.location__info .eyebrow {
  margin-bottom: calc(-1 * var(--sp-sm));
}

.location__address {
  font-style: normal;
}

/* Política de reservas: o texto é um só, formatado no painel */
.policy {
  max-width: 920px;
  margin: 0 auto var(--sp-lg);
}

/* Texto formatado no painel (campo de texto único): títulos, parágrafos, listas, negrito e links */
.richtext {
  font-size: 0.96rem;
}

.richtext > * + * {
  margin-top: var(--sp-sm);
}

.richtext h2,
.richtext h3 {
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
}

.richtext h2 {
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.3;
}

/* O título que abre o texto não leva o fio de separação */
.richtext > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.richtext h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.richtext > * + h2,
.richtext > * + h3 {
  margin-top: var(--sp-lg);
}

.richtext > h2 + *,
.richtext > h3 + * {
  margin-top: var(--sp-md);
}

.richtext strong {
  font-weight: 600;
  color: var(--charcoal-deep);
}

.richtext a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.richtext ul,
.richtext ol {
  display: grid;
  gap: var(--sp-sm);
}

.richtext ul > li {
  position: relative;
  padding-left: var(--sp-md);
}

.richtext ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.richtext ol {
  counter-reset: passo;
}

.richtext ol > li {
  position: relative;
  padding-left: var(--sp-lg);
  counter-increment: passo;
}

.richtext ol > li::before {
  content: counter(passo) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--blue);
}

/* Subitens: lista dentro de um item */
.richtext li > ul,
.richtext li > ol {
  gap: var(--sp-xs);
  margin-top: var(--sp-xs);
  color: var(--muted);
}

/* 8. Mapa, rodapé e flutuantes ---------------------------------------------- */

.map {
  position: relative;
  line-height: 0;
  background: var(--soft);
}

.map iframe {
  width: 100%;
  height: clamp(320px, 40vw, 440px);
  border: 0;
}

.map__card {
  position: absolute;
  left: var(--gutter);
  bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  max-width: calc(100% - 2 * var(--gutter) - 70px);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  line-height: 1.45;
}

.map__card .icon {
  font-size: 1.2rem;
  color: var(--blue);
}

.map__card strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer {
  background: var(--charcoal-deep);
  color: rgb(255 255 255 / 76%);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  gap: var(--sp-lg) var(--sp-xl);
  padding-block: var(--sp-xl);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.3fr 0.9fr 1fr 1.4fr;
  }
}

.footer__logo {
  width: 140px;
  height: auto;
  margin-bottom: var(--sp-md);
  filter: brightness(0) invert(1);
}

.footer__brand p {
  max-width: 34ch;
}

.footer__title {
  margin-bottom: var(--sp-sm);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__col ul {
  display: grid;
  gap: var(--sp-xs);
}

.footer__col a {
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__contact a {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
  overflow-wrap: anywhere;
}

.footer__contact .icon {
  margin-top: 0.25em;
  color: var(--white);
}

.footer__bottom {
  padding-block: var(--sp-md);
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.8rem;
  text-align: center;
}

/* Crédito da agência, abaixo dos direitos autorais */
.footer__credit {
  margin-top: var(--sp-xs);
}

.footer__credit a {
  color: rgb(255 255 255 / 90%);
  transition: color 0.2s;
}

.footer__credit a:hover {
  color: var(--white);
}

.footer__credit strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  .footer__bottom {
    padding-bottom: 92px;
  }
}

/* Os dois atalhos fixos são os únicos elementos redondos do site */
.floating {
  position: fixed;
  right: var(--sp-sm);
  bottom: var(--sp-sm);
  z-index: 90;
  display: grid;
  gap: var(--sp-xs);
}

.floating__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgb(30 34 32 / 30%);
  font-size: 1.3rem;
  color: var(--white);
  transition: transform 0.25s var(--ease);
}

.floating__btn:hover {
  transform: scale(1.08);
}

.floating__btn--book {
  background: var(--charcoal);
}

.floating__btn--whatsapp {
  background: var(--whatsapp);
}

/* 9. Foto ampliada (galeria) ------------------------------------------------
   Vale para todas as galerias do site. O palco tem sempre o mesmo tamanho e cada foto é
   ajustada para caber nele; fechar e mini galeria ficam sempre no mesmo lugar. A foto é
   trocada arrastando (modules/lightbox.js). */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--white);

  /* Arrastar ou clicar várias vezes não seleciona a foto nem os botões (o destaque azul do navegador) */
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
}

/* Ao abrir, o foco fica na própria janela: nenhum botão começa marcado */
.lightbox:focus-visible {
  outline: none;
}

.lightbox::backdrop {
  background: var(--night);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-left: var(--sp-sm);
}

.lightbox__counter {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.lightbox__stage {
  position: relative;
  min-height: 0;
  touch-action: pan-y pinch-zoom; /* deslizar para os lados troca a foto, em vez de "voltar página" no navegador */
  -webkit-tap-highlight-color: transparent; /* sem o clarão do toque no celular */
}

/* Com mais de uma foto, o palco inteiro pode ser arrastado */
.lightbox__stage.is-draggable {
  cursor: grab;
}

.lightbox__stage.is-draggable:active {
  cursor: grabbing;
}

/* Trilho: leva junto a foto aberta e a vizinha, que entra pelo lado durante o arrasto */
.lightbox__track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.lightbox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s;
}

.lightbox__img.is-loading {
  opacity: 0.3;
}

.lightbox__img.is-side {
  visibility: hidden;
}

.lightbox__stage.is-dragging .lightbox__img.is-side {
  visibility: visible;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--white);
  transition: background-color 0.2s;
}

.lightbox__btn,
.lightbox__thumb {
  -webkit-tap-highlight-color: transparent; /* sem o clarão do toque no celular */
  touch-action: manipulation; /* toques seguidos trocam as fotos em vez de dar zoom na página */
}

.lightbox__btn svg {
  width: 24px;
  height: 24px;
}

.lightbox__caption {
  min-height: calc(1.5em + 2 * var(--sp-xs));
  padding: var(--sp-xs) var(--sp-sm);
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(255 255 255 / 82%);
}

.lightbox__thumbs {
  display: flex;
  gap: var(--sp-xs);
  padding: 0 var(--sp-sm) var(--sp-sm);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 30%) transparent;
}

.lightbox__thumb {
  flex: none;
  width: 88px;
  height: 60px;
  opacity: 0.45;
  transition: opacity 0.2s;
}

/* Poucas miniaturas ficam centralizadas; muitas rolam para os lados */
.lightbox__thumb:first-child {
  margin-left: auto;
}

.lightbox__thumb:last-child {
  margin-right: auto;
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

/* Realces: com o mouse em cima (só onde existe mouse — no toque ficariam grudados no botão) e enquanto
   o botão está pressionado. Depois do clique ou do toque, nada fica marcado. */
@media (hover: hover) {
  .lightbox__btn:hover {
    background: rgb(255 255 255 / 16%);
  }

  .lightbox__thumb:not(.is-active):hover {
    opacity: 0.8;
  }
}

.lightbox__btn:active {
  background: rgb(255 255 255 / 28%);
}

/* Celular em pé: miniaturas menores */
@media (max-width: 767px) {
  .lightbox__thumb {
    width: 64px;
    height: 46px;
  }
}

/* Telas baixas (celular deitado): menos altura para barra e miniaturas, mais para a foto */
@media (max-height: 520px) {
  .lightbox__bar {
    min-height: 44px;
  }

  .lightbox__btn {
    width: 44px;
    height: 44px;
  }

  .lightbox__caption {
    display: none;
  }

  .lightbox__thumbs {
    padding-block: var(--sp-xs);
  }

  .lightbox__thumb {
    width: 56px;
    height: 40px;
  }
}

/* 10. Foto 360° -------------------------------------------------------------
   Camada navegável sobre a foto de fundo dos banners (montada por modules/panorama.js). */

.page-hero--pano .page-hero__content {
  pointer-events: none; /* o arrasto passa pelo título e chega à foto */
}

.page-hero--pano .page-hero__content a {
  pointer-events: auto;
}

.pano {
  position: absolute;
  inset: 0;
}

.pano__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y; /* no banner, arrastar para os lados gira a foto e para cima/baixo rola a página */
  user-select: none;
  -webkit-user-select: none;
  outline-offset: -3px;
  transition: opacity 0.6s;
}

/* Até a foto 360° carregar, quem aparece (e recebe os cliques) é a foto de fundo comum */
.pano:not(.is-ready) .pano__canvas {
  pointer-events: none;
}

.pano.is-ready .pano__canvas {
  opacity: 1;
}

.pano.is-dragging .pano__canvas {
  cursor: grabbing;
}

/* Clicar na foto com o mouse não deixa o contorno de foco; pelo teclado ele continua aparecendo */
.pano.is-pointer .pano__canvas {
  outline: none;
}

.pano__badge,
.pano__btn {
  position: absolute;
  top: var(--sp-sm);
  z-index: 2;
  display: none;
  align-items: center;
  min-height: 44px;
  background: rgb(22 25 24 / 62%);
  color: var(--white);
}

.pano.is-ready .pano__badge,
.pano.is-ready .pano__btn {
  display: inline-flex;
}

.pano__badge {
  left: max(var(--gutter), (100% - 1200px) / 2);
  gap: var(--sp-xs);
  padding-inline: var(--sp-sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.pano__badge svg,
.pano__btn svg {
  width: 20px;
  height: 20px;
}

.pano__hint {
  transition: opacity 0.4s;
}

.pano.is-used .pano__hint {
  display: none;
}

.pano__btn {
  right: max(var(--gutter), (100% - 1200px) / 2);
  justify-content: center;
  width: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .pano__btn:hover {
    background: rgb(22 25 24 / 90%);
  }
}

.pano__btn:active {
  background: rgb(22 25 24 / 90%);
}

/* Tela cheia: a foto ocupa a janela inteira e libera zoom e movimento em todas as direções */
.pano--full {
  position: fixed;
  z-index: 300;
  background: var(--night);
}

.pano--full .pano__canvas {
  touch-action: none;
}

.pano--full .pano__badge,
.pano-block .pano__badge {
  left: var(--sp-sm);
}

.pano--full .pano__btn,
.pano-block .pano__btn {
  right: var(--sp-sm);
}

/* Foto 360° dentro de uma seção (café da manhã): bloco largo abaixo do texto e das fotos.
   A própria foto, aberta, fica de fundo enquanto a 360° carrega e em navegadores sem suporte. */
.pano-block {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: var(--sp-lg);
  background: var(--night);
}

@media (min-width: 768px) {
  .pano-block {
    aspect-ratio: 21 / 9;
  }
}

.pano-block__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 479px) {
  .pano__hint {
    display: none;
  }
}

@media print {
  .topbar,
  .header,
  .floating,
  .map,
  .location__map,
  .hero__controls,
  .booking-wrap,
  .pano {
    display: none;
  }
}
