/* JP Imóveis - CSS Principal */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0891b2;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: #64748b !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* BOTÕES ESPECÍFICOS PARA HERO */
.hero-section .btn-outline-primary {
    border: 2px solid rgba(255,255,255,0.7);
    color: white !important;
    background: transparent;
}

.hero-section .btn-outline-primary:hover {
    background: rgba(255,255,255,0.2);
    color: white !important;
    border-color: white;
}

/* BOTÕES */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white !important;
}

.btn-success:hover {
    background: #047857;
    color: white !important;
}

.btn-outline-success {
    border: 2px solid var(--success);
    color: var(--success) !important;
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success);
    color: white !important;
    border-color: var(--success);
}

.btn-info {
    background: var(--info);
    color: white !important;
}

.btn-info:hover {
    background: #0e7490;
    color: white !important;
}

.btn-outline-info {
    border: 2px solid var(--info);
    color: var(--info) !important;
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--info);
    color: white !important;
    border-color: var(--info);
}

.btn-warning {
    background: var(--warning);
    color: white !important;
}

.btn-warning:hover {
    background: #c2410c;
    color: white !important;
}

.btn-outline-warning {
    border: 2px solid var(--warning);
    color: var(--warning) !important;
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: white !important;
    border-color: var(--warning);
}

.btn-danger {
    background: var(--danger);
    color: white !important;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white !important;
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger) !important;
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white !important;
    border-color: var(--danger);
}

.btn-secondary {
    background: var(--gray);
    color: white !important;
}

.btn-secondary:hover {
    background: #475569;
    color: white !important;
}

.btn-outline-secondary {
    border: 2px solid var(--gray);
    color: var(--gray) !important;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray);
    color: white !important;
    border-color: var(--gray);
}

.btn-light {
    background: #f8fafc;
    color: #374151 !important;
    border: 2px solid #e5e7eb;
}

.btn-light:hover {
    background: #f1f5f9;
    color: #374151 !important;
    border-color: #d1d5db;
}

.btn-dark {
    background: var(--dark);
    color: white !important;
}

.btn-dark:hover {
    background: #0f172a;
    color: white !important;
}

.btn-outline-light {
    border: 2px solid #f8fafc;
    color: #f8fafc !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: #f8fafc;
    color: #374151 !important;
    border-color: #f8fafc;
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    color: var(--dark) !important;
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: white !important;
    border-color: var(--dark);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white !important;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    color: white !important;
}

.btn-line {
    background: linear-gradient(135deg, #00c300, #00a000);
    color: white !important;
}

.btn-line:hover {
    background: linear-gradient(135deg, #00a000, #008000);
    color: white !important;
}

/* BOTÕES PEQUENOS */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* BOTÕES EM CARDS */
.card .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.card .btn:hover {
    transform: translateY(-1px);
}

/* LINKS COMO BOTÕES */
a.btn {
    display: inline-block;
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

/* GRUPOS DE BOTÕES */
.btn-group .btn {
    margin: 0;
}

.btn-group .btn:hover {
    z-index: 2;
}

/* BOTÕES FLUTUANTES ESPECÍFICOS */
.btn-floating {
    position: relative;
    overflow: hidden;
}

.btn-floating::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn-floating:hover::before {
    width: 300px;
    height: 300px;
}

/* OVERRIDE PARA BOOTSTRAP */
.btn:focus,
.btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn:not(:disabled):not(.disabled):active:focus,
.btn:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.5);
}

/* BOTÕES ESPECÍFICOS PARA IMÓVEIS */
.btn-imovel {
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-imovel:last-child {
    margin-bottom: 0;
}

/* FORÇA CONTRASTE PARA TEXTOS */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark {
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}

/* GARANTIA DE VISIBILIDADE */
.btn:not(.btn-outline-primary):not(.btn-outline-success):not(.btn-outline-info):not(.btn-outline-warning):not(.btn-outline-danger):not(.btn-outline-secondary):not(.btn-outline-light):not(.btn-outline-dark) {
    color: white !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    transform: translateY(-2px);
}

/* RESET COMPLETO PARA BOTÕES PROBLEMÁTICOS */
.card .btn,
.modal .btn,
.section .btn,
.container .btn {
    text-decoration: none !important;
}

.card .btn:hover,
.modal .btn:hover,
.section .btn:hover,
.container .btn:hover {
    text-decoration: none !important;
}

/* ESPECÍFICO PARA BOTÕES EM CARDS DE IMÓVEIS */
.card-body .btn-outline-info {
    color: var(--info) !important;
    border-color: var(--info);
}

.card-body .btn-outline-info:hover {
    background: var(--info) !important;
    color: white !important;
    border-color: var(--info);
}

.card-body .btn-outline-secondary {
    color: var(--gray) !important;
    border-color: var(--gray);
}

.card-body .btn-outline-secondary:hover {
    background: var(--gray) !important;
    color: white !important;
    border-color: var(--gray);
}

/* BOTÕES RESPONSIVOS */
@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    .btn-group {
        display: block;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 12px !important;
    }
}

/* CARDS */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* ESTATÍSTICAS */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.stats-card h3 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stats-card p {
    color: #64748b;
    margin: 0;
}

/* FILTROS */
.filtros-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* BADGES */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.badge-destacado {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #92400e !important;
}

/* VALORES */
.valor-destaque {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* SECTIONS */
.section {
    padding: 4rem 0;
}

/* TARJA */
.tarja-aviso {
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
}

/* BOTÕES FLUTUANTES */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float.left {
    right: auto;
    left: 20px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-topo {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 90px;
    right: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-topo.left {
    right: auto;
    left: 20px;
}

.btn-topo.show {
    opacity: 1;
}

.btn-topo:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .filtros-container {
        margin-top: -2rem;
        padding: 1.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .valor-destaque {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float.left {
        left: 15px;
    }
    
    .btn-topo {
        width: 45px;
        height: 45px;
        font-size: 14px;
        bottom: 80px;
        right: 15px;
    }
    
    .btn-topo.left {
        left: 15px;
    }
    
    .navbar-collapse {
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        background: rgba(248,250,252,0.95);
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .stats-card h3 {
        font-size: 1.75rem;
    }
    
    .stats-card i {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* MELHORIAS GERAIS */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.modal-content {
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
}

/* FIXES ESPECÍFICOS */
.navbar-toggler:focus {
    box-shadow: none;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Evitar zoom em inputs iOS */
input, select, textarea {
    font-size: 16px;
}

/* Lista sem marcadores */
ul, ol {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

ul::before, ol::before, 
ul::after, ol::after,
li::before, li::after {
    display: none !important;
    content: none !important;
}

.navbar-nav ul,
.navbar-nav ol,
.navbar-nav li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

.dropdown-menu ul,
.dropdown-menu ol,
.dropdown-menu li {
    list-style: none !important;
} 