/* Bowness Guide - Premium 2030 Design System */

/* ============================================
   DESIGN TOKENS - Lake District Theme
   ============================================ */

:root {
    /* Colors - Light Mode (Lake District inspired) */
    --color-bg: #f8fafb;
    --color-surface: #ffffff;
    --color-surface-2: #f1f5f9;
    --color-surface-elevated: #ffffff;
    
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-subtle: #94a3b8;
    
    --color-accent: #0ea5e9; /* Sky blue */
    --color-accent-2: #06b6d4; /* Water cyan */
    --color-accent-muted: #e0f2fe;
    
    --color-border: #e2e8f0;
    --color-border-subtle: #f1f5f9;
    
    /* Lake District specific tones */
    --color-lake: #0891b2;
    --color-stone: #78716c;
    --color-sky: #7dd3fc;
    --color-mountain: #475569;
    --color-danger: #ef4444;
    
    /* Shadows - Soft depth layers */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    --gradient-surface: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    
    /* Spacing Scale */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: var(--font-sans);
    
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index scale */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f172a;
        --color-surface: #1e293b;
        --color-surface-2: #334155;
        --color-surface-elevated: #475569;
        
        --color-text: #f1f5f9;
        --color-text-muted: #cbd5e1;
        --color-text-subtle: #94a3b8;
        
        --color-accent: #38bdf8;
        --color-accent-2: #22d3ee;
        --color-accent-muted: #1e3a5f;
        
        --color-border: #334155;
        --color-border-subtle: #1e293b;
        
        --color-lake: #06b6d4;
        --color-stone: #94a3b8;
        --color-sky: #38bdf8;
        --color-mountain: #64748b;
        --color-danger: #f87171;
        
        --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #2563eb 100%);
    }
}

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

/* ============================================
   BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background: var(--color-bg);
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ============================================
   TOP NAVIGATION
   ============================================ */

.top-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border-subtle);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: background var(--transition-base);
}

@media (prefers-color-scheme: dark) {
    .top-nav {
        background: rgba(30, 41, 59, 0.8);
        border-bottom-color: var(--color-border);
    }
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
}

.logo {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    line-height: 0;
    transition: transform var(--transition-fast);
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(220px, 48vw);
}

.logo:active {
    transform: scale(0.98);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

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

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-height: calc(100vh - 140px);
}

/* ============================================
   HOMEPAGE - MODERN HERO
   ============================================ */

.page-home {
    padding-bottom: var(--space-8);
}

.hero-modern {
    position: relative;
    padding: var(--space-4) var(--space-4) var(--space-6);
    background: var(--gradient-hero);
    overflow: hidden;
    isolation: isolate;
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    z-index: -1;
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    z-index: -1;
}

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

.hero-home-logo {
    margin: 0 0 var(--space-4);
    line-height: 0;
}

.hero-home-logo img {
    display: block;
    width: min(100%, 520px);
    height: auto;
    margin: 0 auto;
}

/* Homepage hero — background image slider (/assets/slider) */
.hero-modern--slider {
    padding: 0;
    min-height: clamp(360px, 56vh, 600px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0f172a;
}

/* Disable gradient pseudo-layers so photos + overlay read clearly */
.hero-modern--slider::before,
.hero-modern--slider::after {
    display: none;
}

.hero-modern--slider .hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0;
}

.hero-slider__slides {
    position: absolute;
    inset: 0;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-slider__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.35) 0%,
        rgba(15, 23, 42, 0.5) 45%,
        rgba(15, 23, 42, 0.75) 100%
    );
    pointer-events: none;
}

.hero-modern--slider .hero-content-modern {
    z-index: 3;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4) var(--space-4);
}

.hero-modern--slider .hero-home-logo img {
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

.hero-slider__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding: 0;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.hero-slider__dot:hover {
    border-color: #fff;
    transform: scale(1.1);
}

.hero-slider__dot.is-active {
    background: #fff;
    border-color: #fff;
}

.hero-slider__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide {
        transition: none;
    }
}

/* Floating Search Pill */
.search-pill {
    position: relative;
    max-width: 100%;
    margin: 0 auto var(--space-6);
}

.search-pill-wrapper {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    gap: var(--space-2);
}

.search-pill-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl), 0 0 0 4px var(--color-accent-muted);
    transform: translateY(-2px);
}

.search-pill-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--text-base);
    color: var(--color-text);
    padding: var(--space-2);
    outline: none;
    font-family: inherit;
}

