:root {
    --market-ink: #17231f;
    --market-muted: #64736d;
    --market-green: #147d64;
    --market-green-dark: #0c5848;
    --market-green-soft: #e7f4ef;
    --market-border: #e4ebe7;
    --market-surface: #ffffff;
    --market-background: #f5f8f6;
    --market-shadow: 0 12px 32px rgba(25, 55, 43, 0.08);
}

.marketplace-hero,
.marketplace-home,
.marketplace-results,
.marketplace-product,
.marketplace-posting {
    color: var(--market-ink);
    background: var(--market-background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.marketplace-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 340px;
    padding: 68px 0;
    background:
        radial-gradient(ellipse at 82% 18%, rgba(116, 214, 174, 0.3), transparent 34%),
        linear-gradient(125deg, var(--market-green-dark), #147d64 58%, #2ca17e) !important;
}

.marketplace-hero .intro-title {
    max-width: 860px;
    margin: 0 auto 16px;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.marketplace-hero h5 {
    max-width: 680px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 1.05rem;
    line-height: 1.6;
}

.marketplace-hero .input-group {
    max-width: 760px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(4, 33, 25, 0.24);
}

.marketplace-hero .form-control {
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px !important;
    box-shadow: none;
    font-size: 1rem;
}

.marketplace-hero .btn-primary,
.marketplace-results .btn-primary {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px !important;
    background: var(--market-green);
    font-weight: 650;
}

.marketplace-hero .btn-primary:hover,
.marketplace-results .btn-primary:hover {
    background: var(--market-green-dark);
}

.marketplace-home,
.marketplace-results,
.marketplace-product,
.marketplace-posting {
    padding-top: 30px;
    padding-bottom: 48px;
}

.marketplace-home .content-box,
.marketplace-results .content-box {
    overflow: hidden;
    border: 1px solid var(--market-border);
    border-radius: 18px;
    background: var(--market-surface);
    box-shadow: var(--market-shadow);
}

.marketplace-home .row-featured-category {
    padding: 24px 12px 10px;
}

.marketplace-home .row-featured-category .box-title {
    margin-bottom: 16px;
}

.marketplace-home .row-featured-category .box-title h2 {
    color: var(--market-ink);
    font-size: 1.5rem;
    font-weight: 700;
}

.marketplace-home .f-category {
    margin-bottom: 14px;
}

.marketplace-home .f-category > a {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 10px;
    border: 1px solid var(--market-border);
    border-radius: 14px;
    background: #fff;
    color: var(--market-ink);
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.marketplace-home .f-category > a:hover {
    transform: translateY(-3px);
    border-color: #b7ddcd;
    box-shadow: 0 10px 24px rgba(25, 55, 43, 0.09);
    text-decoration: none;
}

.marketplace-home .f-category img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.marketplace-home .f-category h6 {
    margin: 0;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 650;
}

.marketplace-home .sidebar-modern-inner,
.marketplace-results .page-sidebar {
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: var(--market-surface);
}

.marketplace-home .sidebar-modern-inner {
    padding: 18px;
}

.marketplace-home .block-title h5,
.marketplace-results .block-title h5 {
    color: var(--market-ink);
    font-weight: 700;
}

.marketplace-home .list-filter a,
.marketplace-results .list-filter a {
    color: var(--market-muted);
}

.marketplace-home .list-filter a:hover,
.marketplace-results .list-filter a:hover {
    color: var(--market-green);
}

.marketplace-home .tab-box,
.marketplace-results .tab-box {
    border-bottom: 1px solid var(--market-border);
}

.marketplace-home .add-tabs .nav-link,
.marketplace-results .add-tabs .nav-link {
    padding: 14px 18px;
    color: var(--market-muted);
    font-weight: 650;
}

.marketplace-home .add-tabs .nav-link.active,
.marketplace-results .add-tabs .nav-link.active {
    border-color: transparent transparent var(--market-green);
    color: var(--market-green-dark);
}

.marketplace-home .item-list,
.marketplace-results .item-list {
    margin: 12px;
    padding: 16px;
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: var(--market-surface);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.marketplace-home .item-list:hover,
.marketplace-results .item-list:hover {
    transform: translateY(-2px);
    border-color: #c5ddd2;
    box-shadow: 0 12px 28px rgba(25, 55, 43, 0.08);
}

.marketplace-home .item-list .row,
.marketplace-results .item-list .row {
    align-items: center;
}

.marketplace-home .item-list .add-image img,
.marketplace-results .item-list .add-image img {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.marketplace-home .add-title a,
.marketplace-results .add-title a {
    color: var(--market-ink) !important;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.marketplace-home .info-row,
.marketplace-results .info-row {
    color: var(--market-muted);
}

.marketplace-home .citem-price,
.marketplace-results .item-price {
    color: var(--market-green-dark) !important;
    font-size: 1.25rem;
    font-weight: 750;
}

.marketplace-home .make-favorite,
.marketplace-results .make-favorite {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--market-border);
    border-radius: 12px;
    background: #fff;
    color: var(--market-green);
}

.marketplace-home .post-promo,
.marketplace-results .post-promo {
    margin: 36px 0 0;
    padding: 34px 20px;
    border-radius: 18px;
    background: var(--market-green-soft);
}

.marketplace-product .ads-details-wrapper {
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--market-border);
    border-radius: 20px;
    background: var(--market-surface);
    box-shadow: var(--market-shadow);
}

.marketplace-product .ads-details-wrapper h1 {
    color: var(--market-ink);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 750;
    line-height: 1.2;
}

.marketplace-product .info-row {
    color: var(--market-muted);
    line-height: 1.8;
}

.marketplace-product .pricetag {
    display: inline-block;
    margin: 12px 0 18px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--market-green-soft);
    color: var(--market-green-dark);
    font-size: 1.4rem;
    font-weight: 750;
}

.marketplace-product .bxslider img {
    width: 100%;
    max-height: 500px;
    border-radius: 14px;
    background: #f7faf8;
    object-fit: contain;
}

.marketplace-product #bx-pager {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
}

.marketplace-product #bx-pager img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.marketplace-product .ads-details-info {
    color: #35433d;
    font-size: 1rem !important;
    line-height: 1.75;
}

.marketplace-product .ads-details-info img {
    max-width: 100%;
    height: auto;
}

.marketplace-product .panel-details,
.marketplace-product .sidebar-card {
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(25, 55, 43, 0.05);
}

.marketplace-product .panel-details li {
    padding: 12px 0;
    border-bottom: 1px solid var(--market-border);
}

.marketplace-product .panel-details li:last-child {
    border-bottom: 0;
}

.marketplace-product .content-footer .btn,
.marketplace-product .ev-action .btn {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 650;
}

.marketplace-product .content-footer .btn-primary {
    color: #fff;
}

.marketplace-shell .ev-action .btn,
.marketplace-shell .ev-action .btn:hover,
.marketplace-shell .ev-action .btn:focus {
    color: #fff;
}

.marketplace-results .mobile-filter-bar {
    margin: 14px 0;
    padding: 10px 14px;
    border: 1px solid var(--market-border);
    border-radius: 12px;
    background: var(--market-green-soft);
}

.marketplace-results .mobile-filter-bar a,
.marketplace-results .mobile-filter-bar i {
    color: var(--market-green-dark);
    font-weight: 650;
}

.marketplace-results .modal-content {
    overflow: hidden;
    border: 1px solid var(--market-border);
    border-radius: 18px;
    box-shadow: var(--market-shadow);
}

.marketplace-results .modal-header,
.marketplace-results .modal-footer {
    border-color: var(--market-border);
}

.marketplace-results .list-group-item {
    border-color: var(--market-border);
}

.marketplace-results .list-group-item:hover,
.marketplace-results .cityFilterVal:hover,
.marketplace-results .categoryFilterVal:hover {
    background: var(--market-green-soft);
    color: var(--market-green-dark);
}

.marketplace-posting {
    color: var(--market-ink);
    background: var(--market-background);
}

.posting-wizard {
    max-width: 860px;
    margin: 12px auto 24px;
}

.posting-steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.posting-step {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--market-border);
    border-radius: 14px;
    background: #fff;
    color: var(--market-muted);
    font-size: 0.94rem;
    font-weight: 650;
}

.posting-step.is-active {
    border-color: #9dcfba;
    background: var(--market-green-soft);
    color: var(--market-green-dark);
}

.posting-step.is-complete .step-number {
    background: var(--market-green);
    color: #fff;
}

.step-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2ef;
    color: var(--market-muted);
    font-weight: 750;
}

