/* Baloo Bar & Lounge - Design System CSS */
/* Inspired by the original website - warm, inviting, light theme */

/* ============================================
   CSS Custom Properties (Design Tokens)
   Mediterranean Terrace Theme
   ============================================ */
:root {
    /* Backgrounds - Warm Mediterranean */
    --color-background: #F8F6F1;
    --color-card: #ffffff;
    --color-section-alt: #EDE8DF;
    --color-border: #DCD6CB;

    /* Primary Accent - Mediterranean Blue */
    --color-accent: #1E6B8C;
    --color-accent-hover: #155A77;
    --color-accent-light: rgba(30, 107, 140, 0.1);

    /* Secondary Accent - Terracotta */
    --color-accent-warm: #C75B39;
    --color-accent-warm-hover: #A64B2D;
    --color-accent-warm-light: rgba(199, 91, 57, 0.1);

    /* Tertiary - Sun Gold */
    --color-highlight: #E8A838;
    --color-highlight-hover: #D4930D;

    /* Text - Warm tones */
    --color-text: #5C6A6E;
    --color-text-dark: #2C3E40;
    --color-muted: #8C9196;

    /* Status Colors */
    --color-success: #2D8659;
    --color-warning: #D4930D;
    --color-error: #C7463A;

    /* Dark Theme (footer) - Night Mediterranean */
    --color-dark: #1A2C3A;
    --color-dark-bg: #0F1E28;

    /* Fonts - Modern sans-serif */
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;

    /* Organic border radii */
    --radius-organic-sm: 12px 20px 16px 24px;
    --radius-organic-md: 20px 32px 24px 36px;
    --radius-organic-lg: 28px 40px 32px 44px;

    /* Bold shadow tokens */
    --shadow-warm: 0 4px 6px -1px rgba(44, 62, 64, 0.08),
                   0 10px 20px -2px rgba(44, 62, 64, 0.12);
    --shadow-bold: 0 8px 16px -2px rgba(44, 62, 64, 0.15),
                   0 20px 40px -4px rgba(44, 62, 64, 0.20);
    --shadow-lift: 0 12px 24px -4px rgba(44, 62, 64, 0.18),
                   0 24px 48px -8px rgba(44, 62, 64, 0.22);
}

/* Alpine.js cloak - hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* ============================================
   CSS Reset
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
    /* Subtle Mediterranean tile pattern */
    background-image:
        radial-gradient(circle at 25% 25%, rgba(199, 91, 57, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 107, 140, 0.03) 0%, transparent 50%);
    background-size: 100px 100px;
    background-attachment: fixed;
}

/* ============================================
   Animations
   ============================================ */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
}

.scroll-animate.animate-in {
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.fade-up.animate-in {
    animation-name: fadeSlideUp;
}

.scroll-animate.fade-left.animate-in {
    animation-name: fadeSlideLeft;
}

.scroll-animate.fade-right.animate-in {
    animation-name: fadeSlideRight;
}

.scroll-animate.scale-in.animate-in {
    animation-name: scaleIn;
}

/* Staggered delays for grid items */
.scroll-animate.delay-1 { animation-delay: 0.1s; }
.scroll-animate.delay-2 { animation-delay: 0.2s; }
.scroll-animate.delay-3 { animation-delay: 0.3s; }
.scroll-animate.delay-4 { animation-delay: 0.4s; }
.scroll-animate.delay-5 { animation-delay: 0.5s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        animation: none !important;
    }
}

/* Pride flags gradient - Bear Pride + Rainbow, doubled for seamless scroll */
:root {
    --pride-gradient: linear-gradient(90deg,
        /* First cycle: Bear Pride */
        #623804 0%, #623804 2%,
        #D56300 4%, #D56300 6%,
        #FEDD63 8%, #FEDD63 10%,
        #FEE6B8 12%, #FEE6B8 13%,
        #FFFFFF 14%, #FFFFFF 16%,
        #555555 18%, #555555 20%,
        #000000 22%, #000000 24%,
        /* First cycle: Rainbow */
        #E40303 26%, #E40303 28%,
        #FF8C00 30%, #FF8C00 32%,
        #FFED00 34%, #FFED00 36%,
        #008026 38%, #008026 40%,
        #24408E 42%, #24408E 44%,
        #732982 46%, #732982 48%,
        /* Second cycle: Bear Pride */
        #623804 50%, #623804 52%,
        #D56300 54%, #D56300 56%,
        #FEDD63 58%, #FEDD63 60%,
        #FEE6B8 62%, #FEE6B8 63%,
        #FFFFFF 64%, #FFFFFF 66%,
        #555555 68%, #555555 70%,
        #000000 72%, #000000 74%,
        /* Second cycle: Rainbow */
        #E40303 76%, #E40303 78%,
        #FF8C00 80%, #FF8C00 82%,
        #FFED00 84%, #FFED00 86%,
        #008026 88%, #008026 90%,
        #24408E 92%, #24408E 94%,
        #732982 96%, #732982 98%,
        /* End matches start */
        #623804 100%);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
}

/* Minimum tap target size for mobile */
button, a, input[type="submit"], input[type="button"], [role="button"] {
    min-height: 44px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Accent-colored headings */
.text-accent-heading {
    color: var(--color-accent);
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ============================================
   Spacing Utilities
   ============================================ */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-1); }
.m-2 { margin: var(--spacing-2); }
.m-4 { margin: var(--spacing-4); }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }
.mt-8 { margin-top: var(--spacing-8); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mr-2 { margin-right: var(--spacing-2); }
.mr-4 { margin-right: var(--spacing-4); }
.ml-2 { margin-left: var(--spacing-2); }
.ml-4 { margin-left: var(--spacing-4); }

.p-0 { padding: 0; }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }
.px-2 { padding-left: var(--spacing-2); padding-right: var(--spacing-2); }
.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }
.py-2 { padding-top: var(--spacing-2); padding-bottom: var(--spacing-2); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }
.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }
.py-8 { padding-top: var(--spacing-8); padding-bottom: var(--spacing-8); }
.pt-4 { padding-top: var(--spacing-4); }
.pb-4 { padding-bottom: var(--spacing-4); }

/* ============================================
   Width & Height Utilities
   ============================================ */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.min-h-screen { min-height: 100vh; }

/* ============================================
   Text Utilities
   ============================================ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Text Colors */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.text-white { color: #ffffff; }
.text-dark { color: var(--color-text-dark); }
.text-foreground { color: var(--color-text); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }

/* ============================================
   Background Utilities
   ============================================ */
.bg-background { background-color: var(--color-background); }
.bg-dark { background-color: var(--color-dark); }
.bg-dark-bg { background-color: var(--color-dark-bg); }
.bg-card { background-color: var(--color-card); }
.bg-accent { background-color: var(--color-accent); }
.bg-accent-light { background-color: var(--color-accent-light); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }

/* ============================================
   Border Utilities
   ============================================ */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

.border-border { border-color: var(--color-border); }
.border-accent { border-color: var(--color-accent); }
.border-error { border-color: var(--color-error); }
.border-success { border-color: var(--color-success); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   Shadow Utilities
   ============================================ */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.2); }

