:root {
    --bg-main: #FFFFFF;        /* white background */
    --bg-section: #F9F9F9;   /* light gray section */
    --primary: #1C1C1C;       /* primary text */
    --secondary: #6B6B6B;     /* secondary text */
    --accent: #50B04F;        /* green accent */
    --border: #EAEAEA;        /* light border */
    --white: #FFFFFF;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--primary);
    line-height: 1.6;
    padding-top: 0;
    margin: 0;
    letter-spacing: 0.3px;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Tripoto Inspired */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 4%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 24px;
    color: var(--accent); /* Coral accent */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    
.brand-text h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}
    
.brand-text p {
    font-size: 10px;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    gap: 15px; /* Reduced spacing for mobile */
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 6px 0;
    display: block;
    position: relative;
    text-transform: none;
    letter-spacing: 0.3px;
}

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

.nav-menu a.active {
    border-bottom: 2px solid var(--accent);
}

.btn-login {
    color: var(--primary) !important;
    padding: 6px 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
    background: none;
    text-decoration: none;
    font-size: 14px;
}
    
.btn-artisan-outline {
    background: transparent;
    color: var(--accent) !important;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
}

.btn-login:hover, .btn-artisan:hover {
    transform: translateY(-3px);
}

.btn-artisan:hover {
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #D8C9A7;
    margin: 3px 0;
    transition: 0.3s;
    /* Removed border radius */
    border-radius: 0px;
}

/* Page Sections */
.page-section {
    display: none;
    padding: 20px 0;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-text);
    font-size: 1.2rem;
    font-style: italic;
}

.page-section.active {
    display: block;
    min-height: calc(100vh - 160px); /* Adjusted to account for header and additional spacing */
    height: auto; /* Allow height to adjust based on content */
    overflow: visible; /* Ensure content is visible */
    padding-top: 20px; /* Add some top padding */
}

/* Hero Section - Tripoto Inspired */
.hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://i.pinimg.com/1200x/83/c3/48/83c34846659abb1a4744f3ba9b8e8afd.jpg') center/cover;
    padding: 70px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: visible;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 100%;
    width: 90%;
    max-width: 900px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* Dark overlay for better text contrast */
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    background: var(--white);
}

.search-container input {
    flex: 1;
    width: 100%;
    padding: 14px 18px;
    border: none;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--primary);
}

.search-container input:focus {
    box-shadow: 0 0 0 2px var(--accent);
}

.search-btn {
    padding: 14px 25px;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    border-radius: 0 8px 8px 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #e55a50;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
}

.back-btn {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: var(--bg-section);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.categories {
    padding: 40px 0 20px 0;
    background: var(--bg-main);
}

.categories h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.categories p {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.scroll-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0 5px;
}

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

.category-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    position: relative;
    flex-grow: 1;
    padding: 0 10px;
}

.category-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

/* Gradient indicators for horizontal scroll */
.category-grid::before,
.category-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.category-grid.at-start::before {
    opacity: 0;
}

.category-grid.at-end::after {
    opacity: 0;
}

.category-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.category-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 0 0 auto; /* Don't grow or shrink */
    width: 220px;
    height: 160px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

.category-card p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.featured {
    padding: 60px 0;
    background: var(--bg-main);
}

