/* ==========================================================================
   Marcos Belmiro Imóveis — Airbnb-style design + Stripe colors
   ========================================================================== */

:root {
  /* ---- Stripe brand colors ---- */
  --stripe-purple: #635BFF;
  --stripe-purple-deep: #4F46E5;
  --stripe-purple-soft: #EEF0FF;
  --stripe-ink: #222222;
  --stripe-pink: #FF5C8A;
  --stripe-orange: #FF8E3C;
  --stripe-cyan: #00D4FF;

  /* ---- Surface — pure white, Airbnb-style ----------------------------- */
  --bg: #FFFFFF;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #F7F7F7;
  --bg-inset: #FFFFFF;
  --bg-tint: #F7F7F7;

  /* ---- Text (Airbnb-style: nearly black headings, gray body) ---------- */
  --fg: #222222;
  --fg-muted: #717171;
  --fg-dim: #B0B0B0;

  /* ---- Borders (Airbnb's signature very-light gray) ------------------- */
  --line: #EBEBEB;
  --line-strong: #DDDDDD;
  --line-soft: #F2F2F2;

  /* ---- Brand accents (Stripe purple as primary) ----------------------- */
  --purple: #635BFF;
  --purple-deep: #4F46E5;
  --purple-soft: #EEF0FF;
  --purple-glow: rgba(99, 91, 255, 0.30);

  --pink: #FF5C8A;
  --orange: #FF8E3C;
  --cyan: #00D4FF;

  /* ---- Stripe gradient ----------------------------------------------- */
  --grad-stripe: linear-gradient(135deg,
                                 #00D4FF 0%,
                                 #635BFF 35%,
                                 #FF5C8A 70%,
                                 #FF8E3C 100%);
  --grad-purple: linear-gradient(135deg, #635BFF, #4F46E5);

  /* ---- Functional ---------------------------------------------------- */
  --success: #008A05;
  --warning: #FFB020;
  --danger:  #C13515;

  /* ---- Spacing & radii (Airbnb uses 12-16px on cards, 8 on inputs) --- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ---- Shadows (Airbnb-style: subtle, almost flat) ------------------- */
  --sh-card: 0 6px 16px rgba(0,0,0,0.12);
  --sh-card-hover: 0 8px 28px rgba(0,0,0,0.18);
  --sh-pop:  0 8px 28px rgba(0,0,0,0.15);
  --sh-search: 0 1px 2px rgba(0,0,0,0.08), 0 6px 20px rgba(0,0,0,0.10);

  /* ---- Type ---------------------------------------------------------- */
  --font-display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .container { padding-inline: 40px; } }
@media (min-width: 1128px) { .container { padding-inline: 80px; } }

/* ==========================================================================
   Type — Airbnb uses tight headings, black on white
   ========================================================================== */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--fg);
  text-wrap: balance;
}
.h-1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
.h-2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); font-weight: 600; }
.h-3 { font-size: clamp(1.125rem, 1vw + 0.75rem, 1.5rem); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--purple);
}
.muted { color: var(--fg-muted); }
.dim   { color: var(--fg-dim); }

/* ==========================================================================
   Buttons — Airbnb-style: solid, 8-12 radius
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-deep); }

.btn-stripe {
  background: var(--grad-stripe);
  color: #fff;
  background-size: 180% 180%;
  background-position: 0% 50%;
  transition: background-position .4s ease, transform .12s ease;
}
.btn-stripe:hover { background-position: 100% 50%; }

.btn-dark {
  background: var(--fg);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--fg); background: var(--bg-elev-2); }

.btn-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg);
}
.btn-icon:hover { background: var(--bg-elev-2); }

.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ==========================================================================
   Cards & form controls (Airbnb radius + light borders)
   ========================================================================== */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
}

.input, .textarea, .select {
  width: 100%;
  height: 56px;
  padding: 16px 14px 0;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--fg);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.textarea { height: auto; min-height: 100px; padding: 14px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--fg);
  border-width: 2px;
  padding-left: 13px;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-dim); }

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}
.field { display: flex; flex-direction: column; }