.posting-form-card {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(20px, 3.5vw, 42px);
    border: 1px solid var(--market-border);
    border-radius: 20px;
    background: var(--market-surface);
    box-shadow: var(--market-shadow);
}

.posting-form-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--market-border);
}

.posting-form-title h1,
.posting-form-title h2 {
    margin: 0;
    color: var(--market-ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 750;
}

.posting-form-title p {
    margin: 6px 0 0;
    color: var(--market-muted);
}

.posting-form fieldset > .form-group {
    margin-bottom: 22px;
}

.posting-form .col-form-label {
    color: var(--market-ink);
    font-weight: 650;
}

.posting-form .form-control {
    min-height: 46px;
    border: 1px solid #d5e0da;
    border-radius: 10px;
    background-color: #fff;
    color: var(--market-ink);
}

.posting-form textarea.form-control {
    min-height: 168px;
    padding: 13px 15px;
    line-height: 1.6;
}

.posting-form .form-control:focus {
    border-color: var(--market-green);
    box-shadow: 0 0 0 3px rgba(20, 125, 100, 0.13);
}

.posting-form .form-text {
    color: var(--market-muted);
    line-height: 1.5;
}

.posting-form .content-subheading {
    margin: 28px 0 18px;
    color: var(--market-ink);
}

.posting-form .content-subheading hr {
    border-color: var(--market-border);
}

.posting-form .form-check-inline {
    min-width: 112px;
    margin: 0 10px 0 0;
    padding: 11px 14px;
    border: 1px solid var(--market-border);
    border-radius: 10px;
}

.posting-form .form-check-input {
    margin-top: 0.25rem;
}

.posting-form .input-group-text {
    border-color: #d5e0da;
    background: #f7faf8;
}

.posting-form .btn-primary,
.photo-upload-form .btn-primary,
.publish-ad-form .btn-primary {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--market-green);
    font-weight: 700;
}

