/* Custom styling for results carousel */
.results-carousel {
    position: relative;
    padding: 0 40px;
}

.results-carousel .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
}

.results-carousel .owl-nav button {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background-color: #06A3DA !important;
    color: white !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.results-carousel .owl-nav button:hover {
    background-color: #0590c1 !important;
    transform: scale(1.1);
}

.results-carousel .owl-nav button.owl-prev {
    left: -5px;
}

.results-carousel .owl-nav button.owl-next {
    right: -5px;
}

.results-carousel .owl-dots {
    margin-top: 15px;
}

/* Image styling for better display */
.results-item {
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    cursor: pointer;
}

.results-item img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.results-item:hover img {
    transform: scale(1.03);
}

/* Lightbox for image enlargement */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.modal-content {
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #06A3DA;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-carousel {
        padding: 0 30px;
    }
    
    .results-item img {
        height: 280px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .close {
        right: 20px;
        top: 20px;
    }
}

@media (max-width: 576px) {
    .results-carousel {
        padding: 0 25px;
    }
    
    .results-item img {
        height: 240px;
    }
}