        /* =================================================== 
           TWO-TIER GALLERY FILTERS & DISCLAIMER (COMPACT)
        =================================================== */
        .gallery-header-area {
            background: var(--white);
            padding: 12px 16px 8px;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 65px !important;
            z-index: 90;
            margin-bottom: 14px;
            box-shadow: 0 2px 10px rgba(15, 76, 129, 0.03);
        }

        .gallery-header-top-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 8px;
        }

        .gallery-header-info {
            flex: 1;
            min-width: 0;
        }

        .gallery-header-actions {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            padding-top: 2px;
        }

        .disclaimer-trigger-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 20px;
            background: #eff6ff;
            color: var(--blue);
            border: 1px solid rgba(15, 76, 129, 0.18);
            font-size: 0.74rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }

        .disclaimer-trigger-btn:hover {
            background: var(--blue);
            color: white;
            border-color: var(--blue);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(15, 76, 129, 0.15);
        }

        .disclaimer-trigger-btn.active {
            background: var(--blue);
            color: white;
            border-color: var(--blue);
            box-shadow: 0 2px 6px rgba(15, 76, 129, 0.2);
        }

        .gallery-title {
            font-size: 1.35rem;
            font-weight: 900;
            color: var(--blue);
            text-transform: uppercase;
            letter-spacing: -0.5px;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .gallery-subtitle {
            font-size: 0.78rem;
            color: var(--muted);
            margin-bottom: 0;
            line-height: 1.35;
        }

        /* SINGLE LINE CONTROLS ROW: FILTERS + SEARCH */
        .gallery-controls-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            width: 100%;
        }

        /* Search Bar Styles */
        .gallery-search-wrapper {
            position: relative;
            width: 240px;
            min-width: 180px;
            margin-top: 0;
            flex-shrink: 0;
        }

        .gallery-search-input {
            width: 100%;
            padding: 7px 14px 7px 34px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: #f1f5f9;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--black);
            outline: none;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
        }

        .gallery-search-input:focus {
            border-color: var(--blue);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.02);
        }

        .gallery-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted);
            font-size: 0.8rem;
            pointer-events: none;
            transition: color 0.3s;
        }

        .gallery-search-input:focus + .gallery-search-icon {
            color: var(--blue);
        }

        .swipeable-tags {
            display: flex;
            gap: 6px;
            overflow-x: auto !important;
            flex-wrap: nowrap !important;
            -webkit-overflow-scrolling: touch !important;
            scrollbar-width: none;
            padding: 2px 2px 4px;
        }

        .swipeable-tags::-webkit-scrollbar {
            display: none;
        }

        .swipeable-tags.filter-tier-1 {
            flex: 1;
            min-width: 0;
            margin-bottom: 0;
        }

        .filter-tier-2 {
            display: none;
            background: var(--bg);
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid var(--border);
            border-bottom: 2px solid var(--border);
            animation: fadeInDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            margin-bottom: 6px;
            margin-top: 4px;
            gap: 6px;
        }

        .filter-tier-2.active {
            display: flex;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .filter-tag {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(226, 232, 240, 0.8);
            padding: 6px 14px;
            border-radius: 18px;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            white-space: nowrap;
            color: var(--black);
            border-bottom: 2px solid rgba(226, 232, 240, 0.8);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .filter-tag:hover {
            background: var(--white);
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(15, 76, 129, 0.06);
        }

        .filter-tag.active {
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(15, 76, 129, 0.12);
        }

        .filter-tag.tag-all.active {
            background: var(--blue);
            color: white;
            border-color: var(--blue);
            border-bottom-color: var(--blue-dark);
        }

        .filter-tag.tag-windows.active {
            background: var(--blue);
            color: white;
            border-color: var(--blue);
            border-bottom-color: var(--blue-dark);
        }

        .filter-tag.tag-doors.active {
            background: var(--red);
            color: white;
            border-color: var(--red);
            border-bottom-color: var(--red-dark);
        }

        .filter-tag.tag-conservatories.active {
            background: #0284c7;
            color: white;
            border-color: #0284c7;
            border-bottom-color: #0369a1;
        }

        .filter-tag.tag-warm-roofs.active {
            background: #ea580c;
            color: white;
            border-color: #ea580c;
            border-bottom-color: #c2410c;
        }

        .filter-tag.tag-cladding.active {
            background: #4b5563;
            color: white;
            border-color: #4b5563;
            border-bottom-color: #374151;
        }

        .filter-tag.tag-fascia-soffit-guttering.active {
            background: #7c3aed;
            color: white;
            border-color: #7c3aed;
            border-bottom-color: #6d28d9;
        }

        .sub-tag {
            background: var(--white);
            border-color: #cbd5e1;
            border-bottom-color: #cbd5e1;
            padding: 5px 12px;
            font-size: 0.7rem;
            border-radius: 14px;
        }

        .sub-tag.active {
            background: var(--black);
            color: white;
            border-color: var(--black);
            border-bottom-color: #000;
        }

        /* Improved Full-Width Disclaimer Styling */
        .disclaimer-box {
            width: 100%;
            box-sizing: border-box;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-left: 4px solid var(--blue);
            padding: 10px 16px;
            margin: 8px 0 10px;
            border-radius: 10px;
            font-size: 0.76rem;
            color: var(--black);
            line-height: 1.45;
            display: none;
            gap: 12px;
            align-items: center;
            box-shadow: 0 2px 8px rgba(15, 76, 129, 0.04);
            animation: fadeInDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            transition: all 0.25s ease;
        }

        .disclaimer-box i {
            font-size: 1.1rem;
            color: var(--blue);
            margin-top: 0;
            flex-shrink: 0;
        }

        .disclaimer-close-btn {
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            padding: 4px 8px;
            font-size: 1.3rem;
            line-height: 1;
            margin-left: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s, transform 0.2s;
            flex-shrink: 0;
        }

        .disclaimer-close-btn:hover {
            opacity: 1;
            color: #ef4444;
            background: rgba(239, 68, 68, 0.08);
        }

        .disclaimer-restore-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f1f5f9;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 0.76rem;
            font-weight: 600;
            color: var(--black);
            cursor: pointer;
            margin: 8px 0 14px;
            transition: all 0.2s ease;
        }

        .disclaimer-restore-btn:hover {
            background: var(--white);
            border-color: var(--blue);
            color: var(--blue);
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(15, 76, 129, 0.08);
        }

        .disclaimer-restore-btn i {
            color: var(--blue);
            font-size: 0.85rem;
        }

        .disclaimer-restore-btn .restore-link {
            color: var(--blue);
            text-decoration: underline;
            font-weight: 700;
            margin-left: 2px;
        }

        /* =================================================== 
           AI-OPTIMIZED MASONRY GRID 
        =================================================== */
        .masonry-grid {
            column-count: 1;
            column-gap: 16px;
            padding: 0 16px 20px;
        }

        .masonry-item {
            break-inside: avoid;
            margin-bottom: 20px;
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: var(--card-shadow);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            animation: fadeIn 0.4s ease-out;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .masonry-item:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 32px rgba(15, 76, 129, 0.12);
        }

        /* Image Wrapper with Overlay Actions */
        .card-image-wrapper {
            position: relative;
            overflow: hidden;
            background: #f1f5f9;
            aspect-ratio: 4/3;
            width: 100%;
            cursor: pointer;
        }

        .masonry-image {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            cursor: pointer;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .masonry-item:hover .masonry-image {
            transform: scale(1.08);
        }

        .card-image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.75));
            opacity: 0;
            transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 16px;
            z-index: 2;
            cursor: pointer;
        }

        .masonry-item:hover .card-image-overlay {
            opacity: 1;
        }

        .card-overlay-actions {
            display: flex;
            gap: 8px;
            width: 100%;
            justify-content: center;
        }

        .card-overlay-actions.has-visualise {
            display: flex;
            gap: 6px;
            width: 100%;
            justify-content: center;
            padding: 0 4px;
        }

        .card-overlay-actions.has-visualise .card-overlay-btn {
            flex: 1 1 0;
            min-width: 0;
            padding: 8px 6px;
            font-size: 0.72rem;
            margin: 0;
        }

        .card-overlay-btn.btn-visualise {
            background: linear-gradient(135deg, rgba(15, 76, 129, 0.92) 0%, rgba(10, 51, 86, 0.96) 100%);
            border: 1px solid rgba(217, 56, 58, 0.55);
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(15, 76, 129, 0.4);
        }

        .card-overlay-btn.btn-visualise i {
            color: #d9383a;
            filter: drop-shadow(0 0 3px rgba(217, 56, 58, 0.7));
        }

        .card-overlay-btn.btn-visualise:hover {
            background: linear-gradient(135deg, #0f4c81 0%, #0a3356 100%);
            border-color: #d9383a;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(15, 76, 129, 0.6);
        }

        /* Always-visible Action Bar on Card Body */
        .card-action-bar {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #e2e8f0;
        }

        .card-action-btn.btn-visualise {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            background: linear-gradient(135deg, #0f4c81 0%, #0a3356 100%);
            color: #ffffff;
            font-size: 0.82rem;
            font-weight: 700;
            border: 1px solid rgba(217, 56, 58, 0.45);
            box-shadow: 0 4px 14px rgba(15, 76, 129, 0.18);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.25s ease;
            text-transform: none;
            letter-spacing: 0.2px;
        }

        .card-action-btn.btn-visualise i {
            color: #fca5a5;
            font-size: 0.92rem;
            filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.6));
            transition: all 0.25s ease;
        }

        .card-action-btn.btn-visualise:hover {
            background: linear-gradient(135deg, #135d9e 0%, #0d4370 100%);
            border-color: #d9383a;
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(15, 76, 129, 0.3);
            color: #ffffff;
        }

        .card-action-btn.btn-visualise:hover i {
            color: #ffffff;
            filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
        }

        .card-overlay-btn {
            flex: 0 1 auto;
            min-width: 120px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .card-overlay-btn:hover {
            background: white;
            color: var(--blue);
            border-color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Fixed elements on image: Price and Before/After Badges */
        .card-price-tag {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(15, 76, 129, 0.92);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: white;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 800;
            border-bottom: 2px solid var(--blue-dark);
            z-index: 3;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .card-ba-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(217, 56, 58, 0.92);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: white;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 800;
            z-index: 3;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-body {
            padding: 18px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-top: 1px solid var(--border);
        }

        .item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }

        .item-title {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--blue);
            text-transform: uppercase;
            line-height: 1.25;
        }

        .item-badge {
            background: var(--bg);
            border: 1px solid var(--border);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.62rem;
            font-weight: 800;
            color: var(--muted);
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .item-desc {
            font-size: 0.8rem;
            color: #475569;
            line-height: 1.5;
        }

        .item-meta-box {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 0.75rem;
            color: var(--black);
            margin-top: 4px;
        }

        .meta-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .meta-row:last-child {
            margin-bottom: 0;
            border-top: 1px dashed #cbd5e1;
            padding-top: 6px;
            margin-top: 6px;
            font-weight: 700;
            color: var(--blue);
        }

        .meta-label {
            font-weight: 600;
            color: var(--muted);
        }

        /* =================================================== 
           PREMIUM NATIVE LIGHTBOX DIALOG
        =================================================== */
        .lightbox-dialog {
            border: none;
            padding: 0;
            max-width: 1100px;
            width: 90%;
            max-height: 85vh;
            border-radius: 20px;
            background: var(--white);
            box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
            position: fixed;
            inset: 0;
            margin: auto;
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 5000;
        }

        .lightbox-dialog[open] {
            display: flex;
        }

        @media (min-width: 900px) {
            .lightbox-dialog {
                flex-direction: row;
                height: 75vh;
                max-height: 650px;
            }
        }

        /* Top layer entry/exit transition behavior */
        .lightbox-dialog {
            opacity: 0;
            transform: scale(0.95) translateY(10px);
            transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        display 0.35s allow-discrete,
                        overlay 0.35s allow-discrete;
        }

        .lightbox-dialog[open] {
            opacity: 1;
            transform: scale(1) translateY(0);

            @starting-style {
                opacity: 0;
                transform: scale(0.95) translateY(10px);
            }
        }

        .lightbox-dialog::backdrop {
            background-color: rgba(15, 23, 42, 0);
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
            transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        display 0.35s allow-discrete,
                        overlay 0.35s allow-discrete;
        }

        .lightbox-dialog[open]::backdrop {
            background-color: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);

            @starting-style {
                background-color: rgba(15, 23, 42, 0);
                backdrop-filter: blur(0px);
                -webkit-backdrop-filter: blur(0px);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .lightbox-dialog {
                transform: none !important;
                transition-duration: 0.1s !important;
            }
            .lightbox-dialog[open] {
                @starting-style {
                    transform: none !important;
                }
            }
        }

        /* Media Pane (Left Side) */
        .dialog-media-pane {
            flex: 1;
            background: #0f172a;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            min-height: 280px;
        }

        @media (min-width: 900px) {
            .dialog-media-pane {
                height: 100%;
                min-height: auto;
            }
        }

        .dialog-img {
            max-width: 100%;
            max-height: 100%;
            width: 100%;
            height: 100%;
            object-fit: contain;
            user-select: none;
            transition: opacity 0.3s ease;
        }

        /* Navigation controls in media pane */
        .dialog-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: white;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.2s;
            z-index: 10;
        }

        .dialog-nav-btn:hover {
            background: white;
            color: var(--blue);
            transform: translateY(-50%) scale(1.05);
        }

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

        /* Details Pane (Right Side) */
        .dialog-details-pane {
            width: 100%;
            background: var(--white);
            display: flex;
            flex-direction: column;
            padding: 24px;
            overflow-y: auto;
        }

        @media (min-width: 900px) {
            .dialog-details-pane {
                width: 420px;
                height: 100%;
                border-left: 1px solid var(--border);
                padding: 32px;
            }
        }

        .dialog-close-btn {
            align-self: flex-end;
            background: #f1f5f9;
            border: none;
            color: var(--muted);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
            margin-bottom: 8px;
        }

        .dialog-close-btn:hover {
            background: #e2e8f0;
            color: var(--black);
        }

        .dialog-details-header {
            margin-bottom: 16px;
        }

        .dialog-project-category {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--blue);
            margin-bottom: 4px;
        }

        .dialog-project-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--black);
            line-height: 1.3;
        }

        .dialog-project-desc {
            font-size: 0.82rem;
            color: #475569;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        /* Before/After Toggle in Lightbox */
        .ba-toggle-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--avail-green-bg, #f0fdf4);
            border: 1px solid rgba(34, 197, 94, 0.25);
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 20px;
        }

        .ba-toggle-label {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--avail-green, #16a34a);
        }

        .ba-toggle-buttons {
            display: flex;
            background: #e2e8f0;
            padding: 2px;
            border-radius: 6px;
            gap: 2px;
        }

        .ba-toggle-btn {
            border: none;
            background: transparent;
            padding: 4px 10px;
            font-size: 0.7rem;
            font-weight: 800;
            color: var(--muted);
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .ba-toggle-btn.active {
            background: white;
            color: var(--black);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        /* Specs card container */
        .dialog-specs-container {
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 24px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .dialog-spec-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.78rem;
            line-height: 1.4;
        }

        .dialog-spec-label {
            color: var(--muted);
            font-weight: 600;
        }

        .dialog-spec-value {
            color: var(--black);
            font-weight: 700;
        }

        .dialog-spec-row.highlight-row {
            border-top: 1px dashed var(--border);
            padding-top: 10px;
            margin-top: 4px;
            font-size: 0.82rem;
        }

        .dialog-spec-row.highlight-row .dialog-spec-value {
            color: var(--blue);
            font-size: 0.88rem;
            font-weight: 900;
        }

        /* CTA buttons inside dialog */
        .dialog-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: auto;
        }

        .dialog-btn {
            width: 100%;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .dialog-btn-primary {
            background: var(--blue);
            border: 1px solid var(--blue);
            border-bottom: 3px solid var(--blue-dark);
            color: white;
        }

        .dialog-btn-primary:hover {
            background: var(--blue-dark);
            border-color: var(--blue-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
        }

        .dialog-btn-secondary {
            background: #f0fdf4;
            border: 1px solid rgba(34, 197, 94, 0.3);
            border-bottom: 3px solid rgba(34, 197, 94, 0.45);
            color: #15803d;
        }

        .dialog-btn-secondary:hover {
            background: #dcfce7;
            border-color: rgba(34, 197, 94, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
        }

        /* =================================================== 
           MOBILE OPTIMIZATIONS (< 900px) - PRO UI/UX
        =================================================== */
        @media (max-width: 899px) {
            .gallery-header-area {
                padding: 10px 14px 8px !important;
                top: 54px !important;
                margin-bottom: 12px !important;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
            }

            .gallery-header-top-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                margin-bottom: 8px;
            }

            .gallery-title {
                font-size: 1.15rem;
                letter-spacing: -0.3px;
                margin-bottom: 0;
            }

            .gallery-subtitle {
                font-size: 0.72rem;
                line-height: 1.3;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .disclaimer-trigger-btn {
                padding: 5px 12px;
                font-size: 0.7rem;
                gap: 5px;
                border-radius: 16px;
            }

            /* Full-width disclaimer box on mobile */
            .disclaimer-box {
                width: 100%;
                box-sizing: border-box;
                padding: 10px 12px;
                font-size: 0.72rem;
                margin: 8px 0 10px !important;
                gap: 8px;
                line-height: 1.4;
            }

            /* Separate rows on mobile: Search on row 1, Filter Tags on row 2 */
            .gallery-controls-row {
                display: flex;
                flex-direction: column;
                gap: 8px;
                width: 100%;
            }

            /* Search Input on its own dedicated full-width row */
            .gallery-search-wrapper {
                order: 1;
                width: 100%;
                max-width: 100%;
                min-width: 0;
                margin-top: 0;
            }

            .gallery-search-input {
                width: 100%;
                padding: 7px 12px 7px 32px;
                font-size: 0.78rem;
                height: 34px;
                border-radius: 17px;
                background: #f1f5f9;
            }

            .gallery-search-icon {
                left: 10px;
                font-size: 0.78rem;
            }

            /* Filter Tags on their own dedicated full-width swipeable row */
            .swipeable-tags.filter-tier-1 {
                order: 2;
                width: 100%;
                display: flex;
                gap: 6px;
                overflow-x: auto !important;
                flex-wrap: nowrap !important;
                -webkit-overflow-scrolling: touch !important;
                scrollbar-width: none;
                padding: 2px 4px 6px;
                scroll-snap-type: x proximity;
                mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
                -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
            }

            .swipeable-tags.filter-tier-1::-webkit-scrollbar {
                display: none;
            }

            .filter-tag {
                flex-shrink: 0;
                padding: 6px 13px;
                font-size: 0.72rem;
                gap: 5px;
                border-radius: 16px;
                scroll-snap-align: start;
            }

            .filter-tier-2 {
                order: 3;
                width: 100%;
                padding: 6px 8px;
                gap: 5px;
                border-radius: 10px;
                overflow-x: auto !important;
                flex-wrap: nowrap !important;
                -webkit-overflow-scrolling: touch !important;
                scrollbar-width: none;
                margin-top: 2px;
                margin-bottom: 4px;
            }

            .filter-tier-2 .sub-tag {
                flex-shrink: 0;
                padding: 4px 10px;
                font-size: 0.68rem;
                border-radius: 12px;
            }

            .masonry-grid {
                padding: 0 12px 20px;
            }
        }

        /* Desktop Overrides */
        @media (min-width: 640px) {
            .masonry-grid {
                column-count: 2;
            }
        }

        @media (min-width: 900px) {
            body {
                padding-bottom: 0;
            }

            .mobile-nav {
                display: none !important;
            }

            .desktop-sidebar {
                display: flex;
            }

            .desktop-topbar {
                display: flex;
            }

            .bottom-action-bar {
                display: none !important;
            }

            .gallery-header-area {
                padding: 14px 40px 10px !important;
                top: 44px !important;
                margin-bottom: 16px !important;
            }

            .masonry-grid {
                column-count: 3;
                padding: 0 40px 24px;
            }

            .disclaimer-box {
                margin: 10px 0 14px !important;
            }

            .gallery-title {
                font-size: 1.45rem;
            }

            /* Single line row on desktop: Filter tags on left, Search on right */
            .gallery-controls-row {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 14px;
                width: 100%;
            }

            .swipeable-tags.filter-tier-1 {
                order: 1;
                flex: 1;
                min-width: 0;
                flex-wrap: nowrap;
                overflow-x: auto;
                mask-image: none;
                -webkit-mask-image: none;
                padding-bottom: 2px;
            }

            .gallery-search-wrapper {
                order: 2;
                width: 240px;
                min-width: 180px;
                flex-shrink: 0;
            }

            .filter-tier-2 {
                flex-wrap: wrap;
                overflow-x: visible;
            }

            /* Lightbox Desktop Tweaks */
            .lightbox-prev {
                left: 40px;
                width: 60px;
                height: 60px;
                font-size: 1.8rem;
            }

            .lightbox-next {
                right: 40px;
                width: 60px;
                height: 60px;
                font-size: 1.8rem;
            }

            .lightbox-img {
                max-height: 80vh;
            }
        }

        @media (min-width: 1400px) {
            .masonry-grid {
                column-count: 4;
            }
        }

        #no-results {
            display: none;
            text-align: center;
            padding: 40px 20px;
            font-weight: 700;
            color: var(--muted);
        }

        /* Booking Sheet Styles */
        .booking-rep-banner {
            display: flex;
            align-items: center;
            gap: 14px;
            background: rgba(15, 76, 129, 0.06);
            border: 1px solid rgba(15, 76, 129, 0.15);
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 20px;
        }

        .booking-rep-banner img {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border);
        }

        .booking-rep-banner .rep-icon {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--blue);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .booking-rep-info h4 {
            font-size: 0.9rem;
            font-weight: 900;
            color: var(--blue);
            text-transform: uppercase;
        }

        .booking-rep-info .rep-desc {
            font-size: 0.78rem;
            color: var(--muted);
            font-weight: 600;
            margin-top: 2px;
        }

        .booking-rep-info .rep-avail {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--avail-green, #16a34a);
            text-transform: uppercase;
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .booking-rep-info .rep-avail::before {
            content: '';
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--avail-green, #16a34a);
        }

        .date-scroll {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 4px 0 12px;
            scrollbar-width: none;
        }

        .date-scroll::-webkit-scrollbar {
            display: none;
        }

        .picker-slot {
            flex-shrink: 0;
            border: 2px solid var(--border);
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            transition: all 0.15s;
            background: var(--white);
        }

        .picker-slot.slot-available {
            border-color: var(--avail-green, #16a34a);
            color: var(--avail-green, #16a34a);
            background: var(--avail-green-bg, #f0fdf4);
        }

        .picker-slot.slot-unavailable {
            border-color: var(--unavail-red, #ef4444);
            color: var(--unavail-red, #ef4444);
            background: var(--unavail-red-bg, #fef2f2);
            text-decoration: line-through;
            opacity: 0.6;
            cursor: not-allowed;
        }

        .picker-slot.slot-selected {
            background: var(--avail-green, #16a34a);
            color: white;
            border-color: var(--avail-green, #16a34a);
        }

        .time-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }

        /* Custom alignment overrides */
        .main-content {
            padding-top: 0 !important;
            overflow: visible !important;
            /* Restores position: sticky functionality on children */
        }

        .gallery-header-area {
            margin-top: 0 !important;
        }

        .gallery-header-area .disclaimer-box {
            margin: 8px 0 12px 0 !important;
        }