/* ============================================================
   JUDICIALE REDESIGN — 2026-05-19
   Paleta C aprovada: Navy #0D2452 · Navy-dark #00143C · Gold #C9A84C · Off-white #F8F5EF
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy:        #0D2452;
  --navy-dark:   #00143C;
  --gold:        #C9A84C;
  --bg-light:    #F8F5EF;
  --text-main:   #1a1a1a;
  --text-muted:  #666;
  --border:      #e0d8cc;
  --radius-card: 10px;
  --radius-btn:  5px;
  --radius-tag:  3px;
  --font-title:  'Montserrat', sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* ---------- Base ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-body); }

/* ---------- NAVBAR ---------- */
.jud-navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.jud-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

/* Logo */
.jud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.jud-logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
/* Fallback text logo (footer, etc.) */
.jud-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jud-logo-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}
/* Sidebar filter links (legacy — kept for compatibility) */
.jud-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-tag);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.jud-filter-link:hover { background: var(--border); color: var(--navy); }
.jud-filter-link.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.jud-filter-count {
  font-size: 11px;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.jud-filter-link.active .jud-filter-count {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
}

/* Scrollable filter box (checkbox/radio approach) */
.jud-filter-box {
  max-height: 148px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 6px 10px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.jud-filter-box::-webkit-scrollbar { width: 4px; }
.jud-filter-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.jud-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-main);
  padding: 4px 2px;
  cursor: pointer;
  width: 100%;
  border-radius: 3px;
  transition: background .1s;
}
.jud-check-label:hover { background: var(--bg-light); }
.jud-check-label input[type="radio"],
.jud-check-label input[type="checkbox"] {
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
  width: 14px;
  height: 14px;
}
.jud-check-label .jud-filter-count { margin-left: auto; }
/* Safe Browsing badge in footer */
.jud-safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  padding: 2px 7px 2px 5px;
  transition: border-color .2s;
}
.jud-safe-badge:hover { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.75); }
.jud-safe-badge img { width: 14px; height: 14px; }

/* Nav links */
.jud-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex: 1;
}
.jud-nav-links li a {
  display: block;
  padding: 0 14px;
  height: 60px;
  line-height: 60px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.jud-nav-links li a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.jud-nav-links li a.jud-nav-active {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* Nav right */
.jud-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.jud-search {
  position: relative;
  display: flex;
  align-items: center;
}
.jud-search input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 34px 7px 12px;
  width: 180px;
  outline: none;
  transition: background .2s, border-color .2s;
}
.jud-search input::placeholder { color: rgba(255,255,255,.5); }
.jud-search input:focus {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}
.jud-search button {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.jud-nav-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
}
.jud-navbar .jud-btn-ghost {
  padding: 7px 14px;
  border: 1.5px solid rgba(255,255,255,.85) !important;
  border-radius: var(--radius-btn);
  color: #fff !important;
  background: rgba(255,255,255,.12);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.jud-navbar .jud-btn-ghost:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,.22);
  color: #fff !important;
}
.jud-btn-primary {
  padding: 7px 16px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.jud-btn-primary:hover { opacity: .88; }

/* Responsive: hide nav links on small screens */
@media (max-width: 900px) {
  .jud-nav-links { display: none; }
  .jud-search input { width: 130px; }
}
@media (max-width: 600px) {
  .jud-search { display: none; }
  .jud-nav-divider { display: none; }
  .jud-btn-ghost { display: none; }
}

/* ---------- HAMBURGER ---------- */
.jud-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  margin-left: 2px;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}
/* Extends click area 36px to the left of the icon */
.jud-hamburger::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: -36px;
}
@media (max-width: 900px) {
  .jud-nav-links { display: none; }
  .jud-hamburger { display: flex; align-items: center; justify-content: center; }
  /* Reduz padding/gap do inner para caber tudo sem overflow */
  .jud-nav-inner { padding: 0 10px !important; gap: 10px !important; }
  .jud-logo-img { height: 36px; max-height: 36px; }
  /* Mantém auth buttons visíveis no mobile, esconde só busca e divisor */
  .jud-nav-right { gap: 5px; }
  .jud-search { display: none !important; }
  .jud-nav-divider { display: none !important; }
  .jud-nav-right .jud-btn-ghost { font-size: 11px !important; padding: 5px 8px !important; }
  .jud-nav-right .jud-btn-primary { font-size: 11px !important; padding: 5px 8px !important; }
}
/* Em telas muito pequenas esconde auth buttons do topo (acessíveis pelo menu mobile) */
@media (max-width: 400px) {
  .jud-nav-right .jud-btn-ghost { display: none !important; }
  .jud-nav-right .jud-btn-primary { display: none !important; }
}

