/* Modern Design System 2025 - Pure CSS */

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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fafaf9;
    color: #292524;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.font-sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* Colors */
:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;
    
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    
    --amber-100: #fef3c7;
    --amber-700: #b45309;
}

/* Utility Classes */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.bg-stone-50 { background-color: var(--stone-50); }
.bg-white { background-color: white; }
.text-stone-900 { color: var(--stone-900); }
.text-stone-800 { color: var(--stone-800); }
.text-stone-600 { color: var(--stone-600); }
.text-stone-400 { color: var(--stone-400); }
.text-stone-300 { color: var(--stone-300); }
.text-white { color: white; }
.text-orange-600 { color: var(--orange-600); }
.text-orange-700 { color: var(--orange-700); }

/* Layout */
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.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)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Sizing */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-h-full { max-height: 100%; }
.max-w-full { max-width: 100%; }

/* Typography Sizes */
.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; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

/* Font Weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-stone-100 { border-color: var(--stone-100); }
.border-stone-200 { border-color: var(--stone-200); }
.border-orange-200 { border-color: var(--orange-200); }
.border-emerald-200 { border-color: var(--emerald-200); }
.border-blue-200 { border-color: var(--blue-200); }
.border-white { border-color: white; }

/* Border Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.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.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-8 { bottom: 2rem; }
.right-8 { right: 2rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

/* Object fit */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Text align */
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Opacity */
.opacity-0 { opacity: 0; }

/* Backgrounds */
.bg-gradient-to-br { background: linear-gradient(to bottom right, var(--stone-50), var(--orange-50), var(--orange-100)); }
.bg-gradient-to-r { background: linear-gradient(to right, var(--orange-500), var(--orange-600)); }

/* Specific gradient backgrounds */
.bg-gradient-hero { background: linear-gradient(135deg, var(--stone-50) 0%, var(--orange-50) 50%, var(--orange-100) 100%); }
.bg-gradient-newsletter { background: linear-gradient(135deg, var(--stone-900) 0%, var(--stone-800) 100%); }
.bg-gradient-shops { background: linear-gradient(135deg, var(--stone-50) 0%, var(--orange-50) 100%); }
.bg-gradient-feature-orange { background: linear-gradient(135deg, var(--orange-50) 0%, var(--orange-100) 100%); }
.bg-gradient-feature-emerald { background: linear-gradient(135deg, var(--emerald-50) 0%, var(--emerald-100) 100%); }
.bg-gradient-feature-blue { background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%); }
.bg-gradient-overlay { background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent); }
.bg-gradient-emerald { background: linear-gradient(to right, var(--emerald-500), var(--emerald-600)); }
.bg-gradient-blue { background: linear-gradient(to right, var(--blue-500), var(--blue-600)); }

/* Backdrop blur */
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

/* Hover states */
.hover\:text-orange-600:hover { color: var(--orange-600); }
.hover\:text-orange-700:hover { color: var(--orange-700); }
.hover\:text-orange-400:hover { color: var(--orange-400); }
.hover\:text-stone-900:hover { color: var(--stone-900); }
.hover\:bg-orange-600:hover { background-color: var(--orange-600); }
.hover\:bg-orange-50:hover { background-color: var(--orange-50); }
.hover\:border-orange-300:hover { border-color: var(--orange-300); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Group hover */
.group:hover .group-hover\:text-orange-600 { color: var(--orange-600); }
.group:hover .group-hover\:text-orange-700 { color: var(--orange-700); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Focus states */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); }
.focus\:ring-orange-500:focus { --tw-ring-color: var(--orange-500); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Navigation Animation */
.nav-underline {
    position: relative;
}

.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange-500);
    transition: width 0.2s ease;
}

.nav-underline:hover::after {
    width: 100%;
}

