/* Estilos para páginas de detalle de vehículo */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Vehicle Detail Section */
.vehicle-detail {
    padding: 40px 0;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Galería de imágenes */
.vehicle-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
    background: #f5f5f5;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.main-image .badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF5722;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    background: #f5f5f5;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    opacity: 0.8;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* Información del vehículo */
.vehicle-info-detail h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.vehicle-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.location-badge {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.location-badge i {
    color: var(--primary-color);
    margin-right: 5px;
}

.vehicle-info-detail .rating {
    margin-bottom: 25px;
    color: #FFC107;
    font-size: 1.1rem;
}

.vehicle-info-detail .rating span {
    color: var(--text-light);
    margin-left: 10px;
    font-size: 0.9rem;
}

.vehicle-description {
    margin-bottom: 25px;
}

.vehicle-description h3,
.vehicle-specs h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.vehicle-description p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Especificaciones */
.vehicle-specs {
    margin-bottom: 30px;
}

.specs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.specs-list li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.specs-list li strong {
    color: var(--text-dark);
}

/* Botones de contacto */
.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.whatsapp-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-large:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-large i {
    font-size: 1.5rem;
}

.phone-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.phone-btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sección de ubicaciones */
.locations-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.location-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.location-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-header i {
    font-size: 2rem;
}

.location-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.location-address {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.location-address p {
    margin: 5px 0;
    color: var(--text-dark);
}

.location-address i {
    color: var(--primary-color);
    margin-right: 8px;
}

.location-map {
    padding: 15px;
}

.directions-btn {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.directions-btn:hover {
    background: var(--primary-dark);
}

.directions-btn i {
    margin-right: 8px;
}

/* Otros vehículos */
.other-vehicles {
    padding: 60px 0;
}

.other-vehicles .vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.other-vehicles .vehicle-card {
    transition: var(--transition);
}

.other-vehicles .vehicle-card:hover {
    transform: translateY(-8px);
}

.other-vehicles .vehicle-card a {
    display: block;
    color: inherit;
}

.other-vehicles .vehicle-image {
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.other-vehicles .vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.other-vehicles .vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .vehicle-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vehicle-gallery {
        position: static;
    }

    .main-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .vehicle-info-detail h1 {
        font-size: 1.8rem;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 280px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .thumbnail {
        height: 60px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        padding: 20px;
    }

    .whatsapp-btn-large {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .vehicle-meta {
        flex-direction: column;
        gap: 10px;
    }

    .category-badge,
    .location-badge {
        text-align: center;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