.posting-form .btn-primary:hover,
.photo-upload-form .btn-primary:hover,
.publish-ad-form .btn-primary:hover {
    background: var(--market-green-dark);
}

.posting-form .btn-primary:disabled,
.photo-upload-form .btn-primary:disabled,
.publish-ad-form .btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.marketplace-posting .reg-sidebar-inner {
    padding: 18px;
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: #fff;
}

.marketplace-posting .sidebar-card {
    margin-top: 18px;
    border: 1px solid var(--market-border);
    border-radius: 14px;
    text-align: left;
}

.photo-upload-card {
    max-width: 860px;
}

.photo-step-icon,
.photo-upload-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--market-green-soft);
    color: var(--market-green);
    font-size: 1.4rem;
}

.photo-upload-dropzone {
    padding: 24px;
    border: 2px dashed #b8d7c8;
    border-radius: 16px;
    background: #f8fcf9;
    text-align: center;
}

.photo-upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    color: var(--market-ink);
}

.photo-upload-label > span:last-child,
.photo-upload-status,
.photo-count-status {
    color: var(--market-muted);
    font-size: 0.92rem;
}

.photo-upload-form input[type="file"] {
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--market-border);
    border-radius: 10px;
    background: #fff;
}

.photo-upload-status {
    min-height: 24px;
}

.photo-previews {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.photo-previews img {
    width: 76px;
    height: 76px;
    border: 1px solid var(--market-border);
    border-radius: 10px;
    background: #fff;
    object-fit: cover;
}

.photo-count-status {
    margin: 16px 0 0;
    text-align: right;
}

.photo-tips {
    margin: 24px 0;
    padding-left: 22px;
    color: var(--market-muted);
    line-height: 1.8;
}

.publish-ad-form {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--market-border);
}