/* ============================================
   Position Utilities
   ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* ============================================
   Overflow Utilities
   ============================================ */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ============================================
   Transition Utilities
   ============================================ */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ============================================
   Cursor Utilities
   ============================================ */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ============================================
   Opacity Utilities
   ============================================ */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ============================================
   Component: Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: var(--spacing-3) var(--spacing-6);
    min-height: 44px;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 150ms, color 150ms, border-color 150ms;
    font-size: 1rem;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--pride-gradient);
    background-size: 200% 100%;
    animation: rainbowShift 40s linear infinite;
    color: #ffffff;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.3),
        1px -1px 0 rgba(0, 0, 0, 0.3),
        -1px 1px 0 rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(115, 41, 130, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 41, 130, 0.35);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-danger {
    background-color: transparent;
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.btn-danger:hover:not(:disabled) {
    background-color: rgba(248, 113, 113, 0.1);
}

.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: 1.125rem;
}

/* ============================================
   Component: Cards
   ============================================ */
.card {
    background-color: var(--color-card);
    border-radius: 0.75rem;
    padding: var(--spacing-4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .card {
        padding: var(--spacing-6);
    }
}

.card-header {
    margin-bottom: var(--spacing-4);
}

.card-title {
    color: var(--color-text-dark);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   Component: Back Button
   ============================================ */
.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.back-btn {
    position: absolute;
    left: -1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: inherit;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.back-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ============================================
   Component: Colored Tiles
   ============================================ */
.tile {
    border-radius: var(--radius-organic-sm);
    padding: var(--spacing-6);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.15), var(--shadow-warm);
}

.tile:hover {
    transform: translateY(-6px) scale(1.02) rotate(-0.5deg);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.15), var(--shadow-lift);
}


.tile h3, .tile h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tile p {
    color: rgba(255, 255, 255, 0.9);
}

/* Mediterranean Tile Gradients with 3D + Colored Shadows */
.tile-ocean {
    background: linear-gradient(135deg, #1E6B8C 0%, #155A77 100%);
    box-shadow: 0 6px 0 0 rgba(21, 90, 119, 0.6), 0 8px 24px rgba(30, 107, 140, 0.3);
}
.tile-terracotta {
    background: linear-gradient(135deg, #C75B39 0%, #A64B2D 100%);
    box-shadow: 0 6px 0 0 rgba(166, 75, 45, 0.6), 0 8px 24px rgba(199, 91, 57, 0.3);
}
.tile-sunset {
    background: linear-gradient(135deg, #E8A838 0%, #D4930D 100%);
    box-shadow: 0 6px 0 0 rgba(212, 147, 13, 0.6), 0 8px 24px rgba(232, 168, 56, 0.3);
}
.tile-sage {
    background: linear-gradient(135deg, #6B8E7A 0%, #4A7158 100%);
    box-shadow: 0 6px 0 0 rgba(74, 113, 88, 0.6), 0 8px 24px rgba(107, 142, 122, 0.3);
}
.tile-sky {
    background: linear-gradient(135deg, #5BA4C9 0%, #3D8AAF 100%);
    box-shadow: 0 6px 0 0 rgba(61, 138, 175, 0.6), 0 8px 24px rgba(91, 164, 201, 0.3);
}
.tile-wine {
    background: linear-gradient(135deg, #8B4A5E 0%, #6B3A4A 100%);
    box-shadow: 0 6px 0 0 rgba(107, 58, 74, 0.6), 0 8px 24px rgba(139, 74, 94, 0.3);
}
.tile-olive {
    background: linear-gradient(135deg, #7A8B5E 0%, #5A6B42 100%);
    box-shadow: 0 6px 0 0 rgba(90, 107, 66, 0.6), 0 8px 24px rgba(122, 139, 94, 0.3);
}
.tile-coral {
    background: linear-gradient(135deg, #E07A5F 0%, #C66348 100%);
    box-shadow: 0 6px 0 0 rgba(198, 99, 72, 0.6), 0 8px 24px rgba(224, 122, 95, 0.3);
}
.tile-lavender {
    background: linear-gradient(135deg, #8E7CC3 0%, #7161A8 100%);
    box-shadow: 0 6px 0 0 rgba(113, 97, 168, 0.6), 0 8px 24px rgba(142, 124, 195, 0.3);
}
.tile-sand {
    background: linear-gradient(135deg, #C9A66B 0%, #A8854A 100%);
    box-shadow: 0 6px 0 0 rgba(168, 133, 74, 0.6), 0 8px 24px rgba(201, 166, 107, 0.3);
}

/* Info card tile - Mediterranean Blue (alias for backwards compatibility) */
.tile-blue {
    background: linear-gradient(135deg, #1E6B8C 0%, #155A77 100%);
    box-shadow: 0 6px 0 0 rgba(21, 90, 119, 0.6), 0 8px 24px rgba(30, 107, 140, 0.3);
}

/* Tile with background image */
.tile-image {
    background-size: cover;
    background-position: center;
}

.tile-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 44, 58, 0.85) 0%,
        rgba(26, 44, 58, 0.4) 40%,
        rgba(199, 91, 57, 0.08) 100%
    );
}

.tile-image > * {
    position: relative;
    z-index: 1;
}

/* Location tile with mini map */
a.tile-location,
a.tile-location:link,
a.tile-location:visited,
a.tile-location:hover,
a.tile-location:active {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #1a3a4a;
    color: #ffffff;
}

.tile-map-container {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.tile-map {
    width: 100%;
    height: 180px;
    border: none;
    margin-top: -20px;
    pointer-events: none;
    filter: saturate(0.8) contrast(1.1);
}

.tile-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        #1a3a4a 100%
    );
    pointer-events: none;
}

.tile-location-content {
    padding: var(--spacing-4);
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
    color: #ffffff !important;
}

.tile-location-content h3,
.tile-location-content p,
.tile-location-content span {
    color: #ffffff !important;
}

.tile-location-nomap {
    min-height: 160px;
    background: linear-gradient(135deg, #1a3a4a 0%, #2a5a6a 100%);
}

.tile-map-link {
    display: inline-block;
    margin-top: var(--spacing-2);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.tile-location:hover .tile-map-link {
    opacity: 1;
}

/* ============================================
   Component: Forms
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-4);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-2);
    color: var(--color-muted);
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color 150ms, box-shadow 150ms;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-muted);
}

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

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-accent);
}

/* ============================================
   Component: Alerts
   ============================================ */
.alert {
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-4);
    border: 1px solid;
}

.alert-error {
    background-color: rgba(248, 113, 113, 0.2);
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-success {
    background-color: rgba(74, 222, 128, 0.2);
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background-color: rgba(251, 191, 36, 0.2);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

/* ============================================
   Component: Badge
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-accent {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.badge-success {
    background-color: var(--color-success);
    color: var(--color-dark);
}

.badge-error {
    background-color: var(--color-error);
    color: var(--color-dark);
}

.badge-muted {
    background-color: var(--color-border);
    color: var(--color-muted);
}

/* ============================================
   Component: Table
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--spacing-3) var(--spacing-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background-color: var(--color-accent-light);
}

/* ============================================
   Component: Nav/Sidebar
   ============================================ */
.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    color: var(--color-muted);
    border-radius: 0.5rem;
    transition: background-color 150ms, color 150ms;
}

.nav-link:hover {
    background-color: var(--color-accent-light);
    color: var(--color-text-dark);
}

.nav-link.active {
    background-color: var(--color-accent);
    color: #ffffff;
}

.nav-link-icon {
    width: 1.25rem;
    text-align: center;
}

/* ============================================
   Admin Layout
   ============================================ */
.admin-body {
    min-height: 100vh;
}

/* Fixed form header for edit pages */
.form-header-bar {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
}

@media (min-width: 1024px) {
    .form-header-bar {
        left: 250px;
    }
}

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 65px;
    background-color: #ffffff;
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-logo {
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.admin-logo:hover {
    color: var(--color-accent);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 65px);
    margin-top: 65px;
}

.admin-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid var(--color-border);
    padding: var(--spacing-4);
    display: none;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .admin-sidebar {
        display: block;
    }
}

/* Mobile sidebar open state */
.admin-sidebar.sidebar-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    padding-top: 80px;
    z-index: 50;
}

.admin-content {
    flex: 1;
    padding: var(--spacing-6);
    overflow-x: auto;
    background-color: var(--color-background);
}

@media (min-width: 1024px) {
    .admin-content {
        margin-left: 250px;
    }
}

/* Flash messages */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-3) var(--spacing-4);
    margin-bottom: var(--spacing-4);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.flash-success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.flash-warning {
    background-color: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.flash-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.flash-info {
    background-color: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.flash-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 var(--spacing-2);
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

.admin-content-header {
    margin-bottom: var(--spacing-6);
}

.admin-content-title {
    color: var(--color-text-dark);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-2);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    padding: var(--spacing-2);
    color: var(--color-muted);
    cursor: pointer;
    background: transparent;
    border: none;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ============================================
   Public Layout - Header
   ============================================ */
.public-header {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    padding: var(--spacing-3) var(--spacing-4);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(44, 62, 64, 0.08);
}

/* Decorative terracotta accent below header */
.public-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pride-gradient);
    background-size: 200% 100%;
    animation: rainbowShift 12s linear infinite;
}

.public-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-3);
}

/* Header Logo */
.public-logo {
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-shrink: 0;
}

.public-logo:hover {
    color: var(--color-accent);
}

.header-logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.header-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* Desktop Navigation */
.public-nav-desktop {
    display: none;
    align-items: center;
    gap: var(--spacing-4);
}

.public-nav-desktop a {
    color: var(--color-text-dark);
    font-weight: 500;
    text-decoration: none;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 0.25rem;
    transition: color 200ms;
    white-space: nowrap;
    position: relative;
}

.public-nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent-warm);
    transition: width 250ms ease, left 250ms ease;
}

.public-nav-desktop a:hover {
    color: var(--color-accent-warm);
}

.public-nav-desktop a:hover::after {
    width: 70%;
    left: 15%;
}

.public-nav-desktop a.active {
    color: var(--color-accent-warm);
    font-weight: 600;
}

.public-nav-desktop a.active::after {
    width: 70%;
    left: 15%;
}

/* Header Right Side */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-shrink: 0;
}

/* Header Social Links */
.header-social {
    display: none;
    align-items: center;
    gap: var(--spacing-2);
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-muted);
    border-radius: 0.375rem;
    transition: color 150ms, background-color 150ms;
}

.header-social a:hover {
    color: var(--color-accent);
    background-color: var(--color-accent-light);
}

/* Header Translate Widget */
.header-translate {
    flex-shrink: 0;
}

.header-translate #google_translate_element {
    min-width: 100px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 150ms;
}

