/* ============================================
   ToDoWithKids.com - CLEANED & ORGANIZED
   ============================================ */

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS Variables & Reset
   2. Base Styles
   3. Layout & Containers
   4. Typography
   5. Navigation & Mobile Filter Controls
   6. Filters Sidebar (CONSOLIDATED)
   7. Buttons
   8. Forms & Inputs
   9. Alerts & Notifications
   10. Cards & Content Blocks
   11. Images & Media
   12. Modals & Overlays
   13. Tables
   14. Authentication Pages
   15. Home Page
   16. Browse & Filter Pages
   17. Activity Detail Pages
   18. Profile & Admin Pages
   19. Footer
   20. Utility Classes
   21. Responsive Design (CONSOLIDATED)
   ============================================ */

/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Colors */
    --primary: #3FB1CE;
    --primary-dark: #2d8ca8;
    --primary-darker: #1d7a72;
    --secondary: #E9C46A;
    --accent: #F4A261;
    --accent-dark: #E87E3C;
    --bg: #F9FAFB;
    --text: #264653;
    --text-light: #666;
    --border: #E0E0E0;
    --danger: #E63946;
    --success: #3FB1CE;

    --warning: #F4A261;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 8px 20px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
}

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

/* ============================================
   2. BASE STYLES
   ============================================ */
html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   3. LAYOUT & CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   5. NAVIGATION & MOBILE FILTER CONTROLS
   ============================================ */
/* Main Navbar */
.navbar {
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.navbar-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 1.5rem;
}

/* Desktop Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

/* User Menu */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-menu {
    position: relative;
    cursor: pointer;
}

.nav-user-name {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text);
    font-weight: 500;
    transition: background-color var(--transition-fast);
    border-radius: var(--radius-md);
}

.nav-user-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast) ease;
    z-index: 1000;
}

.nav-user-menu:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    transition: background-color var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown hr {
    margin: var(--spacing-sm) 0;
    border: none;
    border-top: 1px solid var(--border);
}

.nav-auth {
    display: flex;
    gap: var(--spacing-md);
}

/* Mobile Filter Hamburger - Fixed Left Side */
.mobile-filter-hamburger {
    display: none;
    position: fixed;
    left: 16px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0;
}

.mobile-filter-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mobile-filter-hamburger:active {
    transform: scale(0.95);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Animate hamburger when filters open */
.filters-sidebar.active ~ .mobile-filter-hamburger .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.filters-sidebar.active ~ .mobile-filter-hamburger .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.filters-sidebar.active ~ .mobile-filter-hamburger .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Mobile Hamburger Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.navbar-toggle.active .navbar-toggle-icon:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* ============================================
   6. FILTERS SIDEBAR (CONSOLIDATED - ALL IN ONE PLACE)
   ============================================ */

/* Base sidebar styles (desktop) */
.filters-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.filters-sidebar h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text);
}

/* Filter sections inside sidebar */
.filter-section,
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-section label:not(.checkbox-label),
.filter-group label:not(.checkbox-label) {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

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

/* Filter inputs */
.filter-input,
.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

/* Checkbox groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.05rem; /* Reduced from 0.15rem for even tighter spacing */
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem !important; /* Increased from 0.5rem for more space between checkbox and text */
    cursor: pointer;
    padding: 0.2rem var(--spacing-sm); /* Reduced from 0.25rem */
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.1; /* Reduced from 1.2 for tighter vertical spacing */
}

.checkbox-label:hover {
    background: rgba(42, 157, 143, 0.05);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
}

.child-label {
    padding-left: 2.5rem;
    font-size: 0.9rem; /* Slightly smaller */
    font-weight: 400; /* Ensure not bold */
}

/* Radio groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.1rem 0.6rem;
    margin: 0;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary);
}

/* Filter actions */
.filter-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-actions .btn {
    padding: 0.75rem var(--spacing-lg);
    font-size: 0.9rem;
}

/* Filter close button (mobile only) */
.filter-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.filter-close-btn:hover {
    background: #e0e0e0;
}

/* Backdrop overlay (KEPT - most complete version) */
.filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-backdrop.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when filters open */
body.filter-open {
    overflow: hidden;
}

/* Mobile: Slide-in from left */
@media (max-width: 768px) {
    .mobile-filter-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

        .navbar-toggle {
        display: flex; /* Show hamburger on mobile */
    }
    
    .filters-sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: white;
        z-index: 1050;
        overflow-y: auto;
        padding: 60px 1.5rem 1.5rem 1.5rem;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease-in-out !important;
        border-radius: 0;
    }
    
    .filters-sidebar.active {
        left: 0 !important;
    }
    
    .filter-close-btn {
        display: flex;
    }
}