.publish-ad-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.marketplace-home a:focus-visible,
.marketplace-results a:focus-visible,
.marketplace-product a:focus-visible,
.marketplace-posting a:focus-visible,
.marketplace-home button:focus-visible,
.marketplace-results button:focus-visible,
.marketplace-product button:focus-visible,
.marketplace-posting button:focus-visible {
    outline: 3px solid rgba(20, 125, 100, 0.45);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .marketplace-hero {
        min-height: 300px;
        padding: 48px 0;
    }

    .marketplace-hero .input-group {
        display: flex;
    }

    .marketplace-hero .input-group-prepend {
        flex: 0 0 auto;
    }

    .marketplace-hero .btn-primary {
        padding: 0 14px;
    }

    .marketplace-home,
    .marketplace-results,
    .marketplace-product,
    .marketplace-posting {
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .posting-steps {
        gap: 8px;
    }

    .posting-step {
        gap: 7px;
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .step-number {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .photo-upload-dropzone {
        padding: 18px 12px;
    }

    .publish-ad-form {
        flex-direction: column-reverse;
    }

    .publish-ad-form .btn {
        width: 100%;
    }

    .marketplace-home .item-list,
    .marketplace-results .item-list {
        margin: 8px 0;
        padding: 12px;
    }

    .marketplace-home .item-list .add-image img,
    .marketplace-results .item-list .add-image img {
        height: 180px;
        margin-bottom: 12px;
    }

    .marketplace-home .price-box,
    .marketplace-results .price-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 10px;
        text-align: left !important;
    }

    .marketplace-product .page-sidebar-right {
        margin-top: 22px;
    }
}

@media (max-width: 575.98px) {
    .marketplace-home .f-category {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-home *,
    .marketplace-results *,
    .marketplace-product *,
    .marketplace-posting * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.tech-blog-page,
.tech-blog-detail {
    color: var(--market-ink);
    background: var(--market-background);
}

.tech-blog-hero {
    padding: clamp(52px, 8vw, 96px) 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(245, 196, 103, .2), transparent 25%),
        linear-gradient(125deg, #064f46, #087c67 62%, #17a184);
}

.tech-blog-hero .container {
    max-width: 1040px;
}

.tech-blog-eyebrow {
    margin: 0 0 12px;
    color: #fee3ad;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.tech-blog-hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.15rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.tech-blog-intro {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.tech-blog-content,
.tech-blog-detail-content {
    padding-top: 30px;
    padding-bottom: 56px;
}

.tech-blog-categories {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    margin: 0 0 26px;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
}

.tech-blog-category {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid var(--market-border);
    border-radius: 999px;
    color: var(--market-green-dark) !important;
    background: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
}

.tech-blog-category:hover,
.tech-blog-category.is-active {
    border-color: var(--market-green);
    color: #fff !important;
    background: var(--market-green);
}

.tech-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tech-blog-card {
    overflow: hidden;
    border: 1px solid var(--market-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 51, 40, .045);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tech-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--market-shadow);
}

.tech-blog-card-media {
    display: grid;
    height: 190px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 196, 103, .35), transparent 27%),
        linear-gradient(135deg, #0c5848, #2ca17e);
    text-decoration: none !important;
}

.tech-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-blog-card-placeholder {
    color: rgba(255, 255, 255, .9);
    font-size: 4.5rem;
    font-weight: 800;
}

.tech-blog-card-body {
    padding: 20px;
}

.tech-blog-card-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--market-green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tech-blog-card h2 {
    margin: 0 0 10px;
    font-size: 1.17rem;
    font-weight: 750;
    line-height: 1.4;
}

.tech-blog-card h2 a {
    color: var(--market-ink);
    text-decoration: none;
}

.tech-blog-card h2 a:hover {
    color: var(--market-green);
}

.tech-blog-card-body > p {
    min-height: 76px;
    margin: 0 0 16px;
    color: var(--market-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.tech-blog-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--market-border);
    color: var(--market-muted);
    font-size: .78rem;
}

.tech-blog-read-more {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 14px;
    color: var(--market-green-dark) !important;
    font-weight: 750;
    text-decoration: none !important;
}

.tech-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.tech-blog-empty {
    padding: 48px 20px;
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.tech-blog-hero-compact {
    padding: 34px 0;
}

.tech-blog-hero-compact h1 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.tech-blog-back {
    display: inline-block;
    margin-bottom: 22px;
    color: #fff !important;
    font-weight: 700;
}

.tech-blog-detail-content .blog-post-item,
.tech-blog-detail-content .inner-box {
    border-radius: 16px;
}

.tech-blog-detail-content .blog-article-text {
    color: #35433d;
    font-size: 1.02rem;
    line-height: 1.8;
}

.tech-blog-detail-content .blog-article-text h2 {
    margin: 30px 0 12px;
    color: var(--market-green-dark);
    font-size: 1.45rem;
}

.tech-blog-detail-content .blog-article-text h3 {
    margin: 24px 0 10px;
    color: var(--market-ink);
    font-size: 1.15rem;
}

.tech-blog-detail-content .blog-article-text li {
    margin-bottom: 8px;
}

@media (max-width: 991.98px) {
    .tech-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tech-blog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tech-blog-card-media {
        height: 172px;
    }

    .tech-blog-card-body > p {
        min-height: 0;
    }

    .tech-blog-detail-content .blogLeft,
    .tech-blog-detail-content .blogRight {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Shared marketplace design */
:root {
    --market-ink: #17231f;
    --market-muted: #64736d;
    --market-green: #087c67;
    --market-green-dark: #075b4e;
    --market-green-soft: #e7f5f0;
    --market-accent: #f2a93b;
    --market-border: #e2eae6;
    --market-background: #f4f7f5;
    --market-shadow: 0 16px 42px rgba(19, 51, 40, .09);
}

html {
    scroll-behavior: smooth;
}

body.marketplace-shell {
    margin: 0;
    color: var(--market-ink);
    background: var(--market-background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

.marketplace-shell *,
.marketplace-shell *::before,
.marketplace-shell *::after {
    box-sizing: border-box;
}

.marketplace-shell a {
    color: var(--market-green);
}

.marketplace-shell a:hover {
    color: var(--market-green-dark);
}

.marketplace-shell .market-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--market-border);
    box-shadow: 0 3px 16px rgba(13, 49, 37, .055);
    backdrop-filter: blur(14px);
}

.market-header-inner {
    display: flex;
    width: min(1200px, calc(100% - 40px));
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.market-brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: var(--market-ink) !important;
    font-size: 1.23rem;
    font-weight: 800;
    letter-spacing: -.035em;
}

.market-brand:hover {
    text-decoration: none;
}

.market-brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--market-green);
    font-size: 1.25rem;
    font-weight: 800;
}

.market-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 28px);
}

.market-nav > a,
.market-nav-categories > a {
    color: var(--market-ink);
    font-size: .92rem;
    font-weight: 650;
}

.market-nav > a:hover,
.market-nav-categories > a:hover {
    color: var(--market-green);
    text-decoration: none;
}

.market-nav-categories {
    position: relative;
}

.market-nav-dropdown {
    position: absolute;
    top: 100%;
    left: -14px;
    display: none;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--market-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--market-shadow);
}

.market-nav-categories:hover .market-nav-dropdown,
.market-nav-categories:focus-within .market-nav-dropdown {
    display: grid;
}

.market-nav-dropdown a {
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--market-ink);
    font-size: .9rem;
}

