/* Custom styles for AJAX Image Box Search */

.aibs-image-box-container .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}
.aibs-image-box.card.animate__animated.animate__fadeIn {
    border: 2px solid #00000;
}

.aibs-search-container {
    padding: 20px 0;
}

.aibs-search-form {
    margin-bottom: 30px;
}

.aibs-search-input-wrapper {
    position: relative;
}

#aibs-search-input {
    padding-left: 40px;
    transition: all 0.3s ease;
}

#aibs-search-input:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.aibs-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    transition: color 0.3s ease;
}

#aibs-search-input:focus + .aibs-search-icon {
    color: #007bff;
}

#aibs-city-select {
    transition: all 0.3s ease;
}

#aibs-city-select:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.aibs-image-box-container {
    min-height: 200px;
}

.aibs-image-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aibs-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.aibs-image-wrapper {
    overflow: hidden;
}

.aibs-image-box img {
    transition: transform 0.3s ease;
}

.aibs-image-box:hover img {
    transform: scale(1.05);
}

.aibs-image-box a {
    display: block;
}

.aibs-image-box-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    color: #35b844;
    font-weight: 700;
}

.aibs-image-box-content {
    font-size: 0.9rem;
    color: #666;
}

/* Animation for box appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate__animated.animate__fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .aibs-image-box-container .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .aibs-image-box-container .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .aibs-search-form .col-md-6,
    .aibs-search-form .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}