/**
 * Oto Yedek Parça - Araç Filtre CSS
 * Layout ve responsive kuralları. Renk/border/padding CE tarafından kontrol edilir.
 *
 * v1.6.0 - Esnek sütun düzeni ve arama inputu desteği
 */

.vehicle-filter-widget {
    margin: 20px 0;
}

.vehicle-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.vehicle-filter-item {
    box-sizing: border-box;
}

.vehicle-filter-item label {
    display: block;
    font-weight: 600;
}

/* Arama Inputu */
.vehicle-filter-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.vehicle-filter-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.vehicle-filter-input::placeholder {
    color: #999999;
    opacity: 1;
}

.vehicle-filter-select {
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.vehicle-filter-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.vehicle-filter-select:focus {
    outline: none;
}

.vehicle-filter-button {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: opacity 0.2s;
}

.vehicle-filter-button:hover {
    opacity: 0.9;
}

/* ========================================
 * Sütun Düzen Sınıfları (1-12 Grid)
 * ======================================== */

/* Masaüstü sütun genişlikleri (varsayılan) */
.oyp-col-desktop-1  { width: calc(100% / 12 * 1); }
.oyp-col-desktop-2  { width: calc(100% / 12 * 2); }
.oyp-col-desktop-3  { width: calc(100% / 12 * 3); }
.oyp-col-desktop-4  { width: calc(100% / 12 * 4); }
.oyp-col-desktop-5  { width: calc(100% / 12 * 5); }
.oyp-col-desktop-6  { width: calc(100% / 12 * 6); }
.oyp-col-desktop-7  { width: calc(100% / 12 * 7); }
.oyp-col-desktop-8  { width: calc(100% / 12 * 8); }
.oyp-col-desktop-9  { width: calc(100% / 12 * 9); }
.oyp-col-desktop-10 { width: calc(100% / 12 * 10); }
.oyp-col-desktop-11 { width: calc(100% / 12 * 11); }
.oyp-col-desktop-12 { width: 100%; }

/* Tam satır */
.oyp-full-row {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Dikey Layout */
.vehicle-filter-widget[data-layout="vertical"] .vehicle-filter-container {
    flex-direction: column;
    align-items: stretch;
}

.vehicle-filter-widget[data-layout="vertical"] .vehicle-filter-item {
    width: 100% !important;
}

.vehicle-filter-widget[data-layout="vertical"] .vehicle-filter-button {
    width: 100%;
    justify-content: center;
}

/* ========================================
 * Responsive - Tablet (768px altı)
 * ======================================== */
@media (max-width: 768px) {
    /* Mobil sütun genişlikleri */
    .oyp-col-mobile-1  { width: calc(100% / 12 * 1) !important; }
    .oyp-col-mobile-2  { width: calc(100% / 12 * 2) !important; }
    .oyp-col-mobile-3  { width: calc(100% / 12 * 3) !important; }
    .oyp-col-mobile-4  { width: calc(100% / 12 * 4) !important; }
    .oyp-col-mobile-5  { width: calc(100% / 12 * 5) !important; }
    .oyp-col-mobile-6  { width: calc(100% / 12 * 6) !important; }
    .oyp-col-mobile-7  { width: calc(100% / 12 * 7) !important; }
    .oyp-col-mobile-8  { width: calc(100% / 12 * 8) !important; }
    .oyp-col-mobile-9  { width: calc(100% / 12 * 9) !important; }
    .oyp-col-mobile-10 { width: calc(100% / 12 * 10) !important; }
    .oyp-col-mobile-11 { width: calc(100% / 12 * 11) !important; }
    .oyp-col-mobile-12 { width: 100% !important; }
}

/* ========================================
 * Responsive - Mobil (480px altı)
 * ======================================== */
@media (max-width: 480px) {
    .vehicle-filter-container {
        gap: 10px;
    }

    .vehicle-filter-item {
        width: 100% !important;
    }

    .vehicle-filter-input,
    .vehicle-filter-select {
        font-size: 16px; /* iOS zoom engelleme */
    }
}
