/* galerie.css - Stiluri specifice pentru pagina Galerie */

/* Gallery Filter */
.gallery-filter {
    padding: 40px 0;
    background: white;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: #555;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Gallery Grid */
.gallery-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Lightbox - VERSIUNE UNIFICATĂ CORECTĂ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Navigation arrows */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    font-family: Arial, sans-serif;
    line-height: 1;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.1em;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 8px 8px;
}

/* Video Tour */
.video-tour {
    padding: 80px 0;
    background: white;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Virtual Tour */
.virtual-tour {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

.tour-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.panorama-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.panorama-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.panorama-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.panorama-preview {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
}

.panorama-content {
    padding: 20px;
}

.panorama-content h3 {
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.panorama-content p {
    color: var(--gray);
}

.btn-360 {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 15px;
    transition: var(--transition);
}

.btn-360:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Instagram Feed */
.instagram-feed {
    padding: 80px 0;
    background: white;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 40px;
}

.insta-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    transition: var(--transition);
    cursor: pointer;
}

.insta-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Page Header specific pentru galerie */
/*.page-header {*/
/*    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);*/
/*}*/

/* Responsive pentru pagina galerie */
@media (max-width: 1024px) {
    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .panorama-grid {
        grid-template-columns: 1fr;
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Lightbox responsive */
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .lightbox-nav.prev {
        left: 5px;
    }

    .lightbox-nav.next {
        right: 5px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        bottom: 10px;
        font-size: 0.9em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    /* Lightbox pentru mobil mic */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

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

.social-card .lni {
    font-size: 1em;
    color: #fff;
}