/* A página do hóspede (reservei.bio/<v>/<slug>). Celular primeiro: o padrão
   é a tela estreita, e o computador ganha ajustes nas @media do fim.

   As cores e as fontes do cliente chegam por outro arquivo, o tema
   (/<v>/<slug>/tema.css), que redefine as variáveis --cor-* e --fonte-*.
   Os valores abaixo são os padrões, para a página nunca ficar sem cor. */

:root {
  --cor-principal: #0150f5;
  --cor-sobre-principal: #ffffff;
  --cor-destaque: #00a3a0;
  --cor-sobre-destaque: #161616;
  --fonte-titulos: ui-serif, Georgia, "Times New Roman", serif;
  --fonte-texto: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Limpo como o Airbnb: página branca, nada de caixa em volta dos cartões;
     o que separa é o espaço. Fotos grandes de cantos redondos, textos em
     linhas curtas (preto para o nome, cinza para o detalhe). */
  --fundo: #ffffff;
  --superficie: #ffffff;
  --texto: #222222;
  --texto-suave: #6a6a6a;
  --linha: #dddddd;
  --ocupado: #f2f2f2;
  --faixa: #efefef;
  --aviso: #fff4d6;
  --texto-aviso: #5c4400;
  --raio: 16px;
  --raio-foto: 16px;
  --sombra: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 14px rgb(0 0 0 / 0.06);
  --altura-atalhos: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.5 var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--cor-principal); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cor-destaque); outline-offset: 2px; }

/* ---------- botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--cor-principal);
  color: var(--cor-sobre-principal);
  font: 600 16px/1.2 var(--fonte-texto);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.botao:disabled { opacity: 0.4; cursor: default; }
.botao-secundario {
  background: transparent;
  color: var(--cor-principal);
  box-shadow: inset 0 0 0 1.5px var(--cor-principal);
}
.botao-link {
  min-height: 40px;
  padding: 0 8px;
  background: none;
  color: var(--cor-principal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- demonstração ---------- */

.faixa-demo {
  margin: 0;
  padding: 8px 16px;
  background: var(--aviso);
  color: var(--texto-aviso);
  font-size: 14px;
  text-align: center;
}

/* ---------- capa ---------- */

/* A foto fica um pouco apagada sobre a cor da hospedagem (o tom dela aparece
   por baixo), com uma sombra que sobe do pé; o nome, a cidade e o botão vão
   numa placa de vidro fosco. Assim o texto se lê com qualquer foto, clara ou
   cheia de detalhe. */
.capa {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 62vh;
  min-height: 62svh;
  overflow: hidden;
  background: color-mix(in srgb, var(--cor-principal) 70%, #000);
  color: #fff;
}
.capa-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.capa::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.18) 45%, rgb(0 0 0 / 0.05));
}
.capa-placa {
  width: fit-content;
  max-width: 100%;
  padding: 16px 16px 18px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 24px;
  background: rgb(8 12 22 / 0.5);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.5);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .capa-placa { background: rgb(8 12 22 / 0.34); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
}
/* Sem foto, a capa é só a cor: a placa não precisa de fundo. */
.capa-sem-foto .capa-placa { padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.capa-sem-foto {
  min-height: 40vh;
  min-height: 40svh;
  background: var(--cor-principal);
  color: var(--cor-sobre-principal);
}
.capa-sem-foto::after { display: none; }
.capa-conteudo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 14px 52px;
}
.capa-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.capa h1 {
  margin: 0 0 6px;
  font: 600 clamp(28px, 8.2vw, 56px)/1.08 var(--fonte-titulos);
  text-wrap: balance;
}
.capa-lugar { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 17px; }
.capa-lugar svg { flex: none; opacity: 0.85; }
.capa-deslize {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--cor-destaque);
  color: var(--cor-sobre-destaque);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- atalhos ---------- */
/* A folha: sobe 26 px sobre a capa, com os cantos de cima redondos (como a
   folha de detalhes de um app de viagem). Quando gruda no topo (classe
   "presa", posta pelo hospede.js), os cantos ficam retos. */

.atalhos {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  contain: paint;
  margin-top: -26px;
  padding: 14px 16px 10px;
  border-radius: 26px 26px 0 0;
  background: var(--fundo);
  scrollbar-width: none;
  transition: border-radius 0.2s, box-shadow 0.2s;
}
.atalhos.presa {
  border-radius: 0;
  box-shadow: 0 1px 0 var(--linha), 0 8px 18px rgb(15 23 20 / 0.06);
}
.atalhos::-webkit-scrollbar { display: none; }
.atalhos a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linha);
  color: var(--texto);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.atalhos a:hover { box-shadow: inset 0 0 0 1px var(--texto); }
