/**
 * Theme Rose - Romantic Feminine Elegance
 * Single-page application styling for themetest
 * Soft, alluring tones with rose-inspired design
 * Based on Theme Set ID 17 with Color Palette ID 5
 */

:root {
    /* Database Color Palette ID 5 - Rose Theme */
    --theme-primary: #E11D48;       /* Rose red */
    --theme-secondary: #F472B6;     /* Pink */
    --theme-accent: #E11D48;        /* Rose red accent */
    --theme-background: #FEF7F7;    /* Very light rose/cream */
    --theme-text: #881337;          /* Deep burgundy */
    --theme-text-secondary: #BE185D; /* Medium rose */
    --theme-text-light: #FFFFFF;    /* White text for dark backgrounds */
    --theme-surface: #FFFFFF;       /* White surface */
    --theme-card-bg: #FFFFFF;       /* White cards */
    --theme-border-light: #FDF2F8;  /* Very light pink border */
    --theme-input-bg: #FDF2F8;      /* Light pink input background */
    --theme-btn-bg-hover: #BE185D;  /* Hover state */

    /* Theme-specific decorative colors (optional, can be overridden) */
    --theme-decorative-gold: #C9A86A;  /* Optional decorative accent */

    /* Spacing scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;

    /* Border radius - softer, more romantic */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 9999px;

    /* Shadows - soft and romantic */
    --shadow-sm: 0 2px 8px rgba(225, 29, 72, 0.08);
    --shadow-md: 0 4px 16px rgba(225, 29, 72, 0.12);
    --shadow-lg: 0 10px 24px rgba(225, 29, 72, 0.15);
    --shadow-xl: 0 20px 32px rgba(225, 29, 72, 0.18);
}

/* ===== ROSE THEME ANIMATIONS ===== */
@keyframes rose-float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes petal-drift {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) translateX(5px) rotate(5deg); opacity: 0.5; }
    100% { transform: translateY(-40px) translateX(-5px) rotate(10deg); opacity: 0; }
}

@keyframes rose-shimmer {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes rose-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(225, 29, 72, 0.6)); }
}

@keyframes bloom {
    0% { transform: scale(0.95) rotate(-5deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes gold-glint {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.theme-rose {
    font-family: var(--font-sans);
    background: var(--theme-background);
    color: var(--theme-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle noise texture */
body.theme-rose::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(225, 29, 72, 0.01) 2px,
            rgba(225, 29, 72, 0.01) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--theme-border-light);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-text);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 8px 0;
    box-sizing: border-box;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo:hover {
    color: var(--theme-primary);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--theme-primary);
    background: var(--theme-border-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--theme-text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 2px solid var(--theme-border-light);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* ===== PAGE SECTIONS ===== */
#app {
    padding-top: 70px;
    position: relative;
    z-index: 2;
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page.active {
    display: block;
    opacity: 1;
    animation: bloom 0.6s ease-out;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-md);
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--theme-background) 0%, var(--theme-border-light) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(225, 29, 72, 0.05) 0%,
        rgba(253, 242, 248, 0.5) 50%,
        rgba(254, 247, 247, 0.8) 100%
    );
    z-index: 1;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--theme-text);
    letter-spacing: 1px;
    animation: bloom 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--theme-text-secondary);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HERO DECORATIONS ===== */
.hero-decorations {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--theme-secondary), transparent);
    animation: rose-float 12s ease-in-out infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    background: radial-gradient(circle, var(--theme-primary), transparent);
    animation: rose-float 10s ease-in-out infinite 2s;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    background: radial-gradient(circle, var(--theme-decorative-gold), transparent);
    animation: rose-shimmer 8s ease-in-out infinite;
}

.decoration-4 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 15%;
    background: radial-gradient(circle, var(--theme-border-light), transparent);
    animation: rose-float 14s ease-in-out infinite 1s;
}

.decoration-5 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--theme-secondary), transparent);
    animation: rose-shimmer 10s ease-in-out infinite 3s;
}

.decoration-6 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    right: 30%;
    background: radial-gradient(circle, var(--theme-decorative-gold), transparent);
    animation: gold-glint 6s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: var(--theme-text-light);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    padding: 0.875rem 1.875rem;
}

.btn-secondary:hover {
    background: var(--theme-primary);
    color: var(--theme-text-light);
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    color: var(--theme-primary);
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--theme-secondary);
    transform: translateX(4px);
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(4px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--theme-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    background: transparent;
    color: var(--theme-text-light);
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.875rem 1.875rem;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: var(--theme-text-light);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    border-radius: var(--radius-pill);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--theme-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--theme-border-light);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary), var(--theme-decorative-gold));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: translateX(0);
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--theme-border-light);
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover .service-icon {
    animation: rose-glow 2s ease-in-out infinite;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--spacing-md) 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary) var(--theme-border-light);
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--theme-border-light);
    border-radius: var(--radius-pill);
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    border-radius: var(--radius-pill);
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary);
}

.gallery-scroll .gallery-item {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    height: 400px;
    aspect-ratio: unset;
    scroll-snap-align: start;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== GALLERY SECTIONS ===== */
.gallery-section {
    position: relative;
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--theme-border-light);
    margin-bottom: var(--spacing-2xl);
}