.search-pill-input::placeholder {
    color: var(--color-text-subtle);
}

.search-pill-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gradient-accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.search-pill-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-pill-btn:active {
    transform: scale(0.95);
}

/* Category Filter Chips */
.search-filters {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-4);
}

.filter-chip {
    padding: var(--space-2) var(--space-4);
    /* Match .search-pill-wrapper — dark in dark mode, white in light mode */
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.filter-chip:hover {
    /* Previous default chip look (frosted light) — swapped with normal state */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: var(--color-accent);
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

@media (prefers-color-scheme: light) {
    .filter-chip:hover {
        color: var(--color-text);
    }
}

.filter-chip:active {
    transform: translateY(0);
}

.filter-chip.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Today in Bowness — match search pill / filter chips: surface default, frosted on hover */
.today-bar {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), backdrop-filter var(--transition-fast);
}

.today-bar:hover {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: var(--color-accent);
}

.today-bar:hover .today-item,
.today-bar:hover .today-item strong {
    color: #0f172a;
}

@media (prefers-color-scheme: light) {
    .today-bar:hover .today-item {
        color: var(--color-text-muted);
    }
    .today-bar:hover .today-item strong {
        color: var(--color-text);
    }
}

.today-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.today-item strong {
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

a.today-item {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

a.today-item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   CATEGORIES - MODERN CARDS
   ============================================ */

.categories-section-modern {
    padding: var(--space-12) var(--space-4);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .category-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.category-card-modern {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    overflow: hidden;
}

.category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.category-card-modern:hover::before {
    opacity: 1;
}

.category-card-modern:active {
    transform: translateY(-2px);
}

.category-icon-modern {
    font-size: 2.5rem;
    line-height: 1;
    filter: grayscale(0.2);
    transition: transform var(--transition-base);
}

.category-card-modern:hover .category-icon-modern {
    transform: scale(1.1);
}

.category-name-modern {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.category-count {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: var(--color-accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* ============================================
   EVENTS - CAROUSEL/GRID
   ============================================ */

.events-section-modern {
    padding: var(--space-12) var(--space-4);
    background: var(--color-surface-2);
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.view-all-link {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--transition-fast);
}

.view-all-link:hover {
    gap: var(--space-2);
}

.events-carousel {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-2) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.events-carousel::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .events-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        overflow: visible;
    }
}

/* Event cards — layout aligned with listing cards (image on top, then header + body) */
.event-card-modern {
    flex: 0 0 min(100%, 320px);
    scroll-snap-align: start;
    min-width: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--color-text);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card-primary {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
}

.event-card-primary:hover .event-card-title-modern {
    color: var(--color-accent);
}

.event-card-primary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.event-card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-surface-2);
    flex-shrink: 0;
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.event-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.event-card-modern:hover::before {
    opacity: 1;
}

.event-card-header {
    padding: var(--space-4);
    background: var(--color-surface-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.event-card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.event-card-main-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.event-date-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 56px;
    padding: var(--space-3);
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
}

.event-date-modern .day {
    font-size: var(--text-xl);
    line-height: 1;
}

.event-date-modern .month {
    font-size: var(--text-xs);
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: var(--space-1);
}

.event-info-modern {
    flex: 1;
    min-width: 0;
}

.event-card-title-modern {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0 0 var(--space-2);
    line-height: var(--line-height-tight);
}

.event-recurrence-badge {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.65em;
    font-weight: 600;
    vertical-align: middle;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
}

.event-venue-modern {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface) 50%, var(--color-surface-2) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   QUICK ACTIONS - PILL BAR
   ============================================ */

.quick-actions-modern {
    padding: var(--space-8) var(--space-4);
}

.actions-bar {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.action-pill {
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.action-pill:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-pill:active {
    transform: translateY(0);
}

.action-pill-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* ============================================
   MAP PREVIEW
   ============================================ */

.map-preview-section {
    padding: var(--space-12) var(--space-4);
    background: var(--color-bg);
}

.map-preview-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.map-preview-header {
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-preview-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.map-preview-cta {
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
}

.map-preview-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.map-preview-map {
    height: 300px;
    width: 100%;
    background: var(--color-surface-2);
}

@media (min-width: 768px) {
    .map-preview-map {
        height: 400px;
    }
}

/* ============================================
   BOTTOM NAVIGATION - FROSTED GLASS
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-around;
    padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
    z-index: var(--z-fixed);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: rgba(30, 41, 59, 0.8);
        border-top-color: var(--color-border);
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-muted);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    min-width: 60px;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent-muted);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-item.active {
    color: var(--color-accent);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    position: relative;
    z-index: 1;
}

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

/* ============================================
   UTILITIES & RESPONSIVE
   ============================================ */

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .category-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-home-logo img {
        width: min(100%, 440px);
    }
}

/* Focus Styles - Accessibility */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Loading States */
.loading {
    text-align: center;
    padding: var(--space-12);
    color: var(--color-text-muted);
}

.no-events,
.no-results {
    text-align: center;
    padding: var(--space-12);
    color: var(--color-text-muted);
}

/* ============================================
   DIRECTORY PAGE - MODERN
   ============================================ */

.page-directory-modern {
    padding: var(--space-6) var(--space-4) var(--space-12);
}

.page-header-modern {
    margin-bottom: var(--space-8);
    text-align: center;
}

.page-title-modern {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.page-subtitle-modern {
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

.filters-modern {
    margin-bottom: var(--space-8);
}

.filter-pill-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-select-modern {
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-10);
}

.filter-select-modern:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow), 0 0 0 4px var(--color-accent-muted);
}

.search-pill-inline {
    max-width: 300px;
    flex: 1;
    min-width: 200px;
}

.filter-clear-btn {
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-clear-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.filter-clear-btn:active {
    transform: translateY(0);
}

.listings-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

@media (max-width: 640px) {
    .listings-grid-modern {
        grid-template-columns: 1fr;
    }
}

.listing-card-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--color-text);
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card-primary {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.listing-card-primary:hover .listing-card-title {
    color: var(--color-accent);
}

.listing-card-external {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4) var(--space-4);
    border-top: 1px solid var(--color-border-subtle);
    background: var(--color-surface);
}

.listing-card-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-subtle);
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.listing-card-icon-link:hover {
    color: var(--color-accent);
    background: var(--color-surface);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.listing-card-icon-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.listing-card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-surface-2);
    flex-shrink: 0;
}

.listing-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.listing-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.listing-card-modern:hover::before {
    opacity: 1;
}

.listing-card-modern:active {
    transform: translateY(-2px);
}

.listing-card-header {
    padding: var(--space-4);
    background: var(--color-surface-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.listing-card-header--categories .listing-card-category-badges {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    min-width: 0;
}

.category-badge-modern {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
}

.category-icon-small {
    font-size: 1.25rem;
}

.featured-badge-modern {
    background: var(--gradient-accent);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
}

.listing-card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.listing-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin: 0;
}

.listing-card-address {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.listing-card-address svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.listing-card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-subtle);
}

.listing-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.listing-card-meta svg {
    opacity: 0.6;
}

.listing-card-price {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
}

.no-results-modern,
.error-modern {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-12);
    color: var(--color-text-muted);
}

.error-modern {
    color: var(--color-danger);
}

/* ============================================
   EVENTS PAGE - MODERN
   ============================================ */

.page-events-modern {
    padding: var(--space-6) var(--space-4) var(--space-12);
}

.view-toggle-btn {
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: inherit;
}

.view-toggle-btn:hover {
    background: var(--color-surface-2);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.view-toggle-btn:active {
    transform: translateY(0);
}

.view-toggle-btn svg {
    flex-shrink: 0;
}

.events-container-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
}

.calendar-day-modern {
    margin-bottom: var(--space-8);
}

.day-header-modern {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-border);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.event-time-modern,
.event-venue-modern {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: var(--space-1) 0;
}

.event-time-modern svg,
.event-venue-modern svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.event-description-modern {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-top: var(--space-2);
}

/* ============================================
   MAP PAGE - MODERN
   ============================================ */

.page-map-modern {
    height: calc(100vh - 60px);
    position: relative;
    overflow: hidden;
}

.map-container-modern {
    height: 100%;
    position: relative;
}

.map-full-modern {
    height: 100%;
    width: 100%;
    z-index: var(--z-base);
}

/* Mobile: compact category dropdown — full map stays visible */
.map-filter-mobile {
    display: none;
    position: absolute;
    top: calc(var(--space-3) + env(safe-area-inset-top, 0px));
    left: var(--space-3);
    right: var(--space-3);
    z-index: var(--z-dropdown);
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-subtle);
    max-height: none;
}

@media (prefers-color-scheme: dark) {
    .map-filter-mobile {
        background: rgba(30, 41, 59, 0.96);
        border-color: var(--color-border);
    }
}

.map-category-select-label {
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0;
}

.map-category-select {
    flex: 1;
    min-width: 0;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-10);
}

.map-controls-modern {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: var(--z-dropdown);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-subtle);
    max-width: 320px;
    width: calc(100% - var(--space-8));
}

