/* ================================
   FONT
================================= */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&display=swap');


/* ================================
   ROOT VARIABLES (convertidas do HSL)
================================= */
:root {

  /* Core */
  --background: #f5f5f5;            /* 0 0% 96% */
  --foreground: #0f2743;            /* 213 69% 18% */

  --card: #ffffff;
  --card-foreground: #0f2743;

  --primary: #0f2743;
  --primary-light: #1f3f6d;         /* 219 67% 32% */
  --secondary: #ededed;
  --muted: #ededed;

  --accent: #1c6b3f;                /* 148 68% 27% */
  --danger: #ef4444;

  --border-color: #e0e0e0;
  --input-bg: #e0e0e0;

  --radius: 0.5rem;

  /* Brand */
  --brand-blue: #0f2743;
  --brand-blue-light: #1f3f6d;
  --brand-green: #1c6b3f;
  --brand-gray: #f5f5f5;
  --brand-gray-dark: #333333;
  --brand-gray-light: #ededed;
}


/* ================================
   BASE
================================= */
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Urbanist', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 400;
  color: var(--brand-blue);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  color: var(--brand-blue-light);
}

.fs-7 {
  font-size: 0.7rem!important;
}

.fs-8 {
  font-size: 0.5rem!important;
}

/* ================================
   BOOTSTRAP OVERRIDES
================================= */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.btn-primary {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-primary:hover {
  background-color: var(--brand-blue-light);
  border-color: var(--brand-blue-light);
}

.btn-accent {
  background-color: var(--brand-green);
  color: #fff;
  border: none;
}

.btn-accent:hover {
  opacity: 0.9;
}


/* ================================
   UTILITIES (equivalente Tailwind)
================================= */

/* Line clamp */
.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;
}

/* Scrollbar hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}


/* ================================
   CONTAINER CUSTOM (equivalente max-w-1280)
================================= */
.container-xl-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* ================================
   HELPERS PARA FIDELIDADE VISUAL
================================= */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.shadow-soft {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* =====================================
   HEADER
===================================== */
.site-header {
  position: relative;
  z-index: 2000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}
/* HEADER LOGO IMAGE */
.site-logo-img {
  height: 38px;
  width: auto;
}

@media (max-width: 576px) {
  .site-logo-img {
    height: 32px;
  }
}

.logo-text {
  font-size: 1.0rem;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--brand-blue);
}
@media (max-width: 576px) {
  .logo-text {
    font-size: 1.2rem;
  }
}

.logo-accent {
  color: var(--brand-green);
}
.site-nav {
  flex-wrap: wrap;
  row-gap: 8px;
}
.site-nav .nav-link-custom {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  transition: color 0.2s ease;
}

.site-nav .nav-link-custom:hover {
  color: var(--brand-blue);
}

.icon-btn {
  border: none;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--secondary);
  color: var(--brand-blue);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
  max-height: 500px;
}

.mobile-link {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
}

.mobile-link:hover {
  color: var(--brand-blue);
}
/* HEADER DROPDOWN */

.nav-item-dropdown {
  cursor: pointer;
}

.dropdown-toggle-btn {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  padding: 0;
  display: flex;
  align-items: center;
}

.dropdown-toggle-btn:hover {
  color: var(--brand-blue);
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 2100;
}

.nav-item-dropdown:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--brand-blue);
  text-decoration: none;
  transition: background .2s ease;
}

.dropdown-link:hover {
  background: var(--secondary);
  color: var(--brand-green);
}
/* HEADER SEARCH */

.search-wrapper {
  position: relative;
}

.search-form {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}

.search-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  width: 0;
  transition: width .25s ease;
}

.search-form.active {
  opacity: 1;
  visibility: visible;
}

.search-form.active .search-input {
  width: 180px;
}

/* =========================
   FOOTER PREMIUM
========================= */

.footer-premium {
  background: var(--brand-blue);
  color: #fff;
}
.footer-col-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 5rem;
  padding-right: 5rem;
}
.footer-logo {
  width: 80%;
  filter: brightness(0) invert(1);
}

.footer-text {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-host span {
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-hostinger {
  width: 120px;
  margin-top: 5px;
  opacity: 0.3;
  transition: opacity .2s ease;
  filter: brightness(0) invert(1);

}

.footer-hostinger:hover {
  opacity: 1;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 1rem;
  color: #fff; /* garante contraste */
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--brand-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
  color: var(--brand-gray-light)!important;
  font-size: 0.75rem;
  opacity: 0.5;
}
@media (max-width: 991px) {
  .footer-copy{
    text-align: center;
    font-size: 0.6rem;
  }
}

.footer-icon {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: color .2s ease;
}

.footer-icon:hover {
  color: var(--brand-green);
}


/* ===========================
   ANNOUNCE CTA (Ajustado)
   =========================== */

/* Reduz todo o bloco */
#announce-cta .announce-box {
  background: linear-gradient(135deg, rgba(0,123,255,0.06), rgba(255,193,7,0.06));
  padding: 2rem !important;
}

/* Texto da esquerda menor */
#announce-cta h2 {
  font-size: 1.9rem !important;
}