.gallery-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gallery-section h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.gallery-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    border-radius: var(--radius-pill);
}

/* ===== GALLERY SLIDER ===== */
.gallery-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.slider-slide {
    min-width: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.slider-slide.active {
    opacity: 1;
    display: block;
}

.slider-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--theme-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    line-height: 1;
    padding: 0;
}

.slider-btn:hover {
    background: var(--theme-secondary);
    transform: translateY(-50%);
    box-shadow: var(--shadow-xl);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: var(--spacing-md);
}

.slider-next {
    right: var(--spacing-md);
}

.slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--theme-border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: var(--theme-secondary);
}

.slider-dot.active {
    background: var(--theme-primary);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px var(--theme-background), 0 0 0 4px var(--theme-primary);
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-prev {
        left: var(--spacing-xs);
    }

    .slider-next {
        right: var(--spacing-xs);
    }

    .slider-image {
        max-height: 400px;
        object-position: top;
    }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: var(--font-display);
    color: var(--theme-border-light);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--theme-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--theme-text);
}

.rating {
    color: var(--theme-decorative-gold);
    margin-top: var(--spacing-sm);
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.about-text-column {
    order: 1;
}

.about-text-column p {
    color: var(--theme-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-image-column {
    order: 2;
}

.portrait-large {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--theme-border-light);
}

.quick-facts-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.about-services {
    text-align: center;
}

.about-section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
}

.about-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: var(--spacing-md);
}

.services-checklist {
    list-style: none;
    text-align: left;
}

.services-checklist li {
    padding: 0.5rem 0;
    color: var(--theme-text);
}

.services-checklist li::before {
    content: '✓';
    color: var(--theme-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.interests-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.interest-badge {
    padding: 0.5rem 1rem;
    background: var(--theme-border-light);
    color: var(--theme-primary);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
}

.about-cta-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    text-align: center;
}

/* ===== RATES PAGE ===== */
.rates-hero {
    background: linear-gradient(135deg, var(--theme-background), var(--theme-border-light));
    padding: var(--spacing-2xl) var(--spacing-md);
    text-align: center;
}

.rates-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--theme-text);
    margin-bottom: var(--spacing-md);
}

.rates-hero p {
    font-size: 1.125rem;
    color: var(--theme-text-secondary);
}

.rates-content {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.rates-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.rates-table {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
}

.rates-table-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    padding: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.rates-table-body {
    padding: var(--spacing-md);
}

.rate-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--theme-border-light);
}

.rate-row:last-child {
    border-bottom: none;
}

.rate-duration {
    color: var(--theme-text);
    font-weight: 500;
}

.rate-price {
    color: var(--theme-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

.rate-info {
    flex: 1;
}

.rate-details {
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    margin-top: 4px;
}

.rate-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.2);
}

.extended-section {
    margin-bottom: var(--spacing-2xl);
}

.extended-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--theme-text);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.extended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.extended-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    text-align: center;
}

