/* VideoCoche Safe - Estilos Básicos */

:root {
    --vc-red: #DC2626;
    --vc-red-dark: #B91C1C;
    --vc-black: #1F2937;
    --vc-gray: #6B7280;
    --vc-gray-light: #F3F4F6;
    --vc-white: #FFFFFF;
    --vc-border: #E5E7EB;
}

/* Formulario de búsqueda */
.videocoche-search {
    background: var(--vc-white);
    padding: 20px;
    border: 1px solid var(--vc-border);
    border-radius: 8px;
    margin-bottom: 30px;
}

.videocoche-search .search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.videocoche-search input[type="text"],
.videocoche-search select {
    padding: 10px 15px;
    border: 1px solid var(--vc-border);
    border-radius: 5px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.videocoche-search button {
    background: var(--vc-red);
    color: var(--vc-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.videocoche-search button:hover {
    background: var(--vc-red-dark);
}

/* Listados de vehículos */
.videocoche-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Tarjetas de vehículos */
.vehicle-card {
    background: var(--vc-white);
    border: 1px solid var(--vc-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vehicle-card.featured {
    border-color: var(--vc-red);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--vc-red);
    color: var(--vc-white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.vehicle-image {
    height: 200px;
    overflow: hidden;
    background: var(--vc-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: var(--vc-gray);
    font-size: 14px;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.vehicle-info h3 a {
    color: var(--vc-black);
    text-decoration: none;
}

.vehicle-info h3 a:hover {
    color: var(--vc-red);
}

.vehicle-type {
    color: var(--vc-red);
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.vehicle-location {
    color: var(--vc-gray);
    margin: 0 0 15px 0;
    font-size: 14px;
}

.vehicle-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.vehicle-details span {
    background: var(--vc-gray-light);
    padding: 5px 10px;
    border-radius: 15px;
    color: var(--vc-black);
}

.vehicle-details .price {
    background: var(--vc-red);
    color: var(--vc-white);
    font-weight: 600;
}

.vehicle-actions {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--vc-red);
    color: var(--vc-white);
}

.btn-primary:hover {
    background: var(--vc-red-dark);
    color: var(--vc-white);
}

/* Paginación */
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid var(--vc-border);
    color: var(--vc-black);
    text-decoration: none;
    border-radius: 3px;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--vc-red);
    color: var(--vc-white);
    border-color: var(--vc-red);
}

/* Meta boxes en admin */
.form-table th {
    width: 150px;
}

.form-table input[type="number"],
.form-table input[type="url"],
.form-table input[type="text"],
.form-table input[type="tel"],
.form-table input[type="email"] {
    width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .videocoche-search .search-row {
        flex-direction: column;
    }
    
    .videocoche-search input[type="text"],
    .videocoche-search select {
        width: 100%;
        min-width: auto;
    }
    
    .videocoche-listings {
        grid-template-columns: 1fr;
    }
    
    .vehicle-details {
        justify-content: center;
    }
}

