@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Primary - Teal/Green for trust and growth */
  --primary: 168 80% 35%;
  --primary-foreground: 0 0% 100%;
  --primary-light: 168 70% 45%;
  --primary-dark: 168 85% 25%;
  
  /* Background tones */
  --background: 210 20% 98%;
  --foreground: 220 25% 15%;
  
  /* Cards and surfaces */
  --card: 0 0% 100%;
  --card-foreground: 220 25% 15%;
  --card-hover: 168 30% 97%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 220 25% 15%;
  
  /* Secondary - Warm neutral */
  --secondary: 35 30% 95%;
  --secondary-foreground: 220 25% 20%;
  
  /* Muted */
  --muted: 210 15% 93%;
  --muted-foreground: 220 10% 45%;
  
  /* Accent - Amber for highlights */
  --accent: 38 95% 55%;
  --accent-foreground: 220 25% 15%;
  --accent-light: 38 95% 65%;
  
  /* Semantic */
  --destructive: 0 75% 55%;
  --destructive-foreground: 0 0% 100%;
  
  --success: 145 65% 42%;
  --success-foreground: 0 0% 100%;
  
  /* Borders and inputs */
  --border: 210 20% 88%;
  --input: 210 20% 88%;
  --ring: 168 80% 35%;
  
  --radius: 0.75rem;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(168 80% 35%), hsl(168 70% 45%));
  --gradient-hero: linear-gradient(180deg, hsl(168 30% 97%) 0%, hsl(210 20% 98%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(168 20% 98%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(38 95% 55%), hsl(38 95% 65%));
  
  /* Shadows */
  --shadow-sm: 0 1px 3px hsl(220 25% 15% / 0.06);
  --shadow-md: 0 4px 12px hsl(220 25% 15% / 0.08);
  --shadow-lg: 0 8px 30px hsl(220 25% 15% / 0.12);
  --shadow-glow: 0 0 40px hsl(168 80% 35% / 0.15);
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-balance {
  text-wrap: balance;
}

.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-accent {
  background: var(--gradient-accent);
}

.shadow-card {
  box-shadow: var(--shadow-md);
}

.shadow-card-hover {
  box-shadow: var(--shadow-lg);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-bottom {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slide-in-bottom 0.4s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Utility classes */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Autocomplete: highlight sem quebrar a palavra; painel acima do hero */
.busca-ac-mark {
  padding: 0;
  margin: 0;
  border: 0;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.busca-ac-panel {
  background-color: hsl(var(--card));
  z-index: 200;
  position: absolute;
}

/* Conteúdo de notícia/blog (HTML do Blog IA) — sem depender do plugin Typography */
.noticia-conteudo {
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
  line-height: 1.75;
}

.noticia-conteudo > *:first-child {
  margin-top: 0;
}

.noticia-conteudo h1,
.noticia-conteudo h2,
.noticia-conteudo h3,
.noticia-conteudo h4 {
  color: hsl(var(--foreground));
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.noticia-conteudo h1 { font-size: 1.75rem; }
.noticia-conteudo h2 { font-size: 1.5rem; }
.noticia-conteudo h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.noticia-conteudo h4 { font-size: 1.125rem; margin-top: 1.25rem; }

.noticia-conteudo p {
  margin: 0 0 1.15rem;
  color: hsl(var(--muted-foreground));
}

.noticia-conteudo ul,
.noticia-conteudo ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.noticia-conteudo ul {
  list-style: disc;
}

.noticia-conteudo ol {
  list-style: decimal;
}

.noticia-conteudo li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

.noticia-conteudo li > p {
  margin-bottom: 0.35rem;
}

.noticia-conteudo strong,
.noticia-conteudo b {
  color: hsl(var(--foreground));
  font-weight: 650;
}

.noticia-conteudo a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.noticia-conteudo a:hover {
  opacity: 0.85;
}

.noticia-conteudo blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid hsl(var(--primary));
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
  border-radius: 0 0.5rem 0.5rem 0;
}

.noticia-conteudo hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid hsl(var(--border));
}

/* Banner Premium (home) */
.premium-banner-track {
  position: relative;
}

.premium-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 240px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.06));
  transition: transform .2s ease, box-shadow .2s ease;
}

.premium-banner-slide:hover .premium-banner {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(0,0,0,.1));
}

