/* ==========================================================================
   Casa Amarela Guesthouse — Guest Guide
   Identidade: casaamarelaguesthouse.pt
   Cormorant Garamond (display) · Dancing Script (acento) · Inter (corpo)
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f7f5f3;
  --surface: #ffffff;
  --surface-warm: #fdfbf7;
  --ink: #231f1a;
  --body: #4d463e;
  --muted: #6e6558;
  --accent: #db9824;
  --accent-deep: #8a5f13;
  --accent-wash: #faf3e4;
  --line: #e9e2d8;
  --line-strong: #d9cfc0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 680px;
  --maxw-wide: 1080px;
  --pad: 24px;
  --ease: cubic-bezier(.25, .5, .25, 1);
}

* { box-sizing: border-box; }
a, button { -webkit-tap-highlight-color: transparent; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 8px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 106px; /* action bar fixa + respiro */
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

::selection { background: var(--accent); color: #fff; }

p, .lead { text-wrap: pretty; }

@media (prefers-reduced-motion: no-preference) {
  #view > *:not(.container) { animation: rise .55s var(--ease) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  /* transição entre vistas (View Transitions API) — chrome fixo, conteúdo em crossfade */
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: .42s;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  }
  .topbar { view-transition-name: ca-topbar; }
  .actionbar { view-transition-name: ca-actionbar; }

  /* reveal por scroll nas grelhas de cards (CSS puro, sem JS) */
  @supports (animation-timeline: view()) {
    .cards .reco {
      animation: card-in both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes card-in {
      from { opacity: 0; transform: translateY(22px); }
      to { opacity: 1; transform: none; }
    }
  }

  /* entrada orquestrada do hero (home) */
  .hero-copy > * {
    animation: hero-in .7s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .hero-copy .hero-logo { animation: logo-in 1.2s cubic-bezier(.16, 1, .3, 1) .2s backwards; }
  @keyframes logo-in {
    from { opacity: 0; transform: scale(.94) translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  .hero-copy .hero-tag { animation-delay: .9s; }
  @keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* skeleton de carregamento */
.sk {
  background: linear-gradient(100deg, #efe9df 40%, #f7f2ea 50%, #efe9df 60%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: shimmer 1.4s linear infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }
}
.sk-eyebrow { width: 110px; height: 11px; margin-bottom: 18px; }
.sk-title { width: min(46vw, 300px); height: 44px; }
.sk-card { aspect-ratio: 4 / 3; }

/* estado vazio da pesquisa */
.empty-note {
  grid-column: 1 / -1;
  padding: 34px 0 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- tipografia ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  font-kerning: normal;
  font-feature-settings: 'liga' 1;
}
h1 { font-size: clamp(44px, 10vw, 84px); letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 7.5vw, 52px); letter-spacing: -.005em; }
h3 { font-size: 26px; font-weight: 400; }

.script { font-family: var(--script); color: var(--accent); font-weight: 500; }
h1 .script, .h-script { display: block; font-size: .82em; line-height: 1.1; margin-top: .04em; }

.lead {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 74ch;
}

.prose { color: var(--body); font-size: 15.5px; max-width: 66ch; hanging-punctuation: first last; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 22px; }
.prose li { margin-bottom: .55em; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose img { margin: 22px 0; }

/* ---------- estrutura ---------- */

.container { max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.container.wide { max-width: calc(var(--maxw-wide) + 2 * var(--pad)); }

.section-head { padding: 40px 0 16px; }
@media (min-width: 760px) { .section-head { padding: 64px 0 20px; } }
.section-head .lead { margin: 16px 0 0; }

/* ---------- topbar ---------- */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,245,243,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: max(13px, env(safe-area-inset-top)) var(--pad) 13px;
  transition: border-color .25s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar > * { max-width: none; }

/* na home a topbar flutua transparente sobre o hero */
body.is-home .topbar {
  position: absolute;
  left: 0; right: 0; top: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0;
}
body.is-home .lang-btn { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
body.is-home .topbar .brand { display: none; }
/* na home o botão de idioma está centrado — o painel cai centrado por baixo dele */
body.is-home .lang-list {
  left: 50%;
  right: auto;
  width: 208px;
  margin-left: -104px;
}

.topbar .brand { justify-self: center; display: flex; min-width: 0; }
.topbar .brand img { height: 30px; width: auto; transition: opacity .2s; }
@media (min-width: 560px) { .topbar .brand img { height: 38px; } }
.topbar .brand:hover img { opacity: .75; }

.back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 15px 6px;
}
.back-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 24px calc(100% - 10px);
  transition: background-size .3s var(--ease), color .2s;
}
.back-link:hover { text-decoration: none; color: var(--accent-deep); background-size: calc(100% - 30px) 1px; }
.back-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }

.lang { justify-self: end; position: relative; }
.lang-btn {
  font: 600 11px/1 var(--sans);
  letter-spacing: .18em;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 16px 24px 16px 6px;
  cursor: pointer;
  position: relative;
}
.lang-btn::after {
  content: '';
  position: absolute;
  right: 7px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
  opacity: .7;
}
.lang.open .lang-btn::after { transform: translateY(-30%) rotate(225deg); }

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(35, 31, 26, .4);
  z-index: 60;
}
@media (prefers-reduced-motion: no-preference) {
  .lang-list { animation: menu-in .22s var(--ease); }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
}
.lang-list li { margin: 0; }
.lang-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 500 14px/1.2 var(--sans);
  color: var(--ink);
  text-align: left;
  transition: background .15s;
}
.lang-list button:hover { background: var(--surface-warm); }
.lang-list .lang-name { display: inline-flex; align-items: center; gap: 9px; }
.lang-list .lang-name svg { width: 14px; height: 14px; stroke: var(--accent); visibility: hidden; }
.lang-list button.on .lang-name svg { visibility: visible; }
.lang-list button.on { color: var(--accent-deep); font-weight: 600; }
.lang-list .lang-code {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
}
.lang-list button.on .lang-code { color: var(--accent-deep); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: min(86vh, 740px);
  background: #1e1913;
}
@media (max-width: 560px) {
  .hero { height: min(70vh, 620px); }
}

.hero img.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero img.slide.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero img.slide.on { animation: kenburns 18s ease-in-out infinite alternate; }
  @keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.07) translateY(-1.5%); }
  }
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 130% 66% at 50% 46%, rgba(20,16,10,.62) 0%, rgba(20,16,10,.22) 58%, rgba(20,16,10,0) 78%),
    linear-gradient(to top, rgba(20,16,10,.62) 0%, rgba(20,16,10,.14) 42%, rgba(20,16,10,.32) 100%);
}
/* grão de filme subtil por cima do hero (feel editorial impresso) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .055;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero .hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: calc(var(--maxw-wide) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px) clamp(34px, 6vw, 60px);
  color: #fff;
}
.hero .hero-copy.centered {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 30px;
}
.hero-logo {
  width: clamp(240px, 57vw, 370px);
  filter: brightness(0) invert(1) drop-shadow(0 2px 24px rgba(0,0,0,.3));
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero .hero-copy .eyebrow {
  color: rgba(255,255,255,.82);
  margin-bottom: 6px;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.hero .hero-copy .hero-title {
  font-family: var(--script);
  font-weight: 500;
  font-size: clamp(58px, 13vw, 108px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.32);
}
.hero .hero-copy .hero-tag {
  margin: clamp(24px, 4.5vw, 40px) 0 0;
  font-family: var(--script);
  font-size: clamp(28px, 6.5vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(20,16,10,.45), 0 2px 26px rgba(20,16,10,.5);
}

.hero-nav {
  position: absolute;
  right: clamp(20px, 4.5vw, 48px);
  bottom: clamp(18px, 4vw, 38px);
  display: flex;
  align-items: center;
  gap: 2px;
  color: #fff;
  z-index: 2;
}
.hero-count {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .12em;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
  min-width: 74px;
  text-align: center;
}
.hero-count b { font-weight: 500; }
.hero-count i { font-style: normal; opacity: .6; padding: 0 .35em; }
.hero-arrow {
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .8;
  transition: opacity .2s, transform .2s;
}
.hero-arrow svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
.hero-arrow:hover { opacity: 1; }
.hero-arrow:active { transform: scale(.92); }
@media (max-width: 560px) {
  .hero-nav { left: 0; right: 0; bottom: 8px; justify-content: center; }
  .hero .hero-copy { padding-bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero img.slide { transition: none; }
}

/* ---------- info rápida (banda editorial, sem caixas) ---------- */

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(28px, 6vw, 48px);
}
@media (min-width: 760px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }

