/**
 * URBAN.A — Estilos da Landing Page de Imóvel
 * Carregado apenas quando body.urbana-lp está presente.
 * @package urbana-premium
 * @since   2.9.0
 */

/* ── Reset e base LP ──────────────────────────────────────────────────────── */
.urbana-lp { background: #fff; }

/* ── Header LP ────────────────────────────────────────────────────────────── */
.lp-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 200;
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 32px);
  max-width: 1200px;
  margin: 0 auto;
}
.lp-logo-img   { height: 28px; display: block; }
.lp-logo-text  { font-size: 18px; font-weight: 800; letter-spacing: 4px; color: #fff; line-height: 1; }
.lp-logo-text span { color: var(--gold); }
.lp-logo-sub   { font-size: 6px; letter-spacing: 3px; color: rgba(255,255,255,.4); text-transform: uppercase; margin-top: 2px; display: block; }
.lp-header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px; border-radius: var(--r);
  transition: border-color .2s;
}
.lp-header-phone:hover { border-color: var(--gold); color: var(--gold); }
.lp-phone-icon { color: var(--gold); }
.lp-header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.lp-header-phone sup { font-size: .75em; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  height: clamp(340px, 55vw, 520px);
  background: var(--ink) center/cover no-repeat;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.lp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(21,60,76,.88) 0%,
    rgba(21,60,76,.3)  55%,
    transparent        100%);
}
.lp-hero-price {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 4vw, 32px);
  text-align: right; z-index: 2;
}
.lp-hero-price-prev { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: line-through; margin-bottom: 2px; }
.lp-hero-price-val  { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; color: #fff; letter-spacing: -.5px; line-height: 1; }
.lp-hero-price-m2   { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }
.lp-hero-content {
  position: relative; z-index: 2;
  padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 32px);
  width: 100%;
}
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r); margin-bottom: 10px; margin-right: 6px;
}
.lp-hero-badge-reserved { background: rgba(255,255,255,.2); }
.lp-hero-tipo  { font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.lp-hero-title { font-size: clamp(20px, 3.5vw, 30px); font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 14px; }
.lp-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-stat  { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255,255,255,.85); }
.lp-hero-stat svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

/* ── Faixa de fotografias ─────────────────────────────────────────────────── */
.lp-gallery-strip {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 12px clamp(16px, 4vw, 32px); background: var(--sand);
  border-bottom: 1px solid var(--rule); scrollbar-width: none;
}
.lp-gallery-strip::-webkit-scrollbar { display: none; }
.lp-gallery-thumb {
  position: relative; flex-shrink: 0; width: 96px; height: 72px;
  border-radius: var(--r); overflow: hidden; scroll-snap-align: start;
  display: block;
}
.lp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-gallery-more {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: rgba(21,60,76,.72); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .5px; text-align: center; padding: 4px;
}

/* ── Vídeo (YouTube) ──────────────────────────────────────────────────────── */
.lp-video-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--r); overflow: hidden; margin-bottom: 20px; background: var(--sand);
}
.lp-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Corpo ────────────────────────────────────────────────────────────────── */
.lp-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  align-items: start;
}
.lp-content { padding: 28px 24px 28px 0; }
.lp-sidebar { padding: 28px 0 28px; }

/* ── URL pill ──────────────────────────────────────────────────────────────── */
.lp-url-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sand); border: 1px solid var(--rule);
  border-radius: 20px; padding: 4px 12px;
  font-size: 10px; color: var(--muted);
  margin-bottom: 16px;
}
.lp-url-pill svg { color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; }
.lp-url-label { color: var(--ink); font-weight: 500; }

