:root {
    /* Text & surface */
    --market-ink: #121c2a;
    --market-muted: #5b6471;
    --market-on-surface-variant: #58413d;
    /* Surfaces */
    --market-panel: rgba(255, 248, 240, 0.78);
    --market-surface-container: #e6eeff;
    --market-surface-container-low: #eff4ff;
    --market-outline: #8b716c;
    --market-outline-variant: rgba(223, 192, 185, 0.30);
    --market-line: rgba(223, 192, 185, 0.30);
    /* Brand */
    --market-accent: #a33420;
    --market-accent-dark: #87200e;
    --market-primary-container: #c44c35;
    --market-primary-fixed: #ffdad3;
    --market-highlight: #d48332;
    /* Special surfaces */
    --market-night: #182028;
    /* Fonts */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'DM Sans', sans-serif;
    /* Shadow */
    --soft-shadow: 0 24px 60px rgba(24, 32, 40, 0.14);
}

body.marketplace-page,
body {
    font-family: var(--font-body);
    color: var(--market-ink);
    background:
        radial-gradient(circle at top right, rgba(230, 180, 80, 0.18), transparent 28%),
        linear-gradient(180deg, #f5ede2 0%, #f7f4ef 48%, #fffdf9 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.brand-lockup strong {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

a {
    color: var(--market-accent-dark);
}

a:hover,
a:focus {
    color: var(--market-accent);
}

.marketplace-nav {
    background: rgba(250, 245, 240, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    border-radius: 9999px;
    box-shadow: var(--soft-shadow);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo {
    height: 2.2rem;
    width: 2.2rem;
    border-radius: 0.4rem;
    object-fit: contain;
    display: block;
}

.brand-lockup span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-lockup small {
    font-size: 0.74rem;
    color: var(--market-muted);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 1rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--market-accent) 0%, var(--market-highlight) 100%);
    box-shadow: 0 12px 25px rgba(163, 52, 32, 0.25);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--market-ink);
    margin-right: 0.35rem;
    white-space: nowrap;
}

.nav-cta,
.hero-primary,
.hero-search-button,
.contact-submit {
    background: linear-gradient(135deg, var(--market-accent) 0%, var(--market-highlight) 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 18px 35px rgba(163, 52, 32, 0.22);
}

.nav-cta:hover,
.hero-primary:hover,
.hero-search-button:hover,
.contact-submit:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 24px 45px rgba(163, 52, 32, 0.32);
}

.hero-secondary {
    background: transparent;
    color: var(--market-ink);
    border: 1px solid rgba(31, 41, 55, 0.18);
}

/* Ghost variant on dark (hero overlay) */
.hero-shell .hero-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
}

.hero-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-backdrop,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-overlay {
    background:
        linear-gradient(100deg, rgba(24, 32, 40, 0.88) 0%, rgba(24, 32, 40, 0.68) 40%, rgba(24, 32, 40, 0.28) 100%),
        radial-gradient(circle at top left, rgba(230, 180, 80, 0.28), transparent 25%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--market-accent);
}

.hero-title {
    max-width: 11ch;
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.96;
}

.hero-lead {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-search,
.filter-panel,
.contact-card,
.contact-side-panel,
.process-panel,
.owner-panel,
.legal-card,
.empty-state {
    background: var(--market-panel);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    border-radius: 0.75rem;
    box-shadow: var(--soft-shadow);
}

.hero-search,
.filter-panel {
    padding: 1.5rem;
}

.hero-search .form-label,
.filter-group label {
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--market-muted);
}

.stats-row {
    margin-top: 3rem;
}

.stats-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    padding: 1.2rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.stats-card strong {
    font-size: 1.8rem;
    font-family: var(--font-display);
}

.section-space {
    padding: 5rem 0;
}

.surface-panel {
    background: linear-gradient(180deg, rgba(230, 180, 80, 0.07) 0%, rgba(255, 255, 255, 0) 100%);
}

