/**
 * Vehicle List Pages - Equal Height Cards
 * Ensures all vehicle cards have equal height in all list layouts
 */

/* Spinner animation for load more button */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Equal height cards for vehicle list - fleet-list (3 columns) */
#vehicleItemsContainer .col-lg-4,
#vehicleItemsContainer .col-md-6,
#vehicleItemsContainer .col-lg-3,
#vehicleItemsContainer .col-lg-12 {
    display: flex;
}

#vehicleItemsContainer .cardFleet {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#vehicleItemsContainer .cardFleet .cardInfo {
    flex: 1;
}

#vehicleItemsContainer .cardFleet .cardImage {
    flex-shrink: 0;
}

#vehicleItemsContainer .cardFleet .cardImage img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#vehicleItemsContainer .cardFleet .cardInfoBottom {
    flex-shrink: 0;
    margin-top: auto;
}

/* Equal height cards for vehicle list - fleet-list-3 (4 columns, cardFleetStyle3) */
#vehicleItemsContainer .cardFleetStyle3 .cardImage {
    flex-shrink: 0;
}

#vehicleItemsContainer .cardFleetStyle3 .cardInfo {
    flex: 1;
}

/* Regular cardFleet structure (info first) */
#vehicleItemsContainer .cardFleet:not(.cardFleetStyle3) .cardInfo {
    flex: 1;
}

#vehicleItemsContainer .cardFleet:not(.cardFleetStyle3) .cardImage {
    flex-shrink: 0;
}

/* Equal height cards for vehicle list - fleet-list-4 (vehicleItemsContainerV1) */
#vehicleItemsContainerV1 .col-lg-4,
#vehicleItemsContainerV1 .col-md-6,
#vehicleItemsContainerV1 .col-lg-3,
#vehicleItemsContainerV1 .col-lg-12 {
    display: flex;
}

#vehicleItemsContainerV1 .cardFleet {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#vehicleItemsContainerV1 .cardFleet .cardInfo {
    flex: 1;
}

#vehicleItemsContainerV1 .cardFleet .cardImage {
    flex-shrink: 0;
}

#vehicleItemsContainerV1 .cardFleet .cardImage img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#vehicleItemsContainerV1 .cardFleet .cardInfoBottom {
    flex-shrink: 0;
    margin-top: auto;
}

/* Vehicle Filter Form Styles - Özel isimlendirme ile çakışma önleme */
.box-vehicle-filter {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.box-filter-form {
    width: 100%;
}

.box-filter-item {
    width: 100%;
}

.box-filter-input-wrapper {
    width: 100%;
}

.box-filter-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.box-filter-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #666;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box-filter-icon-left .icon-base {
    font-size: 18px;
    color: #666;
}

.box-filter-input,
.box-filter-select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.box-filter-input::placeholder {
    color: #999;
}

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

.box-filter-input:focus + .box-filter-icon-left,
.box-filter-select:focus ~ .box-filter-icon-left {
    color: var(--primary-color, #007bff);
}

.box-filter-select {
    cursor: pointer;
    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.box-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 100%;
}

.box-filter-submit-btn,
.box-filter-clear-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    line-height: 1;
}

.box-filter-submit-btn {
    flex: 1;
}

.box-filter-clear-btn {
    min-width: 48px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .box-filter-actions {
        margin-top: 10px;
    }
    
    .box-filter-submit-btn {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .box-vehicle-filter {
        padding: 15px;
    }
    
    .box-filter-input,
    .box-filter-select {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }
    
    .box-filter-icon-left {
        left: 14px;
    }
    
    .box-filter-icon-left .icon-base {
        font-size: 16px;
    }
    
    .box-filter-select {
        padding-right: 38px;
        background-position: right 14px center;
    }
    
    .box-filter-submit-btn,
    .box-filter-clear-btn {
        padding: 12px 20px;
        font-size: 13px;
        height: 44px;
    }
}