.quick-card {
  background: transparent;
  border: 0;
  position: relative;
  padding: 22px 18px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: background .3s;
}
/* separador curto e leve entre itens, sem molduras */
.quick-card:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56%;
  width: 1px;
  background: var(--line);
}
.quick-card:first-child { padding-left: 2px; }
@media (max-width: 759px) {
  .quick-card:nth-child(odd) { padding-left: 2px; }
  .quick-card:nth-child(odd)::before { display: none; }
  .quick-card:nth-child(n+3)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--line);
  }
}
.quick-card:hover { text-decoration: none; background: rgba(255,255,255,.65); }

.quick-card .k {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.quick-card .k svg { width: 16px; height: 16px; stroke: var(--accent-deep); flex: none; }

.quick-card .v {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.28;
  font-feature-settings: 'lnum' 1;
  font-variant-numeric: lining-nums;
}
.quick-card.addr .v { font-size: 17px; }
.quick-card .v-nowrap { white-space: nowrap; }

.quick-card .sub {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--body);
  margin-top: -4px;
}

.quick-card .hint {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  transition: transform .2s;
}
.quick-card:hover .hint { transform: translateX(2px); }
.flip-ok, .quick-card .hint.flip-ok { color: var(--ok) !important; }
.flip-ok svg { stroke: var(--ok); }
.quick-card .hint svg { width: 12px; height: 12px; }

