/* ========================================================
   SISTEMA IMOBILIÁRIO WHITE-LABEL - ESTILOS PRINCIPAIS
   ======================================================== */

/* Fontes e Tipografia de Alto Padrão */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.6;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Transições Suaves Globais */
a, button, .card, .btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sistema Dinâmico de Cores White-Label */
.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}
.btn-primary-custom:hover {
    filter: brightness(1.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary-custom {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #ffffff;
}
.btn-secondary-custom:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-accent-custom {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
}
.btn-accent-custom:hover {
    filter: brightness(1.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #ffffff;
    font-weight: 600;
}
.btn-whatsapp:hover {
    background-color: #20bd5a;
    border-color: #20bd5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.text-primary-custom {
    color: var(--color-primary) !important;
}
.text-secondary-custom {
    color: var(--color-secondary) !important;
}
.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

/* Header & Navbar */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    padding: 0.85rem 0;
}
.navbar-brand-logo {
    max-height: 48px;
    object-fit: contain;
}

/* Hero Section Imersiva */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%),
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #ffffff;
}

.hero-search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    color: #1e293b;
}

/* Cards de Imóveis */
.card-imovel {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.card-imovel:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-imovel .img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.card-imovel .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-imovel:hover .img-container img {
    transform: scale(1.05);
}

.badge-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}
.badge-code {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Detalhes do Imóvel */
.gallery-main-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
}
.gallery-thumb {
    height: 90px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}
.gallery-thumb.active {
    border-color: var(--color-secondary);
}

/* Card Sticky de Conversão */
.sticky-conversion-card {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

/* Mapa Leaflet */
#mapa-imovel {
    height: 380px;
    width: 100%;
    border-radius: 14px;
    z-index: 1;
}

/* Footer Sofisticado */
.footer-custom {
    background-color: var(--color-primary);
    color: #94a3b8;
    padding: 80px 0 30px;
}
.footer-custom h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-custom a {
    color: #94a3b8;
    text-decoration: none;
}
.footer-custom a:hover {
    color: var(--color-secondary);
}
