/* ============================================================
   Estilos extraídos de src/views/corretores/show.php
   ============================================================ */

/* ========================================
   PERFIL DO CORRETOR - PREMIUM DESIGN
   ======================================== */

/* Hero Section */
.perfil-hero {
    position: relative;
    background: linear-gradient(135deg, #14483a 0%, #2d3748 50%, #1a202c 100%);
    padding: 80px 0 140px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 139, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 139, 110, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.perfil-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.perfil-avatar-section {
    display: flex;
    align-items: center;
    gap: 32px;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.featured-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border: 3px solid #14483a;
}

.perfil-info {
    flex: 1;
}

.perfil-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge-creci,
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-creci {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-verified {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0.1) 100%);
    color: #8dbd65;
    border: 1px solid rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

a.badge-verified:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.35) 0%, rgba(37, 211, 102, 0.2) 100%);
    color: #d1fae5;
}

.perfil-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.perfil-especialidades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-especialidade {
    background: rgba(45, 139, 110, 0.15);
    color: #8dbd65;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(45, 139, 110, 0.25);
}

.perfil-stats-mini {
    display: flex;
    gap: 24px;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.stat-mini i {
    color: #8dbd65;
}

.stat-mini strong {
    color: white;
    font-weight: 600;
}

.perfil-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.btn-action.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-action.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-action.phone {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-action.phone:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-action.email {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-action.email:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Content Section */
.perfil-content {
    padding: 40px 0 80px;
    background: #f8fafc;
}

.perfil-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

/* Content Cards */
.content-card,
.sidebar-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.content-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid #f1f5f9;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2d8b6e 0%, #1a5f4a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.header-icon.stats {
    background: linear-gradient(135deg, #0f2d22 0%, #1a5f4a 100%);
}

.header-text {
    flex: 1;
}

.header-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #14483a;
    margin: 0 0 4px;
}

.header-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.header-action {
    white-space: nowrap;
    background: linear-gradient(135deg, #14483a 0%, #2d3748 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.header-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 72, 58, 0.3);
    color: white;
}

.toggle-stats i {
    transition: transform 0.3s ease;
}

.toggle-stats.active i {
    transform: rotate(180deg);
}

.content-card .card-body {
    padding: 28px;
}

/* Bio Section */
.bio-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

.bio-default {
    color: #64748b;
}

.skills-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.skills-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #14483a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-section h4 i {
    color: #f59e0b;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #166534;
}

.skill-item i {
    color: #22c55e;
}

/* Imóveis Grid */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.imovel-card-mini {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.imovel-card-mini:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.imovel-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.imovel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.imovel-card-mini:hover .imovel-img img {
    transform: scale(1.08);
}

.imovel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 72, 58, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imovel-card-mini:hover .imovel-overlay {
    opacity: 1;
}

.overlay-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14483a;
    font-size: 1.2rem;
    text-decoration: none;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.imovel-card-mini:hover .overlay-link {
    transform: scale(1);
}

.imovel-operacao {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.imovel-operacao.venda {
    background: linear-gradient(135deg, #2d8b6e 0%, #1a5f4a 100%);
    color: white;
}

.imovel-operacao.aluguel {
    background: linear-gradient(135deg, #0f2d22 0%, #1a5f4a 100%);
    color: white;
}

.imovel-destaque {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.imovel-info {
    padding: 18px;
}

.imovel-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #14483a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.imovel-local {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.imovel-local i {
    color: #2d8b6e;
}

.imovel-features {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.imovel-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #64748b;
}

.imovel-features i {
    color: #94a3b8;
}

.imovel-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d8b6e;
}

.imovel-price .imovel-periodo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

/* Imóvel sem preço cadastrado: tratamento discreto, sem "R$ 0,00" */
.imovel-price .preco-consulta {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
}

.ver-mais-container {
    text-align: center;
    margin-top: 24px;
}

.btn-ver-mais {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #14483a 0%, #2d3748 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ver-mais:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 72, 58, 0.3);
    color: white;
}

/* Empty State */
.empty-imoveis {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #94a3b8;
}

.empty-imoveis h4 {
    font-size: 1.2rem;
    color: #14483a;
    margin-bottom: 8px;
}

.empty-imoveis p {
    color: #64748b;
    margin-bottom: 20px;
}

.btn-buscar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2d8b6e 0%, #1a5f4a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-buscar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 139, 110, 0.3);
    color: white;
}

/* Stats Section */
.stats-body {
    display: none;
}

.stats-body.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #1a5f4a 100%); }
.stat-icon.green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.stat-icon.sky { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #14483a;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.chart-container h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #14483a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container h5 i {
    color: #2d8b6e;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

/* Sidebar Cards */
.sidebar-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-card .card-header i {
    color: #2d8b6e;
    font-size: 1.2rem;
}

.sidebar-card .card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #14483a;
    margin: 0;
}

.sidebar-card .card-body {
    padding: 24px;
}

/* Contact Card */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
}

.contact-item.whatsapp .contact-icon {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(37, 211, 102, 0.05) 100%);
    color: #25d366;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info a {
    color: #14483a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #2d8b6e;
}

.btn-whatsapp-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Social Card */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.05) 100%);
    color: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1) 0%, rgba(225, 48, 108, 0.05) 100%);
    color: #e1306c;
}

.social-link.linkedin {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1) 0%, rgba(10, 102, 194, 0.05) 100%);
    color: #0a66c2;
}

.social-link:hover {
    transform: translateX(4px);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #14483a 0%, #2d3748 100%);
    border: none;
}

.cta-content {
    padding: 32px;
    text-align: center;
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(45, 139, 110, 0.2) 0%, rgba(45, 139, 110, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #8dbd65;
}

.cta-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2d8b6e 0%, #1a5f4a 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 139, 110, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 1199px) {
    .perfil-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 991px) {
    .perfil-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .perfil-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .perfil-badges {
        justify-content: center;
    }
    
    .perfil-especialidades {
        justify-content: center;
    }
    
    .perfil-stats-mini {
        justify-content: center;
    }
    
    .perfil-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .perfil-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .perfil-hero {
        padding: 60px 0 100px;
    }
    
    .avatar-img,
    .avatar-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .perfil-name {
        font-size: 1.8rem;
    }
    
    .perfil-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .imoveis-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
}

/* Cabeçalho de card em telas estreitas: o botão "Ver todos" desce para baixo
   do título em vez de espremer/quebrar ao lado dele */
@media (max-width: 575px) {
    .content-card .card-header {
        flex-wrap: wrap;
    }

    .content-card .card-header .header-action {
        width: 100%;
        justify-content: center;
    }
}