/* ---------- índice de navegação (home) ---------- */

.nav-group { margin-top: clamp(44px, 9vw, 72px); }
.nav-group .eyebrow {
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
}
@media (min-width: 760px) { .nav-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px 14px 24px;
  color: var(--ink);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tile:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -18px rgba(35, 31, 26, .35);
}
.tile:active { transform: translateY(0) scale(.985); }
a.reco:active { opacity: .93; }

.tile-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  transition: background .25s;
}
.tile:hover .tile-ic { background: #f5e7c8; }
.tile-ic svg { width: 24px; height: 24px; stroke: var(--accent-deep); }

.tile-label {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ---------- acordeões ---------- */

.acc { border-top: 1px solid var(--line-strong); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 2px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.acc summary:hover { color: var(--accent-deep); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg.ic {
  width: 20px; height: 20px;
  stroke: var(--accent-deep);
  flex: none;
  align-self: center;
  opacity: .9;
}
.acc summary .plus {
  margin-left: auto;
  flex: none;
  width: 16px; height: 16px;
  position: relative;
  align-self: center;
}
.acc summary .plus::before, .acc summary .plus::after {
  content: '';
  position: absolute;
  background: var(--muted);
  transition: transform .25s var(--ease), background .2s;
}
.acc summary .plus::before { left: 0; right: 0; top: 7.3px; height: 1.4px; }
.acc summary .plus::after { top: 0; bottom: 0; left: 7.3px; width: 1.4px; }
.acc details { transition: background .3s; }
.acc details[open] {
  background: linear-gradient(var(--surface-warm), transparent 78%);
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
}
.acc details[open] summary { color: var(--accent-deep); }
.acc details.crit { border-left: 2px solid var(--accent); }
.acc details.crit summary, .acc details.crit .body { padding-left: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .acc details[open] .body { animation: fade-down .35s var(--ease); }
  @keyframes fade-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
}
.acc details[open] summary .plus::before, .acc details[open] summary .plus::after { background: var(--accent-deep); }
.acc details[open] summary .plus::after { transform: scaleY(0); }
.acc .body { padding: 2px 2px 34px; }
.acc .body img { margin: 24px 0 6px; width: 100%; }

/* ---------- pesquisa ---------- */

.search-wrap { padding: 0 0 14px; max-width: 460px; position: relative; }
.search-wrap svg.search-ic {
  position: absolute;
  left: 2px; top: 13px;
  width: 17px; height: 17px;
  stroke: var(--muted);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 0; top: 2px;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.search-clear:hover { color: var(--ink); }
.search {
  width: 100%;
  font: 500 15px/1.4 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 36px 12px 28px;
  transition: border-color .2s;
}
.search::-webkit-search-cancel-button { -webkit-appearance: none; }
.search::placeholder { color: var(--muted); }
.search:focus { outline: none; border-bottom-color: var(--accent); }

/* ---------- filtros ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 2px 0 30px;
}
.filters button {
  font: 600 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on {
  background: var(--accent-wash);
  color: var(--accent-deep);
  border-color: var(--accent);
}
@media (max-width: 759px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: calc(-1 * var(--pad));
    padding-right: var(--pad);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .filters {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
}

/* ---------- grelha de recomendações ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 24px;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; gap: 30px 26px; } }
@media (min-width: 980px) { .cards { grid-template-columns: 1fr 1fr 1fr; gap: 26px 22px; } }

.reco { display: flex; flex-direction: column; color: inherit; }
a.reco:hover { text-decoration: none; }
a.reco:hover h3 { color: var(--accent-deep); }
.reco h3 { transition: color .2s; }
.reco .ph {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(160deg, #eee8df, #e3dccf) center / cover no-repeat;
}
.reco .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.reco:hover .ph img { transform: scale(1.035); }
.reco .tx { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.reco .tx h3 { font-size: 26px; }
.reco .tx p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.reco .tx .foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reco .maplink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.reco .maplink:hover { text-decoration: none; color: var(--ink); }
.reco .maplink svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.reco:hover .maplink svg { transform: translate(2px, -2px); }
.reco .price { font-family: var(--serif); font-size: 26px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1; }
.reco .meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.reco .meta svg { width: 15px; height: 15px; stroke: var(--accent-deep); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-wash);
  padding: 6px 10px;
}

/* ---------- card com texto sobre a foto (listagens) ---------- */

.reco-overlay {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  justify-content: flex-end;
  background: #1e1913 center / cover no-repeat;
}
.reco-overlay .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.reco-overlay:hover .bg { transform: scale(1.045); }

/* véu quente da marca: unifica as fotos sem as lavar */
.reco-overlay .veil-tint {
  position: absolute;
  inset: 0;
  background: #c08c3e;
  mix-blend-mode: multiply;
  opacity: .16;
  pointer-events: none;
}
/* gradiente só onde o texto assenta */
.reco-overlay .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,19,12,.02) 34%, rgba(24,19,12,.42) 62%, rgba(24,19,12,.86) 100%);
  pointer-events: none;
}

.reco-overlay .tx {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 22px 20px 18px;
  gap: 6px;
}
.reco-overlay .tx h3 { color: #fff; font-size: 26px; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.reco-overlay .tx p {
  color: rgba(255,255,255,.88);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reco-overlay .meta-line {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-top: 4px;
}
.reco-overlay .maplink { color: var(--accent); margin-top: 8px; }
.reco-overlay:hover .maplink { color: #fff; }
a.reco-overlay:hover h3 { color: #fff; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--accent);
  color: #231f1a;
  border: 1px solid var(--accent);
  padding: 17px 30px;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .15s;
}
.btn:hover { background: #c4871c; border-color: #c4871c; text-decoration: none; color: #231f1a; }
.btn:active, .filters button:active, .quick-card:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 15px; height: 15px; }
.btn.small { padding: 14px 20px; font-size: 10.5px; letter-spacing: .16em; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- self check-in ---------- */

.steps { margin: 10px 0 56px; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2px 20px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line-strong); }
@media (min-width: 481px) {
  .steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 88px;
    bottom: 10px;
    width: 1px;
    background: var(--line);
  }
}
.step .num {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1;
}
.step h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  align-self: center;
  letter-spacing: .01em;
}
.step .body { grid-column: 2; margin-top: 8px; }
.step .body img { width: 100%; }
@media (max-width: 480px) {
  .step { grid-template-columns: 1fr; gap: 6px; padding: 26px 0 30px; }
  .step .num { grid-row: auto; font-size: 36px; margin-bottom: 2px; }
  .step .body { grid-column: 1; }
}

.pinbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--accent);
  background: var(--accent-wash);
  padding: 22px 26px;
  margin: 20px 0 8px;
}
.pinbox .pin {
  font-family: var(--serif);
  font-size: clamp(44px, 11vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1;
}

.room-tag {
  font-family: var(--script);
  font-size: 1.9em;
  line-height: .6;
  color: var(--accent);
  vertical-align: -18%;
  padding: 0 2px;
}

.video-wrap { margin: 20px 0 4px; }
.video-wrap video { width: 100%; max-width: 460px; max-height: 58vh; background: #14100a; }
.video-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- staff: gerador de link ---------- */

.staff-card {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: 34px 2px 38px;
  margin: 10px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.staff-card select {
  appearance: none;
  -webkit-appearance: none;
  font: 500 16px/1.3 var(--sans);
  color: var(--ink);
  padding: 16px 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  width: 100%;
  cursor: pointer;
  transition: border-color .2s;
}
.staff-card select:hover { border-color: var(--ink); }
.staff-card .linkout {
  font-size: 14px;
  word-break: break-all;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  padding: 14px 16px;
  color: var(--body);
}

/* ---------- detalhe de actividade ---------- */

.activity-detail .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 4px;
}
.activity-detail .gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(160deg, #eee8df, #e3dccf);
}
.activity-detail .gallery img:first-child {
  grid-column: span 3;
  aspect-ratio: 16 / 9;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 56px;
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
}
.facts .f .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.facts .f .v {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1;
}

.book-frame {
  border: 1px solid var(--line-strong);
  overflow: hidden;
  margin: 20px 0 72px;
  background: var(--surface);
}
.book-frame iframe { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 480px) { .book-frame iframe { height: 520px; } }

/* ---------- action bar fixa ---------- */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
}
.actionbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 4px 11px;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .2s;
}
.actionbar a:hover { text-decoration: none; color: var(--accent-deep); }
.actionbar a svg { width: 21px; height: 21px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 102px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 100;
}
.toast::before { content: '✓  '; color: var(--accent); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- notas ---------- */

.offline-note {
  background: var(--accent-wash);
  border-left: 2px solid var(--accent);
  color: var(--accent-deep);
  font-size: 13.5px;
  line-height: 1.65;
  padding: 14px 18px;
  margin: 14px 0;
  max-width: 66ch;
}

.foot-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 11vw, 96px);
  padding: clamp(44px, 9vw, 72px) 0 44px;
}
.foot-note .script { font-size: clamp(30px, 5vw, 40px); line-height: 1; }
.foot-note .fn-caps {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.foot-note .fn-sub { font-size: 12.5px; max-width: 46ch; }

/* páginas de texto: 1.º parágrafo como lead serif */
.text-article > p:first-child {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(23px, 3.4vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .7em;
  text-wrap: balance;
}

/* intro do self check-in: discreto, sem alarme */
.sc-intro {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

/* entrada em cascata dos blocos (stagger via --i definido no render) */
@media (prefers-reduced-motion: no-preference) {
  #view .container > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lb.on { opacity: 1; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 19, 12, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lb-panel {
  position: relative;
  background: var(--bg);
  width: min(920px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 0;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
@media (prefers-reduced-motion: no-preference) {
  .lb.on .lb-panel { animation: lb-in .3s var(--ease); }
  @keyframes lb-in { from { transform: translateY(14px) scale(.985); opacity: .6; } }
}
.lb-close {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 44px; height: 44px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}
.lb-close:hover { color: var(--accent-deep); }
.lb-fig { margin: 0; background: #1e1913; }
.lb-fig img { width: 100%; max-height: min(66dvh, 620px); object-fit: contain; }
.lb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px 18px;
}
.lb-meta h3 { font-size: 26px; }
.lb-meta p { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lb-nav { display: flex; align-items: center; }
.lb-nav .hero-arrow { color: var(--ink); opacity: .7; }
.lb-nav .hero-arrow svg { filter: none; }
.lb-nav .hero-count { color: var(--ink); text-shadow: none; }
.lb-iframe { width: 100%; height: min(78dvh, 700px); border: 0; display: block; background: #fff; }

/* botão de reserva grande */
.book-cta { padding: 30px 0 64px; }
.btn-book {
  width: 100%;
  max-width: 460px;
  padding: 20px 30px;
  font-size: 13px;
  gap: 12px;
}

/* ---------- checklist pré-viagem ---------- */

.checklist {
  margin-top: clamp(30px, 6vw, 46px);
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.ck-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ck-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--accent-deep);
}
.ck-head a svg { width: 13px; height: 13px; }
.ck-items { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background .2s, opacity .2s;
  -webkit-user-select: none;
  user-select: none;
}
.ck-item input { position: absolute; opacity: 0; pointer-events: none; }
.ck-box {
  width: 17px; height: 17px;
  border: 1.4px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.ck-box svg { width: 11px; height: 11px; stroke: #fff; opacity: 0; }
.ck-item.done { border-color: var(--accent); background: var(--accent-wash); }
.ck-item.done .ck-box { background: var(--accent); border-color: var(--accent); }
.ck-item.done .ck-box svg { opacity: 1; }
.ck-item.done > span:last-child { opacity: .66; text-decoration: line-through; }

/* ---------- meteo do self check-in ---------- */

.weather-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-deep);
}
.weather-line svg { width: 17px; height: 17px; stroke: var(--accent); }

/* widget de meteo (Local Weather) */
.wx {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wx::-webkit-scrollbar { display: none; }
.wx-day {
  flex: 1 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
}
.wx-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wx-day svg { width: 20px; height: 20px; stroke: var(--accent-deep); }
.wx-max { font-family: var(--serif); font-size: 20px; font-weight: 500; font-feature-settings: 'lnum' 1; }
.wx-min { font-size: 12px; color: var(--muted); }

/* utilitários */
.hidden { display: none !important; }