.offer-card {
    overflow: hidden;
    border: 0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(24, 32, 40, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(24, 32, 40, 0.18);
}

.offer-card-media {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.offer-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-description--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-price {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(24, 32, 40, 0.84);
    color: #fff;
    font-weight: 700;
}

.offer-meta,
.offer-specs,
.offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.offer-meta span,
.offer-specs span,
.offer-tags span,
.mini-offer-card,
.faq-card,
.concept-card {
    border: 1px solid var(--market-line);
}

.offer-meta span,
.offer-tags span {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--market-surface-container);
    color: var(--market-on-surface-variant);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    border: none;
}

.offer-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--market-muted);
}

.offer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.offer-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.offer-title {
    font-size: 1.55rem;
}

.offer-headline {
    font-weight: 600;
    color: var(--market-night);
}

.offer-description,
.offer-footnote,
.section-copy,
.page-topper p,
.footer-copy,
.contact-meta,
.faq-card p,
.concept-card p,
.mini-offer-card span,
.mini-offer-card small {
    color: var(--market-muted);
}

.concept-card,
.faq-card {
    height: 100%;
    padding: 2.5rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid var(--market-outline-variant);
    transition: background-color 0.22s ease;
}

.concept-card:hover {
    background: var(--market-primary-fixed);
}

.mini-offer-card {
    height: 100%;
    padding: 1.4rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid var(--market-outline-variant);
}

.concept-card span {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: var(--market-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.owner-panel,
.process-panel,
.contact-side-panel,
.legal-card,
.contact-card {
    padding: 2rem;
}

.geo-entry-panel,
.results-map-panel {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--market-outline-variant);
}

.geo-entry-controls {
    display: grid;
    gap: 0.75rem;
}

.geo-map {
    width: 100%;
    min-height: 320px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--market-outline-variant);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.map-info-window {
    max-width: 280px;
    font-family: var(--font-body);
}

.map-info-window h4 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.map-offer-list {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.map-offer-list li + li {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(31, 41, 55, 0.12);
}

.map-offer-link {
    font-weight: 700;
    text-decoration: none;
}

.map-offer-meta {
    display: block;
    color: var(--market-muted);
    font-size: 0.9rem;
}

.user-location-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0b84f3;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(11, 132, 243, 0.22);
}

.stack-list,
.number-list,
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stack-list-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stack-list-item span {
    flex: 0 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--market-accent);
    color: #ffffff;
    font-weight: 700;
}

.number-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--market-line);
}

.number-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.page-topper {
    padding: 9rem 0 3rem;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-actions {
    display: grid;
    gap: 0.75rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.cta-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(12px);
    color: #fff;
}

.cta-strip h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cta-strip p {
    color: rgba(161, 161, 170, 1);
    margin-bottom: 0;
}

.cta-strip .hero-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 24px 45px rgba(163, 52, 32, 0.32);
}

.site-footer {
    border-top: 1px solid #27272a;
    background: rgba(9, 9, 11, 0.96);
    color: rgba(255, 255, 255, 0.82);
}

.site-footer .brand-lockup strong {
    color: #ffffff;
}

.site-footer .brand-lockup small {
    color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
    font-family: var(--font-display);
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.90);
}

.footer-bottom {
    border-top: 1px solid #27272a;
    color: rgba(255, 255, 255, 0.40);
}

.site-footer .footer-copy,
.site-footer .contact-meta {
    color: rgba(255, 255, 255, 0.60);
}

.section-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--market-accent);
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--market-primary-container);
}

.legal-shell {
    max-width: 900px;
}

.legal-card h2 {
    margin-top: 1.8rem;
    font-size: 1.35rem;
}

.legal-card h2:first-child {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .hero-shell {
        min-height: auto;
        padding-top: 7.5rem;
    }

    .hero-title {
        max-width: none;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 1199.98px) {
    .brand-lockup small {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .marketplace-nav {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    .brand-lockup small {
        display: none;
    }

    .owner-panel,
    .process-panel,
    .contact-side-panel,
    .legal-card,
    .contact-card,
    .hero-search,
    .filter-panel {
        padding: 1.4rem;
    }
}
