/* O índice fica na folha de madeira, e a fotografia ocupa o vão da janela. */
@font-face {
  font-family: "Newsreader Salina";
  src: url(assets/newsreader.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
.janelas {
  --marfim: #fff6df;
  --giz: #f8d6a0;
  --tinta-postigo: rgb(7 42 43 / 42%);
  --mao: "Caveat Patacho","Segoe Print",cursive;
  --serifa: "Newsreader Salina",Georgia,serif;
  color: var(--marfim);
}
.janelas[data-suite="jardim"] {
  --giz: #e4eaae;
  --tinta-postigo: rgb(34 52 24 / 62%);
}
.janela-aberta {
  background-color: #245354;
  width: min(100%, 2100px);
  min-height: clamp(510px, 41vw, 790px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: clamp(325px, 29vw, 555px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "indice foto" "notas foto";
  isolation: isolate;
}
.janela-aberta::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  z-index: -1;
  background: linear-gradient(var(--tinta-postigo),var(--tinta-postigo)),
    #245354 url(assets/postigo-patacho.webp) right center / 100% 100% no-repeat;
}
.postigo-indice,.postigo-notas { padding-inline: clamp(30px, 4vw, 74px) clamp(26px, 3vw, 62px); }
.postigo-indice { grid-area: indice; padding-top: clamp(44px, 4.7vw, 93px); }
.postigo-indice h2 {
  color: var(--marfim);
  font: 500 clamp(31px, 2.7vw, 55px)/1 var(--serifa);
  letter-spacing: -.04em;
  text-wrap: initial;
}
.postigo-indice h2 em {
  display: block;
  color: var(--marfim);
  font: 400 clamp(62px, 6vw, 122px)/1.05 Lora,Georgia,serif;
  font-style: italic;
  letter-spacing: -.08em;
}
.indice-suites {
  display: flex;
  flex-wrap: wrap;
  gap: .24rem clamp(16px, 2.1vw, 34px);
  border: 0;
  padding: 0;
  margin: clamp(22px, 2.65vw, 49px) 0 0;
  min-width: 0;
}
.indice-suites label { position: relative; cursor: pointer; }
.indice-suites input {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
.indice-suites label > span {
  display: flex;
  align-items: baseline;
  gap: .22em;
  position: relative;
  min-height: 44px;
  padding: .23em .05em .26em;
  color: var(--marfim);
  font: 500 clamp(27px, 2.35vw, 41px)/1.05 var(--serifa);
  letter-spacing: -.045em;
  pointer-events: none;
}
.indice-suites label > span::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  right: -2%;
  height: 4px;
  background: currentColor;
  clip-path: polygon(0 65%,14% 35%,39% 9%,65% 12%,83% 0,100% 22%,98% 48%,69% 64%,39% 80%,10% 100%);
  opacity: 0;
}
.indice-suites :checked + span { color: var(--giz); }
.indice-suites :checked + span::after, .indice-suites label:hover > span::after { opacity: 1; }
.indice-suites input:focus-visible + span, .janelas a:focus-visible, .abrir-album:focus-visible span {
  outline: 2px solid var(--marfim);
  outline-offset: 3px;
}
.postigo-notas {
  grid-area: notas;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(22px, 2.15vw, 45px);
  padding-bottom: clamp(34px, 4.05vw, 80px);
}
#room-story {
  max-width: 30ch;
  font-size: clamp(.94rem, 1.13vw, 1.22rem);
  font-weight: 530;
  line-height: 1.52;
  text-wrap: pretty;
}
#room-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .55em;
  margin: .9rem 0 clamp(22px, 2.7vw, 50px);
  padding: 0;
  list-style: none;
  font-size: clamp(.76rem, .88vw, .96rem);
  line-height: 1.5;
  font-weight: 680;
}
#room-facts li + li::before { content: "·"; margin-right: .55em; }
#choose-room {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  margin-top: auto;
  min-height: 44px;
  color: var(--giz);
  font: 600 clamp(25px, 2.1vw, 36px)/1.15 var(--mao);
  text-decoration: none;
}
#choose-room img { width: clamp(44px, 3.8vw, 66px); height: auto; flex: none; }
#choose-room span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
#choose-room:hover span { text-decoration-thickness: 2px; }
.vista-suite {
  --sombra-esquerda: 66%;
  grid-area: foto;
  position: relative;
  isolation: isolate;
  min-width: 0;
  background: #5e6352;
}
.vista-suite > img, .vista-suite::after, .abrir-album { position: absolute; inset: 0; width: 100%; height: 100%; }
.vista-suite > img { object-fit: cover; object-position: 50% 54%; }
.vista-suite::after {
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse var(--sombra-esquerda) 54% at 0% 100%, rgb(22 23 16 / 75%) 0% 39%, transparent),
    linear-gradient(0deg,rgb(22 23 16 / 78%),rgb(22 23 16 / 67%) 18%,rgb(22 23 16 / 25%) 31%,transparent 45%);
}
.vista-suite figcaption {
  position: absolute;
  bottom: clamp(27px, 2.8vw, 52px);
  left: clamp(24px, 3.1vw, 72px);
  right: clamp(115px, 12vw, 190px);
  z-index: 1;
  color: var(--marfim);
  pointer-events: none;
}
#room-name { font: 420 clamp(43px, 4.6vw, 94px)/.96 var(--serifa); letter-spacing: -.045em; }
#room-place { display: block; margin-top: .18em; font: 520 clamp(20px, 1.85vw, 34px)/1.1 var(--mao); }
.abrir-album {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--marfim);
  cursor: zoom-in;
  z-index: 2;
}
.abrir-album span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  position: absolute;
  right: clamp(20px, 3.1vw, 65px);
  bottom: clamp(22px, 2.8vw, 52px);
  min-height: 44px;
  border-bottom: 1px solid currentColor;
  font: 650 clamp(.78rem, .94vw, 1rem)/1.3 Manrope,sans-serif;
}
.abrir-album svg { width: 1.6em; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.abrir-album:hover span { color: #fff; border-bottom-width: 2px; }
.abrir-album:focus-visible { outline: 0; }

/* As três vistas dividem o mesmo visor. */
#album {
  width: min(1080px, 95vw);
  max-width: none;
  padding: clamp(14px, 2.1vw, 30px);
  background: #faf6eb;
  color: #273d35;
}
#album::backdrop { background: rgb(14 31 28 / 86%); }
#album header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: 0 0 .65rem; }
#album h2 { font: 500 clamp(26px, 3vw, 43px)/1.05 "Newsreader Salina",Georgia,serif; }
#album-fechar, #album [data-vista] { border: 0; color: inherit; background: transparent; min-height: 44px; font-weight: 700; }
#album-fechar { display: flex; align-items: center; gap: .45em; padding-inline: .6em; font-size: .84rem; }
#album-fechar span { font: 400 1.65rem/1 sans-serif; }
#album-foto { width: 100%; height: min(51vw, 59dvh); max-height: none; object-fit: contain; background: #e8e3d7; }
#album-legenda { margin-top: .55rem; color: #344f44; font-size: .86rem; }
#album .album-controles { gap: .8rem; margin-top: .3rem; }
#album [data-vista] { padding: .45rem .3rem; border-radius: 0; border-bottom: 2px solid transparent; font-size: .9rem; }
#album [aria-pressed="true"] { color: #115958; border-bottom-color: currentColor; outline: none; }
#album [data-vista]:focus-visible { outline: 2px solid #155957; outline-offset: 2px; }
@media (max-width: 900px) and (min-width: 731px) {
  .janela-aberta { grid-template-columns: 295px minmax(0,1fr); }
  .postigo-indice, .postigo-notas { padding-inline: 27px; }
  .vista-suite figcaption { right: 115px; }
}
@media (max-width: 730px) {
  .janela-aberta { min-height: 0; display: grid; grid-template-columns: 100%; grid-template-rows: auto auto auto; grid-template-areas: "indice" "notas" "foto"; }
  .janela-aberta::before { grid-row: 1 / 3; background-size: auto, 100% auto; }
  .postigo-indice, .postigo-notas { padding-inline: var(--gutter); }
  .postigo-indice { padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1.1rem; }
  .postigo-indice h2 { font-size: clamp(23px, 4.8vw, 33px); }
  .postigo-indice h2 em { font-size: clamp(43px, 9.7vw, 62px); }
  .indice-suites { gap: 12px; margin: 0; }
  .indice-suites label > span { align-items: center; font-size: clamp(25px, 5.9vw, 35px); }
  .postigo-notas { padding-block: 16px 17px; }
  #room-story { max-width: 47ch; font-size: .92rem; }
  #room-facts { margin: .42rem 0 .35rem; font-size: .77rem; }
  #choose-room { min-height: 44px; font-size: 25px; }
  .vista-suite { --sombra-esquerda: 100%; min-height: clamp(288px, 81vw, 440px); }
  .vista-suite figcaption { left: var(--gutter); bottom: 20px; }
  #room-name { font-size: clamp(37px, 8.7vw, 58px); }
  #room-place { font-size: 22px; }
  .abrir-album span { bottom: 19px; right: var(--gutter); }
  #album-foto { height: min(90vw, 54dvh); }
}
@media (forced-colors: active) {
  .indice-suites :checked + span, #album [aria-pressed="true"] { border-bottom: 3px solid Highlight; }
  .vista-suite figcaption, .abrir-album span { background: Canvas; color: CanvasText; }
}

/* celular: tudo centralizado, como a abertura e o destino */
@media (max-width: 690px) {
  .postigo-notas { align-items: center; text-align: center; }
  #room-story { margin-inline: auto; }
  #room-facts { justify-content: center; }
  .tour-heading, .route-copy, .cuidados header { text-align: center; }
  .cuidados ul { gap: 22px; }
  .cuidados li { display: block; text-align: center; }
  .cuidados li img { display: block; margin: 0 auto 6px; }
  .cuidados li p { margin-inline: auto; text-wrap: balance; }
  .route-copy > p:not(.kicker), #room-story { text-wrap: balance; }
}