.featured h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.featured p {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover img {
    transform: scale(1.03);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.card-content p {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.rating .stars {
    display: flex;
    gap: 2px;
}

.rating .stars i {
    color: #FF9800;
    font-size: 1rem;
}

.rating .stars i.empty {
    color: #ddd;
}

.rating .distance {
    margin-left: auto;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.category {
    display: inline-block;
    background: var(--bg-section);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.sustainability {
    padding: 60px 0;
    background: var(--bg-main);
}

.sustainability h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.sustainability p {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sustainability-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.sustainability-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.sustainability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sustainability-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.sustainability-card:hover img {
    transform: scale(1.03);
}

.sustainability-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.sustainability-card p {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 1rem;
}

/* Support Local Section with Rich Cultural Colors */
.support-local {
    padding: 80px 20px;
    background: linear-gradient(135deg, #d32f2f 0%, #e64a19 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-local::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), 
                      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.support-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.support-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 111, 97, 0.3);
    letter-spacing: 0.3px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #e55a50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
}

/* Crowd Diversion Section */
.crowd-diversion {
    padding: 80px 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.crowd-diversion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), 
                      radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.crowd-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.crowd-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: var(--bg-section);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.3px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Explore Page Filters */
.explore-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.explore-filters select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    font-size: 0.9rem;
    min-width: 180px;
    transition: all 0.3s ease;
    color: var(--primary);
    cursor: pointer;
}

.explore-filters select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2);
}

/* Artisans Grid */
.artisans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Maps Section */
.maps-container {
    margin-top: 20px;
}

.map-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

#main-map {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer with Traditional Elements */
.footer {
    background: linear-gradient(to right, #5d4037, #4e342e);
    color: #d7ccc8;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

/* Admin Panel Styles */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #5d4037;
    font-size: 1rem;
}

.stat-card p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: #d32f2f;
}

.admin-controls {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.control-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.admin-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.admin-listing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
}

.admin-listing-card h4 {
    margin-top: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #d32f2f, #ffd54f, #d32f2f);
}

.footer p {
    font-size: 1rem;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-section);
    margin: 5% auto;
    padding: 30px;
    /* Reduced border radius */
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--border-soft);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-height: 80vh; /* Limit height to viewport */
    overflow-y: auto; /* Enable vertical scrolling */
}

.role-selector {
    text-align: center;
    margin-top: 20px;
}

.role-selector p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.role-option {
    background: var(--bg-section);
    border: 2px solid var(--border-soft);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.role-option:hover {
    border-color: var(--accent);
    background: #FEFCF7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.role-option i {
    font-size: 1.8rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.role-option h3 {
    margin: 0 0 5px 0;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.artisan-details {
    max-width: 700px;
    max-height: 80vh; /* Limit height to viewport */
    overflow-y: auto; /* Enable vertical scrolling */
}

.close {
    color: var(--primary);
    float: right;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    background: var(--bg-section);
    color: var(--accent);
    transform: scale(1.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2);
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

.details-grid {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.detail-item {
    padding: 15px;
    background: linear-gradient(to right, #fff3e0, #ffe0b2);
    /* Reduced border radius */
    border-radius: 8px;
    border-left: 4px solid #ffd54f;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 10px 5%;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .categories h2,
    .featured h2,
    .sustainability h2 {
        font-size: 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        background: var(--white);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .support-content h2,
    .crowd-content h2 {
        font-size: 2rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .back-btn {
        align-self: flex-start;
    }
    
    .explore-filters {
        flex-direction: column;
    }
    
    .explore-filters select {
        min-width: 100%;
    }
    
    .map-controls {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        background: #FFFFFF;
        flex-direction: column;
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        color: var(--primary);
        text-decoration: none;
        border-left: 3px solid transparent;
    }
    
    .nav-menu a:hover {
        background-color: var(--bg-section);
        border-left: 3px solid var(--accent);
    }
    
    .nav-menu a.active {
        border-left: 3px solid var(--accent);
        background-color: var(--bg-section);
    }
    
    .nav-menu #main-login-btn {
        margin: 15px 20px 10px 20px;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 10px;
        display: block;
        text-align: center;
    }
    
    .nav-menu #artisan-login-btn {
        background: var(--accent);
        color: white !important;
        border: none;
        border-radius: 4px;
        padding: 12px;
        display: block;
        text-align: center;
        margin: 0 20px;
        width: calc(100% - 40px);
    }
    
    .close-menu {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        color: var(--primary);
    }
    
    .hero {
        padding-top: 90px; /* Account for fixed navbar */
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }
    
    .category-card {
        width: 100%;
        margin: 0 0 15px 0;
        padding: 20px 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-card img {
        height: 180px;
    }
    
    .sustainability-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sustainability-card img {
        height: 180px;
    }
    
    .search-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .search-container input {
        min-width: 70%;
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .search-btn {
        min-width: 30%;
        padding: 12px 10px;
        font-size: 14px;
    }
        
    .nav-menu {
        flex-direction: column;
        gap: 5px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--White);
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        z-index: 1000;
    }
        
    .nav-menu a {
        font-size: 15px;
        padding: 8px;
        display: block;
    }
    
    .nav-menu #main-login-btn {
        margin-top: 10px;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 10px;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .nav-menu #artisan-login-btn {
        background: var(--accent);
        color: white !important;
        border: none;
        border-radius: 4px;
        padding: 10px;
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 5px;
    }
        
    .hamburger {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
        
    .hamburger .bar {
        height: 3px;
        width: 25px;
        background-color: var(--primary);
        margin: 4px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
        
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
        
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
        
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        padding: 50px 15px;
        min-height: 350px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin: 0 0 8px 0;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin: 0 0 15px 0;
        line-height: 1.4;
    }
    
    .hero-content {
        padding: 0 10px;
        gap: 10px;
    }
    
    .featured-card {
        border-radius: 10px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header div {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
    
    .explore-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .explore-filters select {
        width: 100%;
    }
    
    .maps-container {
        margin-top: 20px;
    }
    
    #main-map {
        height: 300px;
    }
    
    .map-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .map-controls button {
        flex: 1;
        min-width: 45%;
        margin-bottom: 5px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* General modal scrolling */
.modal-content-with-scroll {
    max-height: 80vh;
    overflow-y: auto;
}

/* Image Preview Styles */
.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group input[type="file"] {
    border: 2px dashed #d7ccc8;
    border-radius: 8px;
    padding: 15px;
    background: #fffaf0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #d32f2f;
    background: #fff8e1;
}