/* ---------- MOBILE MENU ---------- */
.jud-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  z-index: 198;
  flex-direction: column;
  padding: 6px 0 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.jud-mobile-menu.open { display: flex; }
.jud-mobile-menu a {
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,.82) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .15s;
}
.jud-mobile-menu a:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.jud-mobile-menu a.jud-nav-active { color: var(--gold) !important; }
.jud-mobile-menu .jud-mob-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 8px 0;
}
.jud-mobile-menu .jud-mob-actions {
  display: flex;
  gap: 10px;
  padding: 12px 24px 0;
  flex-wrap: wrap;
}
.jud-mobile-menu .jud-mob-actions a {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 700;
}
.jud-mob-btn-ghost {
  background: rgba(255,255,255,.12) !important;
  border: 1.5px solid rgba(255,255,255,.5) !important;
  color: #fff !important;
}
.jud-mob-btn-primary {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
}

/* ---------- BACK TO TOP ---------- */
#jud-back-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9996;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
  padding: 0;
}
#jud-back-top.visible { display: flex; }
#jud-back-top:hover { background: var(--navy-dark); transform: translateY(-3px); }

/* ---------- LOTE PAGE ---------- */
.jud-lote-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.jud-lote-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
  margin: 16px 0 10px;
  line-height: 1.3;
}
.jud-lote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.jud-lote-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.jud-lote-badge.naval { background: var(--navy); color: #fff; }
.jud-lote-badge.muted { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.jud-lote-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.jud-lote-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.jud-lote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) { .jud-lote-grid { grid-template-columns: 1fr; } }
.jud-lote-info-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.jud-lote-info-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 14px;
}
.jud-lote-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 12px;
}
.jud-lote-info-row:last-child { border-bottom: none; }
.jud-lote-info-label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.jud-lote-info-val { color: var(--text-main); font-weight: 600; text-align: right; }
.jud-lote-price {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
}
/* Cronômetro */
.jud-lote-cron {
  background: var(--navy-dark);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 18px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 0;
}
.jud-lote-cron-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.jud-lote-cron-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}
.jud-lote-cron-unit { text-align: center; min-width: 44px; }
.jud-lote-cron-num {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.jud-lote-cron-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}
.jud-lote-cron-sep {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}
/* Lance atual */
.jud-lance-atual {
  text-align: center;
  padding: 14px 16px;
  border: 2px dashed var(--gold);
  border-top: none;
  margin-bottom: 14px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: #fff;
}
.jud-lance-atual-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.jud-lance-atual-val {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  display: block;
}
/* Lance form */
.jud-lance-suggestions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
@media (max-width: 480px) { .jud-lance-suggestions { grid-template-columns: repeat(2, 1fr); } }
.jud-lance-chip {
  display: block;
  padding: 8px 4px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--navy);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.jud-lance-chip:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.jud-btn-lance {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  text-align: center;
  letter-spacing: .5px;
}
.jud-btn-lance:hover { background: var(--navy-dark); }
/* Lote tabs */
.jud-lote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 32px 0 0;
  border-bottom: none;
}
.jud-lote-tab {
  display: inline-block;
  padding: 9px 16px;
  background: #f0f0f0;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn) var(--radius-btn) 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, color .15s;
  margin-bottom: -1px;
}
.jud-lote-tab:hover { background: #e8e8e8; color: var(--navy) !important; }
.jud-lote-tab.active { background: #fff; color: var(--navy) !important; border-bottom-color: #fff; }
.jud-lote-tab-content {
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card);
  padding: 24px;
  background: #fff;
  min-height: 100px;
}

/* ---------- CATEGORY NAV ---------- */
.jud-cat-nav {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.jud-cat-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
}
.jud-cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.jud-cat-tab:hover { border-bottom-color: rgba(201,168,76,.5); }
.jud-cat-tab.active { border-bottom-color: var(--gold); color: var(--navy); }
.jud-cat-badge {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ---------- PAGE LAYOUT (sidebar + main) ---------- */
.jud-page-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 60vh;
  width: 100%;
  overflow-x: hidden;
}

/* Sidebar */
.jud-sidebar {
  flex-shrink: 0;
  width: 240px;
  background: var(--bg-light);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 20px 16px;
}
.jud-sidebar-section { margin-bottom: 22px; }
.jud-sidebar-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 10px;
}
.jud-sidebar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
  padding: 4px 0;
  cursor: pointer;
}
.jud-sidebar label input[type="checkbox"] { accent-color: var(--navy); }
.jud-sidebar-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-main);
  background: #fff;
  margin-bottom: 8px;
  outline: none;
}
.jud-sidebar-input:focus { border-color: var(--navy); }
.jud-btn-apply {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 6px;
  text-align: center;
  text-decoration: none;
}
.jud-btn-clear {
  display: block;
  width: 100%;
  padding: 9px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* Main content area */
.jud-main { flex: 1; min-width: 0; padding: 20px 24px 40px; }

/* Results header */
.jud-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.jud-results-count {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}
.jud-results-count strong { color: var(--navy); }
.jud-results-right { display: flex; align-items: center; gap: 10px; }
.jud-sort-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 6px 10px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-main);
  background: #fff;
  outline: none;
}
.jud-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  overflow: hidden;
}
.jud-view-toggle button {
  padding: 6px 12px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.jud-view-toggle button + button { border-left: 1px solid var(--border); }
.jud-view-toggle button:hover,
.jud-view-toggle button.active { background: var(--navy); color: #fff; }

/* Filter chips */
.jud-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.jud-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.jud-chip-x {
  cursor: pointer;
  opacity: .7;
  font-size: 11px;
  margin-left: 2px;
}
.jud-chip-x:hover { opacity: 1; }

/* Lotes Grid */
.jud-lotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

/* ---------- CARD DE LOTE ---------- */
.jud-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.jud-card:hover {
  box-shadow: 0 6px 24px rgba(13,36,82,.13);
  transform: translateY(-2px);
}

/* Photo zone */
.jud-card-photo {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: #e8e4dc;
}
.jud-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jud-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,.80) 0%, rgba(13,36,82,.45) 50%, transparent 100%);
  pointer-events: none;
}

