/* Estilos para página Onde Encontrar */
.find-us-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
}

/* Estilo para nav pills ativo */
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #dc3545, #fd7e14) !important;
    color: white !important;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.nav-pills .nav-link {
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover:not(.active) {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: translateY(-1px);
}

.dealer-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dealer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dealer-card:hover::before {
    transform: scaleX(1);
}

.dealer-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(220, 53, 69, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dealer-card.clickable {
    cursor: pointer;
}

.dealer-card.clickable:hover {
    transform: translateY(-10px) scale(1.02);
}

.dealer-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.dealer-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc3545, #fd7e14, #ffc107);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(220, 53, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.dealer-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

.dealer-icon i {
    color: white;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

@keyframes shine {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(45deg);
    }
}

.dealer-name {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.dealer-type {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dealer-info {
    margin-bottom: 1rem;
}

.dealer-info p {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.dealer-info i {
    width: 16px;
    color: #dc3545;
    margin-right: 0.5rem;
}

.dealer-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-dealer {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-dealer-primary {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.btn-dealer-primary:hover {
    background: linear-gradient(135deg, #c82333, #e96b00);
    color: white;
    transform: translateY(-2px);
}

.btn-dealer-outline {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-dealer-outline:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.external-link-icon {
    opacity: 0.7;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Filtros modernos */
.filter-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: #f8f9fa;
    border: 2px solid transparent;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    height: 1rem;
    margin-bottom: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Efeito de glassmorphism no fundo */
.find-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(253, 126, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.find-us-section > * {
    position: relative;
    z-index: 1;
}

/* Animação de pulse para cards ativos */
.dealer-card.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(220, 53, 69, 0.2),
            0 2px 8px rgba(220, 53, 69, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

/* Título da seção mais estiloso */
.section-title {
    background: linear-gradient(135deg, #dc3545, #fd7e14, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .dealer-card {
        margin-bottom: 1.5rem;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-tab {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    
    .dealer-actions {
        flex-direction: column;
    }
}

/* Estilo para cards sem link */
.dealer-card .no-link-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animação de entrada dos cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dealer-card.animate-in {
    animation: slideInUp 0.6s ease forwards;
}