.atalhos .pilula-icone { background: var(--ocupado); }
.atalhos a[aria-current] { background: var(--texto); box-shadow: none; color: #fff; }
.atalhos a[aria-current] .pilula-icone { background: #fff; color: var(--texto); }

/* ---------- seções ---------- */

.secao {
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 16px;
  scroll-margin-top: var(--altura-atalhos);
}
.secao h2 {
  margin: 0 0 16px;
  font: 600 clamp(22px, 6.4vw, 28px)/1.2 var(--fonte-titulos);
  letter-spacing: -0.01em;
}
.sobre-texto, .unidade-descricao { white-space: pre-line; }

/* ---------- datas ---------- */

.campo-periodo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: var(--superficie);
  box-shadow: var(--sombra);
  text-align: left;
  cursor: pointer;
}
.campo-periodo > .icone { width: 22px; height: 22px; color: var(--texto-suave); }
.campo-periodo-texto { display: grid; gap: 1px; min-width: 0; }
.campo-periodo .rotulo {
  color: var(--texto-suave);
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.campo-periodo .valor {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.campo-periodo-seta {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cor-principal);
  color: var(--cor-sobre-principal);
}
.campo-periodo-seta .icone { width: 20px; height: 20px; }
.campo-periodo.preenchido { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto), var(--sombra); }

.proximas {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  /* Sem isto, no celular o Chrome somava a faixa inteira (14 dias, ~960 px)
     à largura da página, e ela abria "afastada" (930 px em vez de 375). */
  contain: paint;
  margin: 0 -16px;
  padding: 14px 16px 6px;
  scroll-padding-inline: 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.proximas::-webkit-scrollbar { display: none; }
.proxima {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 62px;
  padding: 10px 2px;
  border: 0;
  border-radius: 18px;
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linha);
  cursor: pointer;
  scroll-snap-align: start;
}
.proxima small { color: var(--texto-suave); font-size: 12px; }
.proxima strong { font-size: 19px; line-height: 1.2; }
.proxima em { color: var(--cor-principal); font-size: 11px; font-style: normal; font-weight: 700; }
.proxima.lotada { background: var(--ocupado); color: #a3a19b; cursor: default; }
.proxima.lotada em, .proxima.lotada small { color: #a3a19b; }

/* ---------- resultado da busca ---------- */
/* Como um anúncio do Airbnb: foto grande e arredondada (selo branco no
   canto, botão das fotos do outro), o nome em negrito, uma linha cinza, o
   preço numa linha e etiquetas pequenas. Sem caixa em volta. Sem vaga: uma
   linha com miniatura em cinza. */

.resultados { display: grid; gap: 30px; margin-top: 24px; }
.resumo-datas { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--texto-suave); font-size: 15px; }
.resumo-datas svg { flex: none; }
.resultado { display: grid; align-content: start; min-width: 0; }
.resultado-foto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--raio-foto);
  background: var(--ocupado);
}
.resultado-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resultado-foto.sem-foto {
  aspect-ratio: 3 / 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cor-principal) 28%, white), color-mix(in srgb, var(--cor-principal) 8%, white));
}
.resultado-foto .selo-pix { position: absolute; top: 12px; left: 12px; }
.ver-fotos {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.18);
  color: var(--texto);
  cursor: pointer;
}
.ver-fotos .icone { width: 19px; height: 19px; }
.selo-pix {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.18);
  color: var(--texto);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.resultado-texto { min-width: 0; padding: 12px 2px 0; }