.mobile-menu-toggle:hover {
    background-color: var(--color-accent-light);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    z-index: 40;
}

.mobile-menu a {
    display: block;
    padding: var(--spacing-3) var(--spacing-4);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 150ms, color 150ms;
}

.mobile-menu a:hover {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.mobile-menu-social {
    display: flex;
    gap: var(--spacing-4);
    padding: var(--spacing-3) var(--spacing-4);
    margin-top: var(--spacing-2);
    border-top: 1px solid var(--color-border);
}

.mobile-menu-social a {
    padding: var(--spacing-2);
    color: var(--color-muted);
}

/* Tablet breakpoint - show social icons, keep mobile menu */
@media (min-width: 640px) {
    .header-logo-img {
        height: 48px;
        max-width: 150px;
    }

    .header-social {
        display: flex;
    }

    .header-right {
        gap: var(--spacing-3);
    }
}

/* Desktop breakpoint - show full nav, hide mobile menu */
@media (min-width: 1024px) {
    .public-header {
        padding: var(--spacing-4) var(--spacing-6);
    }

    .header-logo-img {
        height: 56px;
        max-width: 180px;
    }

    .public-nav-desktop {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

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

    .header-right {
        gap: var(--spacing-4);
    }
}

/* Legacy public-nav (for backward compat) */
.public-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
}

.public-nav a {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 0.25rem;
    transition: color 150ms, background-color 150ms;
}

.public-nav a:hover {
    color: var(--color-accent);
}

.public-nav a.active {
    color: var(--color-accent);
    font-weight: 600;
}

.public-footer {
    background: linear-gradient(180deg, #2D3A3F 0%, var(--color-dark-bg) 100%);
    color: #F5F0E8;
    padding: calc(16px + var(--spacing-4)) var(--spacing-4) var(--spacing-12);
    margin-top: 0;
    position: relative;
}

/* Rainbow bottom border on footer */
.public-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pride-gradient);
    background-size: 200% 100%;
    animation: rainbowShift 12s linear infinite;
}

.public-footer h3 {
    color: var(--color-accent-warm);
    margin-bottom: var(--spacing-4);
    position: relative;
    display: inline-block;
}

.public-footer h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent-warm);
}

.public-footer a {
    color: rgba(245, 240, 232, 0.8);
}

.public-footer a:hover {
    color: var(--color-accent-warm);
}

.public-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-pride-bar {
    height: 16px;
    background: var(--pride-gradient);
    background-size: 200% 100%;
    animation: rainbowShift 60s linear infinite;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Hero Banner - Logo left, slideshow right */
.hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 25%, #EDE8DF 50%, rgba(30, 107, 140, 0.05) 75%, #faf8f5 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border-bottom: none;
    position: relative;
    padding-bottom: 0;
}

/* Wave transition below hero - disabled */
.hero-banner::after {
    display: none;
}

.hero-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

/* Mobile: stack vertically, logo on top */
.hero-logo-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-6) var(--spacing-4);
    background-color: #ffffff;
    text-align: center;
    order: 1;
}

.hero-logo-img {
    max-width: 200px;
    width: 80%;
    height: auto;
}

.hero-tagline {
    font-size: 0.875rem;
    color: var(--color-muted);
    max-width: 280px;
    margin-top: var(--spacing-2);
}

