/* =========================================================
   TIMOB Site Template 05 — Portal Moderno (Light)
   Layout totalmente novo: hero split, cards horizontais,
   sem topbar, filtros em barra horizontal, footer limpo.
   CSS próprio — não herda do Template 01.
   ========================================================= */

/* ── Variáveis ───────────────────────────────────────────── */
:root {
  --brand-primary:      #0D5E55;
  --brand-primary-dark: #083F39;
  --brand-primary-soft: #E9F4F2;
  --brand-accent:       #C99A42;
  --brand-accent-dark:  #A97B23;
  --ink:    #17211F;
  --muted:  #66736F;
  --line:   #E2E8E6;
  --surface:        #FFFFFF;
  --surface-soft:   #F5F8F7;
  --surface-strong: #EDF3F1;
  --dark:   #071D1A;
  --danger: #B94242;
  --success:#128767;
  --shadow-sm: 0 2px 12px rgba(7,29,26,.07);
  --shadow-md: 0 8px 30px rgba(7,29,26,.12);
  --shadow-lg: 0 20px 60px rgba(7,29,26,.18);
  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm:  6px;
  --container: 1200px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Reset / base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.t5-section { padding: 96px 0; }
.t5-section-tinted { background: var(--surface-soft); }

/* ── Tipografia ──────────────────────────────────────────── */
.t5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.t5-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}
h1.t5-h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 900; letter-spacing: -.055em; line-height: 1.01; margin: 0 0 18px; }
h2.t5-h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 900; letter-spacing: -.045em; line-height: 1.06; margin: 0; }
h3.t5-h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; letter-spacing: -.03em; margin: 0; }
.t5-lead { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 12px 0 0; max-width: 600px; }
.t5-kicker { color: var(--brand-accent); font-weight: 900; }

/* ── Botões ──────────────────────────────────────────────── */
.t5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; font-size: 15px;
  background: var(--brand-primary); color: #fff;
  box-shadow: 0 8px 22px rgba(13,94,85,.22);
  transition: .2s ease; cursor: pointer;
}
.t5-btn:hover { background: var(--brand-primary-dark); transform: translateY(-1px); }
.t5-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--brand-primary); min-height: 50px; padding: 0 26px;
  border-radius: 999px; font-weight: 800; font-size: 15px;
  color: var(--brand-primary); background: transparent;
  transition: .2s ease; cursor: pointer;
}
.t5-btn-outline:hover { background: var(--brand-primary-soft); }
.t5-btn-sm {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 13px; font-weight: 800;
  background: var(--brand-primary); color: #fff;
  transition: .2s; cursor: pointer;
}
.t5-btn-sm:hover { background: var(--brand-primary-dark); }
.t5-link-btn {
  border: 0; background: none; padding: 0;
  color: var(--brand-primary); font-weight: 800; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}

/* ── Seção head ──────────────────────────────────────────── */
.t5-section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}

/* ── Header (sem topbar) ─────────────────────────────────── */
.t5-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.t5-header-inner {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.t5-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.t5-logo img { max-height: 48px; width: auto; }
.t5-logo-fallback {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-primary); color: #fff; font-weight: 900;
}
.t5-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.t5-nav a {
  padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 15px; color: var(--ink); transition: .16s;
}
.t5-nav a:hover, .t5-nav a.active { color: var(--brand-primary); background: var(--brand-primary-soft); }
.t5-header-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.t5-mobile-toggle {
  display: none; width: 40px; height: 40px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.t5-mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.t5-mobile-menu.open { display: block; }
.t5-mobile-menu a {
  display: block; padding: 14px 24px;
  font-weight: 700; border-bottom: 1px solid var(--line); color: var(--ink);
}
.t5-mobile-menu a:last-child { border-bottom: 0; }
.t5-mobile-menu a.active { color: var(--brand-primary); background: var(--brand-primary-soft); }

/* ── Hero: split 55 / 45 ─────────────────────────────────── */
.t5-hero { background: var(--surface-soft); overflow: hidden; position: relative; }
.t5-hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  min-height: 610px; align-items: center;
}
.t5-hero-left { padding: 80px 24px 80px 0; position: relative; z-index: 2; }
.t5-hero-right {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 54vw; min-height: 610px; z-index: 1; margin-right: 0;
}
.t5-hero-right::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: min(42%, 380px); z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--surface-soft) 0%, rgba(245,248,247,.78) 48%, rgba(245,248,247,0) 100%);
}
.t5-hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center right; display: block; }
.t5-hero-float {
  position: absolute; left: -28px; bottom: 64px;
  background: #fff; border-radius: var(--r-xl);
  padding: 18px 24px; box-shadow: var(--shadow-lg);
  min-width: 180px; border: 1px solid var(--line);
}
.t5-hero-float strong {
  display: block; font-size: 30px; font-weight: 950;
  color: var(--brand-primary); letter-spacing: -.05em; line-height: 1;
}
.t5-hero-float span { color: var(--muted); font-size: 13px; font-weight: 700; }