.resultado h3 { margin: 0; font: 600 17px/1.3 var(--fonte-texto); }
.resultado .noites { margin: 2px 0 0; color: var(--texto-suave); font-size: 15px; }
.alterar-grupo {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.alterar-grupo b { color: var(--texto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.resultado .preco { margin: 8px 0 0; color: var(--texto); font-size: 16px; }
.resultado .preco strong { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* As etiquetas do preço: pílulas com ícone numa linha só, que se arrasta. */
.etiquetas { display: flex; gap: 6px; overflow-x: auto; contain: paint; margin: 10px -2px 0; padding: 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.etiquetas::-webkit-scrollbar { display: none; }
.etiquetas.rola:not(.no-fim) { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.etiquetas > span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: var(--ocupado);
  color: var(--texto);
  font-size: 13px;
  white-space: nowrap;
}
.etiquetas .pilula-icone { width: 24px; height: 24px; }
.etiquetas .etiqueta-boa { background: #e3f3e8; color: #17663a; }
.botao-reservar { width: 100%; margin-top: 14px; }
.resultado.sem-vaga {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 0 14px;
  opacity: 0.75;
}
.resultado.sem-vaga .resultado-texto { padding: 0; }
.resultado.sem-vaga h3 { font-size: 16px; }
.resultado-mini {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--ocupado);
  object-fit: cover;
  filter: grayscale(1);
}
.sem-vaga-texto { margin: 1px 0 0; color: var(--texto-suave); font-size: 15px; }
.aviso-minimo {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--aviso);
  color: var(--texto-aviso);
  font-size: 15px;
}
.nada-livre { margin: 4px 0 0; font-weight: 600; }

/* ---------- unidades ---------- */
/* O anúncio de cada unidade: a galeria (as fotos deslizam, com os
   pontinhos embaixo), o nome, duas linhas cinza (quem cabe e onde dorme;
   as comodidades), a descrição em 3 linhas com "Ler mais" e o botão das
   datas. Sem caixa em volta. */

#unidades { display: grid; gap: 36px; }
#unidades > h2 { margin-bottom: -12px; }
.unidade { min-width: 0; scroll-margin-top: var(--altura-atalhos); }
.unidade-galeria { position: relative; }
.unidade-fotos {
  display: flex;
  overflow-x: auto;
  contain: paint;
  border-radius: var(--raio-foto);
  background: var(--ocupado);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.unidade-fotos::-webkit-scrollbar { display: none; }
.unidade-fotos img {
  flex: none;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  scroll-snap-align: start;
}
.unidade-fotos.sem-foto {
  aspect-ratio: 3 / 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cor-principal) 28%, white), color-mix(in srgb, var(--cor-principal) 8%, white));
}
.pontos {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}
.pontos i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  box-shadow: 0 0 2px rgb(0 0 0 / 0.25);
  transition: background 0.15s, transform 0.15s;
}
.pontos i.ativo { background: #fff; transform: scale(1.2); }
.contador-fotos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(34 34 34 / 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.unidade-texto { padding: 12px 2px 0; }
.unidade h3 { margin: 0; font: 600 18px/1.3 var(--fonte-texto); }
.unidade-linha { margin: 2px 0 0; color: var(--texto-suave); font-size: 15px; }
/* As comodidades: pílulas com ícone numa linha só, que o dedo arrasta. A
   beira da direita esmaece enquanto há mais para ver (hospede.js marca
   .rola e .no-fim). */
.comodidades-trilho {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  contain: paint;
  margin: 10px -2px 2px;
  padding: 2px;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.comodidades-trilho::-webkit-scrollbar { display: none; }
.comodidades-trilho.rola:not(.no-fim) { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.comodidades-trilho li {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--ocupado);
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
}
/* O ícone num círculo, dentro da pílula (atalhos, detalhes, etiquetas, rodapé). */
.pilula-icone { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--superficie); color: var(--texto); }
.pilula-icone svg { stroke-width: 1.8; }
/* Quem cabe e onde dorme vêm antes das comodidades, em pílula branca com borda. */
.comodidades-trilho .detalhe-principal { background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); }
.comodidades-trilho .detalhe-principal .pilula-icone { background: var(--ocupado); }
/* Com mouse, a fileira também se arrasta: clicar e puxar para o lado. */
.comodidades-trilho.rola, .etiquetas.rola { cursor: grab; }
.comodidades-trilho.arrastando, .etiquetas.arrastando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.unidade-descricao {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.unidade-descricao.aberta { display: block; overflow: visible; }
.ler-mais {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texto);
  font: 600 15px/1.4 var(--fonte-texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ver-datas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--texto);
  border-radius: 999px;
  background: none;
  color: var(--texto);
  font: 600 15px/1.2 var(--fonte-texto);
  cursor: pointer;
}
.ver-datas .icone { width: 16px; height: 16px; }
.ver-datas:hover { background: var(--ocupado); }

/* ---------- rodapé ---------- */

.rodape {
  padding: 36px 16px calc(100px + env(safe-area-inset-bottom));
  color: var(--texto-suave);
  text-align: center;
}
.rodape-nome { margin: 0 0 8px; color: var(--texto); font: 600 19px/1.3 var(--fonte-titulos); }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.rodape-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--ocupado); color: var(--texto); font-size: 15px; font-weight: 500; text-decoration: none; }
.rodape-links a:hover { box-shadow: inset 0 0 0 1px var(--texto); }
/* Como chegar: o endereço com o alfinete num círculo. */
.endereco { display: flex; align-items: flex-start; gap: 12px; }
.endereco .pilula-icone { background: var(--ocupado); }
.endereco > span:last-child { padding-top: 4px; }
/* O mapa do Google em "Como chegar" (carrega quando a seção chega perto). */
.mapa-embutido { display: block; width: 100%; height: 220px; margin: 4px 0 14px; border: 0; border-radius: var(--raio-foto); background: var(--ocupado); }
/* O selo do Reservei, no pé de toda página gerada: o ladrilho com o
   símbolo, a palavra e "reservas pela bio"; depois de um traço, o escudo
   com "reserva direta". Cores do Reservei (não as do tema da hospedagem). */