.hero-slideshow {
    position: relative;
    background-color: #1A2C3A;
    min-height: 220px;
    overflow: hidden;
    order: 2;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 6px 0 0 rgba(26, 44, 58, 0.4), var(--shadow-bold);
    margin: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide:first-child {
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    animation: heroZoom 10s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 200ms, width 200ms, transform 200ms;
    min-height: auto;
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-dot.active {
    background-color: var(--color-accent-warm);
    width: 24px;
}

/* Small tablet: side by side, smaller proportions */
@media (min-width: 640px) {
    .hero-banner-inner {
        flex-direction: row;
        min-height: 320px;
    }

    .hero-logo-side {
        width: 280px;
        flex-shrink: 0;
        padding: var(--spacing-6);
        order: 0;
    }

    .hero-logo-img {
        max-width: 220px;
        width: 100%;
    }

    .hero-slideshow {
        flex: 1;
        min-height: 320px;
        order: 0;
    }
}

/* Tablet: larger proportions */
@media (min-width: 768px) {
    .hero-banner-inner {
        min-height: 380px;
    }

    .hero-logo-side {
        width: 320px;
        padding: var(--spacing-8);
    }

    .hero-logo-img {
        max-width: 260px;
    }

    .hero-tagline {
        font-size: 1rem;
        max-width: 300px;
    }

    .hero-slideshow {
        min-height: 380px;
    }

    .hero-dot {
        width: 12px;
        height: 12px;
    }
}

/* Desktop: full size */
@media (min-width: 1024px) {
    .hero-banner-inner {
        min-height: 450px;
    }

    .hero-logo-side {
        width: 400px;
    }

    .hero-logo-img {
        max-width: 300px;
    }

    .hero-slideshow {
        min-height: 450px;
    }

    .hero-indicators {
        bottom: 1rem;
    }
}

/* Legacy hero styles (for other pages) */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-dark-bg);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: var(--spacing-8);
}

.hero-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: var(--spacing-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Section */
.section {
    padding: var(--spacing-6) var(--spacing-4);
    position: relative;
}

/* Walking bear paws container */
.bear-paws {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bear-paw {
    position: absolute;
    font-size: 4rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: grayscale(20%);
}

.bear-paw.visible {
    opacity: 0.15;
}

/* Rotated 180deg (upside down) + alternating left/right tilt */
.bear-paw.left {
    transform: rotate(200deg);
}

.bear-paw.right {
    transform: rotate(160deg);
}

@media (min-width: 768px) {
    .bear-paw {
        font-size: 6rem;
    }
}

@media (min-width: 1024px) {
    .bear-paw {
        font-size: 8rem;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bear-paws {
        display: none;
    }
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-8);
    color: var(--color-text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
        var(--color-accent-warm),
        var(--color-highlight),
        var(--color-accent-warm),
        var(--color-highlight));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    margin: var(--spacing-3) auto 0;
    border-radius: 2px;
}

.section-title .text-accent {
    color: var(--color-accent);
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
    .sm\:block { display: block; }
    .sm\:inline { display: inline; }
    .sm\:inline-block { display: inline-block; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:gap-8 { gap: var(--spacing-8); }
    .md\:p-6 { padding: var(--spacing-6); }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================
   Hover States
   ============================================ */
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:text-dark:hover { color: var(--color-dark); }
.hover\:opacity-100:hover { opacity: 1; }

/* ============================================
   HTMX Indicators
   ============================================ */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Loading spinner */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Utility: Screen Reader Only
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Language Switcher
   ============================================ */
.header-lang {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-2);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    transition: border-color 150ms, background-color 150ms;
    min-height: 36px;
}

.lang-toggle:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--color-muted);
}

.lang-code {
    min-width: 1.5em;
    text-align: center;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-1);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 100;
    overflow: hidden;
}

.lang-option {
    display: block;
    padding: var(--spacing-2) var(--spacing-3);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 150ms, color 150ms;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.lang-option:hover {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.lang-option.active {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
}

.lang-option.active:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
}

@media (min-width: 640px) {
    .lang-toggle {
        padding: var(--spacing-2) var(--spacing-3);
    }

    .lang-toggle svg {
        width: 18px;
        height: 18px;
    }

    .lang-code {
        font-size: 0.8125rem;
    }
}

/* ============================================
   Responsive Footer
   ============================================ */
.public-footer .grid {
    text-align: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.public-footer .text-right {
    text-align: center;
}

/* Compact footer on mobile */
@media (max-width: 767px) {
    .public-footer {
        padding: var(--spacing-4) var(--spacing-4) var(--spacing-6);
    }

    .public-footer h3 {
        margin-bottom: var(--spacing-2);
        font-size: 0.9rem;
    }

    .public-footer h3::after {
        display: none;
    }

    .public-footer address p {
        margin: 0;
    }

    .footer-pride-bar {
        height: 8px;
    }
}

@media (min-width: 768px) {
    .public-footer .grid {
        text-align: left;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .public-footer .text-center {
        text-align: center;
    }

    .public-footer .text-right {
        text-align: right;
    }
}

/* ============================================
   Responsive Tiles
   ============================================ */
.tile {
    min-height: 160px;
    padding: var(--spacing-4);
}

@media (min-width: 640px) {
    .tile {
        min-height: 180px;
        padding: var(--spacing-6);
    }
}

@media (min-width: 768px) {
    .tile {
        min-height: 200px;
    }
}

/* Tiles grid - use flexbox for centering on desktop */
.tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
}

@media (min-width: 640px) {
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tiles-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tiles-grid > * {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: 360px;
    }
}

/* Info cards (location & hours) */
.info-card {
    min-height: auto !important;
    justify-content: flex-start;
    position: relative;
}

/* Rainbow bottom border on info cards */
.info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--pride-gradient);
    background-size: 200% 100%;
    animation: rainbowShift 10s linear infinite;
    border-radius: 3px;
}

.info-card h2 {
    color: #ffffff;
}

/* Location info card with map */
.info-card-location {
    padding: 0 !important;
    overflow: hidden;
}

.info-card-split {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card-content {
    padding: var(--spacing-4) var(--spacing-6) var(--spacing-6);
}

.info-card-map-side {
    display: block;
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
    order: -1;
}

.info-card-map-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-card-map-side:hover img {
    transform: scale(1.05);
}

.info-card-map-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, #1E6B8C 100%);
    pointer-events: none;
}

.map-expand-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: #fff;
    z-index: 1;
}

.map-expand-icon svg {
    width: 16px;
    height: 16px;
}

/* Fix link color in info cards */
.info-card a,
.info-card a:link,
.info-card a:visited {
    color: #ffffff;
}

.info-card a:hover {
    color: #ffffff;
}

.text-white {
    color: #ffffff !important;
}

/* ============================================
   Admin Gallery Grid
   ============================================ */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .gallery-admin-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-admin-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.gallery-admin-item {
    background: var(--color-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

.gallery-admin-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    background: var(--color-background);
}

.gallery-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-thumb:hover img {
    opacity: 0.85;
}

.gallery-admin-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-admin-play svg {
    width: 24px;
    height: 24px;
    padding: 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: #fff;
}

.gallery-admin-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 0.65rem;
    color: #fff;
}

.gallery-admin-actions {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem;
}

.gallery-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background: var(--color-background);
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.gallery-action-btn svg {
    width: 14px;
    height: 14px;
}

.gallery-action-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.gallery-action-btn.active {
    background: var(--color-accent);
    color: #fff;
}

.gallery-action-btn.delete:hover {
    background: var(--color-error);
    color: #fff;
}

