/* premium-gallery-page.css */

:root {
    --gal-dark-navy: #0B1F3A;
    --gal-blue: #2563EB;
    --gal-gold: #D4AF37;
    --gal-white: #FFFFFF;
    --gal-bg-light: #F8FAFF;
    --gal-text-dark: #1E1E1E;
    
    --gal-shadow: 0 10px 30px rgba(11, 31, 58, 0.04);
    --gal-shadow-hover: 0 15px 35px rgba(37, 99, 235, 0.08);
}

.gallery-page-main {
    width: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--gal-white);
    box-sizing: border-box;
}

/* SECTION 1: HERO */
.gal-hero-section {
    position: relative;
    background-color: var(--gal-white);
    padding: 100px 0 80px 0;
}

.gal-hero-bg-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.gal-hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.gal-hero-flex-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.gal-hero-left {
    display: flex;
    flex-direction: column;
}

.gal-hero-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gal-gold);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.gal-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: var(--gal-dark-navy);
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.title-blue-gradient {
    background: linear-gradient(135deg, var(--gal-blue) 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gal-hero-subtitle {
    font-size: 16px;
    color: #556987;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Check grid */
.gal-hero-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: #334E68;
}

.check-icon {
    color: var(--gal-blue);
    font-weight: 900;
}

/* Buttons */
.gal-hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-gal-primary {
    background-color: var(--gal-blue);
    color: var(--gal-white);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 300ms ease, transform 300ms ease;
}

.btn-gal-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
}

.btn-gal-secondary {
    background-color: transparent;
    color: var(--gal-gold);
    border: 2px solid var(--gal-gold);
    border-radius: 12px;
    padding: 12px 26px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.btn-gal-secondary:hover {
    background-color: var(--gal-gold);
    color: var(--gal-dark-navy);
    transform: translateY(-2px);
}

/* Hero Right details */
.gal-hero-right {
    display: flex;
    justify-content: flex-end;
}

.gal-hero-image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(11, 31, 58, 0.06);
    max-width: 480px;
    aspect-ratio: 4 / 3.8;
}

.gal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gal-hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0) 50%, rgba(11, 31, 58, 0.3) 100%);
}

.gal-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.badge-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--gal-dark-navy);
}

.badge-stars {
    color: var(--gal-gold);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.badge-lbl {
    font-size: 10px;
    color: #556987;
    font-weight: 600;
}

.badge-top {
    top: 15%;
    left: -15%;
}

.badge-mid {
    bottom: 15%;
    right: -15%;
}

/* SECTION 2 & 3: GALLERY VIEW CONTROLLER & MASONRY GRID */
.gallery-view-section {
    padding: 60px 0;
    background-color: var(--gal-bg-light);
}

.gal-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Controls Bar */
.gallery-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-search-wrapper {
    flex-grow: 1;
    max-width: 320px;
}

.gallery-search-input {
    width: 100%;
    background-color: var(--gal-white);
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease;
    box-sizing: border-box;
}

.gallery-search-input:focus {
    border-color: var(--gal-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* Filters row */
.gallery-filters-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background-color: var(--gal-white);
    border: 1px solid rgba(11, 31, 58, 0.05);
    color: #4A5D78;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}

.filter-pill:hover {
    border-color: var(--gal-gold);
}

.filter-pill.active {
    background-color: var(--gal-blue);
    border-color: var(--gal-blue);
    color: var(--gal-white);
}

/* Layout switcher buttons */
.gallery-layout-switcher {
    display: flex;
    gap: 6px;
    background-color: rgba(11, 31, 58, 0.03);
    padding: 4px;
    border-radius: 10px;
}

.layout-toggle-btn {
    border: none;
    background: none;
    padding: 6px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #556987;
    cursor: pointer;
    transition: background-color 300ms ease, color 300ms ease;
}

.layout-svg {
    width: 14px;
    height: 14px;
}

.layout-toggle-btn:hover {
    color: var(--gal-dark-navy);
}

.layout-toggle-btn.active {
    background-color: var(--gal-white);
    color: var(--gal-blue);
    box-shadow: 0 4px 10px rgba(11, 31, 58, 0.04);
}

/* Dynamic Grid / Masonry Layouts */

/* 1. Grid Layout Mode */
.gallery-media-wrapper.grid-layout-active {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 2. Masonry Layout Mode */
.gallery-media-wrapper.masonry-layout-active {
    column-count: 4;
    column-gap: 24px;
}

.gallery-media-wrapper.masonry-layout-active .gallery-media-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 24px;
}

/* Card item styling */
.gallery-media-card {
    background-color: var(--gal-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--gal-shadow);
    border: 1px solid rgba(11, 31, 58, 0.04);
    cursor: pointer;
    position: relative;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.gallery-card-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--gal-bg-light);
}

.grid-layout-active .gallery-card-img-wrapper {
    height: 240px;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0) 50%, rgba(37, 99, 235, 0.05) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.gallery-card-details {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gal-blue);
    text-transform: uppercase;
}

.gallery-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gal-dark-navy);
    margin: 0;
}

/* Card hover animation details */
.gallery-media-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gal-shadow-hover);
    border-color: var(--gal-gold);
}

.gallery-media-card:hover .gallery-card-img {
    transform: scale(1.04);
}