.extended-card h4 {
    color: var(--theme-text);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.extended-price {
    color: var(--theme-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.extended-details {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.info-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.info-card h3 {
    color: var(--theme-text);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    color: var(--theme-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-list li i {
    color: var(--theme-primary);
    margin-top: 0.25rem;
}

.donations-section {
    background: linear-gradient(135deg, var(--theme-border-light), var(--theme-background));
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.donations-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
}

.donations-section h3 {
    color: var(--theme-text);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.donations-section p {
    color: var(--theme-text-secondary);
}

.rates-cta {
    background: linear-gradient(135deg, var(--theme-text), var(--theme-primary));
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
}

.rates-cta h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.rates-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.rates-cta-sub {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: var(--spacing-lg);
}

.rates-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ETIQUETTE PAGE ===== */
.etiquette-hero {
    background: linear-gradient(135deg, var(--theme-background), var(--theme-border-light));
    padding: var(--spacing-2xl) var(--spacing-md);
    text-align: center;
}

.etiquette-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--theme-text);
    margin-bottom: var(--spacing-md);
}

.etiquette-hero p {
    font-size: 1.125rem;
    color: var(--theme-text-secondary);
}

.etiquette-content {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.etiquette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.policy-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
}

.policy-card h2 {
    color: var(--theme-text);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.policy-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.policy-list {
    list-style: none;
}

.policy-list li {
    padding: 0.5rem 0;
    color: var(--theme-text);
}

.policy-list li::before {
    content: '•';
    color: var(--theme-primary);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.safety-band {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    margin-bottom: var(--spacing-2xl);
}

.safety-band h2 {
    color: var(--theme-text);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.safety-band .policy-list li {
    color: var(--theme-text);
}

.safety-band .policy-list li i {
    color: var(--theme-primary);
}

/* ===== UNIFIED PAGE CTA ===== */
.page-cta {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.page-cta-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.page-cta-title {
    color: var(--theme-text);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.page-cta-subtitle {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.page-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Neutralise old per-page CTA classes */
.cta-dark { background: none !important; padding: 0 !important; }
.about-cta-card { all: unset; display: contents; }
.rates-cta { background: none !important; padding: 0 !important; text-align: inherit !important; }
.rates-cta-sub,
.rates-cta-buttons { display: none !important; }

/* ===== CALENDAR PAGE ===== */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.calendar-wrapper {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--theme-text);
    padding: var(--spacing-sm);
}

.calendar-day-header:first-child {
    color: var(--theme-primary);
}

.calendar-day-header:last-child {
    color: var(--theme-primary);
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--theme-border-light);
    position: relative;
    min-height: 120px;  /* Fits 2 stacked events */
}

.calendar-day {
    padding: var(--spacing-sm);
    border-right: 1px solid var(--theme-border-light);
    min-height: 120px;  /* Fits 2 stacked events */
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--theme-card-bg);
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day:hover {
    background: var(--theme-border-light);
    border-color: var(--theme-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calendar-day.empty {
    background: transparent;
    border: 1px solid transparent;
    cursor: default;
    pointer-events: none;
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.has-events {
    background: linear-gradient(135deg, var(--theme-border-light), var(--theme-background));
    border-color: var(--theme-secondary);
}

.calendar-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--theme-text);
}

.calendar-day.today .calendar-day-number {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.calendar-span {
    position: absolute;
    top: 40px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-xs);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}

.calendar-span.available {
    background: #10B981;
    border-left-color: #059669;
    color: white;
}

.calendar-span.travel {
    background: #3B82F6;
    border-left-color: #2563EB;
    color: white;
}

.calendar-span.vacation {
    background: #F59E0B;
    border-left-color: #D97706;
    color: white;
}

.calendar-span.unavailable {
    background: #94A3B8;
    border-left-color: #64748B;
    color: white;
}

.calendar-span-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--theme-border-light);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius-lg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-item span {
    color: var(--theme-text);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    color: var(--theme-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--theme-border-light);
    border-radius: var(--radius-md);
    background: var(--theme-input-bg);
    color: var(--theme-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--theme-border-light);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    color: var(--theme-text);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-text p {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
}

/* ===== TRAVEL CARDS ===== */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.travel-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--theme-border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.travel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
}

.travel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.travel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(225, 29, 72, 0.05));
    pointer-events: none;
}

.travel-content {
    position: relative;
    z-index: 1;
}

.travel-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.travel-card h3 {
    color: var(--theme-text);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.travel-card .text-lg {
    font-size: 1.125rem;
    color: var(--theme-text);
    margin-bottom: var(--spacing-sm);
}

.travel-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--theme-border-light);
    color: var(--theme-primary);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.success {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.info {
    background: var(--theme-border-light);
    color: var(--theme-primary);
}

.status-badge.warning {
    background: #FEF3C7;
    color: #92400E;
}

/* ===== CTA SECTIONS ===== */
.cta-dark {
    background: linear-gradient(135deg, var(--theme-text), var(--theme-primary));
    color: white;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    text-align: center;
    margin: var(--spacing-2xl) 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme-border-light), transparent);
}

/* ===== LOADING SPINNER ===== */
.loading {
    text-align: center;
    padding: var(--spacing-2xl);
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--theme-border-light);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--theme-card-bg), var(--theme-border-light));
    border-top: 1px solid var(--theme-border-light);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    margin-top: var(--spacing-2xl);
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--theme-primary), var(--theme-secondary), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.footer-link {
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--theme-primary);
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    color: var(--theme-text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
    .about-grid,
    .about-two-col {
        grid-template-columns: 1fr;
    }

    .rates-tables {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    .hero {
        min-height: 500px;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid,
    .testimonials-grid,
    .travel-grid,
    .extended-grid,
    .info-grid,
    .etiquette-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section h3 {
        font-size: 1.75rem;
    }

    .calendar-day {
        min-height: 70px;
        padding: 0.25rem 0.15rem;
    }

    .calendar-day-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .calendar-span {
        height: 20px;
        font-size: 0.55rem;
        padding: 0 0.1rem;
        letter-spacing: -0.02em;
    }

    .calendar-day-header {
        font-size: 0.75rem;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .decoration-1,
    .decoration-2,
    .decoration-3,
    .decoration-4,
    .decoration-5,
    .decoration-6 {
        display: none;
    }

    .calendar-nav {
        flex-direction: row;
        gap: var(--spacing-sm);
        align-items: center;
        justify-content: space-between;
    }

    .calendar-nav .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .calendar-wrapper {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .calendar-header {
        gap: 0;
    }

    .calendar-grid {
        gap: 0;
    }

    .calendar-week {
        gap: 0;
    }

    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.25rem 0;
    }

    #calendar-mobile-events {
        display: block !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--theme-primary);
    outline-offset: 2px;
}

/* ===== UNIVERSAL GALLERY COMPATIBILITY ===== */
:root {
    /* Map theme-rose variables to Universal Gallery expectations */
    --theme-bg-primary: var(--theme-background);
    --theme-text-primary: var(--theme-text);
    --theme-border-primary: var(--theme-border-light);
    --theme-section-bg: var(--theme-background);
    --theme-bg-overlay: rgba(254, 247, 247, 0.9);
    --theme-shadow-strong: var(--shadow-xl);
    --theme-shadow-hover: var(--shadow-xl);
    --theme-text-inverted: var(--theme-text-light);
    --theme-backdrop: rgba(0, 0, 0, 0.8);

    /* Map universal theme variables to gallery variables */
    --gallery-primary: var(--theme-accent);
    --gallery-primary-hover: var(--theme-secondary);
    --gallery-secondary: var(--theme-secondary);
    --gallery-accent: var(--theme-accent);
    --gallery-background: var(--theme-background);
    --gallery-surface: var(--theme-card-bg);
    --gallery-text: var(--theme-text);
    --gallery-text-muted: var(--theme-text-secondary);
    --gallery-border: var(--theme-border-light);
    --gallery-shadow: var(--shadow-md);
    --gallery-shadow-hover: var(--shadow-lg);
    
    /* Gallery-specific settings using theme values */
    --gallery-border-radius: 12px;
    --gallery-border-radius-large: 16px;
    --gallery-grid-columns-desktop: 3;
    --gallery-transition-duration: 0.3s;
    --gallery-transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --gallery-hover-lift: -4px;
    --gallery-hover-scale: 1.03;

    /* Rose Primary for gradient mapping */
    --rose-primary: var(--theme-primary);
    --theme-accent-light: var(--theme-secondary);
}

/* Universal Gallery Theme Integration */
.universal-gallery {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

/* Gallery Hero Section */
.universal-gallery .gallery-hero {
    background: var(--theme-section-bg);
    color: var(--theme-text-primary);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.universal-gallery .gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-bg-overlay);
    pointer-events: none;
}

.universal-gallery .gallery-hero .hero-badge {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: var(--theme-accent);
    color: var(--theme-text-inverted);
    border-radius: 50%;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 30px color-mix(in srgb, var(--theme-accent), transparent 50%);
    transition: all 0.4s ease;
}

.universal-gallery .gallery-hero .hero-badge:hover {
    box-shadow: 0 0 40px color-mix(in srgb, var(--theme-accent), transparent 30%);
}

/* Gallery Section Titles */
.universal-gallery .gallery-section {
    position: relative;
    margin-bottom: 3rem;
}

.universal-gallery .gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--theme-accent);
    opacity: 0.3;
}

.universal-gallery .gallery-section-title {
    color: var(--theme-text-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
    font-size: 2rem;
    position: relative;
    font-family: var(--font-display);
}

.universal-gallery .gallery-section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--theme-accent);
    border-radius: 2px;
}

/* Gallery Grid Items */
.universal-gallery .gallery-grid-item {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--gallery-border-radius);
    overflow: hidden;
    transition: box-shadow var(--gallery-transition-duration) var(--gallery-transition-easing);
    position: relative;
}

/* Removed ::before to prevent layout interference */

.universal-gallery .gallery-grid-item:hover {
    box-shadow: 0 8px 25px color-mix(in srgb, var(--theme-accent), transparent 70%);
}

/* Gallery Images */
.universal-gallery .gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    transition: opacity var(--gallery-transition-duration) ease;
}