/* Campo de busca dentro do hero */
.t5-search {
  width: min(800px, calc(100vw - 48px));
  margin-top: 30px; background: #fff;
  border-radius: var(--r-xl); padding: 20px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.t5-search-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.t5-search-tab {
  border: 1px solid var(--line); background: var(--surface-soft);
  color: var(--ink); border-radius: 999px;
  padding: 9px 18px; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; transition: .15s;
}
.t5-search-tab.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.t5-search-grid {
  display: grid; grid-template-columns: minmax(230px,1.45fr) minmax(130px,.75fr) minmax(170px,.85fr) 56px;
  gap: 10px; align-items: end;
}
.t5-search-grid .t5-btn[data-search-submit] {
  width: 56px; min-width: 56px; padding: 0; border-radius: 18px;
  font-size: 0; gap: 0;
}
.t5-search-grid .t5-btn[data-search-submit] .site-icon {
  font-size: 18px;
}
.t5-field label {
  display: block; font-size: 11px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.t5-field input, .t5-field select, .t5-field textarea {
  width: 100%; height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-soft); color: var(--ink);
  padding: 0 14px; outline: none; transition: .15s;
}
.t5-field textarea { min-height: 120px; resize: vertical; padding-top: 12px; height: auto; }
.t5-field input:focus, .t5-field select:focus, .t5-field textarea:focus {
  border-color: var(--brand-primary); background: #fff;
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}
.t5-search-code-panel {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
}
.t5-search-grid[hidden],
.t5-search-code-panel[hidden],
.t5-advanced[hidden] {
  display: none !important;
}
.t5-search-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 13px; color: var(--muted);
}
.t5-advanced {
  display: none; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.t5-advanced.open { display: grid; }

/* ── Barra de stats (fundo primário) ─────────────────────── */
.t5-stats-bar { background: var(--brand-primary); color: #fff; }
.t5-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  min-height: 96px; align-items: center;
}
.t5-stat-item {
  padding: 22px 28px;
  border-right: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: 4px;
}
.t5-stat-item:last-child { border-right: 0; }
.t5-stat-number { font-size: 30px; font-weight: 950; letter-spacing: -.05em; line-height: 1; }
.t5-stat-label  { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.74); }

/* ── Cards horizontais (destaques + listagem) ────────────── */
.t5-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.t5-card {
  display: grid; grid-template-columns: 230px 1fr;
  min-height: 244px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .22s ease;
  text-decoration: none; color: inherit; position: relative;
}
.t5-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.t5-card-media { position: relative; min-height: 244px; overflow: hidden; background: var(--surface-strong); }
.t5-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.t5-card:hover .t5-card-media img { transform: scale(1.04); }
.t5-card-tags {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 6px; z-index: 1;
}
.t5-tag {
  display: inline-flex; align-items: center;
  min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
  background: var(--brand-primary); color: #fff;
}
.t5-tag.accent { background: var(--brand-accent); color: var(--dark); }
.t5-card-body { padding: 20px 22px; display: flex; flex-direction: column; }
.t5-card-code {
  font-size: 11px; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-primary); margin-bottom: 5px;
}
.t5-card-title {
  font-size: 16px; font-weight: 800; line-height: 1.25;
  letter-spacing: -.02em; margin: 0 0 6px; color: var(--ink);
}
.t5-card-location {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; margin-bottom: 10px;
}
.t5-card-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin-bottom: auto;
}
.t5-card-feature { font-size: 11px; color: var(--muted); font-weight: 800; display: flex; flex-direction: column; gap: 3px; }
.t5-card-feature strong { font-size: 14px; color: var(--ink); }
.t5-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px;
}
.t5-card-price { font-size: 19px; font-weight: 950; color: var(--brand-primary); letter-spacing: -.04em; }
.t5-card-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0; }