.market-nav-dropdown a:hover {
    color: var(--market-green-dark);
    background: var(--market-green-soft);
    text-decoration: none;
}

.market-nav .market-nav-post {
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--market-green);
    box-shadow: 0 5px 14px rgba(8, 124, 103, .2);
}

.market-nav .market-nav-post:hover {
    color: #fff;
    background: var(--market-green-dark);
}

.market-nav-logout {
    margin: 0;
}

.market-nav-logout button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--market-muted);
    background: transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
}

.market-nav-logout button:hover {
    color: var(--market-green);
    background: var(--market-green-soft);
}

.market-locale-switch {
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--market-border);
    border-radius: 10px;
    background: #f7faf8;
}

.market-locale-switch a {
    padding: 4px 7px;
    border-radius: 7px;
    color: var(--market-muted);
    font-size: .75rem;
    font-weight: 750;
}

.market-locale-switch a[aria-current="true"] {
    color: #fff;
    background: var(--market-green);
}

.market-locale-switch a:hover {
    text-decoration: none;
}

.market-nav-toggle {
    display: none;
}

.market-logout-form button {
    border: 0;
    color: var(--market-muted);
    background: transparent;
    font-size: 1.15rem;
}

.marketplace-shell .marketplace-hero {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 365px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 60px 20px;
    background:
        radial-gradient(circle at 85% 22%, rgba(245, 196, 103, .23), transparent 25%),
        radial-gradient(circle at 12% 100%, rgba(57, 178, 140, .3), transparent 32%),
        linear-gradient(125deg, #064f46, #087c67 62%, #17a184) !important;
}

.marketplace-hero .dtable,
.marketplace-hero .dtable-cell {
    display: block;
    width: 100%;
    height: auto;
}

.marketplace-hero .container {
    max-width: 850px;
}

.marketplace-hero-eyebrow,
.listing-eyebrow {
    margin: 0 0 10px;
    color: #fee3ad;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.marketplace-hero .intro-title {
    max-width: 790px;
    margin: 0 auto 15px;
    font-size: clamp(2.1rem, 5vw, 3.65rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.marketplace-hero h5 {
    max-width: 650px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

.marketplace-hero .input-group {
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    padding: 7px;
    border-radius: 14px;
    background: #fff;
}

.marketplace-hero .form-control {
    height: 54px;
    border: 0;
    box-shadow: none;
}

.marketplace-hero .btn-primary,
.listing-quick-search .btn-primary,
.listing-filter-submit,
.listing-page .btn-primary {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--market-green);
    font-weight: 700;
}

.marketplace-hero .btn-primary:hover,
.listing-quick-search .btn-primary:hover,
.listing-filter-submit:hover,
.listing-page .btn-primary:hover {
    background: var(--market-green-dark);
}

.marketplace-home,
.marketplace-results,
.marketplace-product,
.marketplace-posting {
    padding: 36px 0 58px;
    background: var(--market-background);
}

.marketplace-shell .container {
    max-width: 1200px;
}

.market-ad-slot {
    min-height: 0;
    margin: 20px auto;
    text-align: center;
}

.market-ad-slot .adsbygoogle {
    max-width: 100%;
}

.marketplace-home .content-box,
.marketplace-results .content-box {
    border-color: var(--market-border);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(19, 51, 40, .05);
}

.marketplace-home .f-category > a {
    min-height: 148px;
    border-color: var(--market-border);
    border-radius: 16px;
}

.marketplace-home .f-category > a:hover {
    border-color: #9bd3bf;
    box-shadow: 0 10px 24px rgba(19, 51, 40, .08);
}

.marketplace-home .post-promo,
.marketplace-shell .post-promo {
    margin: 32px 0 0;
    padding: clamp(22px, 5vw, 42px);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(120deg, #075b4e, #0b9276);
}

.marketplace-shell .post-promo h1,
.marketplace-shell .post-promo h2,
.marketplace-shell .post-promo h5 {
    color: #fff;
}

.marketplace-shell .post-promo .btn-danger {
    margin-top: 12px;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    color: #17362d;
    background: #f8c763;
    font-weight: 750;
}

.listing-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
}

.listing-page-heading .listing-eyebrow {
    color: var(--market-green);
}

.listing-page-heading h1 {
    margin: 0 0 4px;
    color: var(--market-ink);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.listing-page-heading p:not(.listing-eyebrow) {
    margin: 0;
    color: var(--market-muted);
}

.listing-sell-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.listing-quick-search {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(145px, .55fr) minmax(155px, .6fr) minmax(155px, .55fr) auto;
    gap: 9px;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(19, 51, 40, .045);
}

.listing-quick-search input,
.listing-quick-search select,
.listing-filter-form input,
.listing-filter-form select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #dfe8e3;
    border-radius: 9px;
    color: var(--market-ink);
    background: #fff;
    font: inherit;
}

.listing-quick-search input:focus,
.listing-quick-search select:focus,
.listing-filter-form input:focus,
.listing-filter-form select:focus {
    border-color: var(--market-green);
    outline: 3px solid rgba(8, 124, 103, .12);
}

.listing-quick-search .btn {
    padding: 0 17px;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(230px, 275px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.listing-sidebar,
.listing-mobile-filter-panel {
    padding: 20px;
    border: 1px solid var(--market-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 51, 40, .045);
}

.listing-filter-form {
    display: grid;
    gap: 8px;
}

.listing-filter-title {
    margin: 0 0 6px;
    color: var(--market-ink);
    font-size: 1.1rem;
    font-weight: 800;
}

.listing-filter-form > label,
.listing-price-filter legend {
    margin: 7px 0 0;
    color: #354840;
    font-size: .84rem;
    font-weight: 700;
}

.listing-price-filter {
    min-width: 0;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
}

.listing-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.listing-price-fields label {
    min-width: 0;
    margin: 0;
}

.listing-price-fields label span {
    display: block;
    margin: 4px 0;
    color: var(--market-muted);
    font-size: .76rem;
}

.listing-filter-submit {
    width: 100%;
    margin-top: 8px;
}

.listing-clear-link {
    padding: 7px;
    color: var(--market-muted) !important;
    font-size: .86rem;
    text-align: center;
}

.listing-filter-error {
    color: #a32121;
}

.listing-results {
    min-width: 0;
}

.listing-results-toolbar {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--market-muted);
    font-size: .9rem;
}

.listing-mobile-filters {
    display: none;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.market-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--market-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(19, 51, 40, .035);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.market-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--market-shadow);
}

.market-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eff4f1;
}

.market-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

.market-card:hover .market-card-image img {
    transform: scale(1.035);
}

.market-card-body {
    position: relative;
    padding: 13px 14px 14px;
}

.market-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--market-muted);
    font-size: .73rem;
}