@media (max-width: 767px) {
    .map-filter-mobile {
        display: flex;
    }

    .map-controls-modern {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .map-controls-modern {
        background: rgba(30, 41, 59, 0.95);
        border-color: var(--color-border);
    }
}

.map-controls-header {
    margin-bottom: var(--space-3);
}

.map-controls-header h2,
.map-controls-header h3,
.map-filters-heading {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.map-filters-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 400px;
    overflow-y: auto;
}

.map-filters-modern .filter-chip {
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-align: left;
}

.map-filters-modern .filter-chip:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
    transform: translateX(2px);
}

.map-filters-modern .filter-chip.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow);
}

.bottom-sheet-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(calc(100% - 80px));
    transition: transform var(--transition-base);
    z-index: var(--z-modal);
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: calc(env(safe-area-inset-bottom) + 80px);
}

@media (prefers-color-scheme: dark) {
    .bottom-sheet-modern {
        background: rgba(30, 41, 59, 0.95);
    }
}

.bottom-sheet-modern.open {
    transform: translateY(0);
}

.bottom-sheet-handle-modern {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    margin: var(--space-3) auto;
    cursor: grab;
    transition: background var(--transition-fast);
}

.bottom-sheet-handle-modern:active {
    cursor: grabbing;
    background: var(--color-text-muted);
}