.selo-reservei {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid #dce3ef;
  border-radius: 14px;
  background: #fff;
  color: #4a5876;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(1 19 57 / 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.selo-reservei:hover { box-shadow: 0 8px 20px -10px rgb(1 19 57 / 0.3); transform: translateY(-1px); }
.selo-reservei:focus-visible { outline: 3px solid #0150f5; outline-offset: 3px; }
.selo-ladrilho { display: block; flex: none; width: 30px; height: 30px; }
.selo-marca { display: grid; gap: 3px; }
.selo-marca img { display: block; width: auto; height: 14px; }
.selo-marca > span, .selo-garantia > span { font: 700 8.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.09em; text-transform: uppercase; }
.selo-garantia { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid #dce3ef; }
.selo-escudo { flex: none; width: 20px; height: 20px; color: #0150f5; }
/* No guia e na privacidade, o selo fica centrado no fim. */
.pe-reservei { margin: 28px 0 0; text-align: center; }

.whats-flutuante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #08331a;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.22);
  font-weight: 700;
  text-decoration: none;
}
.whats-rotulo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.whats-flutuante { transition: opacity 0.2s, transform 0.2s; }
.whats-flutuante.fora { opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none; }
/* Balão de conversa genérico (o logo do WhatsApp tem regras de uso). */
.whats-flutuante::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2308331a'%3E%3Cpath d='M12 3C6.9 3 3 6.6 3 11c0 2.4 1.2 4.6 3.1 6L5.5 21l4-2.1c.8.2 1.6.3 2.5.3 5.1 0 9-3.6 9-8.1S17.1 3 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- janelas (dialog) ---------- */

.modal {
  padding: 0;
  border: 0;
  background: var(--superficie);
  color: var(--texto);
  box-shadow: 0 12px 48px rgb(0 0 0 / 0.28);
}
.modal::backdrop { background: rgb(18 18 16 / 0.52); }

/* Calendário: tela cheia no celular. */
#modal-datas {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 0;
}
#modal-datas[open] { display: flex; flex-direction: column; }
.md-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
  border-bottom: 1px solid var(--linha);
}
.md-topo h2 { margin: 0; font: 600 20px/1.2 var(--fonte-titulos); }
.md-legenda { display: flex; align-items: center; gap: 6px 14px; margin: 2px 0 0; color: var(--texto-suave); font-size: 13px; }
.md-ponto { width: 6px; height: 6px; border-radius: 50%; background: var(--cor-destaque); }
.md-ponto-lotado { background: #d93025; }
.md-legenda > span { display: inline-flex; align-items: center; gap: 6px; }
.md-fechar {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.md-semana, .semana-do-mes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--texto-suave);
  font-size: 12px;
  text-align: center;
}
.md-semana { padding: 8px 16px; border-bottom: 1px solid var(--linha); }
.semana-do-mes { display: none; padding-bottom: 6px; }
.md-corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.md-seta { display: none; }
.md-meses { padding: 0 16px 20px; }
.mes h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 16px 0 8px;
  background: var(--superficie);
  font: 600 17px/1.3 var(--fonte-texto);
}
.grade { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.grade button {
  position: relative;
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--texto);
  font: 600 15px/1 var(--fonte-texto);
  cursor: pointer;
}
.grade button > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  max-width: 100%;
  height: 42px;
  border-radius: 50%;
}
.grade .livre:hover > span:first-child, .grade .so-saida:hover > span:first-child { box-shadow: inset 0 0 0 1.5px var(--texto); }
.grade .passado, .grade .ocupado { color: #c2c2c2; cursor: default; }
.grade .ocupado > span:first-child { text-decoration: line-through; }
.grade .ocupado.so-saida { color: var(--texto); cursor: pointer; }
.grade .ocupado.so-saida > span:first-child { text-decoration: none; }
.grade .fora-alcance { color: #c2c2c2; }
.grade .faixa { background: var(--faixa); }
.grade .ponta-entrada { background: linear-gradient(to right, transparent 50%, var(--faixa) 50%); }
.grade .ponta-saida { background: linear-gradient(to left, transparent 50%, var(--faixa) 50%); }
.grade .sel > span:first-child { background: var(--texto); color: #fff; }
.grade .feriado::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cor-destaque);
}
.grade .sel.feriado::after { bottom: 1px; }
/* Noite lotada (nenhuma unidade livre): bolinha vermelha, além do número
   riscado (quem não distingue vermelho de laranja ainda vê o risco). */
.grade .ocupado:not(.so-saida)::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #d93025;
}