/* ── Bairros ─────────────────────────────────────────────── */
.t5-nh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.t5-nh-card {
  position: relative; min-height: 210px; border-radius: var(--r-xl);
  overflow: hidden; color: #fff; box-shadow: var(--shadow-sm);
  display: block; text-decoration: none;
}
.t5-nh-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.t5-nh-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,29,26,.80), rgba(7,29,26,.08)); }
.t5-nh-content { position: absolute; inset: auto 16px 16px; z-index: 1; }
.t5-nh-content h3 { margin: 0 0 3px; font-size: 17px; font-weight: 900; }
.t5-nh-content span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.80); }

/* ── Sobre ───────────────────────────────────────────────── */
.t5-about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.t5-about-image { position: relative; }
.t5-about-image img {
  width: 100%; border-radius: 22px; min-height: 480px;
  object-fit: cover; box-shadow: var(--shadow-md);
}
.t5-about-stamp {
  position: absolute; right: -20px; bottom: 40px;
  width: 156px; height: 156px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  border: 8px solid #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; text-align: center; font-weight: 900;
}
.t5-about-stamp strong { display: block; font-size: 34px; line-height: 1; }
.t5-check-list {
  list-style: none; padding: 0; margin: 22px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px;
}
.t5-check-list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-weight: 700; color: var(--ink); font-size: 14px;
}
.t5-check-list li::before {
  content: "✓"; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 11px; font-weight: 950;
}

/* ── CTA com fundo de imagem ─────────────────────────────── */
.t5-cta { position: relative; min-height: 440px; display: grid; align-items: center; overflow: hidden; }
.t5-cta-bg { position: absolute; inset: 0; }
.t5-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.t5-cta::after { content: ""; position: absolute; inset: 0; background: rgba(7,29,26,.70); }
.t5-cta-inner { position: relative; z-index: 1; padding: 80px 0; max-width: 720px; color: #fff; }
.t5-cta-inner h2 { font-size: clamp(28px, 3.8vw, 48px); font-weight: 900; letter-spacing: -.045em; margin: 0 0 14px; color: #fff; }
.t5-cta-inner p { color: rgba(255,255,255,.78); font-size: 17px; margin: 0 0 30px; }
.t5-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.t5-footer { background: var(--dark); color: #fff; padding: 64px 0 0; }
.t5-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 36px; }
.t5-footer-logo img { max-height: 52px; width: auto; margin-bottom: 14px; }
.t5-footer-logo p { color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.65; margin: 0; }
.t5-footer h4 { margin: 0 0 14px; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.50); }
.t5-footer-links { display: grid; gap: 9px; }
.t5-footer-links a { color: rgba(255,255,255,.68); font-weight: 700; font-size: 14px; transition: .15s; }
.t5-footer-links a:hover { color: #fff; }
.t5-footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.t5-footer-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.88); font-size: 13px; transition: .16s;
}
.t5-footer-socials a:hover { background: var(--brand-primary); }
.t5-footer-bottom {
  margin-top: 48px; padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px;
  color: rgba(255,255,255,.44); font-size: 13px;
}

/* ── WhatsApp flutuante ──────────────────────────────────── */
.t5-whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(.96);
  transition: opacity .28s ease, transform .28s ease;
}
.t5-whatsapp.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.t5-whatsapp:hover { transform: translateY(-2px) scale(1.04) !important; }

