/* ==========================================================================
   Motor de Landing Pages Imobiliárias High-Ticket
   Design System compartilhado - Mobile First / Premium
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Cores base */
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --ink: #0f172a;          /* grafite escuro */
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e8ebf0;

  /* Accent de luxo (dourado sóbrio) */
  --gold: #b8923f;
  --gold-soft: #f4ecd8;
  --accent: #111827;

  /* Estados */
  --green: #16a34a;
  --green-soft: #dcfce7;
  --danger: #ef4444;

  /* Soft shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.07);

  /* Raios */
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Tipografia */
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 560px;
  --pad: 20px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Barra de rolagem fininha (perfect scrolling) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.35);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Ícones Lucide consistentes */
[data-lucide] {
  stroke-width: 1.75;
  width: 22px;
  height: 22px;
}

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: 36px;
}

.section--tight {
  padding-block: 24px;
}

.stack > * + * {
  margin-top: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 8px;
}

.section-sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.98rem;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.card--flat {
  box-shadow: var(--shadow-sm);
}

/* ---------- Tag / Chip ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tag--gold {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: transparent;
}

.tag [data-lucide] {
  width: 15px;
  height: 15px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.chip [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.btn--gold {
  background: linear-gradient(135deg, #cda453, var(--gold));
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 146, 63, 0.28);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn [data-lucide] {
  width: 19px;
  height: 19px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 20, 0.35) 0%,
    rgba(8, 11, 20, 0.2) 35%,
    rgba(8, 11, 20, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 40px;
}

.hero__title {
  font-size: clamp(2rem, 9vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 16px;
}

.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__loc [data-lucide] {
  width: 17px;
  height: 17px;
}

.hero__stats {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero__stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.hero__stat b {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__cta {
  margin-top: 22px;
}

/* ==========================================================================
   Valorização (gráfico)
   ========================================================================== */
.chart-card {
  margin-top: 18px;
}

.chart-wrap {
  position: relative;
  height: 230px;
  margin-top: 6px;
}

.valuation-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.valuation-pill {
  flex: 1;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 14px;
  text-align: center;
}

.valuation-pill b {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.valuation-pill span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   Simulador (sliders)
   ========================================================================== */
.sim-result {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 18px;
  text-align: center;
}

.sim-result span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.sim-result b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.sim-result small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

.slider {
  margin-top: 20px;
}

.slider__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.slider__head label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.slider__head output {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

/* ==========================================================================
   Andamento da Obra
   ========================================================================== */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  position: relative;
}

.progress-track {
  position: relative;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  margin: 22px 0 18px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #cda453, var(--gold));
  transition: width 0.6s ease;
}

.progress-legend {
  display: flex;
  justify-content: space-between;
}

.progress-legend span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.progress-legend span.done {
  color: var(--gold);
}

/* ==========================================================================
   Galeria (carrossel swipe)
   ========================================================================== */
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 8px;
  margin-inline: calc(-1 * var(--pad));
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  position: relative;
  flex: 0 0 80%;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

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

.gallery__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(8, 11, 20, 0.55);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.gallery-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.25s ease;
}

.gallery-dots span.active {
  width: 22px;
  border-radius: var(--r-pill);
  background: var(--gold);
}

/* ==========================================================================
   Mapa & Vizinhança (POIs)
   ========================================================================== */
.poi-list {
  margin-top: 16px;
}

.poi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.poi:last-child {
  border-bottom: none;
}

.poi__icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.poi__icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.poi__body {
  flex: 1;
}

.poi__body b {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
}

.poi__body span {
  font-size: 0.82rem;
  color: var(--muted);
}

.poi__time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.poi__time small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.poi__time small [data-lucide] {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Crachá do corretor
   ========================================================================== */
.broker {
  display: flex;
  gap: 16px;
  align-items: center;
}

.broker__photo {
  position: relative;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
}

.broker__photo img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}

.broker__online {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
}