.md-aviso { margin: 0; padding: 10px 16px; background: var(--aviso); color: var(--texto-aviso); font-size: 14px; }
/* O rodapé: o período escolhido numa linha; embaixo, "Limpar" e "Ver preços". */
.md-rodape {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  background: var(--superficie);
}
#md-resumo { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
#md-limpar { justify-self: start; padding-left: 0; }
#md-confirmar { justify-self: end; min-width: 150px; }
.md-topo h2:focus { outline: none; }

/* Janela pequena: quantas pessoas, balão da demonstração. */
.modal-pequeno {
  width: min(92vw, 400px);
  padding: 22px 20px 20px;
  border-radius: 20px;
}
.modal-pequeno h2 { margin: 0 0 10px; font: 600 21px/1.2 var(--fonte-titulos); }
.modal-pequeno > .botao { width: 100%; margin-top: 14px; }
.contador {
  display: grid;
  grid-template-columns: 1fr 44px 44px 44px;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--linha);
}
.contador button {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--linha);
  border-radius: 50%;
  background: var(--superficie);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.contador button:disabled { opacity: 0.35; cursor: default; }
.contador output { font-size: 18px; font-weight: 700; text-align: center; }
.mh-dica { margin: 12px 0 0; color: var(--texto-suave); font-size: 14px; }

.demo-balao-titulo { margin: 0 0 12px; color: var(--texto-suave); font-size: 15px; }
.demo-balao-msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #dcf8c6;
  color: #111;
  font-size: 15px;
  white-space: pre-line;
}
.demo-balao-nota { margin: 12px 0 0; color: var(--texto-suave); font-size: 13px; }

/* ---------- páginas de aviso (pausada, em preparação, não existe) ---------- */

.pagina-aviso {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cor-principal);
  color: var(--cor-sobre-principal);
}
.aviso { max-width: 440px; padding: 32px 20px; text-align: center; }
.aviso h1 { margin: 0 0 8px; font: 600 34px/1.15 var(--fonte-titulos); }
.aviso p { margin: 0; font-size: 18px; }
.aviso .botao { margin: 22px 0 30px; background: var(--cor-destaque); color: var(--cor-sobre-destaque); }
.aviso .selo-reservei { margin-top: 4px; }

/* ---------- telas maiores ---------- */

