:root {
    --mkt-green: #16a34a;
    --mkt-green-dark: #15803d;
    --mkt-ink: #111827;
    --mkt-muted: #6b7280;
    --mkt-border: #e6e8eb;
    --mkt-bg: #ffffff;
    --mkt-soft: #f3f4f6;
    --mkt-card-radius: 16px;
}

* { box-sizing: border-box; }

body.mkt-body {
    margin: 0;
    background: var(--mkt-bg);
    color: var(--mkt-ink);
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ---------- Logo lockup ---------- */
.mkt-logo { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.mkt-logo__badge {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--mkt-green);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.mkt-logo__text { display: inline-flex; flex-direction: column; line-height: 1; }
.mkt-logo__name {
    font-weight: 800;
    font-size: 1.28rem;
    letter-spacing: 0.02em;
    color: var(--mkt-ink);
}
.mkt-logo__name span { color: var(--mkt-green); }
.mkt-logo__sub {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mkt-muted);
    margin-top: 3px;
    font-weight: 600;
}

/* ---------- Header ---------- */
.mkt-header {
    background: #fff;
    border-bottom: 1px solid var(--mkt-border);
    position: sticky; top: 0; z-index: 50;
}
.mkt-header__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0.7rem 1.25rem;
    display: flex; align-items: center; gap: 1rem;
}
.mkt-nav {
    display: flex; align-items: center; gap: 2rem;
    margin: 0 auto;
}
.mkt-nav a { color: #374151; font-weight: 500; font-size: 0.95rem; }
.mkt-nav a:hover { color: var(--mkt-green-dark); }
.mkt-header__actions { display: flex; align-items: center; gap: 0.9rem; }
.mkt-location { display: inline-flex; align-items: center; gap: 0.4rem; color: #374151; font-weight: 500; }
.mkt-account {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--mkt-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: #4b5563; background: #fff;
}
.mkt-account:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt-nav-toggle {
    display: none; margin-left: auto;
    background: none; border: 1px solid var(--mkt-border);
    border-radius: 10px; width: 42px; height: 42px;
    font-size: 1.1rem; color: #374151; cursor: pointer;
}

/* ---------- Buttons ---------- */
.mkt-btn {
    border: none; border-radius: 10px;
    padding: 0.7rem 1.3rem; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.mkt-btn--primary { background: var(--mkt-green); color: #fff; }
.mkt-btn--primary:hover { background: var(--mkt-green-dark); color: #fff; }
.mkt-btn--ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.mkt-btn--ghost:hover { border-color: var(--mkt-green); color: var(--mkt-green-dark); }

/* ---------- Hero ---------- */
.mkt-hero { background: var(--mkt-soft); position: relative; z-index: 3; }
.mkt-hero__inner {
    position: relative; z-index: 2;
    max-width: 1400px; margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.25rem);
    display: flex; align-items: center;
}
.mkt-hero__text { max-width: 560px; width: 100%; }

/* Right-side background image, feathered into the hero background */
.mkt-hero__bg {
    position: absolute; top: 0; right: 0; z-index: 1;
    height: 100%; width: 52%;
    object-fit: cover; object-position: center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%);
}
.mkt-hero__text h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800; line-height: 1.08; margin: 0 0 1rem;
    color: var(--mkt-ink);
}
.mkt-hero__text h1 span { color: var(--mkt-green); }
.mkt-hero__text p {
    color: #4b5563; font-size: clamp(1rem, 2vw, 1.1rem);
    margin: 0 0 1.75rem; max-width: 480px;
}

/* Search bar */
.mkt-search {
    background: #fff; border-radius: 14px;
    padding: 0.5rem; display: flex; gap: 0.5rem; align-items: center;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    border: 1px solid var(--mkt-border);
    max-width: 620px; flex-wrap: nowrap;
}
.mkt-search__field {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--mkt-soft); border-radius: 10px;
    padding: 0.55rem 0.8rem; min-width: 0; flex: 1 1 150px;
}
.mkt-search__loc { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.mkt-search__field i { color: var(--mkt-muted); flex-shrink: 0; }
.mkt-search__field input {
    border: none; background: transparent; outline: none;
    font-size: 0.95rem; color: var(--mkt-ink); width: 100%; min-width: 0;
}
.mkt-search .mkt-btn--primary { flex: 0 0 auto; }

/* ---------- Searchable location combobox ---------- */
.mkt-combo { position: relative; }
.mkt-combo__btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; border: none; cursor: pointer;
    font-weight: 600; color: #374151; font-size: 0.92rem; padding: 0;
    line-height: 1;
}
.mkt-combo__btn .fa-location-dot { color: var(--mkt-green-dark); }
.mkt-combo__caret { font-size: 0.68rem; color: #9ca3af; margin-left: 0.1rem; transition: transform 0.15s; }
.mkt-combo.is-open .mkt-combo__caret { transform: rotate(180deg); }
.mkt-combo__label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-combo__btn.mkt-attn { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35); border-radius: 10px; }

/* Hero variant looks like the soft search field */
.mkt-search__loc .mkt-combo { width: 100%; }
.mkt-search__loc .mkt-combo__btn {
    background: var(--mkt-soft); border-radius: 10px;
    padding: 0.6rem 0.8rem; width: 100%; justify-content: flex-start;
}
.mkt-search__loc .mkt-combo__label { flex: 1; text-align: left; }

.mkt-combo__panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
    width: 250px; max-width: 82vw;
    background: #fff; border: 1px solid var(--mkt-border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
    padding: 0.5rem; display: none;
}
.mkt-combo.is-open .mkt-combo__panel { display: block; }
.mkt-location .mkt-combo__panel { right: 0; left: auto; }
.mkt-combo__search {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--mkt-soft); border-radius: 8px; padding: 0.45rem 0.6rem; margin-bottom: 0.4rem;
}
.mkt-combo__search i { color: var(--mkt-muted); font-size: 0.85rem; }
.mkt-combo__input { border: none; background: transparent; outline: none; width: 100%; font-size: 0.9rem; color: var(--mkt-ink); }
.mkt-combo__list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.mkt-combo__opt { padding: 0.5rem 0.6rem; border-radius: 8px; font-size: 0.92rem; color: #374151; cursor: pointer; }
.mkt-combo__opt:hover, .mkt-combo__opt.is-active { background: var(--mkt-soft); }
.mkt-combo__opt.is-selected { color: var(--mkt-green-dark); font-weight: 700; }
.mkt-combo__empty { padding: 0.5rem 0.6rem; color: var(--mkt-muted); font-size: 0.88rem; }

/* Trust row */
.mkt-trust {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
    margin-top: 1.25rem;
}
.mkt-trust span {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: #4b5563; font-size: 0.88rem; font-weight: 500;
}
.mkt-trust i { color: var(--mkt-green); }

/* ---------- Content ---------- */
.mkt-content {
    max-width: 1200px; margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem 3rem;
}
.mkt-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.mkt-section-head h2 { font-size: 1.55rem; font-weight: 800; margin: 0; }
.mkt-section-head p { color: var(--mkt-muted); font-size: 0.92rem; margin: 0.25rem 0 0; }
.mkt-viewall { color: var(--mkt-green-dark); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; }

/* Filters */
.mkt-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.mkt-chip-select, .mkt-chip-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; border: 1px solid var(--mkt-border);
    border-radius: 999px; padding: 0.5rem 1rem;
    font-size: 0.9rem; font-weight: 600; color: #374151; cursor: pointer;
}
.mkt-chip-select i, .mkt-chip-btn i { color: var(--mkt-green-dark); }
.mkt-chip-select select { border: none; background: transparent; outline: none; font-weight: 600; color: #374151; cursor: pointer; }
.mkt-chip-btn.is-active { background: #ecfdf3; border-color: #bbf7d0; color: var(--mkt-green-dark); }
.mkt-chip-btn:hover { background: var(--mkt-soft); }

/* ---------- Card ---------- */
.mkt-card {
    background: #fff; border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-card-radius); overflow: hidden;
    height: 100%; display: flex; flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
    color: inherit;
}
.mkt-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12); }
.mkt-card__media { position: relative; aspect-ratio: 16 / 11; background: var(--mkt-soft); overflow: hidden; }
.mkt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-card__media--empty { display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 2.5rem; }
.mkt-card__badge {
    position: absolute; bottom: 0.7rem; right: 0.7rem;
    background: rgba(255, 255, 255, 0.95); color: var(--mkt-ink);
    font-size: 0.76rem; font-weight: 700; padding: 0.28rem 0.6rem;
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.mkt-card__body { padding: 0.95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.mkt-card__title {
    font-size: 1.05rem; font-weight: 700; color: var(--mkt-ink); margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mkt-card__tags { color: var(--mkt-muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-card__tags .dot { margin: 0 0.15rem; }
.mkt-card__foot { margin-top: auto; padding-top: 0.55rem; }
.mkt-card__order { color: var(--mkt-green-dark); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.mkt-card:hover .mkt-card__order i { transform: translateX(3px); transition: transform 0.15s; }

/* ---------- Empty ---------- */
.mkt-empty { text-align: center; padding: 3.5rem 1rem; color: var(--mkt-muted); }
.mkt-empty i { font-size: 2.75rem; color: #cbd5e1; margin-bottom: 1rem; }
.mkt-empty h3 { color: var(--mkt-ink); font-weight: 700; margin-bottom: 0.4rem; }

/* ---------- Owner CTA bar ---------- */
.mkt-owner-cta {
    background: var(--mkt-soft); border-radius: 16px;
    padding: 1.4rem 1.6rem; margin-top: 2.5rem;
    display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.mkt-owner-cta__icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: #dcfce7; color: var(--mkt-green-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.mkt-owner-cta__text { flex: 1; min-width: 220px; }
.mkt-owner-cta__text h3 { font-weight: 800; font-size: 1.2rem; margin: 0 0 0.2rem; }
.mkt-owner-cta__text p { color: var(--mkt-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.mkt-footer { border-top: 1px solid var(--mkt-border); background: #fff; margin-top: 1rem; }
.mkt-footer__inner {
    max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.mkt-logo--sm .mkt-logo__badge { width: 30px; height: 30px; font-size: 0.85rem; border-radius: 8px; }
.mkt-logo--sm .mkt-logo__name { font-size: 1.05rem; }
.mkt-footer__copy { color: var(--mkt-muted); font-size: 0.88rem; }
.mkt-footer__links { display: flex; gap: 1.25rem; }
.mkt-footer__links a { color: #4b5563; font-size: 0.9rem; font-weight: 500; }
.mkt-footer__links a:hover { color: var(--mkt-green-dark); }

/* ---------- Pagination ---------- */
.mkt-pagination { margin-top: 2rem; display: flex; justify-content: center; }
.mkt-pagination .pagination { flex-wrap: wrap; gap: 0.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .mkt-hero__bg { width: 46%; }
}

@media (max-width: 991.98px) {
    /* Stack: image becomes a blended banner above the content, search stays visible */
    .mkt-hero__inner { flex-direction: column; padding-top: 0; }
    .mkt-hero__bg {
        position: relative; width: 100%; height: 200px;
        margin: 0 auto; display: block;
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
                mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    }
    .mkt-hero__text { max-width: 640px; margin-top: -0.5rem; }
    .mkt-nav, .mkt-header__actions { display: none; }
    .mkt-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .mkt-header__inner { flex-wrap: wrap; }
    .mkt-nav.is-open, .mkt-header__actions.is-open {
        display: flex; flex-direction: column; align-items: flex-start;
        gap: 0.9rem; width: 100%; margin: 0.75rem 0 0;
        padding-top: 0.9rem; border-top: 1px solid var(--mkt-border);
    }
    .mkt-nav.is-open { margin: 0.75rem 0 0; }
    .mkt-header__actions.is-open { flex-direction: row; align-items: center; }
}

@media (max-width: 575.98px) {
    .mkt-search { flex-direction: column; }
    .mkt-search__loc, .mkt-search__field { width: 100%; }
    .mkt-search__loc select { max-width: none; }
    .mkt-search .mkt-btn--primary { width: 100%; }
    .mkt-owner-cta { text-align: left; }
    .mkt-owner-cta .mkt-btn { width: 100%; }
    .mkt-footer__inner { justify-content: center; text-align: center; }
}
