.hero-search-container {
    background: linear-gradient(rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.20)), 
                var(--hero-image) center/cover no-repeat;
    padding: 55px 0 65px 0;
    color: #ffffff;
    text-align: center;
}
.search-card { 
    background: rgba(255, 255, 255, 0.92);
    padding: 24px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    color: var(--dark, #0f172a); 
    max-width: 1100px; 
    margin: 0 auto; 
}

.search-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 15px; 
    align-items: end; 
}

/* Categorías (Pills) */
.category-pills { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding-bottom: 10px; 
    margin: 30px 0 25px 0; 
}

.pill-item { 
    padding: 8px 18px; 
    border-radius: 20px; 
    background: #ffffff; 
    border: 1px solid var(--border, #e2e8f0); 
    color: #475569; 
    font-size: 0.88rem; 
    font-weight: 600; 
    text-decoration: none; 
    white-space: nowrap; 
}

.pill-item.active, 
.pill-item:hover { 
    background: var(--primary, #0052cc); 
    color: #ffffff; 
    border-color: var(--primary, #0052cc); 
}

/* ==========================================================================
   GRILLA Y TARJETAS EN ESCRITORIO (3 COLUMNAS X FILA - ESTILO CUADRÍCULA)
   ========================================================================== */

/* Contenedor Principal de Autos */
#contenedorVehiculos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual tamaño */
    gap: 20px; /* Espaciado uniforme entre tarjetas */
    margin-bottom: 25px;
}

/* Tarjeta Individual en Modo Vertical */
.vehicle-card-horizontal { 
    background: #ffffff; 
    border: 1px solid var(--border, #e2e8f0); 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Imagen del Vehículo */
.vehicle-img-wrapper {
    width: 100%;
    height: 165px; /* Altura estándar para la grilla */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.vehicle-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contenido Informativo */
.vehicle-info-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sección de Precio y Botón "Ver Oferta" */
.vehicle-price-action {
    padding: 16px; 
    background: #f8fafc; 
    border-left: none;
    border-top: 1px solid var(--border, #e2e8f0); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: stretch;
    text-align: center;
}

.vehicle-price-action .price-box {
    text-align: center !important;
    margin-bottom: 8px;
}

/* ==========================================================================
   ADAPTATIVIDAD RESPONSIVA (TABLETS Y MÓVILES)
   ========================================================================== */

/* Pantallas Intermedias / Tablets (2 Columnas) */
@media (max-width: 1024px) and (min-width: 901px) {
    #contenedorVehiculos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Rediseño para Dispositivos Móviles (< 900px - Layout Compacto Kayak) */
@media (max-width: 768px) { 
    #contenedorVehiculos {
        grid-template-columns: 1fr; /* 1 tarjeta a ancho completo por fila */
        gap: 12px;
    }

    .vehicle-card-horizontal { 
        display: grid;
        grid-template-columns: 110px 1fr; 
        margin-bottom: 0;
        border-radius: 10px;
    } 

    .vehicle-img-wrapper { 
        min-height: 100px;
        height: 100%;
        padding: 4px;
        border-bottom: none;
    }

    .vehicle-img-wrapper img {
        max-height: 90px;
    }

    .vehicle-info-content {
        padding: 10px 12px;
        position: relative;
    }

    .vehicle-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 6px;
    }

    .vehicle-info-content h3 {
        font-size: 0.95rem !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        line-height: 1.2;
    }

    .vehicle-agency-text {
        font-size: 0.75rem !important;
    }

    .vehicle-specs-text {
        font-size: 0.75rem !important;
        margin-top: 4px !important;
        color: #64748b;
    }

    .vehicle-price-action {
        grid-column: span 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: #ffffff;
        border-left: none;
        border-top: 1px solid #f1f5f9;
        text-align: left;
    }

    .vehicle-price-action .price-box {
        text-align: left !important;
        margin-bottom: 0;
    }

    .vehicle-price-action .price-total {
        font-size: 1.15rem !important;
        margin: 0 !important;
    }

    .vehicle-price-action .btn {
        margin-top: 0 !important;
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        width: auto !important;
    }
}