/* Lightbox (legacy class-based version) */
.lightbox-legacy {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.lightbox-legacy.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-content video {
    max-width: 90vw;
    max-height: 90vh;
}

/* ============================================
   Safe Area Padding (for notched phones)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .public-footer {
        padding-bottom: calc(var(--spacing-12) + env(safe-area-inset-bottom));
    }

    .public-header {
        padding-left: calc(var(--spacing-4) + env(safe-area-inset-left));
        padding-right: calc(var(--spacing-4) + env(safe-area-inset-right));
    }
}

/* ============================================
   Events Horizontal Scroll
   ============================================ */
.events-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

/* Hide scrollbar but keep functionality */
.events-scroll::-webkit-scrollbar {
    display: none;
}
.events-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.event-card {
    /* Mobile: 1 card visible (full container width) */
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.event-tile {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Event card - matches event detail page style */
.event-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.event-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.event-card-info {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(232, 168, 56, 0.08) 100%);
    border-radius: var(--radius-organic-sm);
}

.event-card-media-wrapper {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-media-wrapper img,
.event-card-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tablet: 2 cards visible */
@media (min-width: 600px) {
    .event-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* Desktop: 3 cards visible, max width */
@media (min-width: 960px) {
    .event-card {
        flex: 0 0 calc(33.333% - 0.667rem);
        max-width: 340px;
    }
}

/* Large desktop: fixed width, 4+ can fit */
@media (min-width: 1400px) {
    .event-card {
        flex: 0 0 320px;
    }
}

/* Desktop: center events when they don't fill the row */
@media (min-width: 960px) {
    .events-scroll {
        justify-content: center;
    }
}

/* ============================================
   Event Carousel (legacy - events detail page)
   ============================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    border-radius: var(--radius-organic-md);
    background: var(--color-card);
    box-shadow: var(--shadow-warm);
    padding: var(--spacing-2);
}

/* Full-width carousel on events page */
.carousel-wrapper-full {
    border-radius: var(--radius-organic-lg);
    box-shadow: var(--shadow-bold);
    padding: var(--spacing-3);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 var(--spacing-2);
}

.carousel-tile {
    width: 100%;
    min-height: 280px;
}

/* Full-page carousel (events page) has taller tiles */
.carousel-tile-full {
    min-height: 350px;
}

@media (min-width: 768px) {
    .carousel-tile-full {
        min-height: 400px;
    }
}

/* Navigation Arrows - Terracotta ceramic style */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-warm) 0%, var(--color-accent-warm-hover) 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(199, 91, 57, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms;
    color: #ffffff;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(199, 91, 57, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: var(--spacing-4);
}

.carousel-arrow-right {
    right: var(--spacing-4);
}

/* Show arrows on desktop */
@media (min-width: 768px) {
    .carousel-arrow {
        display: flex;
    }
}

/* Dot Indicators - Glass container with pill shapes */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-4);
    background: rgba(44, 62, 64, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 200ms, width 200ms, transform 200ms;
    min-height: auto;
}

.carousel-dot:hover {
    background-color: var(--color-muted);
    transform: scale(1.1);
}

.carousel-dot.active {
    background-color: var(--color-accent-warm);
    width: 28px;
}

/* Touch/swipe support via JavaScript */
.carousel-wrapper[data-swiping="true"] .carousel-track {
    transition: none;
}

/* ============================================
   Menu Page - Mediterranean Café Style
   ============================================ */
.menu-nav {
    position: sticky;
    top: 60px;
    z-index: 40;
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    margin: 0 -1rem 1rem -1rem;
    overflow-x: auto;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.menu-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text);
    text-decoration: none;
    transition: color 150ms;
}

.menu-nav-btn:hover {
    color: var(--color-accent);
}

.menu-nav-btn:focus,
.menu-nav-btn:active,
.menu-nav-btn:visited {
    outline: none;
    color: var(--color-text);
}

.menu-nav-btn.active {
    color: var(--color-accent) !important;
    font-weight: 600;
}

/* Category Cards */
.menu-category {
    scroll-margin-top: 110px;
    background: var(--color-card);
    border-radius: var(--radius-organic-md);
    box-shadow: var(--shadow-warm);
    padding: var(--spacing-6);
    position: relative;
    overflow: hidden;
}


.menu-category h2 {
    color: var(--color-accent);
    padding-bottom: var(--spacing-3);
    margin-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--color-border);
}

/* Menu Items with dotted leader */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-4);
    padding: var(--spacing-3) 0;
    border-bottom: 1px dashed var(--color-border);
    transition: background-color 150ms;
}

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

.menu-item:hover {
    background-color: var(--color-accent-light);
    margin: 0 calc(-1 * var(--spacing-3));
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
    border-radius: 8px;
}

.menu-item-name {
    font-weight: 500;
    color: var(--color-text-dark);
    flex: 1;
}

.menu-item-desc {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 2px;
}

/* Dotted leader line effect */
.menu-item-leader {
    flex: 1;
    border-bottom: 2px dotted var(--color-border);
    margin: 0 var(--spacing-2);
    min-width: 20px;
    align-self: center;
    margin-bottom: 4px;
}

.menu-item-price {
    font-weight: 600;
    color: var(--color-accent-warm);
    white-space: nowrap;
}

/* Size variants table styling */
.menu-variants-table {
    width: 100%;
    border-collapse: collapse;
}

.menu-variants-table th {
    color: var(--color-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: var(--spacing-2);
}

.menu-variants-table td {
    padding: var(--spacing-3) var(--spacing-2);
    border-top: 1px dashed var(--color-border);
}

.menu-variants-table tr:hover td {
    background-color: var(--color-accent-light);
}

.menu-variants-table .price-cell {
    color: var(--color-accent-warm);
    font-weight: 500;
    text-align: right;
}

/* ============================================
   Gallery - Mediterranean Style
   ============================================ */
.gallery-card {
    border-radius: var(--radius-organic-sm);
    box-shadow: var(--shadow-warm);
    overflow: hidden;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms;
}

.gallery-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lift);
}

.gallery-card img {
    transition: transform 400ms ease;
}

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

/* ============================================
   Gallery Page - Postcard Display Rack
   ============================================ */
.postcard-rack {
    background:
        /* Wood grain texture */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 90, 43, 0.1) 2px,
            rgba(139, 90, 43, 0.1) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 15px,
            rgba(101, 67, 33, 0.08) 15px,
            rgba(101, 67, 33, 0.08) 16px
        ),
        linear-gradient(
            180deg,
            #c9a66b 0%,
            #b8956a 20%,
            #a88559 50%,
            #c4a06c 80%,
            #d4b07c 100%
        );
    padding: 3rem 2rem 4rem;
    border-radius: var(--radius-organic-lg);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Rack shelf shadows */
.postcard-rack::before {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 2.5rem;
    height: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(4px);
}

.postcard-rack-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #c41e3a;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.8), 3px 3px 6px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.postcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem 1.5rem;
    justify-items: center;
}

/* Individual Postcard */
.postcard {
    display: block;
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 2;
    background: #fff;
    border: 6px solid white;
    border-radius: 4px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(12px) rotate(-2deg);
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms;
    cursor: pointer;
}

/* Varied initial rotations */
.postcard:nth-child(2) { transform: translateY(12px) rotate(1.5deg); }
.postcard:nth-child(3) { transform: translateY(12px) rotate(-1deg); }
.postcard:nth-child(4) { transform: translateY(12px) rotate(2.5deg); }
.postcard:nth-child(5) { transform: translateY(12px) rotate(-0.5deg); }
.postcard:nth-child(6) { transform: translateY(12px) rotate(1deg); }