@media (min-width: 640px) {
  #unidades { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 24px; }
  #unidades > h2 { grid-column: 1 / -1; }
  .resultados { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 24px; }
  .resultados > .resumo-datas, .resultados > .nada-livre { grid-column: 1 / -1; }
  /* Sem vaga: linha inteira, embaixo dos livres (não divide a linha com um cartão grande). */
  .resultado.sem-vaga { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .secao { padding: 40px 24px; }
  .capa-conteudo { padding: 40px 24px 66px; }
  .capa-placa { padding: 22px 26px 24px; border-radius: 28px; }
  .mapa-embutido { height: 300px; }
  .atalhos { justify-content: center; }
  .whats-flutuante { width: auto; padding: 0 22px 0 18px; border-radius: 999px; }
  .whats-rotulo { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  #unidades { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Calendário: janela no meio, dois meses lado a lado, com setas. */
  #modal-datas {
    width: 780px;
    /* fit-content, e não auto: o dialog modal é fixo com top e bottom 0, e
       com auto ele estica até a altura máxima. */
    height: fit-content;
    max-height: calc(100vh - 48px);
    margin: auto;
    border-radius: 20px;
  }
  .md-semana { display: none; }
  .semana-do-mes { display: grid; }
  .md-corpo {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: start;
    overflow: visible;
  }
  .md-seta {
    display: block;
    width: 44px;
    height: 44px;
    margin: 12px 2px 0;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }
  .md-seta:hover:not(:disabled) { background: var(--ocupado); }
  .md-seta:disabled { opacity: 0.25; cursor: default; }
  .md-meses { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 0 18px; }
  .mes h3 { position: static; text-align: center; }
  .grade button { height: 48px; }
}

/* ---------- movimento ---------- */
/* Ao rolar (hospede.js marca .revelar e depois .visivel), o que está abaixo
   da dobra entra subindo; com datas novas, os cartões do resultado entram um
   depois do outro. */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.revelar.visivel { opacity: 1; transform: none; }
@keyframes chegar-resultado { from { opacity: 0; transform: translateY(16px); } }
.resultados.chegando > .resultado { animation: chegar-resultado 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.resultados.chegando > .resultado:nth-child(3) { animation-delay: 0.08s; }
.resultados.chegando > .resultado:nth-child(4) { animation-delay: 0.16s; }
.resultados.chegando > .resultado:nth-child(n+5) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atalhos, .whats-flutuante, .atalhos a { transition: none; }
  .revelar { opacity: 1; transform: none; transition: none; }
  .selo-reservei { transition: none; }
  .resultados.chegando > .resultado { animation: none; }
}

/* ---------- cupom (Pro) ---------- */
.cupom { margin-top: 16px; }
.cupom .botao-link { width: auto; padding-left: 0; }
.cupom-form { display: grid; gap: 6px; margin-top: 4px; }
.cupom-form label { font-weight: 600; font-size: 15px; }
.cupom-linha { display: flex; gap: 8px; }
.cupom-linha input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  background: var(--superficie);
  color: inherit;
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cupom-linha .botao { width: auto; flex: none; }
.cupom-msg { margin: 0; font-size: 15px; }
.cupom-msg:empty { display: none; }

/* ---------- guia do hóspede (Pro) ---------- */
.pagina-guia { background: var(--fundo); }
.guia { max-width: 680px; margin: 0 auto; padding: 28px 16px 64px; }
.guia-exemplo { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--aviso); color: var(--texto-aviso); }
.guia-topo { margin: 0 0 20px; }
.guia-hospedagem { margin: 0; color: var(--cor-principal); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }
.guia-topo h1 { margin: 6px 0 8px; font-family: var(--fonte-titulos); font-size: 30px; line-height: 1.15; }
/* A estadia em pílulas: a unidade, a entrada e a saída. */
.guia-estadia { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.guia-estadia li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); color: var(--texto); font-size: 14px; }
.guia-estadia .pilula-icone { background: var(--ocupado); }
.guia-secao { margin: 0 0 14px; padding: 20px; border-radius: 22px; background: var(--superficie); box-shadow: var(--sombra); }
.guia-secao h2 { margin: 0 0 8px; font-family: var(--fonte-titulos); font-size: 20px; }
.guia-titulo { display: flex; align-items: center; gap: 12px; }
/* O botão de copiar a senha do Wi-Fi, com o ícone; verde quando copiou. */
.botao-copiar { gap: 6px; padding: 0 14px; }
.botao-copiar.copiado { background: #e3f3e8; box-shadow: none; color: #17663a; }
/* Ao abrir, as partes do guia entram subindo, uma depois da outra. */
@keyframes guia-entra { from { opacity: 0; transform: translateY(14px); } }
.guia > * { animation: guia-entra 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.guia > :nth-child(2) { animation-delay: 0.05s; }
.guia > :nth-child(3) { animation-delay: 0.1s; }
.guia > :nth-child(4) { animation-delay: 0.15s; }
.guia > :nth-child(n+5) { animation-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) { .guia > * { animation: none; } }
.guia-titulo .pilula-icone { width: 38px; height: 38px; background: var(--ocupado); }
.guia-secao p { margin: 0 0 10px; line-height: 1.55; }
.guia-secao .botao { width: auto; margin-top: 4px; }
.guia-endereco { font-weight: 600; }
.guia-wifi { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; margin: 0; }
.guia-wifi dt { color: var(--texto-suave); }
.guia-wifi dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.guia-wifi code { padding: 4px 10px; border-radius: 8px; background: var(--fundo); font-size: 16px; user-select: all; }
.guia-wifi .botao { width: auto; min-height: 40px; margin: 0; }
