/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
}

.finder {
    background-color: transparent;
    padding: 20px 0;
}

.title-banner {
    background: linear-gradient(135deg, #0073C6, #00549E);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 115, 198, 0.15);
}

.title-banner h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-banner p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Estilos para el formulario de búsqueda */
.search-form {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-title {
    color: #0073C6;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    height: auto;
    border-radius: 5px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0073C6;
    box-shadow: 0 0 0 2px rgba(0, 115, 198, 0.1);
}

.label-text {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.btn-search {
    background-color: #0073C6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 10px;
    width: 100%;
}

.btn-search:hover {
    background-color: #005c9e;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 115, 198, 0.2);
}

/* Estilos para el mapa y detalles */
.map-container {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

#map {
    width: 100%;
    height: 450px;
}

.details-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 450px;
    overflow-y: auto;
}

.details-title {
    background-color: #0073C6;
    color: #fff;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.details {
    padding: 0;
}

/* Estilos para la lista de distribuidores */
.dealer-list-container {
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
}

/* Estilos para las tarjetas de distribuidores */
.dealer-card {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
}

.dealer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 115, 198, 0.2);
}

.dealer-card.active {
    background-color: #ebf5ff;
    border-left: 4px solid #0073C6;
}

.dealer-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0073C6;
    margin-bottom: 10px;
}

.dealer-address, .dealer-contact, .dealer-location {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.dealer-address i, .dealer-contact i, .dealer-location i {
    margin-right: 8px;
    color: #0073C6;
    width: 16px;
    text-align: center;
}

.dealer-channel {
    color: #777;
    font-size: 0.85rem;
    margin: 8px 0;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.dealer-channel i {
    margin-right: 5px;
    color: #0073C6;
}

.dealer-actions {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.btn-direction {
    color: #0073C6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    background-color: #e6f2ff;
    padding: 5px 12px;
    border-radius: 5px;
}

.btn-direction i {
    margin-right: 5px;
}

.btn-direction:hover {
    color: #005c9e;
    background-color: #d1e6ff;
    text-decoration: none;
}

/* Estilos para infoWindow en el mapa */
.info-window {
    padding: 8px;
}

.info-window h4 {
    color: #0073C6;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-window p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.no-results {
    padding: 30px;
    text-align: center;
    color: #777;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

/* Estilos para el campo de búsqueda */
.search-ul {
    margin-bottom: 15px;
}

#search-list {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#search-list:focus {
    border-color: #0073C6;
    box-shadow: 0 0 0 2px rgba(0, 115, 198, 0.1);
    outline: none;
}

/* Personalización de scrollbar */
.dealer-list-container::-webkit-scrollbar {
    width: 8px;
}

.dealer-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dealer-list-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.dealer-list-container::-webkit-scrollbar-thumb:hover {
    background: #0073C6;
}

/* Estadísticas */
.stats-section {
    padding: 50px 0;
    background-color: #f9f9f9;
    margin: 40px 0;
}

.stat-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 115, 198, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0073C6;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

/* Loader */
.loading-bar {
    height: 4px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ddd;
    border-radius: 2px;
    margin-bottom: 20px;
}

.loading-bar:before {
    display: block;
    position: absolute;
    content: "";
    left: -200px;
    width: 200px;
    height: 4px;
    background-color: #0073C6;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    from {
        left: -200px;
        width: 30%;
    }
    50% {
        width: 30%;
    }
    70% {
        width: 70%;
    }
    80% {
        left: 50%;
    }
    95% {
        left: 120%;
    }
    to {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title-banner h2 {
        font-size: 2rem;
    }
    
    #map {
        height: 300px;
    }
    
    .details-container {
        height: 300px;
        margin-top: 20px;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
    
    .dealer-card {
        padding: 12px;
    }
    
    .dealer-name {
        font-size: 1rem;
    }
    
    .btn-direction {
        font-size: 0.85rem;
    }
}
  