:root {
  --paper: #f8f0e5;
  --ink: #342019;
  --wine: #76251f;
  --blue: #536f78;
  --sun: #f5a017;
  --line: rgba(68, 42, 31, 0.18);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; }

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 42px 20px 22px;
  background: rgba(248, 240, 229, 0.84);
  isolation: isolate;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./public/assets/baia-guaratuba.jpg") 60% center / cover no-repeat;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 240, 229, 0.78);
}

.intro {
  width: min(100%, 600px);
  margin: 0 auto 30px;
  text-align: center;
}

.eyebrow,
.brand-kicker,
.stay-card__label,
.footer-note {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow { color: var(--wine); }
.intro h1 {
  margin: 10px 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.45rem, 11vw, 4.8rem);
  font-weight: 600;
  line-height: 0.9;
  text-wrap: balance;
}
.intro > p:last-child { margin: 0; color: rgba(52, 32, 25, 0.72); font-size: 0.9rem; }

.stays {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.stay-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.88);
  box-shadow: 0 18px 45px rgba(61, 40, 28, 0.13);
  backdrop-filter: blur(14px);
}

.stay-card__brand { text-align: center; }
.brand-logo { display: block; width: auto; object-fit: contain; margin: 0 auto 12px; }
.brand-logo--cabana { height: 106px; }
.brand-logo--pousada { width: 132px; height: 132px; border-radius: 12px; mix-blend-mode: multiply; }

.stay-card--cabana { border-top: 5px solid var(--wine); }
.stay-card--pousada { border-top: 5px solid var(--sun); }
.stay-card--cabana .brand-kicker, .stay-card--cabana .stay-card__label { color: var(--wine); }
.stay-card--pousada .brand-kicker, .stay-card--pousada .stay-card__label { color: var(--blue); }

.stay-card h2 {
  margin: 5px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 13vw, 4.6rem);
  font-weight: 600;
  line-height: 0.82;
}

.gallery { overflow: hidden; border-radius: 18px; background: #e9dfd2; box-shadow: inset 0 0 0 1px rgba(52, 32, 25, 0.08); }
.gallery__viewport { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.gallery__slide.is-active { opacity: 1; pointer-events: auto; }
.gallery__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__slide figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(38, 28, 23, 0.78); color: #fff; font-size: 0.68rem; font-weight: 600; }
.gallery__controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; padding: 0 8px; background: rgba(255, 250, 243, 0.96); }
.gallery__controls button { min-height: 34px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.7rem; font-weight: 700; cursor: pointer; }
.gallery__controls button:first-child { text-align: left; }
.gallery__controls button:last-child { text-align: right; }
.gallery__controls button:hover { color: var(--wine); }
.gallery__controls button:focus-visible { outline: 2px solid var(--sun); outline-offset: -2px; border-radius: 8px; }
.gallery__count { color: rgba(52, 32, 25, 0.6); font-size: 0.68rem; font-weight: 600; }

.stay-card__content > p:not(.stay-card__label) {
  max-width: 38ch;
  margin: 8px 0 18px;
  color: rgba(52, 32, 25, 0.72);
  font-size: 0.86rem;
  line-height: 1.55;
}
.stay-card__content { margin-top: auto; }

.button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.stay-card--cabana .button { background: var(--wine); box-shadow: 0 9px 22px rgba(118, 37, 31, 0.25); }
.stay-card--pousada .button { background: var(--blue); box-shadow: 0 9px 22px rgba(83, 111, 120, 0.25); }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(52, 32, 25, 0.2); }
.button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.choice-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: rgba(52, 32, 25, 0.68);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
}

.footer-note { margin-top: 22px; color: rgba(52, 32, 25, 0.55); text-align: center; }

@media (min-width: 760px) {
  .page-shell { display: flex; flex-direction: column; justify-content: flex-start; padding: 48px; }
  .intro { margin-bottom: 42px; }
  .stays { grid-template-columns: 1fr 1fr; gap: 26px; }
  .stay-card { min-height: 660px; padding: 34px; }
  .stay-card h2 { font-size: clamp(3.6rem, 6vw, 5.2rem); }
  .choice-divider { top: 50%; }
}

@media (max-height: 720px) and (max-width: 759px) {
  .page-shell { padding-top: 24px; }
  .intro { margin-bottom: 18px; }
  .intro h1 { font-size: 2.35rem; }
  .stay-card { min-height: 230px; padding: 22px; }
  .stay-card h2 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
@media (prefers-reduced-motion: reduce) { .gallery__slide { transition: none; } }