/* Badges */
.jud-badge-tipo {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
}
.jud-badge-tipo.judicial    { background: var(--navy); border: 1px solid rgba(201,168,76,.4); }
.jud-badge-tipo.extrajudicial { background: #0f766e; }
.jud-badge-tipo.cef         { background: #7c3aed; }

.jud-badge-prazo {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
}
.jud-badge-novo {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: #16a34a;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.jud-badge-sem-edital {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: rgba(217,119,6,.9);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}

/* Title + location over photo */
.jud-card-photo-info {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  z-index: 2;
}
.jud-card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 2px;
}
.jud-card-local {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,.85);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Stats row */
.jud-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #f0f0f0;
}
.jud-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
}
.jud-stat + .jud-stat { border-left: 1px solid #f0f0f0; }
.jud-stat-val {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.jud-stat-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.jud-stat-desc .jud-stat-val { color: var(--gold); }

/* Card body */
.jud-card-body {
  padding: 10px 12px;
}
.jud-card-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.jud-card-codigo {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.jud-card-bid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.jud-card-bid-label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.jud-card-bid-val {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
}
.jud-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- COMO FUNCIONA ---------- */
.jud-how {
  background: var(--navy-dark);
  padding: 64px 0;
}
.jud-how-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.jud-how-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 10px;
}
.jud-how-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  margin: 0 0 40px;
}
.jud-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
@media (max-width: 768px) { .jud-how-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .jud-how-grid { grid-template-columns: 1fr; } }
.jud-how-step-num {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.jud-how-step-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}
.jud-how-step-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

/* ---------- NEWSLETTER ---------- */
.jud-newsletter {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.jud-newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.jud-newsletter-text h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 6px;
}
.jud-newsletter-text p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.jud-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.jud-nl-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-light);
  outline: none;
  width: 160px;
}
.jud-nl-input:focus { border-color: var(--navy); }
.jud-nl-submit {
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.jud-nl-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- CTA STRIP ---------- */
.jud-cta-strip {
  background: var(--gold);
  padding: 32px 24px;
}
.jud-cta-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.jud-cta-strip-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-dark);
}
.jud-cta-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy-dark);
  color: #fff !important;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s;
}
.jud-cta-strip-btn:hover { background: #001830; color: #fff !important; }

/* ---------- FOOTER ---------- */
.jud-footer {
  background: var(--navy-dark);
  padding: 48px 24px 32px;
}
.jud-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .jud-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .jud-footer-inner { grid-template-columns: 1fr; }
}
.jud-footer-heading {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.jud-footer-logo-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 10px 0 12px;
}
.jud-footer-creci {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.jud-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jud-footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.jud-footer-links a:hover { color: var(--gold); }
.jud-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.jud-footer-contact-item a { color: rgba(255,255,255,.55); text-decoration: none; }
.jud-footer-contact-item a:hover { color: var(--gold); }
.jud-footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.jud-footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
}

/* Credenciais */
.jud-creds {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
}
.jud-creds-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.jud-cred-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
}
.jud-cred-badge i { color: var(--gold); font-size: 20px; }
.jud-cred-label { font-size: 11px; color: rgba(255,255,255,.4); }
.jud-cred-name  { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 600; }
.jud-cred-abbr  { font-size: 11px; color: var(--gold); }

