/* ===== LAYOUT V2: 1 Imóvel por Linha - Layout de 2 Colunas =====
   Design com imagem esquerda (35%), conteúdo expandido (65%)
   Rodapé com preço, botões e logo lado a lado
   Cores: #073B3A (verde escuro), #CBCD30 (amarelo), #030E0F (preto)
*/

/* Reduzir gap entre hero section e conteúdo */
.property-grid-section-area.sp2 {
  padding-top: 30px !important;
}

@media (max-width: 767px) {
  .property-grid-section-area.sp2 {
    padding-top: 20px !important;
  }
}

/* Formulário de Filtros - Estilos Base */
.input-no-spinner::-webkit-outer-spin-button,
.input-no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-no-spinner[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.property-sidebar-area .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.property-sidebar-area .form-label {
  width: 100% !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
  order: -1;
}

.property-sidebar-area .form-control,
.property-sidebar-area .form-select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.property-sidebar-area select.form-select,
select.form-select,
.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 16px !important;
  padding-right: 2.5rem !important;
}

.property-sidebar-area .form-control:focus,
.property-sidebar-area .form-select:focus {
  border-color: #073b3a;
  box-shadow: 0 0 0 0.2rem rgba(7, 59, 58, 0.25);
}

/* ===== CARD V2: Layout 2 Colunas ===== */
.property-card-v2-wrapper {
  margin-bottom: 24px;
}

.property-card-v2 {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 280px;
}

.property-card-v2:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Imagem: 35% */
.property-image-v2 {
  position: relative;
  width: 35%;
  min-width: 280px;
  overflow: hidden;
}

.swiper-v2 {
  width: 100%;
  height: 100%;
}

.swiper-v2 .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-v2 .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.swiper-v2 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Paginação do Swiper */
.swiper-v2 .swiper-pagination {
  bottom: 10px;
}

.swiper-v2 .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}

.swiper-v2 .swiper-pagination-bullet-active {
  opacity: 1;
  background: #cbcd30;
}