/* ── Cert + ref ───────────────────────────────────────────────────────────── */
.lp-cert-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.lp-cert-label { font-size: 12px; color: var(--muted); }
.lp-cert-ref   { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

/* ── Section titles ───────────────────────────────────────────────────────── */
.lp-section-title {
  font-size: 8px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 0.5px solid var(--rule); margin-top: 22px;
  display: flex; align-items: center; gap: 8px;
}
.lp-section-title:first-of-type { margin-top: 0; }

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.lp-feat-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.lp-feat-item  { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 9px 12px; background: var(--sand); border-radius: var(--r); }
.lp-feat-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ── Mini ficha ───────────────────────────────────────────────────────────── */
.lp-mini-ficha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.lp-mf-item    { text-align: center; padding: 10px 6px; border: 1px solid var(--rule); border-radius: var(--r); }
.lp-mf-val     { font-size: 14px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; }
.lp-mf-lbl     { font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* ── Descrição ────────────────────────────────────────────────────────────── */
.lp-desc       { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 8px; }
.lp-read-more  { font-size: 12px; font-weight: 600; color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ── Agente strip ─────────────────────────────────────────────────────────── */
.lp-agent-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0; border-top: 1px solid var(--rule); margin-top: 20px;
}
.lp-agent-av   { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.lp-agent-name { font-size: 13px; font-weight: 600; }
.lp-agent-role { font-size: 10px; color: var(--muted); }
.lp-agent-tel-wrap { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lp-agent-tel  { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink); border: 1px solid var(--rule); padding: 7px 12px; border-radius: var(--r); text-decoration: none; transition: border-color .2s; white-space: nowrap; }
.lp-agent-tel:hover { border-color: var(--gold); color: var(--gold); }
.lp-agent-tel svg { color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.lp-agent-tel sup { font-size: .75em; }

/* ── Sidebar card ─────────────────────────────────────────────────────────── */
.lp-sid-card {
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 70px; /* abaixo do header fixo */
}
.lp-sid-price {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-sid-price-lbl  { font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.lp-sid-price-prev { font-size: 12px; color: rgba(255,255,255,.3); text-decoration: line-through; margin-bottom: 2px; }
.lp-sid-price-val  { font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.lp-sid-price-m2   { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 4px; }

.lp-sid-cta { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-sid-urgency {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gold);
  background: rgba(190,146,45,.12); border: 1px solid rgba(190,146,45,.25);
  padding: 7px 10px; border-radius: var(--r); margin-bottom: 12px;
}
.lp-btn-call {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px;
  background: transparent; color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r);
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.lp-btn-call:hover { border-color: var(--gold); color: var(--gold); }
.lp-btn-call svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.lp-btn-call sup { font-size: .75em; }

.lp-sid-form { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-form-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.lp-form-sub   { font-size: 10px; color: rgba(255,255,255,.35); margin-bottom: 12px; }

/* Campos do formulário dentro da sidebar escura */
.lp-sid-form .fg,
.lp-sid-form .lp-fg-row { margin-bottom: 8px; }
.lp-sid-form .lp-fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-sid-form input,
.lp-sid-form textarea,
.lp-form input,
.lp-form textarea {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 9px 11px;
  font-size: 12px; color: #fff; font-family: inherit;
}
.lp-sid-form input::placeholder,
.lp-sid-form textarea::placeholder,
.lp-form input::placeholder,
.lp-form textarea::placeholder { color: rgba(255,255,255,.28); }
.lp-sid-form textarea,
.lp-form textarea { height: 60px; resize: none; }
.lp-consent {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 10px; color: rgba(255,255,255,.3);
  margin: 8px 0 4px;
}
.lp-consent input { width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.lp-btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px; margin-top: 10px;
  background: var(--gold); color: #fff; border: none;
  border-radius: var(--r); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: opacity .15s;
}
.lp-btn-submit:hover { opacity: .9; }

.lp-sid-share {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.lp-sid-share-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px;
  background: transparent; border: none; border-right: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.45); font-size: 10px; cursor: pointer;
  text-decoration: none; transition: color .15s;
}
.lp-sid-share-btn:last-child { border-right: none; }
.lp-sid-share-btn:hover { color: rgba(255,255,255,.8); }
.lp-sid-share-btn svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ── Footer LP ────────────────────────────────────────────────────────────── */
.lp-footer { background: var(--sand); border-top: 1px solid var(--rule); }
.lp-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 32px);
  max-width: 1200px; margin: 0 auto;
  font-size: 10px; color: var(--muted);
  flex-wrap: wrap; gap: 8px;
}
.lp-footer-links a { color: var(--muted); text-decoration: underline; }
.lp-footer-call-cost-legend { flex-basis: 100%; margin-top: 2px; }
.lp-footer-call-cost-legend .custo-chamada { margin: 0; }
.lp-footer-call-cost-legend .custo-chamada__legend,
.lp-footer-call-cost-legend .custo-chamada-fallback { display: block; font-size: 9.5px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ── Formulário LP (quando urbana_render_lead_form retorna HTML externo) ── */
.lp-form { display: flex; flex-direction: column; gap: 8px; }
.lp-form .lp-fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── Responsivo ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-body {
    grid-template-columns: 1fr;
  }
  .lp-content { padding: 20px 0; }
  .lp-sidebar { padding: 0 0 20px; }
  .lp-sid-card { border-radius: 0; position: static; }
  .lp-mini-ficha { grid-template-columns: repeat(2, 1fr); }
  .lp-hero { height: clamp(300px, 70vw, 420px); }
}