/* Desktop: Normal sidebar in grid layout */
@media (min-width: 769px) {
    .filters-sidebar {
        position: sticky !important;
        top: 100px;
        left: auto !important;
        width: auto;
        max-width: none;
        height: fit-content;
        max-height: calc(100vh - 120px); /* NEW - Prevent sidebar from exceeding viewport */
        overflow-y: auto; /* CHANGED from visible to auto */
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        transition: none !important;
    }
    
    body.filter-open {
        overflow: auto;
    }
    
    .filter-backdrop {
        display: none !important;
    }
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filters-header h2 {
    margin: 0;
    flex: 1;
}

.btn-apply-inline {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Location banner */
.location-banner {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fffbea;
    border-left: 3px solid #fbbf24;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.3;
}


/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-base);
    line-height: 1.5;
}


/* Primary action - teal theme color */
.btn-primary {
    background: #3FB1CE;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2d8ca8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(63, 177, 206, 0.3);
}

/* Secondary action - outline style */
.btn-secondary {
    background: white;
    color: #3FB1CE;
    border: 2px solid #3FB1CE;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #3FB1CE;
    color: white;
}

/* Warning/Admin action */

.btn-logout {
    background: var(--danger);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.btn-icon:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.btn-geolocate-icon {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-geolocate-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white; /* Add white text/icon */
    transform: scale(1.05);
}

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

/* ============================================
   8. FORMS & INPUTS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.form-group input[readonly] {
    background-color: #f9f9f9;
    color: var(--text-light);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: var(--spacing-sm);
}

.form-group.checkbox label {
    margin: 0;
    font-weight: normal;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.category-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin-bottom: var(--spacing-sm);
}

.category-option input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
}

.category-option label {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.category-option:hover {
    background-color: rgba(42, 157, 143, 0.05);
    border-radius: var(--radius-sm);
}

.category-option input[type="radio"]:checked + label {
    color: var(--primary);
    font-weight: 600;
}

/* Two-column category grid - responsive */
.category-grid-two-column {
    column-count: 2;
    column-gap: 1.5rem;
}

/* Single column on mobile */
@media (max-width: 768px) {
    .category-grid-two-column {
        column-count: 1;
    }
}

/* Optional: Add a subtle divider between columns on larger screens */
@media (min-width: 769px) {
    .category-grid-two-column {
        column-gap: 2rem;
        position: relative;
    }
    
    /* Vertical line between columns (optional - comment out if you don't want it) */
    .category-grid-two-column::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: #e0e0e0;
        transform: translateX(-50%);
    }
}

/* Tighter spacing for category parent */
.category-parent {
    margin-bottom: 0.25rem;
}

/* Compact category children */
.category-children {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-child {
    margin-bottom: 0.2rem;
}

/* Ensure category sections look good in columns */
.category-section {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

fieldset {
    border: 1px solid var(--border);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

legend {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    padding: 0 var(--spacing-sm);
}

/* Location Input Group */
.location-input-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.location-input-group .filter-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
}

.location-input-group .clear-location-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
    z-index: 10;
    transition: color var(--transition-fast);
}

.location-input-group .clear-location-btn:hover {
    color: var(--text);
}

/* Addresser Autocomplete */
.addresser-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.addresser-suggestions.show {
    display: block;
}

.addresser-suggestion-item {
    padding: 0.75rem var(--spacing-md);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color var(--transition-fast);
    font-size: 0.95rem;
    color: var(--text);
}

.addresser-suggestion-item:hover {
    background-color: rgba(42, 157, 143, 0.05);
}

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

.addresser-loading {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.addresser-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: addresser-spin 1s linear infinite;
}

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

#addressSearch {
    background-color: #fafafa;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

#addressSearch:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

#socialToggleIcon {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
}