.premium-banner-media {
  position: relative;
  min-height: 240px;
}

.premium-banner-media img,
.premium-banner-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.premium-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, hsl(var(--card)) 100%);
  pointer-events: none;
}

.premium-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.75rem 1.75rem 1rem;
  gap: 0.65rem;
}

.premium-banner-cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.premium-banner-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin: 0;
}

.premium-banner-text {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36ch;
}

.premium-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.premium-banner-cta,
.premium-banner-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.premium-banner-cta {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)));
  color: hsl(var(--primary-foreground));
}

.premium-banner-wa {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

.premium-banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.premium-banner-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: hsl(var(--muted-foreground) / 0.35);
  cursor: pointer;
}

.premium-banner-dot.is-active {
  background: hsl(var(--primary));
  width: 1.25rem;
}

@media (max-width: 768px) {
  .premium-banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .premium-banner-media {
    min-height: 180px;
  }
  .premium-banner-overlay {
    background: linear-gradient(180deg, transparent 30%, hsl(var(--card)) 95%);
  }
  .premium-banner-content {
    padding: 1.25rem 1.25rem 1.4rem;
  }
}

/* Descrição do classificado: à esquerda, igual ao texto do editar */
.classificado-descricao {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left !important;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Fotos de classificado: quadro fixo, imagem inteira (sem cortar) */
.classificado-foto-frame {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.classificado-foto-completa {
  display: block;
  object-fit: contain;
  object-position: center;
}

/* ========== Home Hero Slider ========== */
.home-hero-slide-mode {
  position: relative;
  z-index: 30;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 48vw, 560px);
  background: #0f1419;
  overflow: hidden;
}

.hero-slider-track {
  position: absolute;
  inset: 0;
}

.hero-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 0;
}

.hero-slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  filter: none;
  transform: scale(1.06);
  transition: transform 7s ease;
}

.hero-slider-slide.is-active img {
  transform: scale(1);
}

.hero-slider-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slider-veil {
  display: none;
}

/* Gradiente só na base — imagem continua viva em cima */
.hero-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 48%;
  padding: 0 1.5rem 3.25rem;
  pointer-events: none;
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 12, 18, 0.15) 35%,
    rgba(8, 12, 18, 0.55) 70%,
    rgba(8, 12, 18, 0.78) 100%
  );
}

.hero-slider-caption-inner {
  max-width: 44rem;
  width: 100%;
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.55s ease 0.12s, transform 0.55s ease 0.12s;
}

.hero-slider-slide.is-active .hero-slider-caption-inner {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-slider-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 2px;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
}

.hero-slider-subtitle {
  margin: 0.9rem 0 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 20, 25, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider-nav:hover {
  background: rgba(15, 20, 25, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.04);
}

.hero-slider-nav--prev {
  left: 1rem;
}

.hero-slider-nav--next {
  right: 1rem;
}

.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.hero-slider-dot {
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-slider-dot.is-active {
  width: 2.25rem;
  background: #fff;
}

.hero-slider-search-section {
  position: relative;
  z-index: 40;
  background: hsl(var(--background));
}

.hero-slider-search-section .container {
  overflow: visible;
}

@media (max-width: 767px) {
  .hero-slider {
    min-height: 280px;
  }
  .hero-slider-caption {
    min-height: 55%;
    padding: 0 1rem 2.75rem;
  }
  .hero-slider-title {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
  .hero-slider-title::after {
    width: 2.25rem;
    margin-top: 0.65rem;
  }
  .hero-slider-subtitle {
    margin-top: 0.7rem;
    font-size: 0.95rem;
  }
  .hero-slider-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
  .hero-slider-nav--prev {
    left: 0.65rem;
  }
  .hero-slider-nav--next {
    right: 0.65rem;
  }
  .hero-slider-search-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-slide,
  .hero-slider-slide img,
  .hero-slider-caption-inner {
    transition: none;
  }
  .hero-slider-caption-inner {
    opacity: 1;
    transform: none;
  }
}