.bottom-sheet-content-modern {
    padding: var(--space-4) var(--space-5);
}

.bottom-sheet-content-modern h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.bottom-sheet-content-modern .category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-surface-2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.bottom-sheet-content-modern .address {
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.bottom-sheet-content-modern .listing-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.bottom-sheet-content-modern .action-btn {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    text-align: center;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.bottom-sheet-content-modern .action-btn.primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow);
}

.bottom-sheet-content-modern .action-btn:not(.primary) {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

/* ============================================
   DETAIL PAGES - LISTING & EVENT
   ============================================ */

.page-listing-detail-modern,
.page-event-detail-modern {
    padding: var(--space-6) var(--space-4) var(--space-12);
}

.breadcrumb-nav {
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.breadcrumb-nav ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-nav li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-text-muted);
}

.breadcrumb-nav li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-1);
    color: var(--color-text-subtle);
    font-weight: var(--font-weight-normal);
}

.breadcrumb-nav a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav [aria-current='page'] {
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-link-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-6);
    transition: all var(--transition-fast);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
}

.back-link-modern:hover {
    background: var(--color-accent-muted);
    transform: translateX(-2px);
}

.back-link-modern svg {
    flex-shrink: 0;
}

.blog-article-modern {
    max-width: 48rem;
    margin: 0 auto;
}

.blog-article-header-modern {
    margin-bottom: var(--space-6);
}

.blog-article-meta-modern {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-3);
}

.blog-article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-8);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    background: var(--color-surface-2);
}

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

.blog-article-body.detail-content-modern {
    margin-top: 0;
}

.blog-share-modern {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-subtle);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.blog-share-modern button.social-link-modern {
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.detail-header-modern {
    margin-bottom: var(--space-8);
}

.detail-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

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

.detail-title-modern {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

.detail-address-modern {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0;
}

.detail-address-modern svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Listing detail: 70% hero + 30% About card */
.detail-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--space-5);
    align-items: stretch;
    margin-bottom: var(--space-8);
}

.detail-top-layout--hero-only {
    grid-template-columns: minmax(0, 1fr);
}

.detail-hero-column {
    min-width: 0;
}

.detail-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: clamp(220px, 36vw, 420px);
    background: var(--color-surface-2);
}

.detail-hero--no-images .detail-hero-placeholder {
    min-height: clamp(220px, 36vw, 420px);
}

.detail-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-accent-muted) 50%, var(--color-surface-2) 100%);
}

.detail-hero-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    height: 100%;
    min-height: clamp(220px, 36vw, 420px);
}