.universal-gallery .gallery-grid-item:hover .gallery-image {
    /* Removed transform to prevent layout shifts */
}

/* Rose Gallery Header Styling */
.rose-elegant-title {
    text-shadow: 2px 2px 4px var(--theme-shadow-strong), 0 0 10px color-mix(in srgb, var(--theme-accent), transparent 50%);
    position: relative;
}

.rose-elegant-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary), var(--theme-primary));
    border-radius: 2px;
}

/* Rose Divider Styling */
.rose-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--theme-background);
    border-bottom: 1px solid var(--theme-border-light);
}

.rose-divider__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 2rem;
}

.rose-divider:hover .rose-divider__icon {
    opacity: 1;
}

/* Universal Gallery System CSS */
/* Base styles that work across all themes with CSS variables for customization */

/* ========================================
   CSS Variables (Overridden by themes)
======================================== */
:root {
    /* Default color scheme */
    --gallery-primary: #2563eb;
    --gallery-primary-hover: #1d4ed8;
    --gallery-secondary: #64748b;
    --gallery-accent: #0ea5e9;
    --gallery-background: #ffffff;
    --gallery-surface: #f8fafc;
    --gallery-text: #1e293b;
    --gallery-text-muted: #64748b;
    --gallery-border: #e2e8f0;
    --gallery-shadow: rgba(0, 0, 0, 0.1);
    --gallery-shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Layout variables */
    --gallery-border-radius: 8px;
    --gallery-border-radius-large: 12px;
    --gallery-spacing: 1rem;
    --gallery-spacing-large: 2rem;
    --gallery-grid-gap: 1.5rem;
    --gallery-grid-columns-mobile: 1;
    --gallery-grid-columns-tablet: 2;
    --gallery-grid-columns-desktop: 3;
    --gallery-grid-columns-large: 4;
    
    /* Animation variables */
    --gallery-transition-duration: 0.3s;
    --gallery-transition-easing: ease;
    --gallery-hover-lift: -2px;
    --gallery-hover-scale: 1;
    
    /* Typography */
    --gallery-font-size-small: 0.875rem;
    --gallery-font-size-base: 1rem;
    --gallery-font-size-large: 1.125rem;
    --gallery-font-size-xl: 1.25rem;
    --gallery-font-size-2xl: 1.5rem;
    --gallery-font-size-3xl: 1.875rem;
    --gallery-font-size-4xl: 2.25rem;
    --gallery-font-weight-normal: 400;
    --gallery-font-weight-medium: 500;
    --gallery-font-weight-semibold: 600;
    --gallery-font-weight-bold: 700;
}