/* Modern Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    border: none;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.4);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(249, 115, 22, 0.5);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--stone-700);
    background-color: white;
    border: 2px solid var(--stone-200);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--orange-300);
    background-color: var(--orange-50);
    text-decoration: none;
    color: var(--stone-700);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease-out;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--stone-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stone-400);
}

/* Specific background classes */
.bg-orange-50 { background-color: var(--orange-50); }
.bg-orange-100 { background-color: var(--orange-100); }
.bg-orange-500 { background-color: var(--orange-500); }
.bg-emerald-50 { background-color: var(--emerald-50); }
.bg-emerald-100 { background-color: var(--emerald-100); }
.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }
.bg-amber-100 { background-color: var(--amber-100); }
.bg-stone-900 { background-color: var(--stone-900); }
.bg-stone-800 { background-color: var(--stone-800); }

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .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\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:row-span-2 { grid-row: span 2 / span 2; }
    .md\:h-96 { height: 24rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:gap-6 { gap: 1.5rem; }
    .lg\:gap-8 { gap: 2rem; }
}

/* Responsive Grid Fixes */
@media (max-width: 1200px) {
    [style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(6, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(6, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Card Layout Improvements */
article {
    min-height: auto;
    height: auto;
}

article h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

article p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

/* Consistent card padding and spacing */
article[style*="padding"] {
    padding: 20px !important;
}

/* Image sizing for consistency - proper aspect ratio for shop cards */
article img {
    height: 120px !important;
    object-fit: contain !important;
    width: 100% !important;
}

/* Shop cards specific styling */
.shops-grid article {
    min-height: auto;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.shops-grid article img {
    height: 60px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* Status badges */
span[style*="background:"] {
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    article {
        min-height: 320px;
    }
    
    article h3 {
        font-size: 15px !important;
    }
    
    article p {
        font-size: 13px !important;
    }
    
    article img {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    article {
        min-height: 280px;
    }
    
    article img {
        height: 180px !important;
    }
    
    article[style*="padding"] {
        padding: 16px !important;
    }
    
    /* Mobile spacing fixes */
    .section-after-nav {
        margin-top: 32px !important;
    }
    
    /* Adjust spacing for mobile */
    .pb-12 {
        padding-bottom: 2rem;
    }
    
    .pt-8 {
        padding-top: 1.5rem;
    }
    
    .pb-6 {
        padding-bottom: 1rem;
    }
}

/* Specific component styles */
.whitespace-nowrap { white-space: nowrap; }
.placeholder-stone-300::placeholder { color: var(--stone-300); }

/* Navigation specific */
.nav-bg {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.5);
}

/* Navigation spacing - precise control */
.section-after-nav {
    margin-top: 32px !important;
}

/* Special case for fullscreen hero */
.section-after-nav.min-h-screen {
    margin-top: 32px !important;
}

/* Consistent section spacing */
section {
    margin-bottom: 0;
}

section + section {
    margin-top: 0;
}

/* Professional UX spacing - proper visual hierarchy */



.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

/* Filters/Search section should flow naturally from hero */
.bg-gradient-hero + .bg-white,
.bg-gradient-shops + .bg-white {
    margin-top: 0 !important;
}

/* Remove excessive margins that break visual flow */
.bg-gradient-hero p:last-child,
.bg-gradient-shops p:last-child {
    margin-bottom: 0 !important;
}

/* Better spacing between different section types */
.bg-white + .bg-gradient-feature-orange,
.bg-white + .bg-gradient-shops,
.py-8 + .py-12,
.py-12 + .py-20 {
    margin-top: 0 !important;
}

/* Additional utility classes */
.translate-y-2 { transform: translateY(0.5rem); }
.-bottom-1 { bottom: -0.25rem; }
.left-4 { left: 1rem; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.-bottom-4 { bottom: -1rem; }
.top-1\/4 { top: 25%; }
.left-1\/4 { left: 25%; }
.top-3\/4 { top: 75%; }
.right-1\/4 { right: 25%; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.blur-3xl { filter: blur(64px); }

/* Footer link fixes */
footer a {
    color: var(--stone-300) !important;
    text-decoration: none;
}

footer a:visited {
    color: var(--stone-300) !important;
}

footer a:hover {
    color: var(--orange-400) !important;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(231, 229, 228, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(231, 229, 228, 0.3);
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: rgba(251, 146, 60, 0.05);
}

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

.mobile-menu-item a {
    color: var(--stone-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: block;
    transition: color 0.2s ease;
}

.mobile-menu-item a:hover {
    color: var(--orange-600);
}

.mobile-menu-item a.active {
    color: var(--orange-600);
    font-weight: 600;
}

/* Hamburger button improvements */
.hamburger-btn {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(231, 229, 228, 0.5);
}

.hamburger-btn:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: var(--orange-300);
}

.hamburger-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Hamburger icon animation */
.hamburger-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--stone-600);
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 4px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 14px;
}

.hamburger-icon.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    left: -20px;
}

.hamburger-icon.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Global mobile menu JavaScript function */
function initMobileMenu() {
    const mobileMenuBtn = document.getElementById('mobileMenuBtn');
    const mobileMenu = document.getElementById('mobileMenu');
    const hamburgerIcon = document.getElementById('hamburgerIcon');

    if (mobileMenuBtn && mobileMenu && hamburgerIcon) {
        mobileMenuBtn.addEventListener('click', function() {
            mobileMenu.classList.toggle('active');
            hamburgerIcon.classList.toggle('active');
        });

        document.addEventListener('click', function(event) {
            if (!mobileMenuBtn.contains(event.target) && !mobileMenu.contains(event.target)) {
                mobileMenu.classList.remove('active');
                hamburgerIcon.classList.remove('active');
            }
        });

        mobileMenu.querySelectorAll('a').forEach(link => {
            link.addEventListener('click', function() {
                mobileMenu.classList.remove('active');
                hamburgerIcon.classList.remove('active');
            });
        });
    }
}

/* Color backgrounds with opacity */
.bg-orange-200\/30 { background-color: rgba(254, 215, 170, 0.3); }
.bg-orange-300\/20 { background-color: rgba(253, 186, 116, 0.2); }
.bg-stone-200\/30 { background-color: rgba(231, 229, 228, 0.3); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.border-stone-200\/50 { border-color: rgba(231, 229, 228, 0.5); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

/* Specific text colors */
.text-emerald-700 { color: #047857; }
.text-amber-700 { color: var(--amber-700); }
.text-blue-700 { color: #1d4ed8; }

/* Specific background colors */
.bg-emerald-500 { background-color: var(--emerald-500); }
.bg-emerald-600 { background-color: var(--emerald-600); }
.bg-blue-500 { background-color: var(--blue-500); }
.bg-blue-600 { background-color: var(--blue-600); }

/* Border top for footer */
.border-t { border-top-width: 1px; }
.border-stone-800 { border-color: #292524; }
.mt-12 { margin-top: 3rem; }

/* Missing responsive classes */
@media (min-width: 640px) {
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:flex-row { flex-direction: row; }
}

/* Additional background gradient utilities */
.from-stone-900 { --tw-gradient-from: var(--stone-900) var(--tw-gradient-from-position); --tw-gradient-to: rgb(28 25 23 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-stone-800 { --tw-gradient-to: var(--stone-800) var(--tw-gradient-to-position); }
.from-orange-50 { --tw-gradient-from: var(--orange-50) var(--tw-gradient-from-position); --tw-gradient-to: rgb(255 247 237 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-50 { --tw-gradient-from: var(--emerald-50) var(--tw-gradient-from-position); --tw-gradient-to: rgb(236 253 245 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-emerald-100 { --tw-gradient-to: var(--emerald-100) var(--tw-gradient-to-position); }
.from-blue-50 { --tw-gradient-from: var(--blue-50) var(--tw-gradient-from-position); --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-100 { --tw-gradient-to: var(--blue-100) var(--tw-gradient-to-position); }
.from-emerald-500 { --tw-gradient-from: var(--emerald-500) var(--tw-gradient-from-position); --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-emerald-600 { --tw-gradient-to: var(--emerald-600) var(--tw-gradient-to-position); }
.from-blue-500 { --tw-gradient-from: var(--blue-500) var(--tw-gradient-from-position); --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: var(--blue-600) var(--tw-gradient-to-position); }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.status-new {
    color: var(--emerald-700);
    background-color: var(--emerald-100);
}

.status-ending {
    color: var(--amber-700);
    background-color: var(--amber-100);
}

.status-upcoming {
    color: var(--blue-700);
    background-color: var(--blue-100);
}

/* Loading lazy images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Pattern backgrounds */
.pattern-dots {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Ccircle cx="30" cy="30" r="2"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Leaflets Grid - matching /gazetki layout */
.leaflets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Leaflet Cards - matching /gazetki style */
.leaflet-card {
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.leaflet-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: var(--stone-100);
}

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

.leaflet-card:hover img { 
    transform: scale(1.05); 
}

/* Fix leaflet images in grid */
article img[src*="storage/leaflets/"] {
    height: 280px !important;
    object-fit: cover !important;
}

/* Add proper spacing for leaflets section */
.leaflets-section {
    padding-bottom: 3rem;
}

/* Responsive breakpoints for leaflets grid */
@media (max-width: 1200px) {
    .leaflets-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .leaflets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .leaflets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .leaflets-grid { grid-template-columns: 1fr; }
}

/* Responsive shops grid using :not() to target our inline grid */
@media (max-width: 1200px) {
    [style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    [style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(6, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Responsive for leaflets too */
    [style*="grid-template-columns: repeat(4, 1fr)"]:not([style*="repeat(6"]):not([style*="repeat(3"]) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }
}

/* LEAFLET VIEWER STYLES - Safe prefixed to avoid conflicts */
.leaflet-viewer-container {
    background: #ffffff;
    padding: 2rem 0;
    min-height: 80vh;
}

.leaflet-viewer-main {
    position: relative;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.leaflet-viewer-image-container {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.leaflet-viewer-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.leaflet-viewer-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.leaflet-viewer-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

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

.leaflet-viewer-nav-arrow.prev {
    left: 20px;
}

.leaflet-viewer-nav-arrow.next {
    right: 20px;
}

.leaflet-viewer-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.leaflet-viewer-controls {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.leaflet-viewer-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
}

.leaflet-viewer-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.leaflet-viewer-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.leaflet-viewer-thumbnails::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.leaflet-viewer-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.leaflet-viewer-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.leaflet-viewer-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-viewer-thumbnail.active {
    border-color: #e92932;
    box-shadow: 0 4px 12px rgba(233, 41, 50, 0.3);
}

.leaflet-viewer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaflet-viewer-thumbnail-number {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.leaflet-viewer-page-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

.leaflet-viewer-fullscreen-btn {
    background: #e92932;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaflet-viewer-fullscreen-btn:hover {
    background: #d41e26;
    transform: translateY(-1px);
}

.leaflet-viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 18px;
}

/* Zoom functionality styles */
.leaflet-viewer-main-image.zoom-available {
    cursor: zoom-in;
}

.leaflet-viewer-main-image.zoomed {
    cursor: zoom-out;
}

/* Zoom overlay container */
.leaflet-viewer-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.leaflet-viewer-zoom-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Zoomed image styles */
.leaflet-viewer-zoomed-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-out;
    transition: transform 0.3s ease;
}

/* Close button for zoom overlay */
.leaflet-viewer-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.leaflet-viewer-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .leaflet-viewer-container {
        padding: 1rem 0;
    }
    
    .leaflet-viewer-image-container {
        height: 50vh;
    }
    
    .leaflet-viewer-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .leaflet-viewer-nav-arrow.prev {
        left: 10px;
    }
    
    .leaflet-viewer-nav-arrow.next {
        right: 10px;
    }
    
    .leaflet-viewer-controls {
        padding: 1rem;
    }
    
    .leaflet-viewer-thumbnail {
        width: 60px;
        height: 75px;
    }
    
    .leaflet-viewer-page-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .leaflet-viewer-image-container {
        height: 40vh;
    }
    
    .leaflet-viewer-nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .leaflet-viewer-thumbnail {
        width: 50px;
        height: 65px;
    }
    
    .leaflet-viewer-thumbnails {
        gap: 8px;
    }
}

/* Additional styles for new page navigation */
.leaflet-viewer-page-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.leaflet-viewer-nav-btn {
    background: #e92932;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.leaflet-viewer-nav-btn:hover {
    background: #d41e26;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.interstitial-ad-container {
    margin: 2rem 0;
}