.detail-hero-slides:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.detail-hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
    height: 100%;
    min-height: clamp(220px, 36vw, 420px);
}

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

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%);
    pointer-events: none;
}

.detail-badge-modern--on-dark {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(8px);
    margin-bottom: var(--space-3);
}

.detail-title-modern--hero {
    color: #fff;
    margin-bottom: var(--space-2);
    font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.detail-address-modern--hero {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    font-size: var(--text-sm);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.detail-address-modern--hero svg {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.detail-hero-scroll-hint {
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    z-index: 2;
    margin: 0;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.detail-about-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
    box-shadow: var(--shadow);
    align-self: start;
    max-height: min(88vh, 720px);
    overflow-y: auto;
}

.detail-about-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-4);
    letter-spacing: -0.01em;
}

.detail-about-card-body {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.detail-about-card-body p {
    margin: 0;
}

.detail-about-card .detail-about-card-actions.detail-actions-modern {
    margin-top: var(--space-4);
    margin-bottom: 0;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
}

.detail-about-card .detail-about-card-body + .detail-about-card-actions {
    margin-top: var(--space-5);
}

.detail-about-subheading {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: var(--space-5) 0 var(--space-2);
}

.detail-about-card-actions + .detail-about-subheading {
    margin-top: var(--space-4);
}

.social-links-modern--in-card {
    gap: var(--space-2);
}

.social-links-modern--in-card .social-link-modern {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.social-links-modern--in-card .social-link-modern svg {
    width: 18px;
    height: 18px;
}

.tags-list-modern--in-card {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.detail-video-gallery-modern {
    margin-bottom: var(--space-8);
}

@media (max-width: 960px) {
    .detail-top-layout {
        grid-template-columns: 1fr;
    }

    .detail-about-card {
        max-height: none;
        order: 2;
    }

    .detail-hero-column {
        order: 1;
    }
}

.event-meta-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.meta-item-modern {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.meta-icon-modern {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-muted);
    border-radius: var(--radius-md);
    color: var(--color-accent);
}

.meta-content-modern {
    flex: 1;
}

.meta-content-modern strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.meta-content-modern p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.detail-gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-item-modern {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface-2);
}

.gallery-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-item-modern:hover img {
    transform: scale(1.05);
}

.gallery-item-video {
    background: #000;
}

.gallery-item-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    margin: 0;
    text-align: left;
}

.detail-content-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.detail-section-modern {
    margin-bottom: var(--space-8);
}

.detail-section-modern:last-child {
    margin-bottom: 0;
}

.section-title-modern {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}

.section-content-modern {
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.section-content-modern p {
    margin: 0;
}

.detail-actions-modern {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-subtle);
}

.action-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.action-btn-modern:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-btn-modern:active {
    transform: translateY(0);
}

.action-btn-primary-modern {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow);
}

.action-btn-primary-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.action-btn-modern svg {
    flex-shrink: 0;
}

.hours-list-modern {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.hours-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--color-surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-subtle);
}

