/* Gallery Page Specific Styles */

/* Override page-hero for gallery page */
.page-hero {
    background: linear-gradient(135deg, #D31789 0%, #F06292 50%, #4ecdc4 100%) !important;
    padding: 80px 0 60px !important;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(78,205,196,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(211,23,137,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero h1 {
    font-size: 4rem !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3) !important;
}

/* Tab Buttons */
.tab-buttons {
    display: inline-flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    border: 1px solid #eee;
    padding: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: #555;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-btn i {
    font-size: 1.1rem;
    opacity: 0.8;
}
.tab-btn:hover {
    background: rgba(211, 23, 137, 0.05);
    color: #D31789;
}
.tab-btn.active {
    background: #D31789;
    color: white;
    box-shadow: 0 4px 12px rgba(211, 23, 137, 0.25);
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 40px 20px 20px;
    text-align: center;
    display: none;
}
.filter-section.active {
    display: block;
}
.filter-btn {
    padding: 10px 22px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #444;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.filter-btn:hover {
    border-color: #D31789;
    color: #D31789;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 23, 137, 0.1);
}
.filter-btn.active {
    background: #D31789;
    color: white;
    border-color: #D31789;
    box-shadow: 0 4px 12px rgba(211, 23, 137, 0.2);
}
.filter-select {
    display: none;
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #D31789;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #D31789;
    background: white;
    cursor: pointer;
    font-weight: 600;
    margin: 15px auto 0;
}

/* Gallery Section */
.gallery-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: none;
}
.gallery-section.active {
    display: block;
}
.images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* Video Card */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}
.video-title {
    padding: 16px;
    background: white;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    border-top: 3px solid #D31789;
}

/* Loading & Pagination */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.pagination-container {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pagination-btn {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #D31789;
    background: white;
    color: #D31789;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 36px;
}
.pagination-btn:hover {
    background: #D31789;
    color: white;
}
.pagination-btn.active {
    background: #D31789;
    color: white;
}
.pagination-ellipsis {
    padding: 8px 6px;
    color: #D31789;
    font-weight: 600;
}

/* Serving Areas Section */
.loc-link {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.loc-link:hover {
    background: #D31789;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(211, 23, 137, 0.2);
}
.explore-all-link {
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    color: #D31789;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px dashed #D31789;
}
.explore-all-link:hover {
    background: #D31789;
    color: #fff;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

#lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}
.pagination-info {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
}
.pagination-btn-main {
    padding: 12px 24px;
    background: #D31789;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pagination-btn-main:hover {
    background: #b91570;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 23, 137, 0.2);
}
.pagination-btn-main:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem !important;
    }
    .filter-buttons {
        display: none;
    }
    .filter-select {
        display: block;
    }
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    .pagination-container {
        gap: 5px;
    }
    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 32px;
    }
}