.gallery-media-card:hover .gallery-card-glow-overlay {
    opacity: 1;
}

/* SECTION 4: STATISTICS */
.gal-stats-section {
    padding: 60px 0;
    background-color: var(--gal-white);
}

.gal-stats-card {
    background: linear-gradient(135deg, #071A33 0%, #020817 100%);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.gal-stats-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.stats-badge-circle {
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-main-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--gal-white);
    margin: 0;
}

.stats-main-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

.stats-separator-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.gal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gal-stat-col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    cursor: pointer;
    transition: transform 300ms ease;
}

.gal-stat-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gal-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: background-color 300ms ease, color 300ms ease;
}

.gal-stat-icon-circle svg {
    width: 18px;
    height: 18px;
}

.gal-stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--gal-white);
    margin: 0 0 4px 0;
}

.gal-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Stat hover details */
.gal-stat-col-item:hover {
    transform: translateY(-3px);
}

.gal-stat-col-item:hover .gal-stat-icon-circle {
    background-color: var(--gal-blue);
    color: var(--gal-white);
}

/* SECTION 5: CUSTOMER TESTIMONIALS */
.gal-testimonials-section {
    padding: 80px 0;
    background-color: var(--gal-bg-light);
}

.gal-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gal-testimonial-card {
    background-color: var(--gal-white);
    border: 1px solid rgba(11, 31, 58, 0.04);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--gal-shadow);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
    box-sizing: border-box;
}

.test-stars {
    color: var(--gal-gold);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.test-quote {
    font-size: 13.5px;
    line-height: 1.5;
    color: #556987;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.test-user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 16px;
}

.test-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--gal-white);
}

.test-user-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.test-user-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gal-dark-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-user-name .verified-check {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--gal-blue);
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 100px;
}

.test-user-city {
    font-size: 11px;
    color: #8899A6;
    margin: 0;
}

/* Testimonial hover state */
.gal-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gal-shadow-hover);
    border-color: var(--gal-gold);
}

/* SECTION 6: PREMIUM CTA */
.gal-cta-section {
    padding: 60px 0 100px 0;
    background-color: var(--gal-white);
}

.gal-cta-card {
    position: relative;
    background: linear-gradient(135deg, #071A33 0%, #020817 100%);
    border-radius: 30px;
    padding: 50px 60px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.gal-cta-bg-glow {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.gal-cta-flex-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.gal-cta-left {
    position: relative;
    display: flex;
    justify-content: center;
}

.gal-cta-van-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gal-cta-floating-badge {
    position: absolute;
    top: 10%;
    left: -10%;
    background: rgba(37, 99, 235, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gal-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.badge-dot-green {
    width: 6px;
    height: 6px;
    background-color: #34A853;
    border-radius: 50%;
}

.gal-cta-right-content {
    display: flex;
    flex-direction: column;
}

.gal-cta-badge-small {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gal-gold);
    margin-bottom: 12px;
}

.gal-cta-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--gal-white);
    margin: 0 0 12px 0;
}

.gal-cta-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 28px 0;
}

.gal-cta-buttons-row {
    display: flex;
    gap: 14px;
}

.btn-gal-cta-call {
    background-color: var(--gal-gold);
    color: var(--gal-dark-navy);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.btn-gal-cta-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-gal-cta-book {
    background-color: transparent;
    color: var(--gal-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 26px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 300ms ease, transform 300ms ease;
}

.btn-gal-cta-book:hover {
    border-color: var(--gal-white);
    transform: translateY(-2px);
}

/* LIGHTBOX MODAL OVERLAY STYLE */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 8, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.gallery-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--gal-white);
    font-size: 38px;
    font-weight: 300;
    cursor: pointer;
    transition: color 300ms ease;
}

.lightbox-close-btn:hover {
    color: var(--gal-gold);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gal-white);
    font-size: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 300ms ease, color 300ms ease;
}

.lightbox-nav-btn:hover {
    background-color: var(--gal-blue);
    color: var(--gal-white);
}

.btn-prev { left: 24px; }
.btn-next { right: 24px; }

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.lightbox-active-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption-bar {
    display: flex;
    gap: 14px;
    align-items: center;
}

.lightbox-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--gal-blue);
    color: var(--gal-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

.lightbox-location {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    font-weight: 600;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */

@media (max-width: 1200px) {
    .gallery-media-wrapper.grid-layout-active {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-media-wrapper.masonry-layout-active {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .gal-hero-flex-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gal-hero-right {
        justify-content: center;
    }
    
    .gallery-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gallery-search-wrapper {
        max-width: 100%;
    }
    
    .gal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gal-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gal-cta-flex-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gal-hero-title {
        font-size: 38px;
    }
    
    .gal-hero-check-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-media-wrapper.grid-layout-active {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gallery-media-wrapper.masonry-layout-active {
        column-count: 2;
        column-gap: 16px;
    }
    
    .gal-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gal-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gal-cta-card {
        padding: 30px 24px;
    }
    
    .gal-cta-title {
        font-size: 26px;
    }
    
    .gal-cta-buttons-row {
        flex-direction: column;
    }
    
    .gal-cta-floating-badge {
        left: -5%;
    }
    
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .btn-prev { left: 12px; }
    .btn-next { right: 12px; }
}