/* ========================================
   Gallery Hero Section
======================================== */
.gallery-hero {
    text-align: center;
    padding: var(--gallery-spacing-large) 0;
    margin-bottom: var(--gallery-spacing-large);
    background: var(--gallery-background);
    border-bottom: 1px solid var(--gallery-border);
}

/* Hide hero background and overlay when no background image */
.gallery-hero .hero-bg,
.gallery-hero .hero-overlay {
    display: none;
}

.gallery-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--gallery-spacing);
}

.gallery-hero .hero-title {
    font-size: var(--gallery-font-size-4xl);
    font-weight: var(--gallery-font-weight-bold);
    color: var(--gallery-text);
    margin: 0 0 var(--gallery-spacing) 0;
    line-height: 1.2;
}

.gallery-hero .hero-subtitle {
    font-size: var(--gallery-font-size-large);
    color: var(--gallery-text-muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-hero .hero-title {
        font-size: var(--gallery-font-size-3xl);
    }

    .gallery-hero .hero-subtitle {
        font-size: var(--gallery-font-size-base);
    }
}

/* Gallery Hero with Background Image */
.gallery-hero.has-bg-image {
    position: relative;
    min-height: 50vh;
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-hero.has-bg-image .hero-bg {
    display: block;
}

.gallery-hero.has-bg-image .hero-overlay {
    display: block;
}

.gallery-hero.has-bg-image .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-hero.has-bg-image .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Gallery Section Headers
======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--gallery-spacing-large);
}

.section-title {
    font-size: var(--gallery-font-size-2xl);
    font-weight: var(--gallery-font-weight-semibold);
    color: var(--text, var(--theme-text-primary, var(--gallery-text)));
    margin: 0;
    padding: 0;
}

/* ========================================
   Base Gallery Container
======================================== */
.gallery-main-section {
    padding: var(--gallery-spacing-large) 0;
    background-color: var(--gallery-background);
    color: var(--gallery-text);
}

.galleries-container.universal-gallery {
    background-color: var(--gallery-surface);
    border-radius: var(--gallery-border-radius-large);
    padding: var(--gallery-spacing-large);
    box-shadow: 0 2px 8px var(--gallery-shadow);
    margin: var(--gallery-spacing) 0;
}

/* ========================================
   Gallery Hero Section
======================================== */
.gallery-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-accent) 100%);
    color: white;
    text-align: center;
    position: relative;
}

.gallery-hero-title {
    font-size: var(--gallery-font-size-4xl);
    font-weight: var(--gallery-font-weight-bold);
    margin-bottom: var(--gallery-spacing);
    line-height: 1.2;
}

.gallery-hero-subtitle {
    font-size: var(--gallery-font-size-large);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Gallery Controls
======================================== */
.gallery-controls {
    display: flex;
    gap: var(--gallery-spacing);
    margin-bottom: var(--gallery-spacing-large);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.gallery-search {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.gallery-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gallery-border);
    border-radius: var(--gallery-border-radius);
    background-color: var(--gallery-background);
    color: var(--gallery-text);
    font-size: var(--gallery-font-size-base);
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-search-input:focus {
    outline: none;
    border-color: var(--gallery-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gallery-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gallery-text-muted);
    pointer-events: none;
}

.gallery-filter-select,
.gallery-sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gallery-border);
    border-radius: var(--gallery-border-radius);
    background-color: var(--gallery-background);
    color: var(--gallery-text);
    font-size: var(--gallery-font-size-base);
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-filter-select:focus,
.gallery-sort-select:focus {
    outline: none;
    border-color: var(--gallery-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   Grid Layout
======================================== */
.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(var(--gallery-grid-columns-desktop), 1fr);
    gap: var(--gallery-grid-gap);
    padding: var(--gallery-spacing) 0;
    align-items: start;
}

.gallery-grid-item {
    position: relative;
    border-radius: var(--gallery-border-radius);
    overflow: hidden;
    background-color: var(--gallery-background);
    box-shadow: 0 2px 8px var(--gallery-shadow);
    transition: box-shadow var(--gallery-transition-duration) var(--gallery-transition-easing), border-color var(--gallery-transition-duration) var(--gallery-transition-easing);
    cursor: pointer;
}

.gallery-grid-item:hover {
    box-shadow: 0 8px 25px var(--gallery-shadow-hover);
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.gallery-grid-item:hover .gallery-image {
    /* Removed transform to prevent layout shifts */
}

/* ========================================
   Masonry Layout
======================================== */
.gallery-masonry-container {
    columns: var(--gallery-grid-columns-desktop);
    column-gap: var(--gallery-grid-gap);
    padding: var(--gallery-spacing) 0;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: var(--gallery-grid-gap);
    display: block;
    border-radius: var(--gallery-border-radius);
    overflow: hidden;
    background-color: var(--gallery-background);
    box-shadow: 0 2px 8px var(--gallery-shadow);
    transition: box-shadow var(--gallery-transition-duration) var(--gallery-transition-easing);
    cursor: pointer;
}

.gallery-masonry-item:hover {
    box-shadow: 0 8px 25px var(--gallery-shadow-hover);
}

.gallery-masonry-item .gallery-image-wrapper {
    height: auto;
}

.gallery-masonry-item .gallery-image {
    height: auto;
    max-height: 400px;
}

/* ========================================
   Carousel Layout
======================================== */
/* Clean flex-based carousel layout */
.gallery-carousel-container {
    position: relative;
    padding: var(--gallery-spacing);
    background-color: var(--gallery-surface);
    border-radius: var(--gallery-border-radius-large);
    margin: var(--gallery-spacing-large) 0;
    box-shadow: 0 4px 15px var(--gallery-shadow);
    min-height: 400px;
}

.gallery-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 350px;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 400ms ease;
    will-change: transform;
    height: 100%;
}

.gallery-carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
}

.gallery-carousel-item .gallery-image-container {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 350px;
    background: var(--gallery-surface);
    border-radius: var(--gallery-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--gallery-shadow);
}

.gallery-carousel-item .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    border-radius: var(--gallery-border-radius);
}