/* Different colored borders for variety */
.postcard:nth-child(6n+1) { border-color: #fff5f5; } /* warm white */
.postcard:nth-child(6n+2) { border-color: #f0fff4; } /* mint tint */
.postcard:nth-child(6n+3) { border-color: #fffbeb; } /* cream */
.postcard:nth-child(6n+4) { border-color: #fdf4ff; } /* lavender tint */
.postcard:nth-child(6n+5) { border-color: #f0f9ff; } /* sky tint */
.postcard:nth-child(6n+6) { border-color: #fefce8; } /* sunny */

.postcard:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.02);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 24px 48px rgba(0, 0, 0, 0.15);
}

.postcard-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.postcard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.postcard:hover .postcard-image img {
    transform: scale(1.05);
}

/* Gradient overlay for text readability */
.postcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 70%
    );
}

/* Postcard content */
.postcard-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1rem 0.75rem;
}

.postcard-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.8), 4px 4px 8px rgba(0,0,0,0.4);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* Different fun colors for each postcard title */
.postcard:nth-child(6n+1) .postcard-title { color: #ff6b6b; } /* coral red */
.postcard:nth-child(6n+2) .postcard-title { color: #4ecdc4; } /* turquoise */
.postcard:nth-child(6n+3) .postcard-title { color: #ffe66d; } /* sunny yellow */
.postcard:nth-child(6n+4) .postcard-title { color: #ff9f43; } /* orange */
.postcard:nth-child(6n+5) .postcard-title { color: #a8e6cf; } /* mint green */
.postcard:nth-child(6n+6) .postcard-title { color: #dda0dd; } /* plum */

/* Black post office stamp overlay - like cancellation mark */
.postcard-stamp-overlay {
    position: absolute;
    top: 2px;
    right: -5px;
    font-size: 0.45rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(20, 20, 20, 0.85);
    border: 2px solid rgba(20, 20, 20, 0.85);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.02em;
    z-index: 10;
}

/* Stamp decoration - varied emojis */
.postcard::after {
    content: '🐻';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 6px;
    border-radius: 3px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.2),
        inset 0 0 0 2px #c41e3a;
    transform: rotate(5deg);
    transition: transform 300ms ease;
}

/* Different stamps for variety */
.postcard:nth-child(6n+1)::after { content: '🐻'; border-color: #c41e3a; transform: rotate(5deg); }
.postcard:nth-child(6n+2)::after { content: '🌴'; border-color: #2d8a4e; transform: rotate(-3deg); }
.postcard:nth-child(6n+3)::after { content: '☀️'; border-color: #e6a800; transform: rotate(8deg); }
.postcard:nth-child(6n+4)::after { content: '🏖️'; border-color: #0088cc; transform: rotate(-5deg); }
.postcard:nth-child(6n+5)::after { content: '🍹'; border-color: #e63946; transform: rotate(4deg); }
.postcard:nth-child(6n+6)::after { content: '🎉'; border-color: #9c27b0; transform: rotate(-6deg); }

.postcard:nth-child(6n+2)::after { box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 0 0 2px #2d8a4e; }
.postcard:nth-child(6n+3)::after { box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 0 0 2px #e6a800; }
.postcard:nth-child(6n+4)::after { box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 0 0 2px #0088cc; }
.postcard:nth-child(6n+5)::after { box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 0 0 2px #e63946; }
.postcard:nth-child(6n+6)::after { box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 0 0 2px #9c27b0; }

.postcard:hover::after {
    transform: rotate(0deg) scale(1.1);
}

/* Postcard rack responsive */
@media (max-width: 768px) {
    .postcard-rack {
        padding: 2rem 1rem 3rem;
        border-radius: var(--radius-organic-md);
    }

    .postcard-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem 1rem;
    }

    .postcard {
        max-width: 280px;
        border-width: 5px;
    }

    .postcard::after {
        font-size: 1.5rem;
        top: 6px;
        right: 6px;
    }

    .postcard-stamp-overlay {
        width: 45px;
        height: 45px;
        font-size: 0.4rem;
        top: 0;
        right: -3px;
    }

    .postcard-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .postcard-rack {
        padding: 1.5rem 0.75rem 2rem;
    }

    .postcard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .postcard {
        max-width: 100%;
        border-width: 4px;
    }
}

/* ============================================
   Album Page Header
   ============================================ */
.album-section {
    padding-top: 0.5rem;
}

/* Hide walking paws on album page */
.album-section ~ .bear-paws,
body:has(.album-section) .bear-paws {
    display: none;
}

.album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.album-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.album-back-btn:hover {
    color: var(--accent-dark);
}

.album-header-spacer {
    width: 40px;
}

.album-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.album-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    text-align: center;
}

@media (max-width: 600px) {
    .album-title {
        font-size: 1.3rem;
    }

    .album-description {
        font-size: 0.85rem;
    }
}

/* ============================================
   3D Postcard Rack Carousel
   ============================================ */
.rack-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 2rem;
}

.rack-stage {
    width: 100%;
    max-width: 500px;
    height: 380px;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.rack-stage:active {
    cursor: grabbing;
}

.rack-track {
    position: relative;
    width: 260px;
    height: 340px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rack-carousel[x-data] .rack-track {
    /* When dragging, no transition */
}

.rack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--index) * var(--angle))) translateZ(220px);
}

.rack-card-inner {
    width: 100%;
    height: 100%;
    background: white;
    border: 5px solid white;
    border-radius: 6px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    backface-visibility: hidden;
    cursor: pointer;
}

/* Grey paper back for cards facing away */
.rack-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 50%, #c8c8c8 100%);
    border: 5px solid #f0f0f0;
    border-radius: 6px;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.rack-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.rack-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 4rem;
}

.rack-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.rack-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.rack-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: #666;
}

.rack-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
}

.rack-nav-btn:active {
    transform: scale(0.95);
}

/* Dot navigation */
.rack-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    flex-wrap: wrap;
    max-width: 90%;
}

.rack-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.rack-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.rack-dot.active {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .rack-stage {
        height: 320px;
    }

    .rack-track {
        width: 200px;
        height: 270px;
    }

    .rack-card {
        transform: rotateY(calc(var(--index) * var(--angle))) translateZ(180px);
    }

    .rack-card-inner {
        border-width: 4px;
    }

    .rack-nav {
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .rack-nav-btn {
        width: 48px;
        height: 48px;
    }

    .rack-dots {
        gap: 6px;
    }

    .rack-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
    }
}

/* ============================================
   Swipe Gallery - Tinder Style (deprecated)
   ============================================ */
.swipe-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 2rem;
    min-height: 70vh;
}

.swipe-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    height: 380px;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease, opacity 0.3s ease;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.swipe-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swipe-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 5rem;
}

.swipe-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Swipe indicators */
.swipe-indicator {
    position: absolute;
    top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.swipe-indicator-left {
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.swipe-indicator-right {
    right: 20px;
    background: linear-gradient(135deg, #4ecdc4, #44a39d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* Fly-out animations */
.swipe-card.fly-left {
    animation: flyLeft 0.3s ease-out forwards;
}

.swipe-card.fly-right {
    animation: flyRight 0.3s ease-out forwards;
}

@keyframes flyLeft {
    to {
        transform: translateX(-150%) rotate(-30deg);
        opacity: 0;
    }
}

@keyframes flyRight {
    to {
        transform: translateX(50%) rotate(30deg);
        opacity: 0;
    }
}

.swipe-card.swiped-away {
    display: none;
}

/* Navigation buttons */
.swipe-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.swipe-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.swipe-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.swipe-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.swipe-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swipe-nav-prev:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.swipe-nav-next:hover:not(:disabled) {
    background: linear-gradient(135deg, #4ecdc4, #44a39d);
    color: white;
}

/* Counter */
.swipe-counter {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Dot navigation */
.swipe-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    max-width: 90%;
}

.swipe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.swipe-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.swipe-dot.active {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.swipe-dot.passed {
    background: #999;
}

/* Empty state */
.swipe-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .swipe-stack {
        height: 350px;
    }

    .swipe-card {
        height: 330px;
        border-radius: 16px;
    }

    .swipe-nav-btn {
        width: 50px;
        height: 50px;
    }

    .swipe-nav {
        gap: 2rem;
    }

    .swipe-dots {
        gap: 6px;
    }

    .swipe-dot {
        width: 8px;
        height: 8px;
    }
}

/* Gallery Teaser - Base styles */
.gallery-teaser {
    display: block;
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-organic-lg);
    overflow: hidden;
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.15), var(--shadow-bold);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms;
    cursor: pointer;
}

.gallery-teaser:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.15), var(--shadow-lift);
}

.gallery-teaser-images {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gallery-float-img {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
}

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

.gallery-teaser-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2rem;
    text-align: center;
}

.gallery-teaser-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 0.5),
        2px -2px 0 rgba(0, 0, 0, 0.5),
        -2px 2px 0 rgba(0, 0, 0, 0.5),
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.gallery-teaser-count {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   MODE 1: BEACH - Photos floating on waves
   Add class "gallery-teaser-beach" to enable
   ========================================== */
.gallery-teaser-beach {
    background: linear-gradient(180deg,
        #87CEEB 0%,      /* Sky blue */
        #4CA1AF 40%,     /* Ocean */
        #2C5364 70%,     /* Deep water */
        #F4D03F 85%,     /* Sand */
        #E9C46A 100%);   /* Beach */
}

.gallery-teaser-beach::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff20' d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 600px 80px;
    background-position: 0 60%;
    animation: waveMove 8s linear infinite;
    pointer-events: none;
}

/* Beach emoji decorations */
.gallery-teaser-beach::after {
    content: '🌴';
    position: absolute;
    bottom: 5%;
    left: 5%;
    font-size: 4rem;
    opacity: 0.85;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    transform: rotate(-5deg);
}

/* Beach umbrella emoji - right side */
.gallery-teaser-beach .gallery-teaser-images::before {
    content: '⛱️';
    position: absolute;
    bottom: 5%;
    right: 8%;
    font-size: 3.5rem;
    opacity: 0.85;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    transform: rotate(5deg);
}

/* Teddy bear emoji - center area */
.gallery-teaser-beach .gallery-teaser-images::after {
    content: '🧸';
    position: absolute;
    bottom: 3%;
    right: 30%;
    font-size: 2.5rem;
    opacity: 0.9;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    transform: rotate(-10deg) scaleX(-1);
}

@keyframes waveMove {
    0% { background-position: 0 60%; }
    100% { background-position: 600px 60%; }
}

.gallery-teaser-beach .gallery-float-img {
    opacity: 0.9;
}

.gallery-teaser-beach .gallery-float-1 {
    top: 20%;
    left: 8%;
    animation: beachFloat1 4s ease-in-out infinite;
}

.gallery-teaser-beach .gallery-float-2 {
    top: 25%;
    right: 10%;
    animation: beachFloat2 4.5s ease-in-out infinite;
}

.gallery-teaser-beach .gallery-float-3 {
    top: 35%;
    left: 25%;
    animation: beachFloat3 5s ease-in-out infinite;
}

.gallery-teaser-beach .gallery-float-4 {
    top: 30%;
    right: 25%;
    animation: beachFloat4 4.2s ease-in-out infinite;
}

.gallery-teaser-beach .gallery-float-5 {
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    animation: beachFloat5 4.8s ease-in-out infinite;
}

@keyframes beachFloat1 {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-20px); }
}

@keyframes beachFloat2 {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-18px); }
}

@keyframes beachFloat3 {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-22px); }
}