/* ── Hero de páginas internas ────────────────────────────── */
.t5-page-hero {
  position: relative; min-height: 220px; background: var(--dark);
  color: #fff; display: grid; align-items: center; overflow: hidden;
}
.t5-page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.t5-page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(7,29,26,.64); }
.t5-page-hero-content { position: relative; z-index: 1; padding: 48px 0; }
.t5-detail-hero .container { width: min(1640px, calc(100% - 32px)); }
.t5-breadcrumb { display: flex; gap: 8px; color: rgba(255,255,255,.70); font-weight: 700; font-size: 13px; margin-bottom: 10px; }

/* ── Listagem de imóveis (página /imoveis) ───────────────── */
.t5-filter-bar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px 0; position: sticky; top: 76px; z-index: 40;
}
.t5-mobile-filter-toggle { display: none; }
.t5-filter-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.t5-filter-select {
  width: 100%; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 16px; font-weight: 700; font-size: 13px; color: var(--ink);
  background: #fff; outline: none; cursor: pointer; transition: .15s;
}
.t5-filter-select:focus { border-color: var(--brand-primary); }
.t5-filter-input {
  width: 100%; min-width: 0; height: 44px;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 16px; font-size: 13px; color: var(--ink);
  outline: none; transition: .15s;
}
.t5-filter-query { grid-column: span 2; }
.t5-filter-input:focus { border-color: var(--brand-primary); }
.t5-filter-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.t5-filter-inner .t5-filter-end {
  grid-column: span 2;
  width: 100%;
  justify-content: flex-end;
  margin-left: 0;
}
.t5-result-count { color: var(--muted); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.t5-view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.t5-view-toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.t5-view-toggle button.active { background: var(--brand-primary); color: #fff; }
.t5-listing-section { padding: 36px 0 64px; }
.t5-listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.t5-listing-list { display: grid; gap: 12px; }
.t5-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.t5-active-filters > span {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 12px; font-weight: 800;
}
.t5-sort-select {
  height: 38px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; outline: none; cursor: pointer;
}
.t5-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.t5-pagination a, .t5-pagination span {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 800; font-size: 14px; color: var(--ink); transition: .15s;
}
.t5-pagination a.active, .t5-pagination a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.t5-pagination span.disabled { color: var(--muted); cursor: default; }

/* ── Detalhe do imóvel ───────────────────────────────────── */
.t5-detail-section { padding: 46px 0 64px; }
.t5-detail-section .container {
  width: min(1640px, calc(100% - 32px));
}
.t5-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; align-items: start; }
.t5-detail-section .container,
.t5-detail-grid,
.t5-detail-grid > *,
.t5-content-card,
.t5-detail-intro,
.t5-sidebar-card { min-width: 0; max-width: 100%; }
.t5-detail-intro {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 26px; margin-bottom: 22px;
  display: grid; grid-template-columns: 1fr 270px; gap: 22px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.t5-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.t5-detail-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 12px; border-radius: 999px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.t5-detail-title { margin: 0; font-size: clamp(24px, 3vw, 40px); font-weight: 900; letter-spacing: -.045em; line-height: 1.06; color: var(--ink); }
.t5-detail-intro p,
.t5-detail-meta span,
.t5-content-card,
.t5-sidebar-card {
  overflow-wrap: anywhere;
}
.t5-detail-price-card {
  background: var(--brand-primary); border-radius: var(--r-lg);
  padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 16px 40px rgba(13,94,85,.20);
}
.t5-price-label { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.70); }
.t5-price-value { font-size: 28px; font-weight: 950; letter-spacing: -.04em; color: #fff; line-height: 1; overflow-wrap: anywhere; }
.t5-price-caption { font-size: 12px; color: rgba(255,255,255,.68); font-weight: 700; }
.t5-detail-price-card .t5-btn,
.t5-detail-price-card .t5-btn-outline {
  width: 100%;
  max-width: 100%;
  padding-inline: 14px;
  white-space: normal;
  text-align: center;
}
.t5-detail-gallery {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 12px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
  display: grid; grid-template-columns: 1fr 220px; gap: 12px;
  overflow: hidden;
}
.t5-gallery-main {
  width: 100%; min-width: 0; max-width: 100%;
  height: 460px; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-strong); position: relative; cursor: zoom-in;
  display: block;
}
.t5-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t5-gallery-count {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(7,29,26,.75); color: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 850;
  display: inline-flex; align-items: center; gap: 6px;
}
.t5-gallery-thumbs-shell {
  position: relative; height: 460px; padding: 26px 0;
  min-width: 0; max-width: 100%;
  display: block;
}
.t5-gallery-thumbs {
  min-width: 0; max-width: 100%;
  height: 100%; display: grid; gap: 10px; align-content: start;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: y proximity;
  padding: 2px 4px;
}
.t5-gallery-thumbs::-webkit-scrollbar { display: none; }
.t5-gallery-thumb {
  height: 104px; min-height: 104px; border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-strong);
  cursor: pointer; border: 2.5px solid transparent; transition: .16s; scroll-snap-align: start;
}
.t5-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t5-gallery-thumb.active { border-color: var(--brand-primary); }
.t5-gallery-nav {
  position: absolute; left: 50%; z-index: 4;
  width: 30px !important; height: 30px !important; border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.85) !important;
  color: var(--brand-primary) !important;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(7,29,26,.14); opacity: .80;
  transition: opacity .18s, background .18s;
}
.t5-gallery-nav-prev { top: 0; transform: translateX(-50%); }
.t5-gallery-nav-next { bottom: 0; transform: translateX(-50%); }
.t5-gallery-nav:hover { opacity: 1; background: #fff !important; }
.t5-content-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.t5-content-card h3 { margin: 0 0 16px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
.t5-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.t5-info-box {
  background: var(--surface-soft); border-radius: var(--r-md);
  padding: 14px; display: flex; flex-direction: column; gap: 5px;
}
.t5-info-box span { font-size: 11px; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.t5-info-box strong { font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.t5-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; list-style: none; padding: 0; margin: 0; }
.t5-feature-list li {
  background: var(--surface-soft); border-radius: var(--r-md);
  padding: 10px 14px; font-weight: 750; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.t5-feature-list li::before {
  content: "✓"; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 10px; font-weight: 950;
}
.t5-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.t5-related-grid .t5-card {
  grid-template-columns: 1fr;
  min-height: 0;
}
.t5-related-grid .t5-card-media {
  height: 230px;
  min-height: 230px;
}
.t5-related-grid .t5-card-title {
  font-size: 15px;
}
.t5-sidebar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow-md); position: sticky; top: 112px;
}
.t5-agent { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.t5-agent-icon {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-primary-soft); color: var(--brand-primary); display: grid; place-items: center;
}
.t5-contact-form-inner { display: grid; gap: 10px; }
.t5-prop-description { color: var(--ink); line-height: 1.75; font-size: 15px; }
.t5-prop-description > :first-child { margin-top: 0; }
.t5-prop-description > :last-child { margin-bottom: 0; }
.t5-approx-map {
  display: block; margin-top: 20px;
  border: 0; border-radius: var(--r-lg);
  padding: 0; background: transparent;
}
.t5-approx-map-frame { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: var(--surface-strong); border: 1px solid var(--line); }
.t5-approx-map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.t5-region-map-frame { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: var(--surface-strong); border: 1px solid var(--line); }
.t5-region-map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ── Contato ─────────────────────────────────────────────── */
.t5-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: stretch; }
.t5-contact-info {
  position: relative; overflow: hidden;
  background: var(--brand-primary); color: #fff; border-radius: var(--r-xl); padding: 30px;
}
.t5-contact-info::after {
  content: ""; position: absolute; right: -96px; bottom: -88px;
  width: 430px; height: 430px; opacity: .12; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.t5-contact-info > * { position: relative; z-index: 1; }
.t5-contact-info h2 { margin: 0 0 22px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.t5-contact-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); }
.t5-ci-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 1; margin: 0;
}
.t5-ci-icon .site-icon { width: 24px; height: 24px; display: block; stroke-width: 2.2; }
.t5-contact-item div > span { font-size: 11px; color: rgba(255,255,255,.68); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 2px; }
.t5-contact-item strong { font-size: 15px; display: block; }
.t5-contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-sm); }
.t5-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.t5-form-grid .t5-full { grid-column: 1 / -1; }
.t5-map-placeholder {
  height: 300px; background: var(--surface-strong); border-radius: var(--r-xl);
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--muted); font-weight: 800; margin-top: 22px; text-align: center; padding: 24px; gap: 10px;
}