.gallery-carousel-item:hover .gallery-image-container {
    box-shadow: 0 10px 25px var(--gallery-shadow-hover);
}

.gallery-carousel-item:hover .gallery-image {
    /* Removed transform to prevent layout shifts */
}

.gallery-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--gallery-text);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    z-index: 10;
    box-shadow: 0 2px 8px var(--gallery-shadow);
}

.gallery-carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.gallery-carousel-nav-prev {
    left: 0.5rem;
}

.gallery-carousel-nav-next {
    right: 0.5rem;
}

.gallery-carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--gallery-spacing);
}

.gallery-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gallery-text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-carousel-dot.active {
    background: var(--gallery-primary);
}

.gallery-carousel-dot:hover {
    background: var(--gallery-secondary);
}

/* ========================================
   Slideshow Layout
======================================== */
/* Slideshow layout for single-image display with smooth transitions */
.gallery-slideshow-container {
    position: relative;
    padding: var(--gallery-spacing);
    background-color: var(--gallery-surface);
    border-radius: var(--gallery-border-radius-large);
    margin: var(--gallery-spacing-large) 0;
    box-shadow: 0 4px 15px var(--gallery-shadow);
    min-height: 400px;
    overflow: hidden;
}

.gallery-slideshow-viewport {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: var(--gallery-border-radius);
    background: var(--gallery-background);
}

.gallery-slideshow-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease-in-out, visibility 500ms ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-slideshow-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.gallery-slideshow-image-container {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 350px;
    background: var(--gallery-surface);
    border-radius: var(--gallery-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--gallery-shadow);
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform var(--gallery-transition-duration) var(--gallery-transition-easing);
    border-radius: var(--gallery-border-radius);
}

.gallery-slideshow-image-container:hover {
    box-shadow: 0 8px 20px var(--gallery-shadow-hover);
}

.gallery-slideshow-image-container:hover .gallery-slideshow-image {
    /* Removed transform to prevent layout shifts */
}

.gallery-slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: var(--gallery-font-size-base);
    line-height: 1.4;
    border-radius: 0 0 var(--gallery-border-radius) var(--gallery-border-radius);
}

.gallery-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--gallery-text);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    z-index: 2;
    box-shadow: 0 2px 8px var(--gallery-shadow);
}

.gallery-slideshow-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px var(--gallery-shadow-hover);
}

.gallery-slideshow-nav.prev {
    left: 1rem;
}

.gallery-slideshow-nav.next {
    right: 1rem;
}

.gallery-slideshow-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--gallery-spacing);
    padding: 0 var(--gallery-spacing);
}

.gallery-slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gallery-text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    position: relative;
}

.gallery-slideshow-dot.active {
    background: var(--gallery-primary);
    transform: scale(1.2);
}

.gallery-slideshow-dot:hover {
    background: var(--gallery-secondary);
    transform: scale(1.1);
}

.gallery-slideshow-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--gallery-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: slideshow-dot-pulse 2s ease-in-out infinite;
}

@keyframes slideshow-dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* ========================================
   Lightbox Grid Layout
======================================== */
.gallery-lightbox-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    padding: var(--gallery-spacing);
    background-color: var(--gallery-surface);
    border-radius: var(--gallery-border-radius-large);
}

.gallery-lightbox-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--gallery-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    border: 2px solid var(--gallery-border);
}

.gallery-lightbox-thumbnail:hover {
    border-color: var(--gallery-primary);
    box-shadow: 0 4px 12px var(--gallery-shadow-hover);
}

.gallery-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-lightbox-thumbnail:hover .gallery-thumbnail-overlay {
    opacity: 1;
}

/* ========================================
   Image Captions and Badges
======================================== */
.gallery-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: var(--gallery-font-size-small);
    text-align: center;
    font-weight: var(--gallery-font-weight-medium);
}