.market-card-city {
    overflow: hidden;
    max-width: 50%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-card h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 8px 30px 12px 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.4;
}

.market-card h2 a {
    color: var(--market-ink);
}

.market-card h2 a:hover {
    color: var(--market-green);
    text-decoration: none;
}

.market-card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.market-card-footer strong {
    color: var(--market-green-dark);
    font-size: 1rem;
    font-weight: 800;
}

.market-card-footer span {
    color: var(--market-muted);
    font-size: .7rem;
    text-align: right;
}

.market-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(226, 234, 230, .9);
    border-radius: 50%;
    color: #a84444 !important;
    background: rgba(255, 255, 255, .95);
}

.market-card-favorite:hover {
    color: #fff !important;
    background: #b94d4d;
    text-decoration: none;
}

.listing-empty {
    grid-column: 1 / -1;
    padding: 56px 20px;
    border: 1px dashed #cbd9d1;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.listing-empty-icon {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: var(--market-green);
    background: var(--market-green-soft);
    font-size: 1.25rem;
}

.listing-empty h2 {
    margin: 14px 0 5px;
    font-size: 1.3rem;
}

.listing-empty p {
    color: var(--market-muted);
}

.listing-empty .btn {
    padding: 10px 15px;
}

.listing-pagination {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.listing-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

.listing-pagination .page-link {
    min-width: 40px;
    border: 1px solid var(--market-border);
    border-radius: 9px !important;
    color: var(--market-green);
    text-align: center;
}

.listing-pagination .page-item.active .page-link {
    border-color: var(--market-green);
    color: #fff;
    background: var(--market-green);
}

.market-footer {
    margin-top: 0;
    padding: 42px max(20px, calc((100% - 1200px) / 2)) 0;
    color: #e8f4ef;
    background: #102b25;
}

.market-footer-main {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 0 0 34px;
}

.market-footer .market-brand {
    color: #fff !important;
}

.market-footer .market-brand-mark {
    color: #12392e;
    background: #f5c45f;
}

.market-footer-brand p,
.market-footer-safety p {
    max-width: 310px;
    margin: 16px 0 0;
    color: #a9c1b6;
    font-size: .9rem;
}

.market-footer-links {
    display: grid;
    align-content: start;
    gap: 9px;
}

.market-footer-links h2,
.market-footer-safety h2 {
    margin: 5px 0 7px;
    color: #fff;
    font-size: .95rem;
    font-weight: 750;
}

.market-footer-links a {
    color: #b6ccc2;
    font-size: .88rem;
}

.market-footer-links a:hover {
    color: #fff;
}

.market-footer-safety-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #f5c45f;
    background: rgba(245, 196, 95, .12);
}