@keyframes beachFloat4 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-16px); }
}

@keyframes beachFloat5 {
    0%, 100% { transform: translateX(-50%) rotate(2deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(-20px); }
}

/* ==========================================
   MODE 2: CARDS - Photos thrown on table
   Add class "gallery-teaser-cards" to enable
   ========================================== */
.gallery-teaser-cards {
    background: linear-gradient(135deg,
        #8B4513 0%,      /* Wood dark */
        #A0522D 30%,     /* Wood mid */
        #CD853F 60%,     /* Wood light */
        #A0522D 100%);   /* Wood dark */
}

.gallery-teaser-cards::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 40px,
        rgba(0,0,0,0.05) 40px,
        rgba(0,0,0,0.05) 42px
    );
    pointer-events: none;
}

.gallery-teaser-cards .gallery-float-img {
    opacity: 0;
}

/* Different sizes and positions - all cards appear quickly */
.gallery-teaser-cards .gallery-float-1 {
    width: 140px;
    height: 140px;
    top: 8%;
    left: 5%;
    animation: throwCard1 20s ease-out infinite;
}

.gallery-teaser-cards .gallery-float-2 {
    width: 95px;
    height: 95px;
    top: 60%;
    left: 75%;
    animation: throwCard2 20s ease-out infinite;
    animation-delay: 0.3s;
}

.gallery-teaser-cards .gallery-float-3 {
    width: 120px;
    height: 120px;
    top: 5%;
    left: 65%;
    animation: throwCard3 20s ease-out infinite;
    animation-delay: 0.6s;
}

.gallery-teaser-cards .gallery-float-4 {
    width: 85px;
    height: 85px;
    top: 55%;
    left: 8%;
    animation: throwCard4 20s ease-out infinite;
    animation-delay: 0.9s;
}

.gallery-teaser-cards .gallery-float-5 {
    width: 110px;
    height: 110px;
    top: 35%;
    left: 40%;
    animation: throwCard5 20s ease-out infinite;
    animation-delay: 1.2s;
}