#socialLinksSection {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* ============================================
   9. ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.alert-danger {
    background: #FCE4E1;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #E8F5F2;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: #FFF3E0;
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert ul {
    margin-left: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.alert li {
    margin-bottom: var(--spacing-sm);
}

.alert a {
    color: inherit;
    font-weight: 600;
}

#geocode-status .alert {
    margin: 0;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.addresser-status {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
}

.addresser-status.success {
    color: var(--success);
}

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

/* ============================================
   10. CARDS & CONTENT BLOCKS
   ============================================ */
.activity-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


.activity-card .generic-image-notice {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


.activity-image {
    position: relative;
    height: 180px;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
    color: white;
    font-size: 3rem;
}

.activity-card.featured .activity-image {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.activity-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.activity-title-link h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.activity-title-link:hover h3 {
    color: var(--primary);
}

.activity-body .category {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.activity-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.description {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Absolute positioned badges - only for activity cards */
.activity-image .badge,
.activity-card .badge-featured,
.hero-image .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

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

.badge-free {
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.badge-paid {
    background: var(--warning);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

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

.badge-warning {
    background: #FFF3E0;
    color: var(--warning);
}

/* Illustrative image badge - improved positioning and backdrop */
.generic-image-notice {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.813rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.generic-image-notice:hover {
    opacity: 1;
}

.notice-icon {
    font-size: 1rem;
}

.notice-text {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.category-image-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 152, 0, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 10;
    max-width: 280px;
}

.thumbnail-placeholder-badge,
.thumbnail-generic-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    z-index: 10;
}

.thumbnail-generic-badge {
    background: rgba(0, 0, 0, 0.6);
    opacity: 0.7;
}

.category-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

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

.category-icon {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.category-card p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.sidebar-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.content-section p {
    color: #4b5563;
    line-height: 1.75;
    font-size: 1rem;
}

/* Details section */
.details-section {
    margin-bottom: 2.5rem;
}

.details-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.details-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.detail-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

.detail-card:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #3FB1CE;
}

.detail-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-card p {
    color: #4b5563;
    margin: 0;
    font-size: 0.938rem;
    line-height: 1.5;
}

.detail-card a {
    color: #3FB1CE;
    text-decoration: none;
    font-weight: 500;
}

.detail-card a:hover {
    text-decoration: underline;
}

/* ============================================
   11. IMAGES & MEDIA
   ============================================ */

.hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero-image {
        height: 500px;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-image:hover .hero-img {
    transform: scale(1.02);
}

/* Image count badge - bottom right with improved styling */
.image-count-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Attribution - bottom left with improved styling */
.hero-attribution {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    max-width: calc(100% - 150px); /* Leave space for image count badge */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-attribution a {
    color: #93c5fd;
    text-decoration: none;
}

.hero-attribution a:hover {
    text-decoration: underline;
}


.image-attribution-display {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.4rem var(--spacing-sm);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-attribution-display a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.95;
}

.image-attribution-display a:hover {
    opacity: 1;
    text-decoration: none;
}
.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-top: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover {
    border-color: #3FB1CE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.thumbnail-generic-badge,
.thumbnail-attribution-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.image-item {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    background: white;
    cursor: move;
    transition: all var(--transition-fast);
}

.image-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.image-item.dragging {
    opacity: 0.5;
}

.image-preview {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primary-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: #ffd700;
    color: #000;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.image-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.drag-handle {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.5;
}

.no-images {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
    font-style: italic;
}

.empty-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.85rem;
}

.empty-icon {
    font-size: 2rem;
}

.loading-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f5f5f5;
}

.delete-image-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.delete-image-btn:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
}

.upload-controls {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.upload-controls .btn {
    flex: 1;
    min-width: 120px;
}

.image-source-toggle {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--spacing-sm);
}

.source-btn {
    padding: 0.75rem var(--spacing-lg);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.source-btn:hover {
    color: var(--primary);
}

.source-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.image-source-section {
    margin-top: var(--spacing-lg);
}

.category-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.category-image-option {
    position: relative;
    border: 3px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-image-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-image-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.category-image-option img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-image-label {
    padding: 0.75rem;
    background: #f8f9fa;
    text-align: center;
    font-weight: 500;
}

.category-image-attribution {
    padding: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-light);
    background: white;
    border-top: 1px solid var(--border);
}

.selected-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--primary);
    color: white;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--spacing-md);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   12. MODALS & OVERLAYS
   ============================================ */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.gallery-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-xl);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.gallery-close:hover {
    color: #ccc;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

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

.gallery-nav.prev {
    left: var(--spacing-xl);
}

.gallery-nav.next {
    right: var(--spacing-xl);
}

.gallery-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.gallery-slide {
    display: none;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-slide.active,
.gallery-slide[data-index="0"] {
    display: block;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    padding: 2rem 1.5rem 1rem;
    pointer-events: none;
}

.gallery-caption {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.gallery-attribution {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.gallery-attribution a {
    color: #93c5fd;
    text-decoration: none;
    pointer-events: auto;
}

.gallery-attribution a:hover {
    text-decoration: underline;
}

.gallery-counter {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.share-btn {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.copy {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

body.menu-open {
    overflow: hidden;
}


/* Add these NEW styles to your existing style.css */

/* Quick Add Modal Specific */
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Addresser autocomplete for Quick Add (reuse existing if you have it) */
.addresser-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.addresser-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.addresser-suggestion:hover {
    background: #f8f9fa;
}

.addresser-suggestion:last-child {
    border-bottom: none;
}

/* ============================================
   13. TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.admin-table thead {
    background: var(--bg);
}

.admin-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: var(--bg);
}

.status-badge,
.role-badge {
    display: inline-block;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-draft,
.status-pending {
    background: #FFF3E0;
    color: var(--warning);
}

.status-active,
.status-approved {
    background: #E8F5F2;
    color: var(--success);
}

.status-rejected {
    background: #FCE4E1;
    color: var(--danger);
}

.status-awaiting_approval {
    background: #E3F2FD;
    color: #1976D2;
}

.role-user {
    background: #E3F2FD;
    color: #1976D2;
}

.role-business {
    background: #F3E5F5;
    color: #7B1FA2;
}

.role-moderator {
    background: #FFF3E0;
    color: var(--warning);
}

.role-admin {
    background: #E8F5F2;
    color: var(--success);
}

/* ============================================
   14. AUTHENTICATION PAGES
   ============================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.auth-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

.auth-box h1 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--primary);
}

.auth-form {
    margin: var(--spacing-xl) 0;
}

.auth-link {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.auth-link a {
    color: var(--primary);
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.auth-links a {
    color: var(--primary);
}

/* ============================================
   15. HOME PAGE
   ============================================ */
.hero-home {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
    color: white;
    padding: 2.5rem var(--spacing-xl); /* REDUCED from 4rem */
    text-align: center;
    border-radius: var(--spacing-md);
    margin: var(--spacing-lg) 0 var(--spacing-lg) 0; /* REDUCED from xl */
}

.hero-home .hero-content h1 {
    font-size: 2rem; /* REDUCED from 2.5rem */
    margin-bottom: 0.75rem; /* REDUCED from var(--spacing-md) */
    font-weight: 700;
}

.hero-home .hero-content p {
    font-size: 1.1rem; /* REDUCED from 1.25rem */
    margin-bottom: 1.5rem; /* REDUCED from 2.5rem */
    opacity: 0.95;
}

.hero-location-form {
    max-width: 500px;
    margin: 0 auto var(--spacing-lg) auto;
}

.btn-location {
    width: 100%;
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base) ease;
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-location:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hero-alt-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--spacing-lg);
}

.hero-alt-action span {
    opacity: 0.8;
    font-size: 0.95rem;
}

.btn-text-link {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.btn-text-link:hover {
    border-bottom-color: white;
}

.quick-discovery {
    margin: var(--spacing-lg) 0; /* REDUCED from 2xl to lg */
    text-align: center;
}

.quick-discovery h2 {
    color: var(--text);
    margin-bottom: var(--spacing-md); /* REDUCED from lg */
    font-size: 1.35rem; /* REDUCED from 1.5rem */
}

.discovery-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* REDUCED from 0.75rem */
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.discovery-chip {
    display: inline-block;
    padding: 0.5rem 1rem; /* REDUCED from 0.75rem */
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--spacing-xl);
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem; /* REDUCED from 0.95rem */
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.discovery-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.promoted-section,
.upcoming-events-section,
.browse-categories-section,
.browse-locations-section {
    margin: var(--spacing-2xl) 0;
}

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

.section-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.75rem;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.view-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.activities-scroll {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

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

.activities-scroll::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.activities-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.activities-scroll .activity-card {
    flex: 0 0 280px;
    width: 280px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.event-card {
    display: flex;
    gap: var(--spacing-md);
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    color: var(--text);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

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

.event-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.event-date-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--spacing-md);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

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

.category-card-home {
    background: white;
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.category-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon-large {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

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

.location-card-home {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    color: var(--text);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.location-card-home:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.business-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
    color: white;
    padding: 4rem var(--spacing-xl);
    border-radius: var(--spacing-md);
    margin: 4rem 0 var(--spacing-xl) 0;
    text-align: center;
}

.business-cta h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
}

.business-cta-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   16. BROWSE & FILTER PAGES
   ============================================ */
.browse-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.browse-header {
    text-align: center;
    margin-bottom: 2rem;
}

.browse-header h1 {
    margin: 0;
}

.browse-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.browse-controls .view-toggle {
    order: 1;
}

.browse-controls .result-count {
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
    text-align: right;
}

.browse-controls .sort-control {
    order: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px; /* NEW - ensure enough width */
}

.browse-controls .sort-control label {
    white-space: nowrap; /* NEW - prevent label wrapping */
}

/* Compact browse header - reuses existing spacing variables */
.browse-header-compact {
    margin-bottom: 1.5rem;
}

.browse-header-compact .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.browse-header-compact h1 {
    margin: 0;
    flex: 1;
}

.browse-header-compact .header-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.browse-header-compact .intro-text {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .browse-header-compact .header-content h1 {
        font-size: 1.4rem;
    }
    
    .browse-header-compact .header-icon {
        font-size: 2rem;
    }
}

.view-toggle {
    display: flex;
    gap: var(--spacing-sm);
}

.view-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid #ddd;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.view-btn:hover {
    border-color: var(--primary);
    background: rgba(63, 177, 206, 0.1); /* Light teal background */
}

.view-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

#gridView,
#mapView {
    margin-top: 2rem;
}

.page-intro {
    margin: 0 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.category-intro,
.state-intro,
.city-intro {
    line-height: 1.6;
}

.intro-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.intro-lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.intro-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
}

.intro-description p {
    margin-bottom: 1rem;
}

.city-stats {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-activities-input,
input[type="text"][placeholder*="Activity name"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-activities-input:focus,
input[type="text"][placeholder*="Activity name"]:focus {
    outline: none;
    border-color: #3FB1CE;
    box-shadow: 0 0 0 3px rgba(63, 177, 206, 0.1);
}



/* ============================================
   HERO WITH ACTIONS - SIDE BY SIDE LAYOUT
   Add after line 1855 (before existing .activity-view rules)
   ============================================ */

/* Hero with Actions - Side by Side Container */
.hero-with-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 60% image, 40% actions */
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

/* Hero Column (Left) - Sticky Image */
.hero-column {
    position: sticky;
    top: 80px; /* Adjust based on navbar height */
    align-self: start;
}

.hero-column .hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.hero-column .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-column .hero-image:hover .hero-img {
    transform: scale(1.02);
}

/* Actions Column (Right) */
.actions-column {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.actions-column h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Primary Actions */
.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-large {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Secondary Actions */
.secondary-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.action-link {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-link:hover {
    background: #f9fafb;
    border-color: #3FB1CE;
    color: #3FB1CE;
}

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

/* Quick Info Panel */
.quick-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.info-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.info-card:hover {
    background: #f3f4f6;
}

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

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

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.938rem;
    color: #1f2937;
    line-height: 1.4;
}

.info-value a {
    color: #3FB1CE;
    text-decoration: none;
    font-weight: 500;
}

.info-value a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE - MOBILE/TABLET
   Add to existing @media queries section
   ============================================ */

/* Tablet - Stack Layout */
@media (max-width: 992px) {
    .hero-with-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-column {
        position: relative;
        top: 0;
    }
    
    .hero-column .hero-image {
        height: 400px;
    }
    
    .actions-column h1 {
        font-size: 1.75rem;
    }
}

/* Mobile - Smaller Image */
@media (max-width: 768px) {
    .hero-column .hero-image {
        height: 300px;
    }
    
    .actions-column {
        padding: 1.5rem;
    }
    
    .actions-column h1 {
        font-size: 1.5rem;
    }
    
    .secondary-actions {
        flex-direction: column;
    }
    
    .action-link {
        min-width: 0;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .action-link .action-icon {
        font-size: 1.125rem;
    }
}



/* ============================================
   17. ACTIVITY DETAIL PAGES
   ============================================ */
.activity-view {
    max-width: 1200px;
    margin: var(--spacing-xl) auto;
}

.action-bar {
    position: sticky;
    top: 60px; /* Adjust based on your navbar height */
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.action-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-secondary {
    display: flex;
    gap: 0.5rem;
}

.share-btn, .report-btn {
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

.share-btn:hover, .report-btn:hover {
    color: #3FB1CE;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

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

.detail-card {
    background: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.detail-card h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

/* Meta chips container */
.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Base chip styling - updated */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.chip:hover {
    background: #e5e7eb;
}

/* Free chip - green theme (KEEP THIS - it's good) */
.chip.free {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

/* Paid chip - subtle (UPDATED - less emphasis) */
.chip.paid {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* Stats chips - neutral */
.chip:has(👁️), .chip:has(❤️) {
    background: white;
    border-color: #d1d5db;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-age {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.tag-age:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.tag-feature {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #a5b4fc;
}

.tag-feature:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}



.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3FB1CE 0%, #2d8ca8 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(63, 177, 206, 0.2);
}

.category-tag {
    display: inline-block;
    background: var(--bg);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.activity-header {
    margin-bottom: 2rem;
}

/* Title */
.activity-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .activity-header h1 {
        font-size: 2.5rem;
    }
}

.location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}


.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.info-item .label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.info-item .value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}


.quick-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-info p {
    margin: 0.25rem 0;
    color: #4b5563;
    line-height: 1.5;
}

.location-info p strong {
    color: #1f2937;
    font-weight: 600;
}
.map-card {
    padding: 0;
    overflow: hidden;
}

#map {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.leaflet-marker-draggable {
    cursor: move;
}


.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    padding: 0;
}

.activity-popup .popup-btn {
    color: white !important;
}

.leaflet-popup-content .btn-primary {
    color: white !important;
}

/* ==================== Custom Leaflet Markers ==================== */

/* Wrapper for custom marker */
.custom-marker-icon {
    background: none !important;
    border: none !important;
}


/* Active/Selected marker state */
.custom-marker-icon.active .marker-circle,
.custom-marker-icon:hover .marker-circle {
    background: var(--primary-dark); /* ← Use CSS variable */
    transform: scale(1.2);
}

.marker-circle {
    width: 24px;
    height: 24px;
    background: var(--primary); /* ← Use CSS variable */
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast) ease;
}

.marker-circle:hover {
    transform: scale(1.15);
    background: var(--primary-dark); /* ← Use CSS variable */
    box-shadow: 0 3px 12px rgba(63, 177, 206, 0.4);
}

.marker-inner {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.custom-marker-icon:hover .marker-circle {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}
/* Pin shape */
.marker-pin {
    width: 35px;
    height: 50px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary) !important; /* ← Use CSS variable */
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -25px 0 0 -17px;
    border: 4px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition-fast) ease;
}

/* White dot in center of pin */
.marker-pin::after {
    content: '';
    width: 18px;
    height: 18px;
    margin: 8px 0 0 8px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

/* Hover effect for markers */
.custom-marker-icon:hover .marker-pin {
    transform: rotate(-45deg) scale(1.1);
}

/* ==================== Cluster Markers ==================== */

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: color-mix(in srgb, var(--primary) 60%, transparent) !important;
    border: 4px solid #fff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
   background: color-mix(in srgb, var(--primary) 80%, transparent) !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 15px !important;
}

/* Make clusters bigger */
.marker-cluster {
    width: 55px !important;
    height: 55px !important;
    margin-left: -27px !important;
    margin-top: -27px !important;
}

.marker-cluster div {
    width: 47px !important;
    height: 47px !important;
    margin-left: 4px !important;
    margin-top: 4px !important;
    line-height: 47px !important;
}

/* ==================== Search Input Styling ==================== */

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3FB1CE;
    box-shadow: 0 0 0 3px rgba(63, 177, 206, 0.1);
}

/* Also style location input if it doesn't already have a class */
#locationSearch {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#locationSearch:focus {
    outline: none;
    border-color: #3FB1CE;
    box-shadow: 0 0 0 3px rgba(63, 177, 206, 0.1);
}


.popup-btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #3b82f6;
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background var(--transition-fast) ease;
}

.popup-btn:hover {
    background: #2563eb;
}

.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.related-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

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

.related-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #3FB1CE;
}

.related-image {
    height: 180px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.related-body {
    padding: 1.25rem;
}

.related-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.related-location {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.related-meta {
    color: #059669;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.related-card .btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   18. PROFILE & ADMIN PAGES
   ============================================ */
.profile-container,
.admin-container {
    max-width: 1200px;
    margin: var(--spacing-xl) auto;
}

.profile-menu,
.status-tabs {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.profile-menu-item,
.status-tab {
    padding: 0.75rem var(--spacing-md);
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.profile-menu-item:hover,
.status-tab:hover {
    color: var(--primary);
}

.profile-menu-item.active,
.status-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

.stat-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

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

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary);
}

.moderation-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--warning);
    box-shadow: var(--shadow-md);
}

.moderation-images {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

.mod-image-item {
    position: relative;
    width: 120px;
}

.mod-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid #ddd;
}

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

/* ============================================
   19. FOOTER
   ============================================ */
.footer {
    background: #2C3E50;
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #BDC3C7;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #BDC3C7;
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.view-all-center {
    text-align: center;
    margin-top: var(--spacing-xl);
}

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

/* ============================================
   21. RESPONSIVE DESIGN (CONSOLIDATED)
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .navbar-menu {
        gap: var(--spacing-md);
    }
    
    .category-image-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .navbar-toggle {
        display: flex;
        order: 3;
    }
    
    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        padding: var(--spacing-md) 0;
        z-index: 999;
        overflow-y: auto;
        box-shadow: inset 0 7px 9px -7px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu .nav-link {
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-user {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        display: block;
        background: transparent;
    }
    
    .navbar-toggle.active .navbar-toggle-icon:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .navbar-toggle.active .navbar-toggle-icon:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active .navbar-toggle-icon:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .browse-container {
        grid-template-columns: 1fr;
    }
    
    .browse-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .browse-controls .view-toggle,
    .browse-controls .sort-control,
    .browse-controls .result-count {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        order: unset;
    }
    
    .browse-controls .result-count {
        text-align: left;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-home {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
    
    .hero-home .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .category-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 200px;
    }
    
    #map {
        height: 500px;
    }
    
    .gallery-nav {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1.5rem;
    }
    
    .gallery-nav.prev {
        left: var(--spacing-sm);
    }
    
    .gallery-nav.next {
        right: var(--spacing-sm);
    }
    
    .addresser-suggestions {
        max-height: 250px;
    }
    
    .action-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons,
    .action-secondary {
        width: 100%;
    }
    
    .share-btn,
    .report-btn {
        flex: 1;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-home .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .category-grid-home {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 400px;
    }
    
    .location-input-group {
        flex-wrap: wrap;
    }
    
    .location-input-group .filter-input {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* ============================================
   18. PROFILE & ADMIN PAGES
   ============================================ */

/* Admin Dashboard Styles */
.admin-header {
    margin-bottom: var(--spacing-xl);
}

.admin-header h1 {
    margin-bottom: var(--spacing-sm);
}

.admin-header p {
    color: var(--text-light);
}

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

.admin-section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

/* Activity Quick Search */
.activity-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
}

.activity-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.activity-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
    color: #999;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: -8px;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

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

.search-result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.search-result-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.search-result-actions a,
.search-result-actions button {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-actions .btn-view {
    background: var(--primary);
    color: white;
}

.search-result-actions .btn-view:hover {
    background: var(--primary-dark);
}

.search-result-actions .btn-edit {
    background: #6c757d;
    color: white;
}

.search-result-actions .btn-edit:hover {
    background: #545b62;
}

.search-result-actions .btn-delete {
    background: #dc3545;
    color: white;
}

.search-result-actions .btn-delete:hover {
    background: #c82333;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Primary Actions Grid */
.primary-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.primary-action-card {
    display: flex;
    align-items: center;
    padding: 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.primary-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    text-decoration: none;
}

.primary-action-card .action-icon {
    font-size: 48px;
    margin-right: 20px;
}

.primary-action-card .action-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.primary-action-card .action-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.primary-action-card .badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #ff6b6b;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Secondary Links Grid */
.secondary-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.secondary-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    position: relative;
}

.secondary-link:hover {
    background: #e9ecef;
    text-decoration: none;
    color: var(--primary);
}

.secondary-link .icon {
    font-size: 24px;
    margin-right: 12px;
}

.secondary-link .text {
    font-size: 14px;
    font-weight: 500;
}

/* Existing admin styles continue below... */
.profile-container,
.admin-container {
    max-width: 1200px;
    margin: var(--spacing-xl) auto;
}


/* ============================================
   HOME PAGE - STATE TABS & FILTERING
   ============================================ */

.state-tabs-section {
    background: white;
    padding: 1rem 0; /* REDUCED from 1.5rem */
    margin-bottom: 1.5rem; /* REDUCED from 2rem */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 12px;
}


.state-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.state-tabs-container::-webkit-scrollbar {
    height: 6px;
}

.state-tabs-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.state-tabs-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.state-tabs {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    min-width: min-content;
    justify-content: center
}


.state-tab {
    padding: 0.625rem 1.5rem; /* REDUCED from 0.875rem 2rem */
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: #495057;
    font-size: 0.9rem; /* REDUCED from 1rem */
    text-decoration: none;
    display: inline-block;
}

.state-tab:hover {
    background: rgba(63, 177, 206, 0.1); /* Light teal background */
    border-color: var(--primary);
    transform: translateY(-1px);
}

.state-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(63, 177, 206, 0.3);
}


/* ============================================
   HORIZONTAL SCROLL - CATEGORIES & LOCATIONS
   ============================================ */

.categories-scroll,
.locations-scroll {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

.categories-scroll::-webkit-scrollbar,
.locations-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track,
.locations-scroll::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.categories-scroll::-webkit-scrollbar-thumb,
.locations-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
}

/* Fixed width cards */
.categories-scroll .category-card-home {
    flex: 0 0 160px;
    width: 160px;
}

.locations-scroll .location-card-home {
    flex: 0 0 200px;
    width: 200px;
}

@media (max-width: 768px) {
    .categories-scroll .category-card-home {
        flex: 0 0 140px;
        width: 140px;
    }
    
    .locations-scroll .location-card-home {
        flex: 0 0 180px;
        width: 180px;
    }
}

/* Section header with actions */
.section-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Scroll buttons */
.scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scroll-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
    .scroll-btn {
        display: none;
    }
}

/* Filtered Banner */
.filtered-banner {
    background: #e6f3ff;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.filtered-banner strong {
    color: var(--primary);
}

.clear-filter {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .state-tab {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}


/* ============================================
   END STYLESHEET
   ============================================ */


   .btn-xs.checking {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.btn-xs.checking::after {
    content: '⏳';
    position: absolute;
    right: -18px;
    animation: spin 1s linear infinite;
}

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




/* Content formatting inside activity descriptions */
.content-main ul,
.content-main ol {
    margin-left: 1.5rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.content-main ul {
    list-style-type: disc;
}

.content-main ol {
    list-style-type: decimal;
}

.content-main li {
    margin-bottom: 0.5rem;
}

.content-main h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* First h3 shouldn't have top margin */
.content-main h3:first-child {
    margin-top: 0;
}

/* Tables */
.content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content-main table th,
.content-main table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.content-main table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.content-main table tr:nth-child(even) {
    background-color: #fafafa;
}

/* ============================================
   HOME PAGE - HORIZONTAL SCROLL CAROUSELS
   Add this to the end of your style.css
   ============================================ */

/* Section header with actions */
.section-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Scroll buttons */
.scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scroll-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Hide scroll buttons on touch devices */
@media (hover: none) and (pointer: coarse) {
    .scroll-btn {
        display: none;
    }
}

/* ============================================
   HORIZONTAL SCROLL CONTAINERS
   ============================================ */

.categories-scroll,
.locations-scroll,
.events-scroll,
.posts-scroll {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

.categories-scroll::-webkit-scrollbar,
.locations-scroll::-webkit-scrollbar,
.events-scroll::-webkit-scrollbar,
.posts-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track,
.locations-scroll::-webkit-scrollbar-track,
.events-scroll::-webkit-scrollbar-track,
.posts-scroll::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.categories-scroll::-webkit-scrollbar-thumb,
.locations-scroll::-webkit-scrollbar-thumb,
.events-scroll::-webkit-scrollbar-thumb,
.posts-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
}

/* Fixed width cards in scroll containers */
.categories-scroll .category-card-home {
    flex: 0 0 160px;
    width: 160px;
}

.locations-scroll .location-card-home {
    flex: 0 0 200px;
    width: 200px;
}

/* ============================================
   EVENTS SCROLL - Horizontal Cards
   ============================================ */

.events-scroll .event-card {
    flex: 0 0 320px;
    width: 320px;
}

/* ============================================
   BLOG POSTS - HOME PAGE
   ============================================ */

.blog-posts-section {
    margin: var(--spacing-2xl) 0;
}

.posts-scroll .post-card-home {
    flex: 0 0 280px;
    width: 280px;
}

.post-card-home {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

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

.post-image {
    height: 160px;
    overflow: hidden;
    background: var(--bg);
}

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

.post-card-home:hover .post-image img {
    transform: scale(1.05);
}

.post-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.post-image-placeholder span {
    font-size: 3rem;
}

.post-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-body h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-body p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .categories-scroll .category-card-home {
        flex: 0 0 140px;
        width: 140px;
    }
    
    .locations-scroll .location-card-home {
        flex: 0 0 180px;
        width: 180px;
    }
    
    .events-scroll .event-card {
        flex: 0 0 280px;
        width: 280px;
    }
    
    .posts-scroll .post-card-home {
        flex: 0 0 260px;
        width: 260px;
    }
    
    .scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}