.market-footer-bottom {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: #9db5aa;
    font-size: .8rem;
}

.marketplace-shell .main-container:not(.marketplace-home):not(.marketplace-results):not(.marketplace-product):not(.marketplace-posting) {
    min-height: 58vh;
    padding: 36px 0 54px;
    background: var(--market-background);
}

.marketplace-shell .inner-box,
.marketplace-shell .reg-sidebar-inner,
.marketplace-shell .panel,
.marketplace-shell .card,
.marketplace-shell .page-content > .inner,
.marketplace-shell .ads-details-wrapper {
    border: 1px solid var(--market-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 51, 40, .045);
}

.marketplace-shell .inner-box,
.marketplace-shell .page-content > .inner,
.marketplace-shell .ads-details-wrapper {
    padding: clamp(18px, 3vw, 34px);
}

.marketplace-shell .form-control,
.marketplace-shell .custom-select {
    min-height: 44px;
    border-color: #dfe8e3;
    border-radius: 9px;
    box-shadow: none;
}

.marketplace-shell .form-control:focus,
.marketplace-shell .custom-select:focus {
    border-color: var(--market-green);
    box-shadow: 0 0 0 3px rgba(8, 124, 103, .12);
}

.marketplace-shell .btn-success,
.marketplace-shell .btn-primary {
    border-color: var(--market-green);
    border-radius: 9px;
    background: var(--market-green);
}

.marketplace-shell .btn-success:hover,
.marketplace-shell .btn-primary:hover {
    border-color: var(--market-green-dark);
    background: var(--market-green-dark);
}

.marketplace-shell .title-2,
.marketplace-shell .page-content h1,
.marketplace-shell .page-content h2 {
    color: var(--market-ink);
}