/* Card 1: flies from top-left, lands at its position */
@keyframes throwCard1 {
    0% {
        opacity: 0;
        transform: translate(-200px, -150px) rotate(-45deg) scale(0.3);
    }
    5% {
        opacity: 1;
        transform: rotate(-12deg) scale(1);
    }
    8% {
        transform: rotate(-8deg) scale(1.02);
    }
    12%, 90% {
        opacity: 1;
        transform: rotate(-10deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(-10deg) scale(1);
    }
}

/* Card 2: flies from right, lands bottom-right */
@keyframes throwCard2 {
    0% {
        opacity: 0;
        transform: translate(200px, 100px) rotate(50deg) scale(0.3);
    }
    5% {
        opacity: 1;
        transform: rotate(15deg) scale(1);
    }
    8% {
        transform: rotate(12deg) scale(1.02);
    }
    12%, 90% {
        opacity: 1;
        transform: rotate(14deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(14deg) scale(1);
    }
}

/* Card 3: flies from top-right, lands top-right */
@keyframes throwCard3 {
    0% {
        opacity: 0;
        transform: translate(150px, -200px) rotate(40deg) scale(0.3);
    }
    5% {
        opacity: 1;
        transform: rotate(-6deg) scale(1);
    }
    8% {
        transform: rotate(-3deg) scale(1.02);
    }
    12%, 90% {
        opacity: 1;
        transform: rotate(-5deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(-5deg) scale(1);
    }
}

/* Card 4: flies from bottom-left, lands bottom-left */
@keyframes throwCard4 {
    0% {
        opacity: 0;
        transform: translate(-180px, 150px) rotate(-50deg) scale(0.3);
    }
    5% {
        opacity: 1;
        transform: rotate(10deg) scale(1);
    }
    8% {
        transform: rotate(14deg) scale(1.02);
    }
    12%, 90% {
        opacity: 1;
        transform: rotate(12deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(12deg) scale(1);
    }
}

/* Card 5: flies from top, lands center */
@keyframes throwCard5 {
    0% {
        opacity: 0;
        transform: translate(0, -200px) rotate(30deg) scale(0.3);
    }
    5% {
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
    8% {
        transform: rotate(0deg) scale(1.02);
    }
    12%, 90% {
        opacity: 1;
        transform: rotate(-2deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(-2deg) scale(1);
    }
}

@media (max-width: 768px) {
    .gallery-float-img {
        width: 80px;
        height: 80px;
    }

    .gallery-teaser-cards .gallery-float-1 {
        width: 100px;
        height: 100px;
    }
    .gallery-teaser-cards .gallery-float-2 {
        width: 70px;
        height: 70px;
    }
    .gallery-teaser-cards .gallery-float-3 {
        width: 85px;
        height: 85px;
    }
    .gallery-teaser-cards .gallery-float-4 {
        width: 60px;
        height: 60px;
    }
    .gallery-teaser-cards .gallery-float-5 {
        width: 75px;
        height: 75px;
    }

    .gallery-teaser-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   Event Detail - Mediterranean Style
   ============================================ */
.event-detail-card {
    border-radius: var(--radius-organic-md);
    box-shadow: var(--shadow-bold);
    overflow: hidden;
}

.event-detail-info {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(232, 168, 56, 0.08) 100%);
    border-radius: var(--radius-organic-sm);
}

/* ============================================
   Alternating Section Backgrounds
   ============================================ */
.section-alt {
    background-color: var(--color-section-alt);
}

.section-wave-top {
    position: relative;
}

.section-wave-top::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q300,0 600,20 T1200,20 L1200,0 L0,0 Z' fill='%23F8F6F1'/%3E%3C/svg%3E");
    background-size: cover;
}

/* ============================================
   Modern Image Uploader - Admin
   ============================================ */

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--color-background);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.upload-zone:active {
    border-color: var(--color-accent);
    background: rgba(232, 168, 56, 0.05);
}

.upload-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(232, 168, 56, 0.1);
    border-style: solid;
    transform: scale(1.01);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--color-accent);
}

.upload-zone-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.upload-zone-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-zone-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
}

.upload-zone-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-zone-btn:active {
    background: var(--color-accent-dark);
}

/* Preview in upload zone */
.upload-preview {
    position: relative;
    max-width: 100%;
}

.upload-preview img,
.upload-preview video {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.upload-preview-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-preview-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.upload-preview-actions button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--color-background);
    transition: all 0.2s;
}

.upload-preview-actions button:active {
    background: var(--color-card);
}

.upload-preview-actions .btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.upload-preview-actions .btn-primary:active {
    background: var(--color-accent-dark);
}

.upload-preview-actions .btn-danger {
    color: var(--color-error);
    border-color: var(--color-error);
}

.upload-preview-actions .btn-danger:active {
    background: var(--color-error);
    color: white;
}

/* Progress bar */
.upload-progress {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.upload-progress-bar {
    height: 100%;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

/* Status messages */
.upload-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.upload-success {
    color: var(--color-success);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Current image display */
.current-image-container {
    display: block;
}

.current-image-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.current-image-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--color-card);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.current-image-toolbar-btn:active {
    transform: scale(0.97);
    background: var(--color-background);
}

.current-image-toolbar-btn-danger {
    border-color: var(--color-error);
    color: var(--color-error);
}

.current-image-toolbar-btn-danger:active {
    background: rgba(199, 70, 58, 0.1);
}

.current-image {
    position: relative;
    display: inline-block;
}

.current-image-media {
    max-width: 300px;
    max-height: 250px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    display: block;
}

/* Image Editor Modal */
.image-editor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-editor-header {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.image-editor-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.image-editor-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.image-editor-close:hover {
    opacity: 1;
}

.image-editor-canvas-wrapper {
    background: #1a1a1a;
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-editor-canvas {
    display: block;
    max-width: 100%;
    cursor: crosshair;
}

/* Editor Toolbar */
.image-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    max-width: 700px;
    justify-content: center;
}

.editor-toolbar-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.editor-toolbar-group::after {
    content: '';
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 0.5rem;
}

.editor-toolbar-group:last-child::after {
    display: none;
}

.editor-btn {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.editor-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.editor-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.editor-btn-icon {
    font-size: 1rem;
}

/* Aspect ratio buttons */
.aspect-ratio-btns {
    display: flex;
    gap: 0.35rem;
}

.aspect-ratio-btn {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.aspect-ratio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.aspect-ratio-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Editor actions */
.image-editor-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.image-editor-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.image-editor-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.image-editor-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-editor-actions .btn-primary {
    background: var(--color-accent);
    color: white;
}

.image-editor-actions .btn-primary:hover {
    background: var(--color-accent-dark);
}

/* Gallery Uploader - Bulk upload */
.gallery-uploader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-upload-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-background);
    border: 1px solid var(--border-color);
}

.gallery-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-upload-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.gallery-upload-item-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-upload-item-progress-bar {
    height: 100%;
    background: var(--color-accent);
    transition: width 0.2s;
}

.gallery-upload-item-status {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.gallery-upload-item-status.done {
    background: var(--color-success);
    color: white;
}

.gallery-upload-item-status.error {
    background: var(--color-error);
    color: white;
}

.gallery-upload-item-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: transform 0.2s;
}

.gallery-upload-item-remove:active {
    transform: scale(0.9);
}

.gallery-upload-item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 600px) {
    .image-editor-toolbar {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .editor-toolbar-group {
        flex-wrap: wrap;
    }

    .editor-toolbar-group::after {
        display: none;
    }

    .editor-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .image-editor-actions button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================
   Global Loading Overlay
   ============================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   DASHBOARD STATS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stat-icon {
    font-size: 1.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.stat-detail {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Top Pages */
.top-pages-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.top-pages-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-pages-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.top-page-path {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.top-page-views {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.875rem;
}

.top-page-rank {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Stat Card Variations */
.stat-card-highlight {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, var(--color-card-bg) 100%);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

.trend-up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.trend-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Chart Card */
.chart-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-container {
    height: 200px;
    position: relative;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: 0.25rem;
    padding-bottom: 1.5rem;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 2.5rem;
    background: linear-gradient(180deg, var(--color-accent) 0%, rgba(255, 107, 107, 0.6) 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 4px;
    position: relative;
    transition: height 0.3s ease, opacity 0.2s;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar-value {
    position: absolute;
    top: -1.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.chart-bar-label {
    font-size: 0.625rem;
    color: var(--color-text-muted);
    margin-top: 0.375rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .chart-bar-label {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Summary Card */
.summary-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Confirm Modal Dialog
   ============================================ */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirm-modal {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.confirm-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.confirm-modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.confirm-modal-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.confirm-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.confirm-modal-body {
    padding: 1.5rem;
}

.confirm-modal-message {
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    justify-content: flex-end;
}

.confirm-modal-actions .btn {
    min-width: 100px;
}
