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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* CSS Custom Properties */
:root {
    /* Colors - Natural Earth Tones */
    --primary: #2d5a27;
    --primary-light: #4a7c59;
    --primary-dark: #1a3d1a;
    --secondary: #8b4513;
    --secondary-light: #a0522d;

    /* Natural Background Colors */
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #ffffff;
    --bg-overlay: rgba(45, 90, 39, 0.1);

    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #8e9bae;
    --text-inverse: #ffffff;
    
    /* Status Colors */
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    
    /* Borders and Shadows */
    --border: #e1e8ed;
    --border-dark: #d0d7de;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* 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: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Natural Background Colors - Dark */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-overlay: rgba(45, 90, 39, 0.2);

    /* Text Colors - Dark */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --text-inverse: #000000;

    /* Borders and Shadows - Dark */
    --border: #404040;
    --border-dark: #4a4a4a;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Auto theme - follows system preference */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        /* Same as dark theme */
        --bg-primary: #121212;
        --bg-secondary: #1e1e1e;
        --bg-tertiary: #2a2a2a;
        --bg-overlay: rgba(45, 90, 39, 0.2);

        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --text-muted: #808080;
        --text-inverse: #000000;

        --border: #404040;
        --border-dark: #4a4a4a;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

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

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

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

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: 70px;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-brand i {
    margin-right: var(--spacing-sm);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--bg-overlay);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: var(--spacing-xs);
    border: 2px solid var(--primary);
}

.nav-username {
    font-weight: 500;
    color: var(--text-primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--text-inverse) !important;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--text-inverse) !important;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    padding: 0;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown-menu.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-overlay) 0%, transparent 100%);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-overlay);
    color: var(--primary);
}

.dropdown-item.text-danger {
    color: var(--error);
}

.dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
}

.dropdown-arrow {
    margin-left: var(--spacing-xs);
    transition: var(--transition);
}

.dropdown-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Navigation */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--spacing-sm) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    background: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-link {
    color: var(--primary);
    padding: var(--spacing-xs) 0;
}

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

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

.btn-full {
    width: 100%;
}

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

/* Hero Sections */
.hero-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--bg-overlay) 0%, transparent 100%);
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

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

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

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-overlay);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Landing Page */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    padding: var(--spacing-2xl) 0;
    max-width: 1200px;
    margin: 0 auto;
}

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

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-overlay);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

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

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

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-overlay);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.dashboard-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
}

.card-content {
    padding: var(--spacing-lg);
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
}

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

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.auth-logo i {
    font-size: 2rem;
}

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

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-xs);
}

.mode-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.mode-btn.active {
    background: var(--bg-tertiary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.mode-btn:hover:not(.active) {
    color: var(--primary);
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.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(45, 90, 39, 0.1);
}

.input-with-toggle {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.form-help {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-xl) 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 var(--spacing-md);
    font-size: 0.875rem;
}

/* WebAuthn Section */
.webauthn-section {
    margin-bottom: var(--spacing-xl);
}

.webauthn-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-tertiary);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        justify-content: flex-start;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        margin-top: var(--spacing-sm);
    }
    
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-icon {
        font-size: 4rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

/* Profile Page */
.profile-section {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-2xl);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.profile-avatar {
    margin-bottom: var(--spacing-xl);
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: var(--spacing-lg);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-info h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.profile-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

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

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

/* Page Layout */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.page-title h1 {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.page-title p {
    color: var(--text-muted);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* Filters Section */
.filters-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--bg-overlay);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.filter-btn i {
    font-size: 0.8rem;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) * 2.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Grid Layouts */
.hikes-grid,
.recipes-grid,
.transports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

/* Card Styles */
.hike-card,
.recipe-card,
.transport-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.hike-card:hover,
.recipe-card:hover,
.transport-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Recipe Card Specific */
.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.recipe-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.recipe-content {
    padding: var(--spacing-lg);
}

.recipe-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.recipe-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.recipe-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.recipe-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

.recipe-meta {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.recipe-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid var(--border);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

/* Hike Card Specific */
.hike-card {
    padding: var(--spacing-lg);
}

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

.hike-content h3 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-primary);
}

.hike-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.hike-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary);
    width: 14px;
}

.hike-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

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