.marketplace-shell .reg-sidebar-inner {
    padding: 20px;
}

.marketplace-shell .invalid-feedback {
    display: block;
}

.marketplace-shell .ads-details-info {
    white-space: pre-line;
}

.marketplace-shell .alert {
    border-radius: 10px;
}

.marketplace-shell :focus-visible {
    outline: 3px solid rgba(8, 124, 103, .35);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .market-header-inner {
        min-height: 66px;
    }

    .market-nav-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        align-content: center;
        gap: 5px;
        margin-left: auto;
        padding: 9px;
        border: 1px solid var(--market-border);
        border-radius: 10px;
        background: #fff;
    }

    .market-nav-toggle span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--market-ink);
    }

    .market-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 4px;
        padding: 12px 20px 18px;
        border-bottom: 1px solid var(--market-border);
        background: #fff;
        box-shadow: 0 12px 20px rgba(19, 51, 40, .08);
    }

    .market-nav.is-open {
        display: grid;
    }

    .market-nav > a,
    .market-nav-categories > a {
        display: block;
        padding: 10px;
    }

    .market-nav-dropdown {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        padding: 4px 8px 8px;
        border: 0;
        box-shadow: none;
    }

    .market-nav-categories:hover .market-nav-dropdown {
        display: grid;
    }

    .listing-quick-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-quick-search input {
        grid-column: 1 / -1;
    }

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .marketplace-shell .marketplace-hero {
        min-height: 330px;
        padding: 42px 14px;
    }

    .marketplace-hero .intro-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .marketplace-hero h5 {
        font-size: .95rem;
    }

    .marketplace-hero .input-group {
        display: flex;
    }

    .marketplace-hero .input-group-prepend {
        flex: 0 0 auto;
    }

    .marketplace-hero .btn-primary {
        padding: 0 14px;
    }

    .listing-page-heading {
        align-items: flex-start;
    }

    .listing-sell-button {
        min-height: 42px !important;
        padding: 0 12px;
        font-size: .84rem;
    }

    .listing-quick-search {
        gap: 7px;
        padding: 9px;
    }

    .listing-quick-search .btn {
        grid-column: 1 / -1;
    }

    .listing-layout {
        display: block;
    }

    .listing-sidebar {
        display: none;
    }

    .listing-mobile-filters {
        display: block;
    }

    .listing-mobile-filters summary {
        padding: 8px 12px;
        border: 1px solid var(--market-border);
        border-radius: 9px;
        color: var(--market-green-dark);
        background: #fff;
        cursor: pointer;
        font-weight: 700;
        list-style: none;
    }

    .listing-mobile-filters summary::-webkit-details-marker {
        display: none;
    }

    .listing-mobile-filter-panel {
        position: absolute;
        z-index: 10;
        right: 20px;
        left: 20px;
        margin-top: 7px;
        box-shadow: var(--market-shadow);
    }

    .market-card-image {
        aspect-ratio: 1 / 1;
    }

    .market-card-body {
        padding: 11px;
    }

    .market-card h2 {
        min-height: 40px;
        font-size: .9rem;
    }

    .market-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .market-card-footer span {
        text-align: left;
    }

    .market-footer {
        padding-top: 32px;
    }
}

@media (max-width: 480px) {
    .market-header-inner {
        width: calc(100% - 28px);
        gap: 10px;
    }

    .market-brand {
        font-size: 1.05rem;
    }

    .market-brand-mark {
        width: 34px;
        height: 34px;
    }

    .market-logout-form {
        display: none;
    }

    .listing-page-heading {
        flex-direction: column;
        gap: 12px;
    }

    .listing-sell-button {
        align-self: stretch;
    }

    .listing-quick-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-quick-search input,
    .listing-quick-search .btn {
        grid-column: auto;
    }

    .listing-grid {
        gap: 9px;
    }

    .market-card-meta {
        display: block;
        font-size: .68rem;
    }

    .market-card-city {
        display: block;
        max-width: 100%;
    }

    .market-card-favorite {
        top: 7px;
        right: 7px;
        width: 32px;
        height: 32px;
    }

    .market-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 22px 14px;
    }

    .market-footer-brand,
    .market-footer-safety {
        grid-column: 1 / -1;
    }

    .market-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
    }

    .marketplace-shell .inner-box,
    .marketplace-shell .page-content > .inner,
    .marketplace-shell .ads-details-wrapper {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .marketplace-shell *,
    .marketplace-shell *::before,
    .marketplace-shell *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