.hours-day {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.hours-time {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.tags-list-modern {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag-modern {
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

/* Social Media Links */
.social-links-modern {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.social-link-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.social-link-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.social-link-modern:active {
    transform: translateY(0);
}

.social-link-modern svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.social-link-modern span {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .social-links-modern {
        flex-direction: column;
    }
    
    .social-link-modern {
        width: 100%;
        justify-content: center;
    }
}

.detail-map-modern {
    height: 300px;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

/* ============================================
   404 PAGE
   ============================================ */

.page-404-modern {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
}

.error-content-modern {
    text-align: center;
    max-width: 500px;
}

.error-icon-modern {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-title-modern {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.error-message-modern {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.error-actions-modern {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.page-about-modern {
    padding: var(--space-6) var(--space-4) var(--space-12);
}

.about-content-modern {
    max-width: 800px;
    margin: 0 auto;
}

.about-card-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.about-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

.about-card-modern h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.about-card-modern p {
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-3);
}

.features-list-modern {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.features-list-modern li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-text-muted);
}

.features-list-modern li svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.link-modern {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.link-modern:hover {
    color: var(--color-accent-2);
    text-decoration: underline;
}

.install-prompt-modern {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-top: var(--space-8);
    text-align: center;
    border: 1px solid var(--color-border);
}

.install-prompt-content {
    max-width: 400px;
    margin: 0 auto;
}

.install-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
}

.install-prompt-content h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.install-prompt-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

/* ============================================
   SUGGEST PAGE - FORMS
   ============================================ */

.page-suggest-modern {
    padding: var(--space-6) var(--space-4) var(--space-12);
}

.suggest-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.suggest-form-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.form-group-modern {
    margin-bottom: var(--space-5);
}

.form-group-modern label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input-modern {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-muted);
}

.form-input-modern::placeholder {
    color: var(--color-text-subtle);
}

.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-row-modern {
        grid-template-columns: 1fr;
    }
}

.btn-primary-modern,
.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary-modern {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-modern {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary-modern:hover {
    background: var(--color-surface);
    transform: translateY(-2px);
}

.btn-submit-modern {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.submit-result-modern {
    margin-top: var(--space-6);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.success-result {
    background: var(--color-accent-muted);
    border: 1px solid var(--color-accent);
    color: var(--color-text);
}

.error-result {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.result-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.submit-result-modern h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-1);
}

.submit-result-modern p {
    margin: 0;
    font-size: var(--text-sm);
}

/* ============================================
   ADMIN PANEL - Modern Styling
   ============================================ */

.admin-wrapper {
    min-height: 100vh;
    background: var(--color-bg);
    font-family: var(--font-sans);
}

/* Admin Header */
.admin-header-modern {
    background: var(--gradient-accent);
    color: white;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.admin-header-modern h1 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.admin-header-modern .admin-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
}

.admin-header-modern .admin-user-info a {
    color: white;
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.admin-header-modern .admin-user-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Admin Navigation */
.admin-nav-modern {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--space-6);
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.admin-nav-modern a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.admin-nav-modern a:hover {
    color: var(--color-accent);
    background: var(--color-accent-muted);
}

.admin-nav-modern a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    background: var(--color-accent-muted);
}

/* Admin Content */
.admin-content-modern {
    padding: var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.admin-stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-stat-card h3 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-stat-card .stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1;
    margin: 0;
}

/* Admin Sections */
.admin-section-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.admin-section-modern h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-6) 0;
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-border-subtle);
}

/* Data Tables */
.admin-table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.admin-table-modern thead {
    background: var(--color-surface-2);
}

.admin-table-modern th {
    padding: var(--space-4);
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table-modern td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text);
}

.admin-table-modern tbody tr {
    transition: background var(--transition-fast);
}

.admin-table-modern tbody tr:hover {
    background: var(--color-surface-2);
}

.admin-table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Admin Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: inherit;
}

.admin-btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow);
}

.admin-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.admin-btn-secondary {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.admin-btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
}

.admin-btn-danger {
    background: var(--color-danger);
    color: white;
}

.admin-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.admin-btn-success {
    background: #10b981;
    color: white;
}

.admin-btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.admin-btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}

/* Admin Forms */
.admin-form-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    max-width: 800px;
}

.admin-form-group {
    margin-bottom: var(--space-5);
}

.admin-form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

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

.admin-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Admin listing edit: Leaflet map for lat/lng */
.admin-listing-map {
    height: 280px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    z-index: 1;
}

.admin-form-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-subtle);
}

/* Admin Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: var(--space-4);
}

.admin-login-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
}

.admin-login-box h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-8) 0;
    text-align: center;
}

.admin-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    padding: var(--space-4);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    display: none;
    font-size: var(--text-sm);
}

.admin-error-message.show {
    display: block;
}

/* Empty State */
.admin-empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-4);
    color: var(--color-text-muted);
}

.admin-empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: var(--space-4);
}

.admin-empty-state h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

/* Loading State */
.admin-loading {
    text-align: center;
    padding: var(--space-8);
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header-modern {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }
    
    .admin-nav-modern {
        padding: 0 var(--space-4);
    }
    
    .admin-content-modern {
        padding: var(--space-4);
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-modern {
        font-size: var(--text-xs);
    }
    
    .admin-table-modern th,
    .admin-table-modern td {
        padding: var(--space-2);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .admin-wrapper {
        background: #0f172a;
    }
    
    .admin-section-modern,
    .admin-stat-card,
    .admin-form-modern,
    .admin-login-box {
        background: #1e293b;
        border-color: #334155;
    }
    
    .admin-nav-modern {
        background: #1e293b;
        border-color: #334155;
    }
    
    .admin-table-modern thead {
        background: #0f172a;
    }
    
    .admin-table-modern tbody tr:hover {
        background: #0f172a;
    }
}