/* Status and Badges */
.hike-status,
.recipe-status,
.status {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-planned { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.status-in_progress { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.status-completed { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.status-cancelled { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.difficulty {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.difficulty-easy { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.difficulty-moderate,
.difficulty-medium { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.difficulty-hard { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.category {
    background: var(--bg-overlay);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Dropdown in cards */
.hike-actions,
.card-actions {
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-overlay);
    border-color: var(--primary);
    color: var(--primary);
}

.dropdown.active .dropdown-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
    color: var(--primary);
}

.empty-state h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: var(--spacing-xl);
}

/* Transport specific styles */
.transports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.transport-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.transport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.transport-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.transport-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transport-type i {
    font-size: 1.25rem;
    color: var(--primary);
}

.type-badge {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.type-badge.type-car { background: #e3f2fd; color: #1976d2; }
.type-badge.type-bus { background: #f3e5f5; color: #7b1fa2; }
.type-badge.type-train { background: #e8f5e8; color: #388e3c; }
.type-badge.type-bike { background: #fff3e0; color: #f57c00; }
.type-badge.type-walk { background: #fce4ec; color: #c2185b; }
.type-badge.type-other { background: #f5f5f5; color: #757575; }

.transport-actions {
    display: flex;
    gap: 0.5rem;
}

.transport-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.transport-route {
    margin: 1rem 0;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.route-point i {
    font-size: 0.75rem;
}

.route-point span {
    font-weight: 500;
    color: var(--text);
}

.route-point small {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.route-line {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

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

.transport-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.transport-details .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.transport-details .detail-item i {
    color: var(--primary);
}

/* Transport view page */
.transport-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.transport-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.transport-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.detail-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
}

.route-display {
    margin: 1.5rem 0;
}

.route-point.departure .route-marker i { color: #4caf50; }
.route-point.arrival .route-marker i { color: #f44336; }

.route-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
    position: relative;
}

.route-path .route-line {
    width: 2px;
    height: 40px;
    background: var(--border);
    margin: 0.5rem 0;
}

.route-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: var(--text-muted);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.route-info strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

.details-grid .detail-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-content strong {
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.detail-content span {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
}

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

.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state-small i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state-small p {
    margin: 0;
    font-size: 0.9rem;
}

.transport-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

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

/* Dashboard specific styles */
.dashboard-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

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

.dashboard-item:hover {
    background-color: var(--bg-light);
}

.dashboard-item .item-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-item .item-content {
    flex: 1;
}

.dashboard-item .item-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-item .item-content h4 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dashboard-item .item-content h4 a:hover {
    color: var(--primary);
}

.dashboard-item .item-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-item .item-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-item .item-meta span {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state-small i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-small p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Dashboard grid layout improvements */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.dashboard-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card .card-header h2 i {
    color: var(--primary);
}

.dashboard-card .card-content {
    min-height: 200px;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    gap: 0.5rem;
}

.loading i {
    animation: spin 1s linear infinite;
}

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

/* Responsive dashboard styles */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-item {
        padding: 0.75rem;
    }
    
    .dashboard-item .item-icon {
        width: 35px;
        height: 35px;
    }
}

/* Creation Wizard Styles */
.wizard-modal {
    width: 90vw;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

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

.wizard-progress {
    padding: 1.5rem 2rem 1rem;
    background: white;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 33.33%;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-light);
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.step-indicator.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-indicator.completed {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.wizard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.wizard-step {
    max-width: 600px;
    margin: 0 auto;
}

.wizard-step h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--primary);
    font-size: 1.25rem;
}

.ingredient-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.ingredient-item input {
    flex: 1;
}

.btn-remove {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-remove:hover {
    background: #c82333;
}

.summary-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.summary-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary);
}

.summary-item {
    display: flex;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.summary-item strong {
    min-width: 120px;
    color: var(--text);
}

.summary-item span {
    color: var(--text-muted);
}

.wizard-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.wizard-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal backdrop for wizard */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Quick action buttons */
.quick-create-actions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.quick-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.quick-create-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
    color: white;
}

/* Responsive wizard styles */
@media (max-width: 768px) {
    .wizard-modal {
        width: 95vw;
        height: 90vh;
    }
    
    .wizard-header,
    .wizard-progress,
    .wizard-content,
    .wizard-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .wizard-content {
        padding: 1rem;
    }
    
    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .wizard-footer {
        flex-direction: column;
    }
    
    .quick-create-actions {
        flex-direction: column;
    }
}

/* Address Autocomplete Styles */
.address-autocomplete-wrapper {
    position: relative;
}

.address-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.address-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

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

.address-autocomplete-item:hover,
.address-autocomplete-item.selected {
    background-color: var(--bg-light);
}

.address-autocomplete-item.selected {
    border-left: 3px solid var(--primary);
}

.address-main {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

.address-coordinates {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.address-autocomplete-loading,
.address-autocomplete-error,
.address-autocomplete-no-results {
    padding: 0.75rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.address-autocomplete-loading i {
    margin-right: 0.5rem;
    color: var(--primary);
}

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

.address-autocomplete-error i {
    margin-right: 0.5rem;
}

.address-autocomplete-no-results i {
    margin-right: 0.5rem;
    opacity: 0.5;
}

/* Input styles when autocomplete is active */
.address-autocomplete-wrapper input:focus {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.address-autocomplete-wrapper input:focus + .address-autocomplete-results {
    border-color: var(--primary);
}

/* Location icon for inputs with autocomplete */
.location-input-wrapper {
    position: relative;
}

.location-input-wrapper::before {
    content: '\f041'; /* FontAwesome map-marker-alt */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.location-input-wrapper input {
    padding-left: 2.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .address-autocomplete-results {
        max-height: 200px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .address-autocomplete-item {
        padding: 0.625rem 0.75rem;
    }
    
    .address-main {
        font-size: 0.9rem;
    }
    
    .address-sub {
        font-size: 0.8rem;
    }
}

/* Responsive transport styles */
@media (max-width: 768px) {
    .transport-details-container {
        grid-template-columns: 1fr;
    }
    
    .transports-grid {
        grid-template-columns: 1fr;
    }
    
    .transport-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HIKE VIEW REDESIGN STYLES ===== */

/* Hero Section */
.hike-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D5016 0%, #4A7C59 50%, #7D8471 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(45, 80, 22, 0.8) 0%,
        rgba(74, 124, 89, 0.6) 50%,
        rgba(125, 132, 113, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.hero-breadcrumb a:hover {
    color: white;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

.hero-btn.primary {
    background: #2D5016;
    border-color: #2D5016;
}

.hero-btn.primary:hover {
    background: #1f3b0f;
    border-color: #1f3b0f;
}

/* Tab Navigation */
.content-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #2D5016;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(45, 80, 22, 0.05);
}

.tab-btn.active {
    color: #2D5016;
    background: rgba(45, 80, 22, 0.1);
}

.tab-btn.active::after {
    width: 60%;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.overview-main {
    space-y: 2rem;
}

.overview-sidebar {
    space-y: 1.5rem;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(45, 80, 22, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
    background: rgba(45, 80, 22, 0.02);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: #2D5016;
    font-size: 1.1rem;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

.card-body p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

/* Itinerary Styles */
.itinerary-timeline {
    position: relative;
    padding-left: 2rem;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2D5016, #4A7C59);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(45, 80, 22, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: #2D5016;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.2);
}

.timeline-time {
    font-weight: 600;
    color: #2D5016;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-description {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tech Specs */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    text-align: center;
    padding: 1rem;
    background: rgba(45, 80, 22, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(45, 80, 22, 0.1);
}

.spec-icon {
    font-size: 1.5rem;
    color: #2D5016;
    margin-bottom: 0.5rem;
}

.spec-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.weather-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.weather-desc {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.participant-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(45, 80, 22, 0.1);
    transition: all 0.3s ease;
}

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

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

.participant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2D5016;
}

.participant-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.participant-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.participant-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: #2D5016;
    font-size: 1.1rem;
}

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

.participant-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(45, 80, 22, 0.2);
    background: rgba(45, 80, 22, 0.05);
    color: #2D5016;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(45, 80, 22, 0.1);
    border-color: rgba(45, 80, 22, 0.3);
}

/* Maps Integration */
.map-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(45, 80, 22, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Logistics Cards */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.logistics-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(45, 80, 22, 0.1);
}

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

.logistics-icon {
    font-size: 1.5rem;
    color: #2D5016;
}

.logistics-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.logistics-details {
    space-y: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.detail-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hike-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badges {
        gap: 0.5rem;
    }
    
    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stat-value {
        font-size: 1.3rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-btn {
        justify-content: center;
        width: 100%;
    }
    
    .content-tabs {
        position: relative;
        top: auto;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .content-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-header {
        padding: 1rem 1.5rem 0.75rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .itinerary-timeline {
        padding-left: 1.5rem;
    }
    
    .itinerary-timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
    
    .tech-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .spec-item {
        padding: 0.75rem;
    }
    
    .participants-grid {
        grid-template-columns: 1fr;
    }
    
    .logistics-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }
    
    .hero-stat-value {
        font-size: 1.2rem;
    }
    
    .tech-specs {
        grid-template-columns: 1fr;
    }
    
    .participant-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .participant-stats {
        justify-content: space-around;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.loader-content p {
    margin-top: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.info {
    border-left: 4px solid var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}