.broker__online::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.broker__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.broker__creci {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.broker__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.broker__status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   Quiz multi-step
   ========================================================================== */
.quiz {
  overflow: hidden;
}

.quiz__progress {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.quiz__progress i {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #cda453, var(--gold));
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

.quiz__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.quiz__stage {
  position: relative;
  margin-top: 16px;
}

.quiz__step {
  display: none;
  animation: slideIn 0.35s ease;
}

.quiz__step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz__q {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.quiz__hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.quiz__options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.18s ease;
}

.opt:active {
  transform: scale(0.99);
}

.opt.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.opt__icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.opt__icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.quiz__field {
  margin-top: 14px;
}

.quiz__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  display: block;
  margin-bottom: 6px;
}

.quiz__field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.quiz__field input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.quiz__nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.quiz__back {
  flex: 0 0 auto;
  width: auto;
  padding-inline: 18px;
}

/* ---- Modo Foco (sem distrações) ---- */
.quiz-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 11, 20, 0.9);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.quiz-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.quiz.quiz--focus {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 95;
  margin: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: focusPop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes focusPop {
  from {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.93);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

body.quiz-focused {
  overflow: hidden;
}

body.quiz-focused .topbar,
body.quiz-focused .sticky-cta {
  opacity: 0;
  pointer-events: none;
}

.quiz-focus-close {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 96;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.quiz-focus-close.show {
  opacity: 1;
  visibility: visible;
}

.quiz-focus-close [data-lucide] {
  width: 22px;
  height: 22px;
}

/* Tela de sucesso */
.quiz__done {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.quiz__done.active {
  display: block;
  animation: slideIn 0.4s ease;
}

.quiz__done .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.quiz__done .check [data-lucide] {
  width: 32px;
  height: 32px;
  stroke-width: 2.25;
}

/* ==========================================================================
   Sticky CTA
   ========================================================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sticky-cta__inner .btn {
  flex: 1;
}

.sticky-cta__call {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: var(--r);
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}

.sticky-cta__call [data-lucide] {
  width: 24px;
  height: 24px;
}

/* Espaço para não cobrir conteúdo final */
.page-end-spacer {
  height: 90px;
}

/* ==========================================================================
   Features / lista de destaques
   ========================================================================== */
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature + .feature {
  margin-top: 16px;
}

.feature__icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.feature__icon [data-lucide] {
  width: 21px;
  height: 21px;
}

.feature b {
  font-weight: 700;
}

.feature p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ==========================================================================
   Agendamento
   ========================================================================== */
.schedule-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.slot {
  padding: 12px 6px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 2px solid transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: all 0.18s ease;
}

.slot small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
}

.slot.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.slot.selected small {
  color: var(--gold);
}

/* Footer */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 24px 0 110px;
}

/* ==========================================================================
   Index / Hub
   ========================================================================== */
.hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 50px;
}

.hub__brand {
  text-align: center;
  margin-bottom: 8px;
}

.hub__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.hub__logo [data-lucide] {
  color: var(--gold);
}

.hub__title {
  text-align: center;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 18px;
}

.hub__sub {
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
}

.hub__cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.hub-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hub-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.hub-card:active img {
  transform: scale(1.05);
}

.hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.1), rgba(8, 11, 20, 0.82));
}

.hub-card__body {
  position: relative;
  z-index: 2;
  padding: 22px;
  width: 100%;
}

.hub-card__body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.hub-card__body p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin-top: 4px;
}

.hub-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Utilidades */
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }

@media (min-width: 600px) {
  .hero__stat b { font-size: 1.3rem; }
}

/* ==========================================================================
   Topbar (logo fixo centralizado)
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px - 2px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  pointer-events: none;
}

.topbar__logo {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  transition: color 0.35s ease;
}

.topbar__logo [data-lucide] {
  width: 22px;
  height: 22px;
  color: #d8b765;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding-block: 12px;
}

.topbar.scrolled .topbar__logo {
  color: var(--ink);
  text-shadow: none;
}

.topbar.scrolled .topbar__logo [data-lucide] {
  color: var(--gold);
}

/* ==========================================================================
   Lightbox (galeria ampliada)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 11, 20, 0.96);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px 12px;
  color: #fff;
}

.lightbox__counter {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
}

.lightbox__stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.lightbox__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox__slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
}

.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }

.lightbox__bottom {
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  color: #fff;
}

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

.lightbox__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.lightbox__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.lightbox__dots span.active {
  width: 22px;
  border-radius: var(--r-pill);
  background: var(--gold);
}

/* Dica de toque sobre a galeria */
.gallery__item {
  cursor: pointer;
}

.gallery__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 11, 20, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.gallery__zoom [data-lucide] {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   POI expansível (com foto e detalhes)
   ========================================================================== */
.poi {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.poi:last-child {
  border-bottom: none;
}

.poi__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
}

.poi__chev {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.poi__chev [data-lucide] {
  width: 18px;
  height: 18px;
}

.poi.open .poi__chev {
  transform: rotate(90deg);
  color: var(--gold);
}

.poi__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.poi.open .poi__detail {
  max-height: 360px;
}

.poi__detail-inner {
  padding-bottom: 16px;
}

.poi__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.poi__desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

/* ==========================================================================
   Mapa (Leaflet / OpenStreetMap limpo)
   ========================================================================== */
.map-card {
  padding: 8px;
  margin-top: 16px;
}

.map-frame {
  height: 280px;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  /* Isola os z-index internos do Leaflet (panes/controls) para que o mapa
     nunca fique acima do sticky CTA / demais elementos fixos. */
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.map-frame > #map {
  height: 100%;
  width: 100%;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 1 !important;
}

.leaflet-container {
  font-family: var(--font) !important;
  background: #eef1f5 !important;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.map-pin {
  background: var(--gold);
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}

.map-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 10px 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.map-foot [data-lucide] {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

/* ==========================================================================
   Destaques / Amenities (checklist)
   ========================================================================== */
.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.amenity__check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}

.amenity__check [data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}

.amenity span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

/* ==========================================================================
   Toast / Alerts customizados
   ========================================================================== */
.toast-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 0;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform: translateY(-130%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.toast__icon [data-lucide] {
  width: 19px;
  height: 19px;
  stroke-width: 2.25;
}

.toast--error .toast__icon { background: #fee2e2; color: var(--danger); }
.toast--success .toast__icon { background: var(--green-soft); color: var(--green); }
.toast--info .toast__icon { background: var(--gold-soft); color: var(--gold); }

.toast__body b {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.toast__body span {
  font-size: 0.82rem;
  color: var(--muted);
}

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