.gallery-featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--gallery-border-radius);
    font-size: 0.75rem;
    font-weight: var(--gallery-font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Universal Lightbox
======================================== */
.gallery-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-lightbox-modal.active {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gallery-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 100000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.gallery-lightbox-close:hover {
    background: rgba(220, 38, 38, 0.85);
    border-color: white;
}

.gallery-lightbox-close-icon {
    font-size: 24px;
    line-height: 1;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    backdrop-filter: blur(10px);
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-nav-prev {
    left: -4rem;
}

.gallery-lightbox-nav-next {
    right: -4rem;
}

.gallery-lightbox-nav svg {
    width: 1.5rem;
    height: 1.5rem;
}

.gallery-lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--gallery-border-radius-large);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox-info {
    position: absolute;
    bottom: -4rem;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: var(--gallery-border-radius);
    backdrop-filter: blur(10px);
}

.gallery-lightbox-caption {
    font-size: var(--gallery-font-size-base);
    font-weight: var(--gallery-font-weight-medium);
    text-align: center;
    margin-bottom: 0.5rem;
}

.gallery-lightbox-meta {
    font-size: var(--gallery-font-size-small);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* ========================================
   Gallery CTA Section
======================================== */
.gallery-cta-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-accent) 100%);
    color: white;
}

.gallery-cta-title {
    font-size: var(--gallery-font-size-2xl);
    font-weight: var(--gallery-font-weight-semibold);
    margin-bottom: var(--gallery-spacing);
    text-align: center;
}

.gallery-cta-subtitle {
    font-size: var(--gallery-font-size-large);
    opacity: 0.9;
    text-align: center;
    margin-bottom: var(--gallery-spacing-large);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.gallery-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--gallery-spacing);
    flex-wrap: wrap;
}

.gallery-cta-primary,
.gallery-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--gallery-border-radius);
    font-weight: var(--gallery-font-weight-medium);
    text-decoration: none;
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
    cursor: pointer;
}

.gallery-cta-primary {
    background: white;
    color: var(--gallery-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--gallery-primary);
}

.gallery-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.gallery-cta-secondary:hover {
    background: white;
    color: var(--gallery-primary);
    text-decoration: none;
}

/* ========================================
   Empty State
======================================== */
.gallery-empty-state {
    text-align: center;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
}

.gallery-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--gallery-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.gallery-empty-title {
    font-size: var(--gallery-font-size-xl);
    font-weight: var(--gallery-font-weight-semibold);
    color: var(--gallery-text);
    margin-bottom: var(--gallery-spacing);
}

.gallery-empty-description {
    color: var(--gallery-text-muted);
    margin-bottom: var(--gallery-spacing-large);
    line-height: 1.6;
}

.gallery-empty-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--gallery-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--gallery-border-radius);
    font-weight: var(--gallery-font-weight-medium);
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-empty-cta:hover {
    background: var(--gallery-primary-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* ========================================
   Pagination
======================================== */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gallery-spacing);
    margin-top: var(--gallery-spacing-large);
}

.gallery-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gallery-background);
    color: var(--gallery-text);
    text-decoration: none;
    border: 1px solid var(--gallery-border);
    border-radius: var(--gallery-border-radius);
    font-weight: var(--gallery-font-weight-medium);
    transition: all var(--gallery-transition-duration) var(--gallery-transition-easing);
}

.gallery-pagination-btn:hover {
    background: var(--gallery-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--gallery-shadow-hover);
}

.gallery-pagination-info {
    font-size: var(--gallery-font-size-small);
    color: var(--gallery-text-muted);
    font-weight: var(--gallery-font-weight-medium);
}

/* ========================================
   Loading States
======================================== */
.gallery-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--gallery-text-muted);
}

.gallery-loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--gallery-border);
    border-top: 3px solid var(--gallery-primary);
    border-radius: 50%;
    animation: gallery-spin 1s linear infinite;
    margin-bottom: var(--gallery-spacing);
}

@keyframes gallery-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    :root {
        --gallery-grid-columns-desktop: var(--gallery-grid-columns-tablet);
    }
    
    .gallery-carousel-item {
        flex: 0 0 280px;
    }
    
    .gallery-lightbox-nav-prev {
        left: -3rem;
    }
    
    .gallery-lightbox-nav-next {
        right: -3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --gallery-grid-columns-desktop: var(--gallery-grid-columns-mobile);
        --gallery-spacing: 0.75rem;
        --gallery-spacing-large: 1.5rem;
        --gallery-grid-gap: 1rem;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .gallery-search {
        max-width: none;
    }
    
    .gallery-masonry-container {
        columns: 2;
    }
    
    .gallery-carousel-container {
        min-height: 300px;
    }
    
    .gallery-carousel-viewport {
        height: 250px;
    }
    
    .gallery-carousel-item .gallery-image-container {
        max-height: 250px;
        max-width: 400px;
    }
    
    .gallery-slideshow-container {
        min-height: 300px;
    }
    
    .gallery-slideshow-viewport {
        height: 250px;
    }
    
    .gallery-slideshow-image-container {
        max-height: 250px;
        max-width: 400px;
    }
    
    .gallery-slideshow-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-slideshow-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-lightbox-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .gallery-lightbox-nav-prev {
        left: -2rem;
    }
    
    .gallery-lightbox-nav-next {
        right: -2rem;
    }
}