#announce-cta h5 {
  font-size: 0.8rem !important;
}

#announce-cta p {
  font-size: 0.95rem;
}

/* Botão reduzido */
#announce-cta .announce-btn {
  height: 48px;
  padding: 0 32px;
  font-size: 1rem;
}

/* Cards menores */
#announce-cta .announce-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}

#announce-cta .announce-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1.1rem rgba(0,0,0,.12);
}

/* Ícone menor */
#announce-cta .benefit-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(0,123,255,0.10);
  border-radius: 50%;
}

#announce-cta .benefit-icon i {
  font-size: 1.25rem !important;
}

/* Garantir 3 cards sem quebrar */
#announce-cta .col-md-6 .row > .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* ======================================
   RESPONSIVIDADE GLOBAL AJUSTES
====================================== */

/* --------- FOOTER --------- */
@media (max-width: 991px) {
  .footer-col-logo {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    width: 60%;
  }

  .footer-heading {
    font-size: 0.75rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
}


/* --------- TIPOGRAFIA GLOBAL --------- */
@media (max-width: 576px) {

  .fs-7 {
    font-size: 0.75rem !important;
  }

  .fs-8 {
    font-size: 0.65rem !important;
  }

}


/* --------- CLASSIFICADOS --------- */
@media (max-width: 576px) {

  .classificado-content {
    padding: 12px;
  }

  .classificado-title {
    font-size: 0.85rem;
  }

  .classificado-price {
    font-size: 1rem;
  }

  .classificado-meta {
    font-size: 0.7rem;
    gap: 8px;
  }

}


/* --------- ANNOUNCE CTA --------- */
@media (max-width: 768px) {

  #announce-cta .announce-box {
    padding: 1.5rem !important;
  }

  #announce-cta h2 {
    font-size: 1.5rem !important;
  }

  #announce-cta .announce-btn {
    width: 100%;
  }

  /* deixa empilhar naturalmente */
  #announce-cta .col-md-6 .row > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

}
/* ======================================
   FIX OVERFLOW HORIZONTAL GLOBAL
====================================== */

html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}
/* =========================================================
   CLASSIFICADOS
========================================================= */

/* -------------------------
   CARD BASE
------------------------- */

.classificado-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all .2s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.classificado-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* -------------------------
   IMAGE
------------------------- */

.classificado-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.classificado-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.classificado-card:hover img {
  transform: scale(1.05);
}
.classificado-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.classificado-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-green);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* -------------------------
   CONTENT
------------------------- */

.classificado-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.classificado-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.classificado-location {
  font-size: 0.75rem;
  color: #777;
  margin-top: 4px;
}

.classificado-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-green);
}
.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 0.8rem;
  font-weight: 400;
  margin-right: 6px;
}

/* -------------------------
   FEATURES (RODAPÉ FIXO)
------------------------- */

.classificado-features {
  margin-top: auto; /* empurra para o fundo */
  padding-top: 10px;
  border-top: 1px solid #eee;

  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666;
}

.classificado-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.classificado-features i {
  font-size: 0.85rem;
  color: var(--brand-blue);
}

/* =========================================================
   SWIPER
========================================================= */

.classificadosSwiper {
  width: 100%;
  padding-bottom: 10px;
}

.swiper-slide {
  height: auto;
}

.custom-swiper-btn {
  position: static !important;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: #fff;
  transition: all .2s ease;
}

.custom-swiper-btn::after {
  font-size: 14px;
  color: var(--brand-blue);
}

.custom-swiper-btn:hover {
  background: var(--brand-blue);
}

.custom-swiper-btn:hover::after {
  color: #fff;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 768px) {

  .classificado-image-wrapper {
    aspect-ratio: 3/2;
  }

  .classificado-content {
    padding: 12px;
  }

  .classificado-title {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .classificado-location {
    font-size: 0.7rem;
  }

  .classificado-price {
    font-size: 1rem;
  }

  .classificado-features {
    font-size: 0.7rem;
  }

  /* remove hover em mobile */
  .classificado-card:hover {
    transform: none;
  }

}