.category-badges-v2 {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.category-badges-v2 .badge-venda,
.category-badges-v2 .badge-aluguel {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badges-v2 .badge-venda {
  background: #073b3a;
}

.category-badges-v2 .badge-aluguel {
  background: #cbcd30;
  color: #030e0f;
}

/* Conteúdo Expandido: 65% */
.property-content-v2 {
  width: 65%;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-title-v2 {
  color: #030e0f;
  font-family: 'Inter', sans-serif;
  font-size: 20px !important;
  font-weight: 600;
  line-height: 26px !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
  margin-bottom: 4px;
  min-height: 26px;
  max-height: 52px;
  height: auto !important;
  flex-shrink: 0;
  white-space: normal;
}

.property-title-v2:hover {
  color: #073b3a;
}

.property-location-v2 {
  color: #252728;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-location-v2 i {
  color: #073b3a;
  font-size: 13px;
}

.property-description-v2 {
  margin-bottom: 6px;
}

.property-description-v2 p {
  color: #252728;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-features-v2 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.property-features-v2 .feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 110px;
  border: 1px solid rgba(13, 15, 24, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: #252728;
}

.property-features-v2 .feature-item img {
  width: 16px;
  height: 16px;
}

/* Rodapé do Card - SEM linha separadora */
.property-footer-v2 {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 4px;
}

.property-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.property-price-v2 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.property-price-v2 .price-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.property-price-v2 .price-label {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.property-price-v2 .price-value {
  font-size: 18px;
  font-weight: 700;
  color: #073b3a;
}

/* Botão Favoritar - EXATAMENTE IGUAL À PÁGINA INICIAL */
.heart {
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  display: inline-block;
  transition: all 0.4s;
  background: #cdd8d8;
  border-radius: 50%;
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.heart:hover {
  transition: all 0.4s;
}

.heart:hover .heart2 {
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}

.heart:hover .heart1 {
  visibility: visible;
  opacity: 1;
  transition: all 0.4s;
}

.heart .heart2 {
  visibility: visible;
  opacity: 1;
  transition: all 0.4s;
  height: 21px;
  width: 21px;
  object-fit: cover;
  display: inline-block;
}

.heart .heart1 {
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
  position: absolute;
  top: 12px;
  left: 10px;
  height: 18px;
  width: 18px;
  object-fit: contain;
  display: inline-block;
}

.heart.active {
  background: #ff5252; /* Vermelho quando ativo - IGUAL à página inicial */
}

.heart.active .heart2 {
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}

.heart.active .heart1 {
  visibility: visible;
  opacity: 1;
  transition: all 0.4s;
}

/* Logo do Anunciante - 2x MAIOR, canto inferior direito */
.advertiser-logo-v2 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.advertiser-logo-v2 img {
  max-height: 90px; /* 2x maior que o original (45px) */
  max-width: 200px; /* 2x maior que o original (100px) */
  object-fit: contain;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablet grande */
@media (max-width: 1199px) {
  .property-title-v2 {
    font-size: 18px;
  }

  .advertiser-logo-v2 img {
    max-height: 70px;
    max-width: 160px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .property-card-v2 {
    flex-direction: column;
    min-height: auto;
    height: auto;
  }

  .property-image-v2,
  .property-content-v2 {
    width: 100%;
    min-width: unset;
  }

  .property-image-v2 {
    height: 240px;
  }

  .property-footer-v2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .property-footer-left {
    width: 100%;
    justify-content: space-between;
  }

  .advertiser-logo-v2 {
    align-self: flex-end;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .property-image-v2 {
    height: 220px;
  }

  .property-content-v2 {
    padding: 16px;
  }

  .property-title-v2 {
    font-size: 17px;
    line-height: 23px;
  }

  .property-footer-v2 {
    flex-direction: column;
    gap: 14px;
  }

  .property-footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .property-actions-v2 {
    width: 100%;
    justify-content: space-between;
  }

  .property-actions-v2 .btn-ver-detalhes {
    flex: 1;
  }

  .advertiser-logo-v2 {
    align-self: center;
  }

  .advertiser-logo-v2 img {
    max-height: 60px;
    max-width: 140px;
  }
}

/* ===== IMÓVEIS PATROCINADOS =====
   Cards de 3 colunas para destaques patrocinados no topo
*/

/* Header de Patrocinados */
.patrocinado-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.patrocinado-header .badge {
  font-size: 1.1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
}

/* Linha de Patrocinados (3 colunas) */
.patrocinados-row {
  margin-bottom: 2rem;
}

/* Card de Patrocinado */
.property-card-patrocinado {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.property-card-patrocinado:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Badge de Patrocinado (sobreposto na imagem) */
.patrocinado-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.patrocinado-badge i {
  margin-right: 5px;
}

/* Imagem do Card */
.property-card-patrocinado .property-image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 230px;
}

.property-card-patrocinado .property-image .swiper-slide {
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f0f0f0;
}

.property-card-patrocinado .property-image .swiper-slide a {
  display: block;
  height: 100%;
  width: 100%;
}

.property-card-patrocinado .property-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Swiper para Patrocinados */
div[class^='swiper-patrocinado-'] {
  height: 100%;
  width: 100%;
}

div[class^='swiper-patrocinado-'] .swiper-pagination {
  bottom: 10px !important;
  z-index: 10 !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

div[class^='swiper-patrocinado-'] .swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.7 !important;
  width: 8px !important;
  height: 8px !important;
  display: inline-block !important;
  border-radius: 50% !important;
  margin: 0 4px !important;
  cursor: pointer !important;
  visibility: visible !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
}

div[class^='swiper-patrocinado-'] .swiper-pagination-bullet-active {
  background: #ffd700 !important;
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* Conteúdo do Card */
.property-content-patrocinado {
  padding: 0 1.5rem 0.5rem 1.5rem;
}

.property-card-patrocinado .property-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  display: block;
  margin: 0;
  margin-top: 0.375rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.property-card-patrocinado .property-title:hover {
  color: #073b3a;
}

/* Features */
.property-card-patrocinado .property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.property-card-patrocinado .feature-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #555;
}

.property-card-patrocinado .feature-item img {
  width: 20px;
  height: 20px;
}

/* Preço - Venda e Aluguel lado a lado */
.property-card-patrocinado .property-price {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.property-card-patrocinado .price-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.property-card-patrocinado .price-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.property-card-patrocinado .price-value {
  font-size: 0.87rem;
  font-weight: 700;
  color: #073b3a;
}

/* Nome Anunciante - Posição fixa no fundo e centralizado */
.advertiser-name-patrocinado {
  text-align: center;
  padding: 0.5rem 0.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advertiser-name-patrocinado a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.3s;
}

.advertiser-name-patrocinado a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Garantindo que o conteúdo seja flex para o nome ficar no fundo */
.property-content-patrocinado {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Separador */
.separator-patrocinados {
  border: 0;
  border-top: 2px solid #ddd;
  margin: 3rem 0 2rem 0;
}

/* ===== RESPONSIVIDADE MOBILE FIRST ===== */

/* Mobile pequeno */
@media (max-width: 576px) {
  .patrocinados-row .col-md-4 {
    margin-bottom: 1.5rem;
  }

  .property-card-patrocinado {
    min-height: auto;
  }

  .property-content-patrocinado {
    padding: 0 1rem 0.4rem 1rem;
  }

  .property-card-patrocinado .property-title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    margin-top: 0.375rem;
    margin-bottom: 0.4rem;
  }

  .property-card-patrocinado .property-features {
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .property-card-patrocinado .feature-item {
    font-size: 0.85rem;
  }

  .property-card-patrocinado .property-price {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.4rem;
  }

  .property-card-patrocinado .price-value {
    font-size: 0.77rem;
  }

  .advertiser-name-patrocinado {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 768px) {
  .patrocinados-row .col-md-4 {
    margin-bottom: 1.5rem;
  }

  .property-content-patrocinado {
    padding: 0 1.25rem 0.5rem 1.25rem;
  }
}

/* Tablet grande */
@media (min-width: 769px) and (max-width: 991px) {
  /* Heights removidos para permitir altura automática */
}