@media (max-width: 480px) {
    .gallery-masonry-container {
        columns: 1;
    }
    
    .gallery-carousel-container {
        min-height: 250px;
        padding: 0.75rem;
    }
    
    .gallery-carousel-viewport {
        height: 200px;
    }
    
    .gallery-carousel-item .gallery-image-container {
        max-height: 200px;
        max-width: 300px;
    }
    
    .gallery-slideshow-container {
        min-height: 250px;
        padding: 0.75rem;
    }
    
    .gallery-slideshow-viewport {
        height: 200px;
    }
    
    .gallery-slideshow-image-container {
        max-height: 200px;
        max-width: 300px;
    }
    
    .gallery-slideshow-nav {
        width: 35px;
        height: 35px;
    }
    
    .gallery-slideshow-nav.prev {
        left: 0.5rem;
    }
    
    .gallery-slideshow-nav.next {
        right: 0.5rem;
    }
    
    .gallery-slideshow-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-slideshow-dots {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .gallery-slideshow-dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-lightbox-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-hero-title {
        font-size: var(--gallery-font-size-3xl);
    }
    
    .gallery-lightbox-nav {
        padding: 0.75rem;
    }
    
    .gallery-lightbox-nav-prev {
        left: -1rem;
    }
    
    .gallery-lightbox-nav-next {
        right: -1rem;
    }
    
    .gallery-lightbox-info {
        position: static;
        margin-top: 1rem;
        background: rgba(0, 0, 0, 0.9);
    }
}
/* ============================================================
   SVG ROSE ACCENT THEME — Botanical Line Art
   Added 2026-03-09 via auto-build
============================================================ */

/* Base SVG rose class */
.rose-svg {
    position: absolute;
    pointer-events: none;
    fill: none;
    stroke: var(--theme-primary);
}

/* Hero roses */
.rose-hero-tr {
    width: 220px;
    height: 220px;
    top: -20px;
    right: -20px;
    opacity: 0.07;
    transform: rotate(15deg);
    animation: rose-float 12s ease-in-out infinite;
}

.rose-hero-bl {
    width: 160px;
    height: 160px;
    bottom: -10px;
    left: -10px;
    opacity: 0.05;
    transform: rotate(-10deg);
    animation: rose-float 12s ease-in-out infinite 4s;
}

/* Portrait corner accent */
.rose-portrait-accent {
    width: 48px;
    height: 48px;
    bottom: 12px;
    right: 12px;
    opacity: 0.6;
    animation: rose-bloom-pulse 8s ease-in-out infinite;
}

@keyframes rose-bloom-pulse {
    0%, 100% { transform: scale(1) rotate(-3deg); opacity: 0.5; }
    50%       { transform: scale(1.08) rotate(3deg); opacity: 0.7; }
}

/* Section divider: hairlines flanking centred rosebud */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-2xl) 0;
    gap: 12px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--theme-primary);
    max-width: 120px;
    opacity: 0.3;
}

/* rose-divider variant (used in gallery) — hairlines too */
.rose-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.5rem 0;
    background: var(--theme-background);
    border-bottom: 1px solid var(--theme-border-light);
}

.rose-divider::before,
.rose-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--theme-primary);
    max-width: 80px;
    opacity: 0.3;
}

/* Section title: tiny rosebud centred on the underline bar */
.section-title {
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23E11D48' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 38 C30 44 30 50 30 57'/%3E%3Cpath d='M26 36 Q30 33 34 36'/%3E%3Cpath d='M30 35 C22 30 18 20 22 12 C24 6 36 6 38 12 C42 20 38 30 30 35'/%3E%3Cpath d='M30 33 C24 28 22 20 26 14 C28 10 32 10 34 14 C38 20 36 28 30 33'/%3E%3Cpath d='M30 30 C28 26 28 20 30 16 C32 20 32 26 30 30'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

/* Footer watermark — centred rose at 4% opacity */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' fill='none' stroke='%23E11D48' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 76 C49 88 50 102 50 116'/%3E%3Cpath d='M50 102 C44 97 37 89 34 79 Q41 82 50 102Z'/%3E%3Cpath d='M50 92 C56 87 63 79 66 69 Q59 72 50 92Z'/%3E%3Cpath d='M44 73 Q50 69 56 73'/%3E%3Cpath d='M50 52 C40 44 28 40 28 26 C28 16 38 12 46 18 C50 22 50 36 50 44'/%3E%3Cpath d='M50 52 C60 44 72 40 72 26 C72 16 62 12 54 18 C50 22 50 36 50 44'/%3E%3Cpath d='M50 56 C38 54 26 46 28 34 C30 24 42 22 48 32 C50 36 50 48 50 52'/%3E%3Cpath d='M50 56 C62 54 74 46 72 34 C70 24 58 22 52 32 C50 36 50 48 50 52'/%3E%3Cpath d='M50 60 C42 56 36 48 38 38 C40 30 50 28 54 34 C58 40 56 54 50 60'/%3E%3Cpath d='M50 60 C58 56 64 48 62 38 C60 30 50 28 46 34 C42 40 44 54 50 60'/%3E%3Cpath d='M50 56 C46 50 46 42 50 38 C54 42 54 50 50 56'/%3E%3Ccircle cx='50' cy='42' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Keep footer content above watermark */
.footer-links,
.footer-copyright {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .rose-hero-tr { width: 140px; height: 140px; opacity: 0.05; }
    .rose-hero-bl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rose-hero-tr,
    .rose-hero-bl,
    .rose-portrait-accent { animation: none; }
}