/* ==========================================================================
   Chips & badges
   ========================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
}
.chip-active {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.badge-purple { background: var(--purple); color: #fff; }
.badge-pink { background: var(--pink); color: #fff; }
.badge-orange { background: var(--orange); color: #fff; }
.badge-soft { background: #fff; color: var(--fg); border: 1px solid var(--line-strong); }
.badge-stripe { background: var(--grad-stripe); color: #fff; }
/* Badge sobre a foto do card: nunca quebra em 2 linhas nem invade o botão de favoritar */
.badge-on-img { max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Lite-YouTube — capa leve + botão play; player só carrega no clique (inline).
   ========================================================================== */
.lyt { position: relative; cursor: pointer; overflow: hidden; background: #000; aspect-ratio: 16/9; display: block; width: 100%; height: 100%; }
.lyt > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .25s ease, transform .4s ease; }
.lyt:hover > img { opacity: 1; transform: scale(1.03); }
.lyt > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lyt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 72px; height: 50px; border-radius: 14px; background: rgba(0,0,0,0.55); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; backdrop-filter: blur(2px); }
.lyt:hover .lyt-play { background: #FF0000; transform: translate(-50%,-50%) scale(1.06); }
.lyt-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.lyt-label { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.55); padding: 5px 10px; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
/* Dentro de um card de imagem (aspect fixo), o poster preenche o card */
.ph-img > .lyt { position: absolute; inset: 0; aspect-ratio: auto; }
.lyt--v { aspect-ratio: 9/16; }

/* Modal de vídeo vertical (reel 9:16) — Shorts */
.vmodal { position: fixed; inset: 0; z-index: 2000; background: rgba(8,10,16,0.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.vmodal.open { display: flex; }
.vmodal-inner { position: relative; height: min(86vh, 760px); aspect-ratio: 9/16; max-width: 96vw; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.vmodal-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff; border: 0; font-size: 20px; cursor: pointer; z-index: 1; display: grid; place-items: center; }
.vmodal-close:hover { background: rgba(255,255,255,0.28); }

/* ==========================================================================
   Property image placeholder
   ========================================================================== */
.ph-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #EEF0FF 0%, #FFE5EC 50%, #FFEFE0 100%);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.ph-img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(99,91,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(255,142,60,0.18) 0%, transparent 55%);
}
.ph-img > .ph-tag {
  position: relative;
  z-index: 1;
  margin: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: rgba(255,255,255,0.92);
  padding: 5px 9px;
  border-radius: var(--r-xs);
}
.ph-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ph-img.has-img { background: var(--bg-elev-2); }
.ph-img.has-img::before { display: none; }

/* ==========================================================================
   Top nav — Airbnb keeps it clean: logo, search-pill, account
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo .logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--grad-stripe);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.nav-links {
  display: none;
  gap: 0;
  flex: 1;
  justify-content: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { background: var(--bg-elev-2); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  bottom: -4px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Airbnb-style "user" pill (avatar + menu icon) */
.user-pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 42px;
  padding: 5px 5px 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: box-shadow .15s ease;
}
.user-pill:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.user-pill .menu-ico { color: var(--fg-muted); }
.user-pill .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--fg);
  font-size: 14px;
  background: var(--bg-elev-2);
}
.footer .container { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .footer .container { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer h5 {
  font-size: 14px; font-weight: 600;
  color: var(--fg);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--fg-muted); }
.footer ul a:hover { color: var(--fg); text-decoration: underline; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .wa-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .35;
  animation: waPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .35; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (min-width: 768px) {
  .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.scroll-x {
  display: flex; gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* Stripe-flow background — only used in hero, very subtle */
.stripe-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.stripe-flow::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 80%; height: 140%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,212,255,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(99,91,255,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(255,92,138,0.18) 0%, transparent 55%);
  filter: blur(60px);
  transform: rotate(-8deg);
  opacity: .9;
}
.stripe-flow.subtle::before { opacity: .5; }
