
        :root {
            --primary: #004000;
            --primary-light: #e6f2e6;
            --secondary: #d4a017;
            --accent: #28a745;
            --dark: #1a1a1a;
            --light: #f8f9fa;
            --gray: #6c757d;
            --border: #dee2e6;
            --danger: #dc3545;
            --success: #28a745;
        }

.flea-market-page {
            padding: 5rem 0;
            background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
        }

        /* Header Styles */
        .page-header {
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
        }

        .page-header h1 {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1rem;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .page-header p {
            font-size: 1.2rem;
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto 2rem;
            line-height: 1.6;
        }

        .divider {
            width: 100px;
            height: 4px;
            background: var(--secondary);
            margin: 0 auto;
            border-radius: 2px;
        }

        /* Stats Container */
        .stats-container {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 3rem 0;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
            padding: 1.5rem 2rem;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            min-width: 150px;
            transition: transform 0.3s;
        }

        .stat-item:hover {
            transform: translateY(-5px);
        }

        .stat-number {
            display: block;
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Market Grid */
        .market-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2.5rem;
            margin: 3rem 0;
        }

        @media (max-width: 768px) {
            .market-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        /* Market Card */
        .market-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            position: relative;
        }

        .market-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 64, 0, 0.15);
        }

        .card-image {
            position: relative;
            height: 200px;
            overflow: hidden;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

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

        .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 50%, rgba(0, 64, 0, 0.1));
        }

        .status-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 2;
        }

        .status-open {
            background: var(--success);
            color: white;
        }

        .status-closed {
            background: var(--gray);
            color: white;
        }

        .status-cancelled {
            background: var(--danger);
            color: white;
        }

        .date-badge {
            position: absolute;
            bottom: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            z-index: 2;
        }

        .card-content {
            padding: 1.8rem;
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.4;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .card-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s;
        }

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

        .card-meta {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
        }

        .meta-item {
            display: flex;
            align-items: flex-start;
            gap: 0.8rem;
            color: var(--gray);
            font-size: 0.95rem;
        }

        .meta-item i {
            color: var(--secondary);
            font-size: 1.1rem;
            min-width: 20px;
        }

        .card-description {
            color: var(--gray);
            line-height: 1.6;
            margin-bottom: 1.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
        }

        .btn-details {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            padding: 0.6rem 1.2rem;
            border-radius: 6px;
            transition: all 0.3s;
            background: var(--primary-light);
        }

        .btn-details:hover {
            background: var(--primary);
            color: white;
            transform: translateX(5px);
        }

        .btn-details i {
            font-size: 0.9rem;
            transition: transform 0.3s;
        }

        .btn-details:hover i {
            transform: translateX(3px);
        }

        .days-left {
            font-size: 0.9rem;
            font-weight: 600;
            padding: 0.4rem 0.8rem;
            border-radius: 4px;
            background: var(--light);
            color: var(--gray);
        }

        .days-left.urgent {
            background: #fff3cd;
            color: #856404;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            margin: 2rem 0;
        }

        .empty-state i {
            font-size: 4rem;
            color: var(--primary-light);
            margin-bottom: 1.5rem;
        }

        .empty-state h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.8rem;
        }

        .empty-state p {
            color: var(--gray);
            font-size: 1.1rem;
            max-width: 500px;
            margin: 0 auto;
        }

        /* Filter Tabs */
        .filter-tabs {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 2rem 0 3rem;
            flex-wrap: wrap;
        }

        .filter-tab {
            padding: 0.6rem 1.5rem;
            background: white;
            border: 2px solid var(--border);
            border-radius: 30px;
            color: var(--gray);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .filter-tab:hover,
        .filter-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* Call to Action */
        .cta-section {
            background: var(--primary);
            color: white;
            padding: 4rem 2rem;
            border-radius: 12px;
            text-align: center;
            margin: 4rem 0;
        }

        .cta-section h2 {
            font-size: 2.2rem;
            margin-bottom: 1rem;
        }

        .cta-section p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .btn-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            background: white;
            color: var(--primary);
            padding: 1rem 2.5rem;
            border-radius: 8px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 1.1rem;
        }

        .btn-cta:hover {
            background: var(--secondary);
            color: white;
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .market-grid {
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .flea-market-page {
                padding: 3rem 0;
            }

            .page-header h1 {
                font-size: 2.2rem;
            }

            .stats-container {
                gap: 1rem;
            }

            .stat-item {
                min-width: 120px;
                padding: 1rem 1.5rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .card-content {
                padding: 1.5rem;
            }

            .card-title {
                font-size: 1.3rem;
            }

            .cta-section {
                padding: 3rem 1.5rem;
            }

            .cta-section h2 {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 480px) {
            .page-header h1 {
                font-size: 1.8rem;
            }

            .filter-tabs {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 0.5rem;
            }

            .card-actions {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }
        }

        /* Loading Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.6s ease forwards;
        }

        .market-detail-page {
            padding: 4rem 0;
            background: #f9f9f9;
        }

        .market-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* Market Header */
        .market-header {
            background: white;
            border-radius: 12px;
            padding: 2.5rem;
            margin-bottom: 2.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            position: relative;
            border-top: 4px solid var(--secondary);
        }

        .market-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .market-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: var(--gray);
            font-size: 0.95rem;
        }

        .meta-item i {
            color: var(--secondary);
            font-size: 1.1rem;
        }

        .status-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 0.5rem 1.2rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-open {
            background: var(--success);
            color: white;
        }

        .status-closed {
            background: var(--gray);
            color: white;
        }

        .status-cancelled {
            background: var(--danger);
            color: white;
        }

        .deadline-info {
            background: var(--warning);
            color: #856404;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .deadline-info.closed {
            background: var(--light);
            color: var(--gray);
        }

        /* Market Content */
        .market-content {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 2.5rem;
            margin-bottom: 3rem;
        }

        @media (max-width: 992px) {
            .market-content {
                grid-template-columns: 1fr;
            }
        }

        .market-image {
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 2rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .market-image img {
            width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: cover;
            display: block;
        }

        .market-description {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .market-description h3 {
            color: var(--primary);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            font-weight: 700;
            border-bottom: 2px solid var(--primary-light);
            padding-bottom: 0.8rem;
        }

        .market-description p {
            line-height: 1.7;
            color: var(--dark);
            margin-bottom: 1.5rem;
        }

        /* Application Form */
        .application-section {
            background: white;
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            margin-top: 2rem;
        }

        .application-section h3 {
            color: var(--primary);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .section-notice {
            background: var(--primary-light);
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            border-left: 4px solid var(--primary);
        }

        .section-notice p {
            margin: 0;
            color: var(--primary);
            font-weight: 500;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--primary);
            font-size: 0.95rem;
        }

        .form-label .required {
            color: var(--danger);
        }

        .form-control {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.3s;
            font-family: inherit;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 64, 0, 0.1);
        }

        .btn-submit {
            background: var(--primary);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
        }

        .btn-submit:hover:not(:disabled) {
            background: #006000;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .btn-submit:disabled {
            background: var(--gray);
            cursor: not-allowed;
        }

        /* Success Message */
        .success-message {
            background: var(--success);
            color: white;
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 2rem;
        }

        .success-message i {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .success-message h3 {
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        /* Error Message */
        .error-message {
            background: var(--danger);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        /* Info Box */
        .info-box {
            background: var(--light);
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 2rem;
            border-left: 4px solid var(--secondary);
        }

        .info-box h4 {
            color: var(--primary);
            margin-bottom: 0.8rem;
            font-size: 1.1rem;
        }

        .info-box ul {
            margin: 0;
            padding-left: 1.2rem;
        }

        .info-box li {
            margin-bottom: 0.5rem;
            color: var(--gray);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .market-detail-page {
                padding: 2rem 0;
            }

            .market-header {
                padding: 1.8rem;
            }

            .market-title {
                font-size: 1.8rem;
            }

            .market-meta {
                flex-direction: column;
                gap: 1rem;
            }

            .status-badge {
                position: relative;
                top: auto;
                right: auto;
                display: inline-block;
                margin-top: 1rem;
            }

            .application-section {
                padding: 1.8rem;
            }
        }

        @media (max-width: 480px) {
            .market-title {
                font-size: 1.6rem;
            }

            .deadline-info {
                flex-direction: column;
                text-align: center;
                padding: 1rem;
            }

            .btn-submit {
                width: 100%;
                justify-content: center;
            }
        }

        /* Breadcrumb */
        .breadcrumb-nav {
            margin-bottom: 2rem;
        }

        .breadcrumb-nav a {
            color: var(--primary);
            text-decoration: none;
            transition: color 0.3s;
        }

        .breadcrumb-nav a:hover {
            color: var(--secondary);
        }

        .breadcrumb-nav i {
            margin: 0 0.5rem;
            color: var(--gray);
        }

        /* Product Categories */
        .categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .category-tag {
            background: var(--primary-light);
            color: var(--primary);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        /* Back Button */
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            margin-top: 2rem;
            transition: all 0.3s;
        }

        .back-btn:hover {
            color: var(--secondary);
            transform: translateX(-5px);
        }

        /* Fade Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.6s ease forwards;
        }