/* Gallery Hero */
.gallery-hero {
    padding: 120px 0 60px;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.gallery-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gallery-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.7) 100%);
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 1;
}

.gallery-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--lux-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero .eyebrow {
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    background: var(--bg-white);
    padding: 40px 0 30px;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Filter Groups Layout */
.filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.filter-group-icon {
    display: flex;
    align-items: center;
    color: var(--nobilia-red);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 24px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    min-width: 120px;
}

.filter-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nobilia-red);
    line-height: 1;
}

.filter-chip.active .filter-count {
    color: var(--text-white);
}

.filter-chip:hover {
    border-color: var(--nobilia-red);
    color: var(--nobilia-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 30, 50, 0.15);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--nobilia-red) 0%, #a01830 100%);
    border-color: var(--nobilia-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(200, 30, 50, 0.3);
}

.filter-chip .chip-icon {
    font-size: 1rem;
}

/* Active Filters Display */
.active-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
    min-height: 32px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--lux-gold) 0%, #d4a855 100%);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.active-filter-tag .remove-filter {
    background: none;
    border: none;
    color: var(--bg-dark);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.active-filter-tag .remove-filter:hover {
    opacity: 1;
}

/* Filter Results */
.filter-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

#resultsCount {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--nobilia-red);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    display: none;
}

.clear-filters:hover {
    color: #a01830;
}

/* Gallery Empty State */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.gallery-empty svg {
    margin-bottom: 20px;
    opacity: 0.4;
}

.gallery-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gallery-empty p {
    font-size: 1rem;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0 100px;
    background: var(--bg-light);
    min-height: 60vh;
}

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

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

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

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--text-white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.gallery-item-category {
    font-size: 0.85rem;
    color: var(--lux-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--nobilia-red);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--nobilia-red);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    margin-top: 20px;
    color: var(--text-white);
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.lightbox-info p {
    color: var(--lux-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Loading Animation */
.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 120px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-section {
        padding: 25px 0 20px;
        top: 60px;
    }
    
    .filter-groups {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .filter-group {
        align-items: center;
    }
    
    .filter-chips {
        justify-content: center;
    }
    
    .filter-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .lightbox-nav {
        padding: 15px 10px;
        font-size: 1.5rem;
    }
    
    .active-filters {
        gap: 8px;
    }
    
    .filter-results {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .filter-chip {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