/* ── Lightbox ────────────────────────────────────────────── */
.t5-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,16,15,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.t5-lightbox.open { display: flex; }
.t5-lightbox-content { position: relative; display: inline-flex; max-height: 86vh; max-width: 92vw; }
.t5-lightbox-content img { max-height: 86vh; max-width: 92vw; border-radius: 14px; box-shadow: var(--shadow-lg); display: block; }
.t5-lightbox-content .t5-photo-watermark { right: 24px; bottom: 24px; width: 156px; height: 74px; opacity: .42; z-index: 2; }
.t5-lb-btn { position: absolute; border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.10); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.t5-lb-close { right: 24px; top: 22px; }
.t5-lb-prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.t5-lb-next  { right: 22px; top: 50%; transform: translateY(-50%); }

/* ── Reveal / animação ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Ícones ──────────────────────────────────────────────── */
.site-icon {
  width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.site-icons-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-icon path, .site-icon circle, .site-icon rect, .site-icon line, .site-icon polyline, .site-icon polygon {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.site-icon [href="#icon-whatsapp"],
.site-icon [href="#icon-facebook"],
.site-icon [href="#icon-instagram"],
.site-icon [href="#icon-youtube"] { fill: currentColor; stroke: none; }

/* ── Empty state ─────────────────────────────────────────── */
.t5-empty { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; text-align: center; color: var(--muted); }
.t5-empty strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 8px; }

/* ── Inline PHP styles ───────────────────────────────────── */
.t5-photo-watermark { position: absolute; background-image: var(--site-watermark-logo); background-repeat: no-repeat; background-position: center; background-size: contain; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.t5-card-media .t5-photo-watermark { right: 10px; bottom: 10px; width: 64px; height: 30px; opacity: .34; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1248px) and (min-width: 1101px) {
  .t5-hero-right { width: 55vw; margin-right: 0; }
}
@media (max-width: 1100px) {
  .t5-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .t5-hero-left { padding: 56px 0 0; }
  .t5-hero-right { position: relative; inset: auto; width: 100%; min-height: 380px; margin-right: 0; }
  .t5-hero-right::before { width: 100%; height: 140px; inset: 0 0 auto; background: linear-gradient(180deg, var(--surface-soft), transparent); }
  .t5-search { width: 100%; }
  .t5-hero-float { left: 16px; }
  .t5-detail-intro { grid-template-columns: 1fr; }
  .t5-detail-grid { grid-template-columns: 1fr; }
  .t5-sidebar-card { position: static; }
  .t5-detail-gallery { grid-template-columns: 1fr; }
  .t5-gallery-thumbs-shell { width: 100%; height: auto; padding: 0 38px; margin-top: 10px; overflow: hidden; }
  .t5-gallery-thumbs { width: 100%; display: flex !important; overflow-x: auto; overflow-y: hidden; height: auto; max-height: none; scroll-snap-type: x proximity; gap: 10px; padding: 2px 0; }
  .t5-gallery-thumb { flex: 0 0 110px; width: 110px; height: 76px !important; min-height: 76px; }
  .t5-gallery-nav { top: 50% !important; bottom: auto !important; transform: translateY(-50%) translateX(0) !important; border-radius: 50% !important; }
  .t5-gallery-nav-prev { left: 0 !important; transform: translateY(-50%) !important; }
  .t5-gallery-nav-next { left: auto !important; right: 0 !important; transform: translateY(-50%) !important; }
  .t5-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .t5-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .t5-stat-item:nth-child(2) { border-right: 0; }
  .t5-cards-grid, .t5-listing-grid { grid-template-columns: 1fr; }
  .t5-nh-grid { grid-template-columns: repeat(2, 1fr); }
  .t5-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .t5-about-stamp { right: 10px; bottom: 20px; width: 130px; height: 130px; }
  .t5-about-stamp strong { font-size: 28px; }
  .t5-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .t5-section-head { display: block; }
  .t5-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .t5-nav, .t5-header-end .t5-btn { display: none; }
  .t5-mobile-toggle { display: inline-flex; }
  .t5-search-grid { grid-template-columns: 1fr; }
  .t5-search-grid .t5-btn { width: 100%; }
  .t5-search-code-panel { grid-template-columns: 1fr; }
  .t5-advanced { grid-template-columns: repeat(2, 1fr); }
  .t5-card { grid-template-columns: 1fr; min-height: 0; }
  .t5-card-media { height: 210px; min-height: 210px; }
  .t5-related-grid { grid-template-columns: 1fr; }
  .t5-nh-grid { grid-template-columns: 1fr 1fr; }
  .t5-check-list { grid-template-columns: 1fr; }
  .t5-footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .t5-footer-bottom { flex-direction: column; }
  .t5-info-grid { grid-template-columns: repeat(2, 1fr); }
  .t5-form-grid { grid-template-columns: 1fr; }
  .t5-gallery-main { height: 300px; }
  .t5-gallery-thumb { flex-basis: 90px !important; width: 90px !important; height: 62px !important; min-height: 62px !important; }
  .t5-filter-bar { padding: 10px 0; }
  .t5-mobile-filter-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 42px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; color: var(--brand-primary);
    font-size: 13px; font-weight: 900; cursor: pointer;
  }
  .t5-filter-inner {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-top: 10px;
  }
  .t5-filter-inner.open { display: grid; }
  .t5-filter-query,
  .t5-filter-inner .t5-filter-end { grid-column: 1 / -1; }
  .t5-filter-select,
  .t5-filter-input { height: 40px; }
  .t5-filter-inner .t5-filter-end { justify-content: space-between; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, var(--container)); }
  .t5-section { padding: 64px 0; }
  .t5-hero-left { padding: 40px 0 0; }
  .t5-search { padding: 16px; }
  .t5-cta-inner { padding: 64px 0; }
  .t5-detail-hero .container { width: min(100% - 28px, var(--container)); }
  .t5-detail-section { padding: 32px 0 48px; }
  .t5-detail-section .container { width: min(100% - 28px, var(--container)); }
  .t5-detail-gallery { padding: 10px; border-radius: 18px; }
  .t5-gallery-main { height: min(300px, 62vw); }
  .t5-gallery-thumbs-shell { padding: 0 34px; }
  .t5-detail-intro,
  .t5-content-card,
  .t5-sidebar-card { padding: 18px; border-radius: 18px; }
  .t5-detail-price-card { padding: 18px; }
  .t5-price-value { font-size: 24px; }
  .t5-detail-title { font-size: 22px; }
  .t5-info-grid { grid-template-columns: 1fr; }
  .t5-feature-list { grid-template-columns: 1fr; }
  .t5-lightbox { padding: 14px; }
  .t5-lightbox-content .t5-photo-watermark { right: 14px; bottom: 14px; width: 104px; height: 50px; }
}

/* ── Hero mobile: imagem full-width, sem espaco cinza ──
   FIX: height: 100% na imagem exige height explicito no pai.
   min-height nao basta — usamos height fixo + negative margin. */
@media (max-width: 1100px) {
  .t5-hero-right {
    /* height explicito para height:100% da imagem funcionar */
    height: 260px;
    min-height: unset;
    /* Quebra o padding do container (24px cada lado) */
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
  }
  .t5-hero-right img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 480px) {
  /* container usa 16px de padding neste breakpoint */
  .t5-hero-right {
    height: 220px;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }
}

/* ── Search tabs: nunca quebra linha no mobile (padrão do template-001) ── */
@media (max-width: 1100px) {
  .t5-search-tabs {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .t5-search-tab {
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .t5-search-tabs { gap: 6px; }
  .t5-search-tab {
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
  }
  /* Esconde ícone nos tabs mais estreitos se necessário */
  .t5-search-tab .site-icon { width: .9em; height: .9em; }
}