/* ---------- WHATSAPP FLOAT ---------- */
.jud-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  text-decoration: none;
  font-size: 24px;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.jud-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}

/* ---------- HOME CTA HERO ---------- */
.jud-hero {
  background: var(--navy);
  padding: 48px 0 36px;
}
.jud-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.jud-hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: .9;
  margin-bottom: 12px;
}
.jud-hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.jud-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}
.jud-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.jud-hero-btn-primary,
.jud-hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.jud-hero-btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: .3px;
  border: 2px solid var(--gold);
}
.jud-hero-btn-ghost {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.5);
}
.jud-hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.jud-hero-stat { color: #fff; text-align: center; }
.jud-hero-stat-val { font-family: var(--font-title); font-size: 22px; font-weight: 800; }
.jud-hero-stat-lbl { font-size: 11px; opacity: .65; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- LOTES LISTING HERO ---------- */
.jud-listing-hero {
  background: var(--navy);
  padding: 24px 0 20px;
}
.jud-listing-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.jud-listing-hero h1 { color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 22px; margin: 0 0 4px; }
.jud-listing-hero-sub { color: rgba(255,255,255,.75); font-size: 13px; }

/* Responsive sidebar hide */
@media (max-width: 700px) {
  .jud-sidebar { display: none; }
  .jud-main { padding: 16px; }
  .jud-lotes-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ---------- MEDIA TABS (lote page: Fotos / Mapa / Street View) ---------- */
/* Tab bar fica ABAIXO da galeria (padrão trileiloes) */
.jud-media-tabs {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.jud-media-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f4f6f9;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.jud-media-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #d0d5de;
  border-radius: 20px;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none !important;
  line-height: 1.4;
}
.jud-media-tab:hover  { border-color: var(--navy); background: var(--navy); color: #fff !important; }
.jud-media-tab.active { background: var(--navy); border-color: var(--navy); color: var(--gold) !important; }
.jud-media-panel      { background: #111; }
.jud-media-panel iframe { display: block; }

/* Timer de urgência — ativa quando restam < 24h */
@keyframes judCronPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,32,32,.5); }
  50%       { box-shadow: 0 0 0 10px rgba(197,32,32,0); }
}
.jud-lote-cron.urgente {
  background: #c0392b !important;
  animation: judCronPulse 1.4s ease-in-out infinite;
}
.jud-lote-cron.urgente .jud-lote-cron-num { color: #fff !important; }
.jud-lote-cron.urgente .jud-lote-cron-lbl { color: rgba(255,255,255,.80) !important; }
.jud-lote-cron.urgente .jud-lote-cron-sep { color: #fff !important; }
.jud-lote-cron.urgente .jud-lote-cron-label { color: rgba(255,255,255,.90) !important; }

/* Modal QR Code */
#jud-qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
}
#jud-qr-modal.open { display: flex; }
#jud-qr-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  max-width: 280px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  position: relative;
}
#jud-qr-box img { display: block; margin: 0 auto 12px; border: 1px solid var(--border); border-radius: 6px; }
#jud-qr-box p { font-size: 12px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
#jud-qr-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  font-size: 20px; color: var(--text-muted);
  cursor: pointer; line-height: 1;
}

/* Setas da galeria de fotos */
.jud-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(0,20,60,.60);
  color: #fff;
  border: none;
  width: 40px;
  height: 52px;
  border-radius: 4px;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  outline: none;
  line-height: 1;
}
.jud-gal-arrow:hover { background: var(--navy); }
.jud-gal-prev { left: 10px; }
.jud-gal-next { right: 10px; }

/* ---------- BADGE "NOVO" ---------- */
.jud-badge-novo {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .6px;
  line-height: 1.5;
  display: inline-block;
}

/* ---------- CARD HOVER MELHORADO ---------- */
.jud-card-photo img {
  transition: transform .38s ease;
  will-change: transform;
}
.jud-card:hover {
  box-shadow: 0 14px 36px rgba(13,36,82,.22);
  transform: translateY(-4px);
}
.jud-card:hover .jud-card-photo img {
  transform: scale(1.07);
}
/* Reveal endereço completo ao hover */
.jud-card-local {
  max-height: 16px;
  overflow: hidden;
  transition: max-height .3s ease;
}
.jud-card:hover .jud-card-local {
  max-height: 60px;
}

/* ---------- SORT SELECT ---------- */
.jud-sort-select {
  font-family: var(--font-body);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 6px 10px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}
.jud-sort-select:focus { border-color: var(--navy); }

/* ---------- BREADCRUMB ---------- */
.jud-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 13px;
}
.jud-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.jud-breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.jud-breadcrumb-sep { color: var(--border); margin: 0 4px; }
.jud-breadcrumb-current { color: var(--text-main); font-weight: 600; }
