/**
 * Custom Theme Improvements - Fábio Lermen Imóveis
 * Cores de identidade: Dourado (#A6783B), Dourado Claro (#CFAF72), Escuro (#212529)
 */

:root {
  --fl-front: #A6783B;
  --fl-front-hover: #8E632B;
  --fl-front-light: #CFAF72;
  --fl-front-subtle: #f9f5ef;
  --fl-dark: #212529;
  --fl-radius: 10px;
  --fl-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  --fl-shadow-hover: 0 12px 28px rgba(166, 120, 59, 0.2);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header_bar {
  background-color: var(--fl-front) !important;
  font-size: 0.9rem;
}

.header_bar a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header_bar a:hover {
  opacity: 0.85;
  color: #fff;
}

.navbar .nav-link {
  color: #333 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--fl-front) !important;
  background-color: var(--fl-front-subtle);
}

/* ==========================================================================
   SLIDE / BANNER PRINCIPAL
   ========================================================================== */
.main_slide {
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  position: relative;
}

.main_slide .main_slide_content {
  border-radius: var(--fl-radius);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-left: 5px solid var(--fl-front);
}

/* ==========================================================================
   FILTRO DE IMÓVEIS
   ========================================================================== */
.main_filter {
  background: #fdfdfd;
}

.main_filter form {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow);
  border: 1px solid rgba(166, 120, 59, 0.15);
}

.main_filter .form-select,
.main_filter .form-control {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.main_filter .form-select:focus,
.main_filter .form-control:focus {
  border-color: var(--fl-front);
  box-shadow: 0 0 0 0.2rem rgba(166, 120, 59, 0.25);
}

/* ==========================================================================
   CARDS DE IMÓVEIS (VITRINE)
   ========================================================================== */
.main_properties .card.main_properties_item {
  border: 1px solid #ebebeb;
  border-radius: var(--fl-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--fl-shadow);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.main_properties .card.main_properties_item:hover {
  transform: translateY(-6px);
  box-shadow: var(--fl-shadow-hover);
  border-color: rgba(166, 120, 59, 0.35);
}

.main_properties_item .img-responsive-16by9 {
  position: relative;
  overflow: hidden;
  background: #eee;
}

.main_properties_item .img-responsive-16by9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.main_properties_item:hover .img-responsive-16by9 img {
  transform: scale(1.06);
}

/* Badge de status do imóvel (Vendido, etc.) */
.property-badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #A6783B, #8E632B);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.main_properties_item .card-body {
  padding: 1.25rem;
}

.main_properties_item .card-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.main_properties_item .card-body h2 a {
  color: var(--fl-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.main_properties_item .card-body h2 a:hover {
  color: var(--fl-front);
}

.main_properties_item_category {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main_properties_item_type {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 0.6rem;
}

.main_properties_item_price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fl-front);
  margin-bottom: 1rem;
}

.main_properties_item .btn-front {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.55rem 1rem;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.main_properties_item .card-footer {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  padding: 0.75rem 0.5rem;
}

.main_properties_item_features img {
  max-width: 26px !important;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.main_properties_item:hover .main_properties_item_features img {
  opacity: 1;
}

.main_properties_item_features p {
  font-weight: 500;
  font-size: 0.85rem;
}

/* ==========================================================================
   SEÇÃO DE FINANCIAMENTO (NOVO RECURSO)
   ========================================================================== */
.main_financing {
  background: linear-gradient(180deg, #fbf9f6 0%, #f4efe7 100%);
  border-top: 1px solid rgba(166, 120, 59, 0.15);
  border-bottom: 1px solid rgba(166, 120, 59, 0.15);
  position: relative;
}

.financing-card {
  border-radius: 14px !important;
  background: #ffffff;
  border: 1px solid rgba(166, 120, 59, 0.18) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.financing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fl-front), var(--fl-front-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.financing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(166, 120, 59, 0.22) !important;
  border-color: var(--fl-front) !important;
}

.financing-card:hover::before {
  opacity: 1;
}

.bank-logo-wrapper {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 14px 20px;
  min-height: 85px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.02);
}

.bank-logo {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.financing-card:hover .bank-logo {
  transform: scale(1.05);
}

.btn-front {
  background-color: var(--fl-front) !important;
  border-color: var(--fl-front) !important;
  color: #fff !important;
  transition: all 0.25s;
}

.btn-front:hover,
.btn-front:focus {
  background-color: var(--fl-front-hover) !important;
  border-color: var(--fl-front-hover) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(166, 120, 59, 0.35);
}

.text-front {
  color: var(--fl-front) !important;
}

.bg-front {
  background-color: var(--fl-front) !important;
}

.border-front {
  border-color: var(--fl-front) !important;
}

/* ==========================================================================
   PÁGINA DO IMÓVEL (PROPERTY)
   ========================================================================== */
.main_property .main_property_header {
  border-bottom: 1px solid #ebebeb;
}

.property-simulator-box {
  background: #ffffff;
  border: 1px solid rgba(166, 120, 59, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--fl-shadow);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.property-simulator-box .bank-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--fl-dark);
  font-weight: 600;
  transition: all 0.2s ease;
}

.property-simulator-box .bank-btn:hover {
  border-color: var(--fl-front);
  background: var(--fl-front-subtle);
  color: var(--fl-front);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(166, 120, 59, 0.15);
}

.property-simulator-box .bank-btn img {
  height: 28px;
  max-width: 90px;
  object-fit: contain;
}

.main_property_contact {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--fl-shadow);
  border: 1px solid #ebebeb;
}

.main_property_contact h2 {
  font-size: 1.15rem;
  padding: 18px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main_property_contact form {
  padding: 22px;
  background: #ffffff;
}

.main_property_contact .form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.6rem 0.85rem;
}

.main_property_contact .form-control:focus {
  border-color: var(--fl-front);
  box-shadow: 0 0 0 0.2rem rgba(166, 120, 59, 0.25);
}

/* ==========================================================================
   FOOTER & OPTIN
   ========================================================================== */
.main_optin {
  background: #1b1e22 !important;
}

.main_optin form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main_optin form .form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.main_optin form .btn {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.main_footer {
  border-top: 1px solid #e9ecef;
}

.main_footer ul {
  list-style: none;
  padding-left: 0;
}

.main_footer ul li {
  margin-bottom: 0.5rem;
}

.main_footer ul li a {
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.main_footer ul li a:hover {
  color: var(--fl-front);
  transform: translateX(4px);
}

.social-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--fl-front);
  color: #fff !important;
  text-decoration: none;
  margin: 0 4px;
  transition: all 0.25s;
}

.social-circle-btn:hover {
  background: var(--fl-front-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(166, 120, 59, 0.4);
}

