/* ===================================================================
   STONEBERRY RESORT - GALLERY PAGE STYLES
   Elegant gallery with patterned backgrounds and luxury design
=================================================================== */

/* ===================================================================
   GALLERY HERO SECTION
=================================================================== */

.gallery-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f6f2ee 0%, #ede4dc 100%);
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(205, 130, 97, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(184, 112, 74, 0.10) 0%, transparent 50%);
    background-size: 400px 400px, 350px 350px;
    opacity: 0.7;
}

/* Simplified single animation for better performance */
@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 130, 97, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(205, 130, 97, 0.1);
    transition: transform 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
}

.hero-badge span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #b8704a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #CD8261, #b8704a);
    border-radius: 2px;
}

.gallery-hero h1 {
    font-family: 'TAN - PEARL', 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    color: #2C2C2C;
    margin: 0 0 20px;
    line-height: 1.2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #CD8261, transparent);
}

.gallery-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================================
   FEATURED GALLERY SLIDER SECTION
=================================================================== */

.featured-gallery {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    position: relative;
    overflow: hidden;
}

.featured-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(205, 130, 97, 0.10) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(184, 112, 74, 0.08) 0%, transparent 60%);
    background-size: 450px 450px, 400px 400px;
    opacity: 0.6;
    pointer-events: none;
}

.gallery-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 3;
}

/* Simplified static pattern background for slider - better performance */
.gallery-slider::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(205, 130, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(184, 112, 74, 0.06) 0%, transparent 50%);
    background-size: 350px 350px, 300px 300px;
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
}

.slider-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-item {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.slider-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slider-item.active .slider-image img {
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(205, 130, 97, 0.4) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.slider-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    z-index: 3;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.slider-item.active .slider-content {
    transform: translateY(0);
    opacity: 1;
}

.slider-category {
    display: inline-block;
    background: rgba(205, 130, 97, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-content h3 {
    font-family: 'TAN - PEARL', 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 15px;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

.slider-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 500px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 130, 97, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #b8704a;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: #b8704a;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(184, 112, 74, 0.3);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* ===================================================================
   EXPLORE MORE SECTION
=================================================================== */

.explore-more {
    padding: 120px 0;
    background: #f8f8f7;
    position: relative;
    overflow: hidden;
}

.explore-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(205, 130, 97, 0.10) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(184, 112, 74, 0.08) 0%, transparent 60%);
    background-size: 350px 350px, 300px 300px;
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-family: 'TAN - PEARL', 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    color: #2C2C2C;
    margin: 0 0 20px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #CD8261, transparent);
    margin: 0 auto;
    border-radius: 3px;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 130, 97, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: #b8704a;
    color: white;
    border-color: #b8704a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 112, 74, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(205, 130, 97, 0.5) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

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

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

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

.gallery-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-content h3 {
    font-family: 'TAN - PEARL', 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.3px;
}

.gallery-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-corner {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.gallery-cta .btn {
    background: linear-gradient(135deg, #CD8261 0%, #b8704a 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(205, 130, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.gallery-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gallery-cta .btn:hover::before {
    left: 100%;
}

.gallery-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(205, 130, 97, 0.4);
}

/* ===================================================================
   ANIMATIONS
=================================================================== */

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================================================
   RESPONSIVE DESIGN
=================================================================== */

@media (max-width: 768px) {
    .gallery-hero {
        padding: 80px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
        font-weight: 400;
    }
    
    .gallery-hero p {
        font-size: 16px;
    }
    
    /* Reduce pattern opacity on mobile for better performance */
    .gallery-hero::before,
    .gallery-slider::before,
    .featured-gallery::before,
    .explore-more::before {
        opacity: 0.3;
    }
    
    .featured-gallery {
        padding: 60px 0;
    }
    
    .slider-item {
        height: 400px;
    }
    
    .slider-content {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }
    
    .slider-content h3 {
        font-size: 28px;
        font-weight: 400;
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
    }
    
    .slider-content p {
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
        color: rgba(255, 255, 255, 0.98);
    }
    
    .slider-category {
        background: rgba(205, 130, 97, 0.98);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
    
    .explore-more {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .category-filter {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .gallery-overlay {
        padding: 20px;
    }
    
    .gallery-content h3 {
        font-size: 20px;
    }
    
    .gallery-cta {
        margin-top: 60px;
    }
    
    .gallery-cta .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-badge span {
        font-size: 12px;
    }
    
    .hero-line {
        width: 30px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
        font-weight: 400;
    }
    
    .slider-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .slider-content h3 {
        font-size: 24px;
        font-weight: 400;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    .slider-content p {
        font-size: 14px;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
        color: rgba(255, 255, 255, 0.98);
    }
    
    .slider-category {
        background: rgba(205, 130, 97, 0.98);
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
}
