/* Modern Gallery Styles */

/* Ana Galeri Container */
.property-gallery-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Ana Galeri */
.property-gallery-main {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main-image:hover {
    transform: scale(1.05);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container:hover .image-overlay {
    opacity: 1;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
}

.fullscreen-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Thumbnail Gallery */
.property-gallery-thumbs {
    height: 80px;
}

.gallery-thumb-container {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb-container.swiper-slide-thumb-active {
    border-color: #007bff;
}

.gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb-container:hover .gallery-thumb-image {
    transform: scale(1.1);
}

/* Galeri Bilgileri */
.gallery-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.gallery-counter {
    font-weight: 600;
    color: #333;
}

.gallery-actions .btn {
    margin-left: 10px;
}

/* Swiper Navigation Buttons */
.property-gallery-main .swiper-button-next,
.property-gallery-main .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.property-gallery-main .swiper-button-next:hover,
.property-gallery-main .swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
}

.property-gallery-main .swiper-button-next::after,
.property-gallery-main .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper Pagination */
.property-gallery-main .swiper-pagination {
    bottom: 20px;
}

.property-gallery-main .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
    transition: all 0.3s ease;
}

.property-gallery-main .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.3);
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.fullscreen-title {
    font-size: 18px;
    font-weight: 600;
}

.fullscreen-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fullscreen-gallery {
    flex: 1;
    position: relative;
}

.fullscreen-swiper {
    width: 100%;
    height: 100%;
}

.fullscreen-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.fullscreen-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.fullscreen-pagination {
    font-size: 16px;
    font-weight: 500;
}

.fullscreen-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Fullscreen Swiper Navigation */
.fullscreen-swiper .swiper-button-next,
.fullscreen-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.fullscreen-swiper .swiper-button-next:hover,
.fullscreen-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-swiper .swiper-button-next::after,
.fullscreen-swiper .swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-gallery-main {
        height: 300px;
    }

    .property-gallery-thumbs {
        height: 60px;
    }

    .gallery-thumb-container {
        height: 60px;
    }

    .gallery-info {
        padding: 10px;
    }

    .gallery-actions .btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .fullscreen-header,
    .fullscreen-footer {
        padding: 15px 20px;
    }

    .fullscreen-title {
        font-size: 16px;
    }

    .fullscreen-close {
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .fullscreen-actions button {
        width: 35px;
        height: 35px;
        margin-left: 8px;
    }

    .fullscreen-swiper .swiper-button-next,
    .fullscreen-swiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }

    .fullscreen-swiper .swiper-button-next::after,
    .fullscreen-swiper .swiper-button-prev::after {
        font-size: 18px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.property-gallery-container {
    animation: slideUp 0.6s ease;
}

.fullscreen-modal {
    animation: fadeIn 0.3s ease;
}

/* Loading States */
.gallery-main-image,
.gallery-thumb-image,
.fullscreen-image {
    background: #f8f9fa;
    background-image: linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
                      linear-gradient(-45deg, #f8f9fa 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
                      linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Zoom States for Fullscreen */
.fullscreen-image.zoomed {
    cursor: grab;
}

.fullscreen-image.zoomed:active {
    cursor: grabbing;
}
