:root {
    --marketplace-dark: #111827;
    --marketplace-primary: #198754;
    --marketplace-secondary: #0d6efd;
    --marketplace-light: #f5f7fa;
    --marketplace-border: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--marketplace-light);
    color: #212529;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.marketplace-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    min-height: 76px;
}

.marketplace-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #111827;
    text-decoration: none;

    font-size: 18px;
    font-weight: 500;
}

.marketplace-brand strong {
    display: block;
    font-weight: 800;
}

.brand-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--marketplace-primary);
    color: white;

    font-size: 22px;
}

.navbar-nav .nav-link {
    color: #495057;
    font-weight: 500;

    padding-left: 14px;
    padding-right: 14px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--marketplace-primary);
}

.btn-marketplace {
    background: var(--marketplace-primary);
    color: #fff;
    border: 1px solid var(--marketplace-primary);

    font-weight: 600;
}

.btn-marketplace:hover {
    background: #146c43;
    color: #fff;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #1f2937 55%,
            #198754 100%
        );

    color: white;

    padding: 85px 0 100px;

    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    right: -150px;
    top: -150px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border-radius: 50px;

    background: rgba(255,255,255,0.12);

    margin-bottom: 20px;

    font-size: 14px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 64px);

    font-weight: 800;

    line-height: 1.05;

    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;

    color: rgba(255,255,255,0.85);

    max-width: 650px;

    margin-bottom: 35px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-card {
    background: #fff;

    border-radius: 16px;

    padding: 15px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.18);
}

.search-card .form-control,
.search-card .form-select {
    height: 54px;

    border: 1px solid #ced4da;

    border-radius: 10px;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    border-color: var(--marketplace-primary);

    box-shadow:
        0 0 0 0.2rem rgba(25,135,84,.15);
}

.search-button {
    height: 54px;

    width: 100%;

    border: 0;

    border-radius: 10px;

    background: var(--marketplace-primary);

    color: #fff;

    font-weight: 700;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;

    font-weight: 800;

    color: #111827;
}

.section-subtitle {
    color: #6c757d;

    max-width: 650px;
}


/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.category-card {
    display: block;

    text-decoration: none;

    background: white;

    border: 1px solid #e9ecef;

    border-radius: 16px;

    padding: 28px 20px;

    text-align: center;

    height: 100%;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.category-card:hover {
    transform: translateY(-5px);

    border-color: rgba(25,135,84,.3);

    box-shadow:
        0 15px 35px rgba(0,0,0,.08);
}

.category-icon {
    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 16px;

    background: #e9f7ef;

    color: var(--marketplace-primary);

    font-size: 28px;
}

.category-card h5 {
    color: #111827;

    font-weight: 700;

    margin-bottom: 6px;
}

.category-card p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;
}


/* =========================================================
   LISTING CARDS
   ========================================================= */

.listing-card {
    background: #fff;

    border: 1px solid #e9ecef;

    border-radius: 16px;

    overflow: hidden;

    height: 100%;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.listing-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.10);
}

.listing-image {
    height: 210px;

    background:
        linear-gradient(
            135deg,
            #dee2e6,
            #adb5bd
        );

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    font-size: 50px;

    position: relative;
}

.listing-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    background: var(--marketplace-primary);

    color: white;

    border-radius: 50px;

    padding: 5px 10px;

    font-size: 12px;

    font-weight: 700;
}

.listing-body {
    padding: 20px;
}

.listing-title {
    font-size: 18px;

    font-weight: 700;

    color: #111827;

    margin-bottom: 8px;
}

.listing-price {
    font-size: 21px;

    font-weight: 800;

    color: var(--marketplace-primary);

    margin-bottom: 8px;
}

.listing-location {
    color: #6c757d;

    font-size: 14px;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.step-card {
    background: white;

    border-radius: 16px;

    padding: 30px;

    height: 100%;

    border: 1px solid #e9ecef;
}

.step-number {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--marketplace-primary);

    color: white;

    font-weight: 800;

    margin-bottom: 20px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    background: #111827;

    color: white;

    border-radius: 20px;

    padding: 55px;

    margin-bottom: 70px;
}

.cta-section h2 {
    font-weight: 800;
}


/* =========================================================
   FOOTER
   ========================================================= */

.marketplace-footer {
    background: #111827;

    color: rgba(255,255,255,.75);

    padding: 60px 0 25px;
}

.marketplace-footer h4 {
    color: white;

    font-weight: 800;
}

.marketplace-footer h6 {
    color: white;

    font-weight: 700;

    margin-bottom: 18px;
}

.marketplace-footer ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

.marketplace-footer li {
    margin-bottom: 8px;
}

.marketplace-footer a {
    color: rgba(255,255,255,.7);

    text-decoration: none;
}

.marketplace-footer a:hover {
    color: white;
}

.social-links {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.1);
}

.footer-bottom {
    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .marketplace-navbar {
        padding: 10px 0;
    }

    .navbar-nav {
        padding: 20px 0;
    }

    .hero-section {
        padding: 60px 0 70px;
    }

    .cta-section {
        padding: 35px 25px;
    }
}


@media (max-width: 576px) {

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .footer-bottom {
        flex-direction: column;
    }
}