* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #171717;
}

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
    font-weight: 600;
}

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

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

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    background: #000;
    color: #fff;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
}

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

.nav a {
    font-size: 14px;
}

.post-button {
    background: #fff;
    color: #000;
    padding: 11px 18px;
    border-radius: 6px;
    font-weight: 700;
}

/* HERO */

.hero {
    background: #000;
    color: #fff;
    padding: 70px 0 85px;
}

.hero-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 18px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 18px;
    color: #cfcfcf;
    margin: 0 0 35px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 160px 130px;
    gap: 10px;
    max-width: 850px;
    margin: auto;
}

.search-box input,
.search-box select {
    height: 54px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 15px;
}

.search-box button {
    height: 54px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
}

/* SECTIONS */

.section {
    padding: 55px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
}

.section-header a {
    font-size: 14px;
    font-weight: 700;
}

/* CATEGORIES */

.categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.category-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 22px 12px;
    text-align: center;
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: #111;
}

.category-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 14px;
    font-weight: 700;
}

/* LISTINGS */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.listing-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.listing-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e9e9e9;
}

.listing-content {
    padding: 16px;
}

.listing-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.listing-price {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.listing-location {
    color: #666;
    font-size: 13px;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.featured-badge.boost-badge {
    background: #333;
}

.featured-badge.premium-badge {
    background: #111;
    padding: 6px 10px;
    letter-spacing: .2px;
}

/* CTA */

.cta {
    background: #000;
    color: #fff;
    border-radius: 10px;
    padding: 55px 30px;
    text-align: center;
}

.cta h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.cta p {
    color: #ccc;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 13px 24px;
    border-radius: 6px;
    font-weight: 700;
}

/* FOOTER */

.site-footer {
    background: #000;
    color: #aaa;
    padding: 35px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 900px) {

    .categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .header-inner {
        min-height: 62px;
    }

    .logo {
        font-size: 20px;
    }

    .nav {
        gap: 10px;
    }

    .nav a:not(.post-button) {
        display: none;
    }

    .hero {
        padding: 55px 0 65px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}

/* PAGINATION */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-button,
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

.pagination-button:hover,
.pagination-number:hover {
    border-color: #000;
}

.pagination-number.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* =========================================================
   LISTING DETAIL — MARKETPLACE CHARLOTTE
   ========================================================= */

.listing-detail-page {
    background: #f6f6f6;
    min-height: 100vh;
    padding: 28px 0 70px;
}

.listing-detail-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.listing-breadcrumbs {
    font-size: 13px;
    color: #777;
    margin-bottom: 22px;
}

.listing-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.listing-breadcrumbs a:hover {
    color: #000;
}

.listing-breadcrumbs span {
    margin: 0 7px;
    color: #aaa;
}


/* =========================================================
   TOP SECTION
   ========================================================= */

.listing-top {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: start;
}


/* =========================================================
   GALLERY
   ========================================================= */

.listing-gallery {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.listing-main-image {
    width: 100%;
    height: 560px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.listing-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.listing-main-image.no-photo {
    color: #aaa;
    font-size: 15px;
}

.listing-thumbnails {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow-x: auto;
    background: #fff;
}

.listing-thumbnail {
    width: 76px;
    height: 62px;
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #eee;
    cursor: pointer;
}

.listing-thumbnail.active {
    border-color: #000;
}

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


/* =========================================================
   LISTING SUMMARY CARD
   ========================================================= */

.listing-summary {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    position: sticky;
    top: 20px;
}

.listing-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #666;
    margin-bottom: 12px;
}

.listing-summary h1 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -.7px;
    color: #111;
}

.listing-price-large {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 18px;
}

.listing-meta {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.listing-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
}

.listing-meta-label {
    color: #888;
}

.listing-meta-value {
    color: #222;
    font-weight: 600;
    text-align: right;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.listing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.listing-action {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.listing-action:hover {
    border-color: #111;
    background: #fafafa;
}

.listing-action-primary {
    grid-column: 1 / -1;
    background: #000;
    color: #fff;
    border-color: #000;
}

.listing-action-primary:hover {
    background: #222;
}


/* =========================================================
   SELLER
   ========================================================= */

.seller-box {
    border-top: 1px solid #eee;
    padding-top: 22px;
}

.seller-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.seller-name {
    font-size: 18px;
    font-weight: 750;
    margin-bottom: 5px;
}

.seller-info {
    font-size: 13px;
    color: #777;
}


/* =========================================================
   CONTENT BELOW
   ========================================================= */

.listing-content {
    margin-top: 28px;
}

.listing-content-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    margin-bottom: 28px;
}

.listing-content-card h2 {
    margin: 0 0 18px;
    font-size: 21px;
    letter-spacing: -.2px;
}

.listing-description {
    color: #444;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}


/* =========================================================
   LISTING INFORMATION
   ========================================================= */

.listing-information {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.listing-information-row {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.listing-information-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.listing-information-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}


/* =========================================================
   SIMILAR LISTINGS
   ========================================================= */

.similar-listings {
    margin-top: 40px;
}

.similar-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.similar-listings-header h2 {
    margin: 0;
    font-size: 24px;
}

.similar-listings-header a {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.similar-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.similar-listing-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.similar-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.09);
}

.similar-listing-image {
    width: 100%;
    height: 190px;
    background: #eee;
    overflow: hidden;
}

.similar-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.similar-listing-info {
    padding: 15px;
}

.similar-listing-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-listing-price {
    font-size: 17px;
    font-weight: 800;
    color: #111;
    margin-bottom: 7px;
}

.similar-listing-location {
    font-size: 12px;
    color: #888;
}


/* =========================================================
   REPORT
   ========================================================= */

.report-listing {
    margin-top: 18px;
}

.report-listing button {
    border: 0;
    background: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.report-listing button:hover {
    color: #000;
}


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

@media (max-width: 1000px) {

    .listing-top {
        grid-template-columns: 1fr;
    }

    .listing-summary {
        position: static;
    }

    .listing-main-image {
        height: 500px;
    }

    .similar-listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 700px) {

    .listing-detail-page {
        padding-top: 18px;
    }

    .listing-detail-container {
        width: min(100% - 24px, 1200px);
    }

    .listing-top {
        gap: 15px;
    }

    .listing-main-image {
        height: 320px;
    }

    .listing-summary {
        padding: 22px;
        border-radius: 12px;
    }

    .listing-summary h1 {
        font-size: 27px;
    }

    .listing-price-large {
        font-size: 28px;
    }

    .listing-content-card {
        padding: 22px;
    }

    .listing-information {
        grid-template-columns: 1fr;
    }

    .similar-listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .similar-listing-image {
        height: 150px;
    }
}


@media (max-width: 450px) {

    .listing-actions {
        grid-template-columns: 1fr;
    }

    .listing-action-primary {
        grid-column: auto;
    }

    .similar-listings-grid {
        grid-template-columns: 1fr;
    }

    .similar-listing-image {
        height: 210px;
    }
}
/* Marketplace Charlotte advertising */
.mc-ad-wrap{position:relative;width:100%;margin:0 auto 20px;text-align:center}
.mc-ad-label{text-align:right;color:#888;font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}
.mc-ad-banner{display:block;width:100%;max-width:728px;height:auto;max-height:180px;object-fit:contain;margin:0 auto;border-radius:8px}
