﻿/* Gallery Styles - Professional Tour Website */
.btn-booknow {
    border: 2px solid var(--secondary-color);
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .btn-booknow i {
        transition: all 0.4s ease;
        color: white;
    }

    /* Hover Effects */
    .btn-booknow:hover {
        border-color: var(--secondary-color);
        background-color: var(--secondary-color);
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

        .btn-booknow:hover i {
            color: white;
            transform: translateX(3px);
        }

    /* Optional: Ripple Effect */
    .btn-booknow::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn-booknow:hover::after {
        animation: ripple 1s ease-out;
    }

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}


/* Hero Section */
.site-hero {
    height: 45vh;
    background: linear-gradient(135deg, #ed1b24 0%, #ed1b24 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.hero-content {
    color: white;
    max-width: 800px;
}

    .hero-content h1 {
        font-size: 4rem;
        margin-bottom: 0.5rem;
        font-weight: 800;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    }

.subtitle {
    font-size: 1rem;
    font-style: italic;
    position: relative;
    display: inline-block;
}

    .subtitle::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 50px;
        height: 3px;
        background: beige;
    }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 20px;
}

    .hero-meta span {
        display: flex;
        align-items: center;
        font-size: 1rem;
    }

    .hero-meta i {
        margin-right: 0.5rem;
        color: beige;
    }

/* Gallery Section */
.gallery-section {
    padding: 1.5rem 0;
    background: white !important;
    min-height: 100vh;
}

.containerr {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 1rem;
}

    .gallery-header h2 {
        font-size: 3rem;
        font-weight: 700;
        color: #2d3748 !important;
        position: relative;
        display: inline-block;
    }

        .gallery-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: var(--secondary-color);
            border-radius: 2px;
        }

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: black;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    .filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--secondary-color);
        transition: left 0.3s ease;
        z-index: -1;
    }

    .filter-btn:hover::before,
    .filter-btn.active::before {
        left: 0;
    }

    .filter-btn:hover,
    .filter-btn.active {
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 400px;
}

    .gallery-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.05);
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 45deg, rgba(237, 27, 36, 0.9) 0%, rgba(183, 28, 28, 0.9) 100% );
    display: flex;
    align-items: end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gallery-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 0.7rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .load-more-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: #ba151c;
        transition: left 0.3s ease;
        z-index: -1;
    }

    .load-more-btn:hover::before {
        left: 0;
    }

    .load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

    .load-more-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .lightbox-modal.active {
        opacity: 1;
        visibility: visible;
    }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .lightbox-close:hover {
        background: rgba(0,0,0,0.8);
        transform: scale(1.1);
    }

.lightbox-modal img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
}

.lightbox-info {
    padding: 2rem;
    background: white;
}

    .lightbox-info h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .lightbox-info p {
        color: #7f8c8d;
        line-height: 1.6;
    }

.lightbox-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(0,0,0,0.8);
        transform: scale(1.1);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .gallery-header h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-card {
        height: 300px;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .lightbox-modal img {
        height: 50vh;
    }

    .lightbox-info {
        padding: 1.5rem;
    }

    .lightbox-navigation {
        padding: 0 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .btn-booknow {
        color: white !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-card {
        height: 250px;
    }

    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-info h3 {
        font-size: 1.25rem;
    }

    .gallery-info p {
        font-size: 0.9rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-card {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.filter-btn:focus,
.load-more-btn:focus,
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.gallery-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .gallery-hero,
    .gallery-filters,
    .gallery-load-more,
    .lightbox-modal {
        display: none;
    }

    .gallery-grid {
        display: block;
    }

    .gallery-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .gallery-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading States */
.gallery-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

    .gallery-item.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Lazy Loading */
.gallery-card img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

    .gallery-card img[data-src].loaded {
        opacity: 1;
    }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gallery-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .gallery-header h2 {
        color: #fff;
    }

    .gallery-card {
        background: #2d2d2d;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .lightbox-content {
        background: #2d2d2d;
    }

    .lightbox-info {
        background: #2d2d2d;
    }

        .lightbox-info h3 {
            color: #fff;
        }

        .lightbox-info p {
            color: #ccc;
        }
}

/* Performance Optimizations */
.gallery-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-overlay {
    will-change: opacity;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(45deg, #764ba2, #667eea);
    }

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .gallery-card:hover {
        transform: none;
    }

    .gallery-card:active {
        transform: scale(0.98);
    }

/*    .gallery-overlay {
        opacity: 0.8;
    }*/

    .filter-btn:hover::before {
        left: -100%;
    }

    .filter-btn:active::before {
        left: 0;
    }
}

/* Selection Colors */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #2c3e50;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #2c3e50;
}

/* Error States */
.gallery-item.error {
    opacity: 0.5;
}

    .gallery-item.error .gallery-card {
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 1.1rem;
    }

        .gallery-item.error .gallery-card::before {
            content: "⚠️ Image failed to load";
            text-align: center;
        }
