:root {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #212529;
    background: #f8f9fa;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --bs-primary: #0d6efd;
    --bs-primary-hover: #0a58ca;
    --bs-primary-subtle: #cfe2ff;
    --bs-success: #198754;
    --bs-success-hover: #146c43;
    --bs-success-subtle: #d1e7dd;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #0dcaf0;
    --bs-dark: #212529;
    --bs-secondary: #6c757d;
    --bs-light: #f8f9fa;
    --bs-border-color: #dee2e6;
    --bs-body-bg: #f8f9fa;
    --ink: var(--bs-dark);
    --muted: var(--bs-secondary);
    --green: var(--bs-success);
    --green-dark: var(--bs-success-hover);
    --lime: var(--bs-success-subtle);
    --paper: var(--bs-body-bg);
    --line: var(--bs-border-color);
    --orange: #fd7e14;
}

/* Readable global scale */
body { font-size: 20.8px; }
.topbar .language-switch,
.topbar .topbar-cta,
.topbar-search button { font-size: 18.2px; }
.button { min-height: 50px; font-size: 18.2px; }
.eyebrow { font-size: 14.3px; }
.search-box input,
.city-select select { font-size: 16.9px; }
.listing-meta { font-size: 14.3px; }
.listing-content h3 { font-size: 20.8px; }
.seller-line { font-size: 15.6px; }
.quantity, .price { font-size: 14.3px; }
.price strong { font-size: 16.9px; }
.card-action { font-size: 15.6px; }
.browse-footer,
.text-button { font-size: 15.6px; }
.sell-form-wrap > p { font-size: 15.6px; }
.listing-form label { font-size: 15.6px; }
.listing-form input,
.listing-form select { min-height: 44px; font-size: 16.9px; }
.form-note { font-size: 13px; }
.admin-topline p { font-size: 18.2px; }
.admin-date { font-size: 13px; }
.demo-warning strong { font-size: 16.9px; }
.demo-warning p { font-size: 14.3px; line-height: 1.6; }
.metric-label { font-size: 13px; }
.metric-foot { font-size: 13px; }
.pending-badge { font-size: 13px; }
.admin-table th { height: 44px; font-size: 13px; }
.admin-table td { height: 68px; font-size: 15.6px; }
.table-material strong { font-size: 15.6px; }
.table-material small { font-size: 13px; }
.status-badge { font-size: 13px; }
.table-actions button { width: 32px; height: 32px; font-size: 18.2px; }
.admin-footnote { font-size: 14.3px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell {
    width: min(1280px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #f7fbfc;
}
.topbar { position: relative; min-height: 78px; border-bottom: 1px solid rgba(32,44,39,.08); background: transparent; }
.topbar-title { flex: 0 1 auto; min-width: 0; color: var(--bs-primary); font-size: clamp(13px, 1.45vw, 17px); font-weight: 800; line-height: 1.4; text-align: center; white-space: nowrap; }
.topbar-inner, .footer-inner { width: min(1190px, calc(100% - 64px)); margin: auto; display: flex; align-items: center; }
.topbar-inner { height: 78px; }
.footer-inner { height: 100%; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand-mark { width: 190px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 190px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.topbar .brand-mark { width: 190px; height: 72px; flex-basis: 190px; }
.brand-shared-e { display: none; }
.topbar-search { flex: 1 1 auto; min-width: 0; max-width: 690px; height: 48px; margin-inline: 24px; display: flex; overflow: hidden; border: 2px solid var(--bs-primary); border-radius: 0; background: #fff; }
.topbar-search input { flex: 1 1 auto; min-width: 0; padding: 0 15px; border: 0; outline: 0; background: #fff; color: var(--ink); font-size: 15px; }
.topbar-search input::placeholder { color: #7c8792; opacity: 1; }
.topbar-search select { flex: 0 0 165px; min-width: 0; padding: 0 12px; border: 0; border-inline-start: 1px solid #dfe4ee; background: #fff; color: #536158; font-size: 13px; }
.topbar-search button { flex: 0 0 auto; min-width: 72px; padding: 0 17px; border: 0; border-radius: 0; background: var(--bs-primary); color: #fff; font-size: 14px; font-weight: 700; transition: background .18s ease; }
.topbar-search button:hover { background: var(--bs-primary-hover); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.language-switch-form { margin: 0; display: flex; align-items: center; }
.topbar-login { color: var(--green); font-size: 14px; font-weight: 700; }
.topbar .language-switch { border: 0; background: transparent; color: var(--ink); font-size: 15.6px; font-weight: 700; }
.menu-button,
.mobile-offcanvas,
.offcanvas-backdrop,
.bottom-nav { display: none; }
.button { min-height: 46px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 5px; font-size: 15.6px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-green { background: var(--green); color: white; }
.button-green:hover { background: var(--green-dark); }
.button-outline { border-color: #d5d9d1; background: transparent; color: var(--ink); }
.button-light { background: var(--lime); color: var(--green-dark); }
.topbar .topbar-cta { min-height: 42px; padding: 0 18px; border-radius: 0; background: var(--lime); color: var(--green-dark); font-size: 14.3px; white-space: nowrap; }
.topbar .topbar-cta:hover { background: #e4f49f; color: var(--green-dark); }
.marketplace-intro { width: min(1190px, calc(100% - 36px)); margin: auto; padding: 38px 0 0; text-align: center; }
.marketplace-intro .eyebrow { justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #6a796f; font-size: 11.7px; font-weight: 700; letter-spacing: 1.55px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #a7cf53; box-shadow: 0 0 0 4px #a7cf5320; }
.marketplace-intro h1 { margin: 14px 0 13px; color: var(--ink); font: 800 clamp(34px, 4.4vw, 52px)/1.08 "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -1.6px; }
.marketplace-intro h1 span { color: var(--green); }
.marketplace-intro p { max-width: 680px; margin: 0 auto; color: #59665c; font-size: 18px; line-height: 1.7; }
.material-categories { width: min(1190px, calc(100% - 36px)); margin: auto; padding: 38px 0 12px; }
.material-categories-heading { margin-bottom: 28px; text-align: center; }
.material-categories-heading .eyebrow { justify-content: center; }
.material-categories-heading h2 { margin: 9px 0 0; color: var(--ink); font: 800 32px/1.2 "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -1px; }
.material-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); justify-items: center; gap: 15px; }
.material-category { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-align: center; }
.material-category-image { width: clamp(78px, 10vw, 126px); aspect-ratio: 1; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: #e8eee1; box-shadow: 0 5px 16px #202c2714; transition: transform .2s ease, box-shadow .2s ease; }
.material-category-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.material-category:hover .material-category-image { transform: translateY(-3px); box-shadow: 0 10px 24px #202c2724; }
.material-category:hover .material-category-image img { transform: scale(1.07); }
.material-category strong { font-size: 13px; font-weight: 700; }
.material-category:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.category-page { width: min(1190px, calc(100% - 64px)); margin: auto; padding: 22px 0 76px; }
.category-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #8a938c; font-size: 13px; }
.category-breadcrumb a { color: var(--green); font-weight: 700; }
.category-heading { display: block; padding: 8px 0 24px; }
.category-heading h1 { margin: 12px 0 8px; color: var(--ink); font: 800 clamp(14px, 1.75vw, 21px)/1.2 "Manrope", "Noto Sans Arabic", sans-serif; }
.category-heading h1 span { color: #7c897f; font-size: .62em; white-space: nowrap; }
.category-heading p { max-width: 700px; margin: 0; color: #727b75; font-size: 15px; line-height: 1.7; }
.category-filter-shell { position: relative; z-index: 100; isolation: isolate; margin-bottom: 24px; }
.category-filter-bar { min-height: 74px; display: flex; align-items: stretch; border: 0; border-radius: 0; background: #fff; }
.category-filter-field { min-width: 0; flex: 1; padding: 8px 12px; display: flex; align-items: center; color: #788179; }
.category-filter-field + .category-filter-field { border-inline-start: 1px solid #cfe2ff; }
.category-filter-field select,
.category-search-input { width: 100%; min-width: 0; height: 42px; border: 1px solid var(--bs-primary); background: #fff; }
.category-filter-field select { height: 42px; padding: 0 10px; border: 1px solid var(--bs-primary); background: #fff; color: #707b83; font: inherit; font-size: 14px; }
.category-search { flex: 1.5; }
.category-search-input { position: relative; display: flex; align-items: center; padding: 0 10px; }
.category-search-input input { width: 100%; min-width: 0; height: 100%; padding: 0; padding-inline-end: 28px; border: 0; outline: 0; background: transparent; color: #707b83; font: inherit; font-size: 14px; }
.category-search-input > span { position: absolute; inset-inline-end: 10px; color: var(--bs-primary); font-size: 22px; line-height: 1; }
.category-more-filters { min-width: 142px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-inline-start: 1px solid #d8dce1; border-radius: 0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; }
.category-filter-chevron { color: #66737b; font-size: 20px; line-height: 1; }
.category-filter-dropdown { position: absolute; z-index: 101; top: calc(100% + 6px); inset-inline-end: 0; width: min(390px, calc(100vw - 40px)); max-height: min(75vh, 590px); overflow-y: auto; padding: 16px; border: 1px solid var(--bs-border-color); background: #fff; box-shadow: 0 .5rem 1rem #21252926; }
.category-filter-dropdown h2 { margin: 0 0 10px; color: var(--bs-dark); font-size: 16px; font-weight: 800; }
.category-filter-option { min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--bs-dark); font-size: 15px; }
.category-filter-option input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; appearance: none; border: 1px solid #adb5bd; border-radius: 0; background: #fff; cursor: pointer; }
.category-filter-option input:checked { border-color: var(--bs-primary); background: var(--bs-primary); }
.category-filter-option input:checked::after { width: 6px; height: 11px; margin: 3px 7px; display: block; border: solid #fff; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.category-results-heading label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: #788179; font-size: 11px; font-weight: 700; }
.category-results-heading select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #dfe4dc; border-radius: 0; background: #fffefa; color: var(--ink); font: inherit; font-size: 13px; }
.category-filter-dropdown-footer { margin: 12px -16px -16px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--bs-border-color); }
.category-filter-clear,
.category-filter-apply { min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 0; font-size: 14px; font-weight: 700; }
.category-filter-clear { background: transparent; color: var(--bs-dark); }
.category-filter-apply { background: var(--bs-primary); color: #fff; }
.category-filter-apply:hover { background: var(--bs-primary-hover); }
.category-results-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 24px; }
.category-sidebar { display: grid; gap: 16px; }
.category-sidebar-block { padding: 20px; border: 1px solid var(--line); background: #fffefa; }
.category-sidebar-block h2 { margin: 0 0 11px; color: var(--ink); font-size: 16px; font-weight: 800; }
.category-sidebar-block nav { display: grid; }
.category-sidebar-block nav a { min-height: 52px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eff0ea; color: #657169; font-size: 16.6px; transition: background .15s ease, color .15s ease; }
.category-sidebar-block nav a:last-child { border-bottom: 0; }
.category-sidebar-block nav a:hover,
.category-sidebar-block nav a.selected { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.category-sidebar-block nav a.selected { font-weight: 800; }
.category-count { color: #8a938c; font-size: 14.1px; }
.category-results { min-width: 0; }
.category-results-heading { min-height: 42px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.category-results-heading h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 800; }
.category-results-heading label { flex-direction: row; align-items: center; gap: 9px; white-space: nowrap; }
.category-results-heading select { width: auto; min-width: 150px; }
.category-results .browse-footer { margin-top: 20px; }
.how-it-works-page { width: min(1190px, calc(100% - 64px)); margin: auto; padding: 76px 0 90px; }
.how-it-works-intro { max-width: 760px; }
.how-it-works-intro h1 { margin: 18px 0 13px; color: var(--ink); font: 800 clamp(38px, 5vw, 56px)/1.1 "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -2px; }
.how-it-works-intro h1 span { color: var(--green); }
.how-it-works-intro > p { max-width: 660px; margin: 0; color: #727b75; font-size: 18px; line-height: 1.75; }
.how-it-works-steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-it-works-step { min-height: 255px; padding: 25px; border: 1px solid var(--line); background: #fffefa; }
.how-it-works-step-top { display: flex; align-items: center; justify-content: space-between; color: #82927e; font: 800 23px "Manrope", sans-serif; }
.how-it-works-step-top span:last-child { width: 42px; height: 42px; display: grid; place-items: center; background: var(--lime); color: var(--green-dark); font-size: 23px; }
.how-it-works-step h2 { margin: 27px 0 10px; color: var(--ink); font: 800 22px/1.25 "Manrope", "Noto Sans Arabic", sans-serif; }
.how-it-works-step p { margin: 0; color: #727b75; font-size: 15px; line-height: 1.7; }
.how-it-works-cta { margin-top: 30px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #f5f5ee; }
.how-it-works-cta p { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; }
.how-it-works-cta > div { display: flex; flex-wrap: wrap; gap: 9px; }
.help-opportunity { margin-top: 24px; padding: 26px; border: 1px solid var(--bs-border-color); background: #fff; }
.help-opportunity h2 { margin: 12px 0 8px; color: var(--ink); font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.help-opportunity > div > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.help-opportunity ul { margin: 20px 0 0; padding-inline-start: 22px; color: var(--ink); }
.help-opportunity li { margin: 8px 0; padding-inline-start: 4px; font-size: 14px; line-height: 1.6; }
.help-opportunity-note { margin: 18px 0 0; padding: 12px 14px; border-inline-start: 4px solid var(--bs-info); background: #e7f8fc; color: #35535a; font-size: 13px; line-height: 1.6; }
.market-section { width: min(1190px, calc(100% - 64px)); margin: auto; padding: 23px 0 90px; }
.search-box, .city-select { height: 47px; display: flex; align-items: center; border: 1px solid #e3e6df; border-radius: 4px; background: #fffefa; }
.search-box { flex: 1; padding: 0 13px; gap: 10px; }
.search-icon { color: #607066; font-size: 29.9px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14.3px; }
.search-box input::placeholder { color: #a2aaa3; }
.search-shortcut { padding: 3px 6px; border: 1px solid #e7e9e3; border-radius: 3px; color: #a3aaa3; font-size: 10.4px; white-space: nowrap; }
.city-select { min-width: 170px; padding: 0 12px; gap: 8px; color: #65756a; }
.city-select select { width: 100%; border: 0; outline: 0; appearance: none; background: transparent; color: #45554a; font-size: 13px; font-weight: 600; }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.listing-card { overflow: hidden; border: 1px solid #e9eae4; border-radius: 5px; background: #fffefa; transition: transform .2s ease, box-shadow .2s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px #223a2410; }
.listing-visual { position: relative; height: 148px; display: grid; place-items: center; overflow: hidden; }
.listing-visual::before, .listing-visual::after { position: absolute; content: ""; border: 1px solid currentColor; border-radius: 50%; opacity: .14; }
.listing-visual::before { width: 150px; height: 150px; }
.listing-visual::after { width: 205px; height: 205px; }
.visual-plastic { background: #e8eee1; color: #3b7056; }
.visual-paper { background: #f0e9d9; color: #90784e; }
.visual-metal { background: #e5eaeb; color: #58747a; }
.visual-other { background: #efe5d8; color: #8a6743; }
.visual-glass { background: #dceef0; color: #4e7f86; }
.visual-wood { background: #eee3d2; color: #866844; }
.visual-textiles { background: #eadfec; color: #755a7d; }
.visual-electronics { background: #e1e5f0; color: #596783; }
.material-symbol { position: relative; z-index: 1; color: currentColor; font-size: 70.2px; font-weight: 400; opacity: .82; }
.available-pill { position: absolute; z-index: 2; top: 11px; left: 11px; padding: 5px 7px; display: flex; align-items: center; gap: 5px; border-radius: 2px; background: #fffefa; color: #5a725e; font-size: 9.1px; font-weight: 700; letter-spacing: .8px; }
.available-pill i, .pending-badge i, .status-badge i { width: 5px; height: 5px; border-radius: 50%; background: #8eb453; }
.visual-code { position: absolute; right: 11px; bottom: 10px; color: #64746a; font: 600 8px "Manrope", sans-serif; letter-spacing: .9px; }
.listing-content { padding: 15px 14px 13px; }
.listing-meta { display: flex; align-items: center; gap: 6px; color: #7e8a7f; font-size: 11.7px; font-weight: 600; }
.meta-dot { color: #bec4bc; }
.listing-content h3 { margin: 8px 0 10px; color: var(--ink); font: 700 14px "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -.3px; }
.seller-line { display: flex; align-items: center; gap: 6px; color: #778078; font-size: 11.7px; }
.seller-avatar { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #edf0e7; color: var(--green); font-size: 10.4px; font-weight: 700; }
.seller-mark { width: 12px; height: 12px; display: grid; place-items: center; border-radius: 50%; background: #d8ebc1; color: #47743e; font-size: 10.4px; }
.listing-bottom { min-height: 44px; margin-top: 12px; padding-top: 10px; display: flex; align-items: flex-start; justify-content: space-between; border-top: 1px solid #eff0ea; }
.quantity { color: #8a928b; font-size: 11.7px; }
.quantity strong { color: var(--ink); font-size: 15.6px; }
.price { display: flex; flex-direction: column; align-items: flex-end; color: #9aa198; font-size: 10.4px; }
.price strong { color: var(--green); font: 700 11px "Manrope", sans-serif; }
.card-action { width: 100%; padding: 10px 0 0; display: flex; justify-content: space-between; border: 0; border-top: 1px solid #eff0ea; background: transparent; color: var(--green); font-size: 11.7px; font-weight: 700; }
.listing-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; color: #788179; font-size: 13px; }
.listing-pagination-top { margin-top: 0; margin-bottom: 20px; }
.listing-pagination button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e3e6df; border-radius: 4px; background: #fffefa; color: var(--green); font-size: 13px; font-weight: 700; }
.listing-pagination button:disabled { cursor: default; opacity: .45; }
.listing-pagination strong { color: var(--ink); }
[dir="rtl"] .listing-pagination button span { transform: rotate(180deg); }
.browse-footer { min-height: 52px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #8a938c; font-size: 13px; }
.browse-footer strong { color: var(--ink); }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 700; }
.empty-state { padding: 48px 20px; border: 1px dashed #dfe3da; text-align: center; color: #7b867d; }
.empty-state > span { color: #85a272; font-size: 39px; }
.empty-state h3 { margin: 9px 0 4px; color: var(--ink); font: 700 18px "Manrope", sans-serif; }
.empty-state p { margin: 0 0 16px; font-size: 15.6px; }
.sell-section {
   padding: 56px 32px;
   background: #edf4e9;
}
.sell-form-wrap {
   width: min(1190px, 100%);
   margin: 0 auto;
   padding: 34px 40px 38px;
   border: 1px solid #dde7e3;
   border-top: 5px solid #43a047;
   border-radius: 10px;
   background: #fff;
   box-shadow: 0 18px 50px rgba(28, 67, 54, .10);
}
.form-kicker { display: flex; align-items: center; gap: 8px; color: #88948a; font-size: 10.4px; font-weight: 700; letter-spacing: 1.1px; }
.form-step { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #edf1e8; color: var(--green); font-size: 11.7px; letter-spacing: 0; }
.sell-form-wrap h3 { margin: 15px 0 7px; color: var(--ink); font: 700 26px/1.25 "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -.6px; }
.sell-form-wrap > p { max-width: 700px; margin: 0 0 24px; color: #778078; font-size: 15px; line-height: 1.65; }
.listing-form { display: flex; flex-direction: column; gap: 18px; }
.listing-form label { display: flex; flex-direction: column; gap: 8px; color: #59665d; font-size: 11.7px; font-weight: 700; line-height: 1.45; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.listing-form input, .listing-form select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #9dbbff; border-radius: 8px; outline: 0; background: #fff; color: #39483e; font-size: 13px; }
.listing-form input[type="file"] { min-height: 48px; padding: 9px; color: #59665d; }
.listing-form input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 7px 12px; border: 0; border-radius: 6px; background: #edf3ff; color: #0757d1; font: inherit; font-weight: 700; cursor: pointer; }
.listing-form input:hover, .listing-form select:hover { border-color: #5f91ff; }
.listing-photo-input .form-note { margin-top: 0; font-weight: 400; }
.listing-form input:focus, .listing-form select:focus { border-color: #0866f9; box-shadow: 0 0 0 3px #0866f926; }
.listing-form input::placeholder { color: #b0b6af; }
.validation-message { color: #b5483d; font-size: 10.4px; font-weight: 500; }
.form-submit { width: min(100%, 260px); min-height: 48px; margin-top: 2px; align-self: flex-start; background: #0866f9; color: #fff; }
.form-submit:hover { background: #0757d1; }
.form-success { padding: 9px 10px; border: 1px solid #d4e5cf; border-radius: 3px; background: #f1f7ed; color: #416a44; font-size: 11.7px; line-height: 1.5; }
.form-note { margin-top: 13px; display: flex; align-items: flex-start; gap: 7px; color: #969e95; font-size: 10.4px; line-height: 1.5; }
.form-note span { color: #91a186; }
.closing-banner { min-height: 150px; padding: 32px max(32px, calc((100% - 1190px) / 2)); display: flex; align-items: center; gap: 22px; background: var(--green); color: white; }
.closing-spark { color: var(--lime); font-size: 44.2px; }
.closing-banner .eyebrow { color: #b8c8b7; font-size: 10.4px; }
.closing-banner h2 { margin: 7px 0 0; font: 700 23px "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -.7px; }
.closing-banner .button { margin-left: auto; }
.site-footer { height: 100px; background: #143a2e; color: #d9e3d8; }
.footer-inner { gap: 22px; }
.brand-footer { color: #f2f4e8; font-size: 22.1px; }
.brand-footer .brand-mark { width: 210px; height: 84px; flex-basis: 210px; }
.footer-inner p { color: #aab9ac; font-size: 11.7px; }
.footer-location { margin-left: auto; color: #aab9ac; font-size: 11.7px; }
.footer-location span { margin: 0 5px; color: var(--lime); }

/* Admin preview */
.admin-page { width: min(1190px, calc(100% - 64px)); min-height: calc(100vh - 157px); margin: auto; padding: 63px 0 75px; }
.admin-topline { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.admin-topline h1 { margin: 11px 0 7px; font: 800 32px "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -1.4px; }
.heading-period { color: #8caf58; }
.admin-topline p { margin: 0; color: #78827a; font-size: 14.3px; }
.admin-date { display: flex; align-items: center; gap: 8px; color: #808a81; font-size: 10.4px; font-weight: 700; letter-spacing: 1px; }
.status-live { width: 7px; height: 7px; border-radius: 50%; background: #8ab957; box-shadow: 0 0 0 4px #8ab95720; }
.demo-warning { margin-bottom: 20px; padding: 13px 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #eddfc5; border-radius: 4px; background: #faf4e9; color: #765a31; }
.warning-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e5a84e; color: white; font: 700 12px "Manrope", sans-serif; }
.demo-warning strong { display: block; font-size: 13px; }
.demo-warning p { margin: 3px 0 0; color: #8f7955; font-size: 11.7px; line-height: 1.5; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-card { position: relative; min-height: 126px; padding: 17px 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e7e9e2; border-radius: 4px; background: #fffefa; }
.metric-label { color: #8a938c; font-size: 10.4px; font-weight: 700; letter-spacing: 1px; }
.metric-card > strong { margin-top: 12px; color: var(--ink); font: 700 29px "Manrope", sans-serif; letter-spacing: -1px; }
.metric-foot { margin-top: 3px; color: #969f97; font-size: 10.4px; }
.metric-icon { position: absolute; top: 14px; right: 16px; color: #a0aa9e; font-size: 22.1px; }
.green-icon { color: #6a9c5e; }
.amber-icon { color: #c4934e; }
.metric-attention { border-color: #eddfc7; }
.admin-listings { margin-top: 40px; }
.admin-section-heading { margin-bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; }
.admin-section-heading h2 { margin: 8px 0 0; font: 700 22px "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -.8px; }
.pending-badge { padding: 7px 9px; display: flex; align-items: center; gap: 6px; border: 1px solid #eee1cb; border-radius: 3px; background: #fbf5eb; color: #9a7645; font-size: 10.4px; font-weight: 700; }
.pending-badge i { background: #d7a353; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #e7e9e2; border-radius: 4px; background: #fffefa; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.admin-table th { height: 39px; padding: 0 13px; border-bottom: 1px solid #e9ebe5; background: #f8f8f3; color: #89938b; font-size: 9.1px; font-weight: 700; letter-spacing: .8px; }
.admin-table td { height: 59px; padding: 8px 13px; border-bottom: 1px solid #eff0eb; color: #6e7971; font-size: 11.7px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td strong { color: #35433a; }
.table-material { display: flex; align-items: center; gap: 9px; }
.table-material-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; font-size: 20.8px; }
.table-material > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.table-material strong { font-size: 11.7px; }
.table-material small { color: #8b958c; font-size: 10.4px; }
.status-badge { padding: 5px 7px; display: inline-flex; align-items: center; gap: 5px; border-radius: 2px; font-size: 10.4px; font-weight: 600; }
.status-published { background: #edf4e9; color: #56804b; }
.status-published i { background: #81af69; }
.status-pending { background: #fbf3e5; color: #a37a3c; }
.status-pending i { background: #d4a150; }
.status-rejected { background: #f8ebe9; color: #ad6459; }
.status-rejected i { background: #cc786d; }
.table-actions { display: flex; gap: 5px; }
.table-actions button { width: 26px; height: 25px; border: 1px solid; border-radius: 3px; background: transparent; font-size: 15.6px; }
.approve-button { border-color: #d6e5d0 !important; color: #5b8850; }
.approve-button:hover { background: #edf4e9; }
.reject-button { border-color: #eed8d5 !important; color: #b3695e; }
.reject-button:hover { background: #f8ebe9; }
.no-action { color: #b5bcb4; }
.admin-notice { margin-top: 11px; padding: 9px 12px; border: 1px solid #d6e6d0; border-radius: 3px; background: #f0f7ed; color: #55744b; font-size: 11.7px; }
.admin-footnote { margin-top: 15px; display: flex; align-items: center; gap: 7px; color: #8c958d; font-size: 11.7px; }
.admin-footnote span { color: #8caa78; }

/* Listing details */
.modal-backdrop {
   position: fixed;
   z-index: 99999;
   inset: 0;
   padding: 24px;
   display: grid;
   place-items: center;
   background: rgba(13, 27, 22, .72);
   backdrop-filter: blur(8px);
}
.detail-modal {
   position: relative;
   width: min(920px, calc(100vw - 48px));
   max-height: calc(100vh - 48px);
   overflow: hidden;
   border: 1px solid rgba(255,255,255,.8);
   border-radius: 16px;
   background: #fff;
   box-shadow: 0 28px 90px rgba(7, 22, 15, .38);
}
.detail-layout { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(320px, .95fr); min-height: 520px; }
.detail-media { position: relative; min-width: 0; padding: 34px; background: #edf3ef; }
.detail-media .detail-gallery { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) 68px; gap: 12px; }
.detail-media .detail-photo { width: 100%; height: 100%; max-height: 390px; border-radius: 10px; background: #dde5df; object-fit: cover; }
.detail-content { min-width: 0; max-height: calc(100vh - 48px); overflow-y: auto; padding: 42px 38px 32px; }
.detail-breadcrumb { margin-bottom: 12px; color: #76877e; font-size: 13px; font-weight: 700; }
.detail-breadcrumb span { margin: 0 5px; color: #91a097; }
.detail-status { position: absolute; z-index: 2; top: 46px; inset-inline-end: 46px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: #fff; color: #3d7048; font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px #1a38291a; }
.detail-status i { width: 7px; height: 7px; border-radius: 50%; background: #43a047; }
.detail-seller { display: flex; align-items: center; gap: 11px; margin: 16px 0; padding: 12px; border: 1px solid #e5ebe7; border-radius: 8px; background: #fafcf9; }
.detail-seller-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 50%; background: #143a2e; color: #d4e35f; font-weight: 800; }
.detail-seller div { display: flex; flex-direction: column; gap: 3px; }
.detail-seller small { color: #8a968f; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.detail-seller strong { color: #26352d; font-size: 14px; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.detail-contact-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #cbd8d1; border-radius: 6px; color: #315646; font-weight: 800; }
.modal-close { position: absolute; z-index: 5; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border: 1px solid #e4e8e5; border-radius: 50%; background: #fff; color: #68766d; font-size: 24px; line-height: 1; box-shadow: 0 4px 12px #17302412; }
.detail-icon { width: 72px; height: 72px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 5px; font-size: 45.5px; }
.detail-modal h2 { margin: 8px 0 12px; color: #26352d; font: 800 30px/1.15 "Manrope", "Noto Sans Arabic", sans-serif; letter-spacing: -.8px; }
.detail-description { color: #68766e; font-size: 15px; line-height: 1.75; }
.detail-facts { margin: 20px 0; padding: 13px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts span { display: flex; flex-direction: column; gap: 5px; }
.detail-facts small { color: #8b948d; font-size: 10.4px; font-weight: 700; letter-spacing: .8px; }
.detail-facts strong { color: var(--ink); font-size: 15.6px; }
.contact-note { padding: 11px; border: 1px solid #e4e8dd; border-radius: 3px; background: #f4f5ef; color: #778278; font-size: 11.7px; line-height: 1.6; }
.modal-primary { width: 100%; margin-top: 15px; }
#blazor-error-ui { display: none; position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; padding: .6rem 1.25rem .7rem; background: #fff4ce; box-shadow: 0 -1px 2px #0002; color: #333; }
#blazor-error-ui .dismiss { position: absolute; top: .5rem; right: .75rem; cursor: pointer; }

[dir="rtl"] { font-family: "Noto Sans Arabic", "DM Sans", sans-serif; }
[dir="rtl"] .topbar-inner, [dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .listing-meta, [dir="rtl"] .seller-line { direction: rtl; }
[dir="rtl"] .price { align-items: flex-start; }
[dir="rtl"] .available-pill { right: 11px; left: auto; }
[dir="rtl"] .visual-code { right: auto; left: 11px; }
[dir="rtl"] .metric-icon { right: auto; left: 16px; }
[dir="rtl"] .closing-banner .button { margin: 0 auto 0 0; }
[dir="rtl"] .footer-location { margin: 0 auto 0 0; }
[dir="rtl"] .modal-close { right: auto; left: 14px; }
[dir="rtl"] .admin-table { text-align: right; }
[dir="rtl"] .table-material { flex-direction: row; }

@media (max-width: 950px) {
    .topbar { height: auto; min-height: 78px; }
    .topbar-inner { width: calc(100% - 36px); height: auto; min-height: 78px; padding: 10px 0; flex-wrap: wrap; gap: 9px 16px; }
    .topbar-title { flex: 1 1 140px; overflow: hidden; text-overflow: ellipsis; font-size: clamp(12px, 1.8vw, 17px); }
    .topbar-search { order: 1; flex: 0 0 100%; max-width: none; height: 44px; margin: 0; }
    .topbar-actions { gap: 8px; }
    .topbar .topbar-cta { padding: 0 11px; font-size: 12px; }
    .material-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-table { min-width: 760px; }
    .category-results-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
    .category-filter-field { padding-inline: 12px; }
    .category-search { min-width: 220px; }
    .category-more-filters { min-width: 120px; padding-inline: 14px; }
}
@media (max-width: 680px) {
    .account-offcanvas-backdrop {
        position: fixed;
        z-index: 69;
        inset: 0;
        display: block;
        border: 0;
        background: #19231ec2;
        backdrop-filter: blur(2px);
    }
    .account-dropdown {
        position: fixed;
        z-index: 70;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(82vh, 720px);
        display: flex;
        flex-direction: column;
        border: 0;
        border-top: 1px solid var(--bs-border-color);
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -18px 50px #21252940;
    }
    [dir="rtl"] .account-dropdown { direction: rtl; }
    .account-dropdown-head {
        display: block;
        min-height: 68px;
        border-bottom: 1px solid var(--bs-border-color);
        background: #fff;
    }
    .account-dropdown-user {
        min-height: 68px;
        padding: 10px 16px;
        border: 0;
        background: #fff;
    }
    .account-dropdown-nav {
        display: grid;
        gap: 7px;
        padding: 12px 16px 8px;
    }
    .account-dropdown-nav > a,
    .account-dropdown-signout button {
        min-height: 58px;
        padding: 0 12px;
        display: grid;
        grid-template-columns: 40px 1fr 24px;
        align-items: center;
        column-gap: 6px;
        border: 1px solid #9ec5fe;
        border-radius: 0;
        background: var(--bs-primary-subtle);
        color: var(--bs-primary-hover);
        font-size: 16px;
        font-weight: 700;
        text-align: start;
    }
    .account-dropdown-nav > a:nth-child(1) { border-inline-start: 5px solid var(--bs-primary); }
    .account-dropdown-nav > a:nth-child(2) { border-inline-start: 5px solid var(--bs-success); }
    .account-dropdown-nav > a:nth-child(3) { border-inline-start: 5px solid var(--bs-warning); }
    .account-dropdown-nav > a > span:first-child,
    .account-dropdown-signout button > span:first-child {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        justify-self: center;
        background: #fff;
        color: var(--bs-primary-hover);
        font-size: 20px;
    }
    .account-dropdown-nav > a b,
    .account-dropdown-signout button b {
        display: block;
        justify-self: end;
        color: var(--bs-primary);
        font-size: 28px;
    }
    [dir="rtl"] .account-dropdown-nav > a b,
    [dir="rtl"] .account-dropdown-signout button b {
        display: block;
        justify-self: start;
        transform: rotate(180deg);
    }
    .account-dropdown-signout {
        margin: 0;
        padding: 8px 16px 16px;
        border: 0;
    }
    .account-dropdown-signout button {
        border-color: #f1aeb5;
        background: var(--bs-danger);
        color: #fff;
    }
    .account-dropdown-signout button > span:first-child,
    .account-dropdown-signout button b { color: #fff; }
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .app-shell { padding-bottom: 0; }
    .topbar { height: auto; min-height: 66px; }
    .topbar-inner, .footer-inner { width: calc(100% - 34px); }
    .topbar-inner { height: auto; min-height: 66px; padding: 8px 0 10px; flex-wrap: wrap; gap: 8px; }
    .brand { order: 1; font-size: 23.4px; }
    .brand-mark { width: 150px; height: 28px; flex-basis: 150px; }
    .topbar .brand-mark { width: 150px; height: 56px; flex-basis: 150px; }
    .topbar-title { order: 1; flex: 1 1 50px; font-size: clamp(14px, 3.8vw, 18px); }
    .topbar-actions { order: 1; margin-left: auto; gap: 9px; }
    .topbar-search { order: 2; flex: 1 0 100%; width: 100%; max-width: none; height: 46px; margin: 0; overflow: hidden; border: 2px solid var(--bs-primary); border-radius: 0; background: #fff; }
    .topbar-search select { flex-basis: 112px; padding: 0 8px; border-inline-start: 1px solid var(--bs-border-color); border-radius: 0; }
    .topbar-search button { min-width: 64px; padding: 0 10px; border-radius: 0; background: var(--bs-primary); }
    .topbar-search input { padding: 0 10px; font-size: 13px; }
    .bottom-nav-item { font-size: 14.3px; }
    .bottom-nav-icon { font-size: 26px; }
    .topbar-actions .language-switch,
    .topbar-actions .topbar-cta,
    .topbar-actions .topbar-map { display: none; }
    .menu-button { width: 38px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #78a8ff; border-radius: 0; background: #e8f1ff; }
    .menu-button span { width: 17px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
    [dir="rtl"] .topbar-actions { margin: 0 auto 0 0; }
    .mobile-offcanvas { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(84vw, 340px); display: flex; flex-direction: column; padding: 18px 18px 24px; background: #fff; box-shadow: 18px 0 50px #21252940; transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
    [dir="rtl"] .mobile-offcanvas { right: 0; left: auto; transform: translateX(105%); }
    .mobile-offcanvas.open { transform: translateX(0); }
    .offcanvas-backdrop { position: fixed; z-index: 49; inset: 0; display: block; border: 0; background: #19231ec2; backdrop-filter: blur(2px); }
    .offcanvas-head { height: 52px; display: flex; align-items: center; justify-content: space-between; }
    .offcanvas-close { width: 38px; height: 38px; border: 1px solid var(--bs-primary); border-radius: 0; background: var(--bs-primary-subtle); color: var(--bs-primary-hover); font-size: 29.9px; line-height: 1; }
    .offcanvas-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
    .offcanvas-nav > a { min-height: 58px; padding: 0 12px; display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; column-gap: 6px; border: 1px solid #9ec5fe; border-radius: 0; background: #fff; color: var(--bs-primary-hover); font-size: 16.9px; font-weight: 700; text-decoration: none; }
    .offcanvas-nav > a:nth-child(1) { border-inline-start: 5px solid var(--bs-primary); }
    .offcanvas-nav > a:nth-child(2) { border-inline-start: 5px solid var(--bs-success); }
    .offcanvas-nav > a:nth-child(3) { border-inline-start: 5px solid var(--bs-warning); }
    .offcanvas-nav > a:nth-child(4) { border-inline-start: 5px solid var(--bs-danger); }
    .offcanvas-nav > a > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; justify-self: center; border-radius: 0; background: var(--bs-primary-subtle); color: var(--bs-primary-hover); font-size: 25px; line-height: 1; }
    .offcanvas-nav > a b { width: 24px; height: 36px; display: grid; place-items: center; justify-self: end; color: #064ab3; font-size: 30px; line-height: 1; }
    .offcanvas-nav > a:hover, .offcanvas-nav > a.active { border-color: var(--bs-primary); background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
    [dir="rtl"] .offcanvas-nav > a b { justify-self: start; transform: rotate(180deg); }
    .offcanvas-language { min-height: 48px; margin-top: 18px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #78a8ff; border-radius: 0; background: #e8f1ff; color: #064ab3; font-size: 15.6px; font-weight: 700; }
    .offcanvas-language b { color: #064ab3; font-size: 11.7px; letter-spacing: 1px; }
    .offcanvas-note { margin-top: auto; display: flex; align-items: center; gap: 10px; color: #8b958d; font-size: 13px; }
    .offcanvas-note > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #edf1e8; color: var(--green); font-size: 11.7px; font-weight: 800; }
    .offcanvas-note p { margin: 0; }
    .bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; height: calc(72px + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; background: var(--bs-dark); box-shadow: 0 -8px 24px #21252926; backdrop-filter: none; }
    .bottom-nav-item { min-width: 0; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 0; border-radius: 0; background: transparent; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; }
    .bottom-nav-item:first-child { border-inline-start: 0; }
    .bottom-nav-item.active { background: transparent; color: #fff; }
    .bottom-nav-item:hover { background: #7040df; color: #fff; }
    .bottom-nav-item:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
    .bottom-nav-icon { height: 26px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
    .bottom-nav-label { display: none; }
    .bottom-nav-primary { position: static; z-index: 3; width: 72px; height: 72px; min-height: 72px; align-self: center; justify-self: center; padding: 0; border: 0; border-radius: 0; background: var(--bs-primary) !important; color: #fff; transform: none; box-shadow: none; }
    .bottom-nav-primary:hover, .bottom-nav-primary.active { border: 0; background: var(--bs-primary-hover) !important; color: #fff; }
    .bottom-nav-add { width: 100%; height: 100%; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 32px; line-height: 1; }
    .topbar-cta { min-height: 35px; padding: 0 10px; font-size: 11.7px; }
    [dir="rtl"] .topbar-actions { margin: 0 auto 0 0; }
    .marketplace-intro { padding-top: 27px; }
    .marketplace-intro h1 { margin: 12px 0; font-size: 33.8px; letter-spacing: -1px; }
    .marketplace-intro p { font-size: 15.6px; }
    .material-categories { padding: 38px 0 8px; }
    .material-categories-heading { margin-bottom: 22px; }
    .material-categories-heading h2 { font-size: 27px; }
    .material-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 8px; }
    .material-category-image { width: clamp(64px, 18vw, 98px); border-width: 3px; }
    .material-category strong { font-size: 12px; }
    .category-page { width: calc(100% - 36px); padding: 18px 0 54px; }
    .category-breadcrumb { margin-bottom: 14px; font-size: 12px; }
    .category-heading { padding: 4px 0 18px; }
    .category-heading h1 { font-size: 14px; }
    .category-heading p { font-size: 14px; }
    .category-filter-bar { min-height: 0; flex-direction: column; border-radius: 0; }
    .category-filter-field { min-height: 62px; padding: 9px 14px; }
    .category-filter-field + .category-filter-field { border-inline-start: 0; border-top: 1px solid #d8dce1; }
    .category-more-filters { min-height: 56px; justify-content: space-between; border-inline-start: 0; border-top: 1px solid #d8dce1; border-radius: 0; }
    .category-filter-dropdown { width: 100%; max-height: 70vh; padding: 14px; }
    .category-filter-dropdown-footer { margin: 12px -14px -14px; padding: 10px 14px; }
    .category-results-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .category-sidebar { display: block; }
    .category-sidebar-block { padding: 16px; }
    .category-sidebar-block h2 { margin-bottom: 8px; font-size: 16px; }
    .category-sidebar-block nav { display: grid; gap: 0; overflow: visible; padding-bottom: 0; }
    .category-sidebar-block nav a { min-height: 56px; flex: initial; gap: 10px; padding: 0 10px; border: 0; border-bottom: 1px solid #eff0ea; background: transparent; white-space: normal; font-size: 16.6px; }
    .category-sidebar-block nav a:last-child { border-bottom: 0; }
    .category-sidebar-block nav a.selected { border-color: #eff0ea; background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
    .category-count { font-size: 14.1px; }
    .category-results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .category-results-heading label { width: 100%; justify-content: space-between; }
    .category-results-heading select { flex: 1; }
    .how-it-works-page { width: calc(100% - 36px); padding: 48px 0 60px; }
    .how-it-works-intro h1 { font-size: 37px; }
    .how-it-works-intro > p { font-size: 15.6px; }
    .how-it-works-steps { margin-top: 30px; grid-template-columns: 1fr; gap: 11px; }
    .how-it-works-step { min-height: unset; padding: 21px; }
    .how-it-works-step h2 { margin-top: 19px; font-size: 20px; }
    .how-it-works-step p { font-size: 14px; }
    .how-it-works-cta { align-items: flex-start; flex-direction: column; padding: 19px; }
    .help-opportunity { margin-top: 16px; padding: 19px; }
    .help-opportunity li { font-size: 13px; }
    .market-section { width: calc(100% - 36px); padding: 15px 0 57px; }
    .city-select { min-height: 42px; }
    .listing-grid { gap: 10px; }
    .listing-pagination { gap: 9px; font-size: 12px; }
    .listing-pagination button { min-height: 34px; padding: 0 9px; font-size: 12px; }
    .listing-visual { height: 115px; }
    .listing-content { padding: 11px 10px; }
    .listing-content h3 { font-size: 15.6px; }
    .seller-line { font-size: 10.4px; }
    .listing-bottom { flex-direction: column; gap: 6px; }
    .price { align-items: flex-start; }
    .browse-footer { gap: 10px; font-size: 10.4px; }
    .browse-footer .text-button { max-width: 140px; text-align: right; line-height: 1.5; }
    .sell-section { padding: 38px 18px; }
    .sell-form-wrap { width: 100%; padding: 24px 18px; border-radius: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .closing-banner { padding: 30px 18px; flex-wrap: wrap; gap: 13px; }
    .closing-spark { font-size: 35.1px; }
    .closing-banner h2 { font-size: 24.7px; }
    .closing-banner .button { width: 100%; margin: 9px 0 0 !important; }
    .site-footer { height: auto; min-height: 77px; }
    .footer-inner { padding: 17px 0; flex-wrap: wrap; gap: 8px 13px; }
    .brand-footer .brand-mark { width: 210px; height: 84px; flex-basis: 210px; }
    .footer-inner p { width: calc(100% - 150px); margin: 0; }
    .footer-location { width: 100%; margin: 0 !important; }
    .admin-page { width: calc(100% - 36px); padding: 43px 0 55px; }
    .admin-topline { align-items: flex-start; flex-direction: column; gap: 14px; }
    .admin-topline h1 { font-size: 35.1px; }
    .admin-metrics { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .metric-card { min-height: 112px; padding: 13px; }
    .admin-listings { margin-top: 30px; }
    .admin-section-heading h2 { font-size: 24.7px; }
    .demo-warning { padding: 11px; }
    .admin-footnote { align-items: flex-start; line-height: 1.5; }
    .detail-modal { padding: 24px 19px; }
}

/* Final readability scale: keep controls and data comfortably legible. */
.eyebrow,
.closing-banner .eyebrow,
.search-shortcut,
.available-pill,
.listing-meta,
.seller-line,
.seller-avatar,
.seller-mark,
.quantity,
.price,
.card-action,
.form-kicker,
.form-step,
.listing-form label,
.validation-message,
.form-success,
.form-note,
.footer-inner p,
.footer-location,
.admin-date,
.demo-warning p,
.metric-label,
.metric-foot,
.pending-badge,
.admin-table th,
.admin-table td,
.table-material strong,
.table-material small,
.status-badge,
.admin-notice,
.admin-footnote,
.detail-facts small,
.contact-note,
.offcanvas-language b,
.offcanvas-note > span,
.bottom-nav-item,
.browse-footer,
.text-button { font-size: 15.6px; }

.eyebrow,
.closing-banner .eyebrow,
.search-shortcut,
.metric-label,
.admin-table th,
.pending-badge { font-size: 14.3px; }

.language-switch,
.topbar-cta,
.button,
.search-box input,
.city-select select,
.listing-content h3,
.sell-form-wrap > p,
.listing-form input,
.listing-form select,
.listing-form label,
.admin-topline p,
.demo-warning strong,
.demo-warning p,
.metric-foot,
.admin-table td,
.table-material strong,
.table-material small,
.status-badge,
.admin-footnote,
.bottom-nav-item,
.browse-footer,
.text-button { font-size: 18.2px; }

.listing-content h3 { font-size: 22.1px; }
.seller-line { font-size: 16.9px; }
.price strong,
.quantity strong { font-size: 18.2px; }
.metric-card > strong { font-size: 44.2px; }
.metric-label { font-size: 14.3px; }
.demo-warning strong { font-size: 18.2px; }
.demo-warning p { font-size: 15.6px; }
.admin-table th { height: 48px; }
.admin-table td { height: 72px; }
.table-material strong { font-size: 16.9px; }
.table-material small { font-size: 14.3px; }
.status-badge { font-size: 14.3px; }
.table-actions button { width: 36px; height: 36px; font-size: 19.5px; }
.listing-form label { margin-bottom: 2px; }
.listing-form input,
.listing-form select { min-height: 46px; }
.form-note { font-size: 14.3px; }
.admin-notice { font-size: 15.6px; }
.form-success { font-size: 14.3px; }

@media (max-width: 680px) {
    .bottom-nav-item { font-size: 12px; }
    .topbar-cta { font-size: 14.3px; }
    .listing-content h3 { font-size: 18.2px; }
    .seller-line { font-size: 14.3px; }
    .listing-meta { font-size: 13px; }
    .listing-form label,
    .listing-form input,
    .listing-form select { font-size: 16.9px; }
    .browse-footer,
    .text-button { font-size: 14.3px; }
    .admin-table td { height: 66px; font-size: 15.6px; }
    .demo-warning p { font-size: 14.3px; }
}

.auth-page {
    min-height: calc(100vh - 157px);
    padding: 64px 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, #edf3e5 0, transparent 28%),
        radial-gradient(circle at 82% 76%, #e8eee4 0, transparent 24%),
        #fbfaf6;
}
.auth-card {
    width: min(470px, 100%);
    padding: 36px;
    border: 1px solid #e3e7dd;
    border-radius: 16px;
    background: #fffefa;
    box-shadow: 0 24px 70px #26382a14;
}
.auth-card-wide { width: min(560px, 100%); }
.auth-brand { margin-bottom: 28px; }
.auth-brand .brand-mark { width: 220px; height: 42px; flex-basis: 220px; }
.auth-card h1 {
    margin: 12px 0 8px;
    font: 800 38px/1.12 "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: -1.5px;
}
.auth-lede {
    margin: 0 0 24px;
    color: #6f7b72;
    font-size: 16px;
    line-height: 1.7;
}
.auth-message {
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #d7e5d1;
    border-radius: 8px;
    background: #f1f7ed;
    color: #456247;
    font-size: 14px;
    line-height: 1.6;
}
.auth-message-error {
    border-color: #eccfc9;
    background: #fbefed;
    color: #9b5147;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #536158;
    font-size: 14px;
    font-weight: 700;
}
.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #dde3d8;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
}
.auth-form input:focus {
    border-color: #769580;
    box-shadow: 0 0 0 4px #78977f19;
}
.auth-submit { width: 100%; min-height: 52px; margin-top: 4px; }
.auth-links {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #7b867e;
    font-size: 14px;
}
.auth-links a { color: var(--green); font-weight: 700; }
.role-fieldset {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border: 0;
}
.role-fieldset legend {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    color: #536158;
    font-size: 14px;
    font-weight: 700;
}
.role-radio {
    position: relative;
    min-height: 48px;
    display: grid !important;
    place-items: center;
    border: 1px solid #dde3d8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.role-radio input { position: absolute; opacity: 0; }
.role-radio span { font-size: 13px; }
.role-radio:has(input:checked) {
    border-color: var(--green);
    background: #eff5ec;
    color: var(--green);
}
.account-status-card { text-align: center; }
.status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf3e7;
    color: #668654;
    font-size: 34px;
}

@media (max-width: 680px) {
    .auth-page {
        min-height: calc(100vh - 136px);
        padding: 32px 18px 50px;
        align-items: start;
    }
    .auth-card { padding: 24px 20px; border-radius: 12px; }
    .auth-brand { margin-bottom: 22px; }
    .auth-brand .brand-mark { width: 180px; height: 34px; flex-basis: 180px; }
    .auth-card h1 { font-size: 32px; }
    .auth-lede { font-size: 15px; }
    .role-fieldset { grid-template-columns: 1fr; }
    .role-radio { min-height: 44px; }
    .role-radio span { font-size: 14px; }
}

.user-account { position: relative; z-index: 41; display: inline-flex; align-items: center; gap: 9px; }
.user-account.menu-open { z-index: 1200; }
.user-account.menu-open .user-name-tooltip { display: none; }
.account-activity { position: relative; display: flex; align-items: center; gap: 5px; }
.account-activity-button {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 8px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--bs-primary);
}
.account-activity-button:hover,
.account-activity-button[aria-expanded="true"] { border-color: var(--bs-primary-border-subtle); background: var(--bs-primary-subtle); }
.account-activity-button.has-unread { color: var(--bs-warning-text-emphasis, #664d03); }
.account-activity-button.has-unread:hover,
.account-activity-button.has-unread[aria-expanded="true"] {
    border-color: var(--bs-warning-border-subtle, #ffecb5);
    background: var(--bs-warning-bg-subtle, #fff3cd);
}
.account-activity-button:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.account-activity-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.activity-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}
.account-activity-preview {
    position: absolute;
    z-index: 80;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 430px);
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 .75rem 1.5rem #21252924;
}
.account-activity-preview > header {
    min-height: 49px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--ink);
}
.account-activity-preview > header a { color: var(--bs-primary); font-size: 12px; font-weight: 700; }
.activity-preview-item {
    min-height: 60px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef1f4;
    color: var(--ink);
}
.activity-preview-item:hover,
.activity-preview-item.unread { background: var(--bs-primary-subtle); }
.activity-preview-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.activity-preview-copy strong,
.activity-preview-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-preview-copy strong { font-size: 13px; }
.activity-preview-copy small { color: var(--bs-secondary); font-size: 12px; }
.activity-preview-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 10px;
}
.activity-preview-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--bs-primary); }
.activity-preview-empty { margin: 0; padding: 17px 13px; color: var(--bs-secondary); font-size: 13px; }
.user-name-tooltip {
    position: absolute;
    z-index: 1;
    top: calc(100% + 7px);
    inset-inline-end: 0;
    max-width: min(240px, calc(100vw - 24px));
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: #fff;
    box-shadow: 0 .25rem .75rem #21252924;
    color: var(--bs-dark);
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, visibility .12s ease;
}
.user-avatar-button:hover + .user-name-tooltip,
.user-avatar-button:focus-visible + .user-name-tooltip { opacity: 1; visibility: visible; }
.language-save-error { color: #9b5147; font-size: 11px; }
.user-avatar-button {
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce5d8;
    border-radius: 0;
    background: #edf3e7;
    color: var(--green);
    font-weight: 800;
}
.user-avatar-button img,
.profile-avatar-large,
.account-status-avatar {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center 50%;
}
.user-avatar-button img { transform: translateY(-18%) scale(1.1); }
.user-avatar-button span { font-size: 17px; }
.account-dropdown {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: 320px;
    max-height: min(80vh, 640px);
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 .75rem 1.5rem #21252924;
}
.account-menu-mobile-head,
.account-menu-footer { display: none; }
.account-dropdown-nav { display: grid; }
.account-dropdown-nav > a,
.account-dropdown form button {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #343a40;
    font-size: 14px;
    font-weight: 600;
    text-align: start;
}
.account-dropdown-nav > a {
    border-bottom: 1px solid #eef1f4;
    text-decoration: none;
}
.account-dropdown-nav > a > span:first-child,
.account-dropdown form button > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; background: var(--bs-primary-subtle); color: var(--bs-primary); }
.account-dropdown-nav > a > span:nth-child(2),
.account-dropdown form button > span:nth-child(2) { width: auto; min-width: 0; text-align: start; }
.account-dropdown-nav > a:hover { background: var(--bs-primary-subtle); }
.account-dropdown-signout { margin: 0; border-top: 1px solid var(--bs-border-color); }
.account-dropdown-signout button {
    color: #842029;
    background: #f8d7da;
}
.account-dropdown-signout button:hover { background: #f8d7da !important; color: #842029 !important; }
.account-dropdown-nav > a b,
.account-dropdown-signout button b { display: none; }
.account-dropdown form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--bs-border-color); }
.account-dropdown-nav > a:hover,
.account-dropdown form button:hover { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.account-dropdown-nav > a span,
.account-dropdown form button span { width: 22px; flex: 0 0 22px; color: var(--bs-primary); font-size: 16px; text-align: center; }
.account-dropdown-nav > a:focus-visible,
.account-dropdown form button:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.account-offcanvas-backdrop { display: none; }
.account-dropdown-head { display: block; }
.user-account .account-menu-language-form { margin: 0; padding: 0; border: 0; }
.user-account .account-menu-language-form .offcanvas-language {
    min-height: 50px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef1f4;
    text-align: start;
}
.user-account .account-menu-language-form .offcanvas-language > span:first-child {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--bs-primary-subtle);
    color: var(--bs-primary);
}
.user-account .account-menu-language-form .offcanvas-language > span {
    width: auto;
    min-width: 0;
    text-align: start;
    white-space: normal;
}
.user-account .account-menu-language-form .offcanvas-language > b {
    display: none;
}
.account-menu-count {
    min-width: 20px;
    height: 20px;
    margin-inline-start: 7px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
}
.account-menu-count-error {
    margin: 8px 14px;
    color: var(--bs-secondary);
    font-size: 12px;
}
.account-dropdown-nav { display: grid; }
.profile-page { align-items: start; }
.profile-card { width: min(650px, 100%); }
.profile-summary { margin: 0 0 25px; padding: 15px; display: flex; align-items: center; gap: 14px; border: 1px solid #e7eae2; border-radius: 10px; background: #fafbf7; }
.profile-avatar-large-frame,
.account-status-avatar-frame {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #dce5d8;
    border-radius: 0;
}
.profile-avatar-large-frame img,
.account-status-avatar-frame img { transform: translateY(-18%) scale(1.1); }
.profile-avatar-large-frame img {
    transform: scale(1.28);
    object-fit: cover;
    object-position: center 50%;
}
.profile-avatar-fallback,
.account-status-avatar-fallback { display: grid; place-items: center; background: #edf3e7; color: var(--green); font-size: 28px; font-weight: 800; }
.account-status-avatar-frame { margin: 0 auto 12px; }
.profile-summary-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.profile-summary strong { overflow: hidden; color: var(--ink); font-size: 17px; text-overflow: ellipsis; }
.profile-summary span { overflow: hidden; color: #77827a; font-size: 13px; text-overflow: ellipsis; }
.profile-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-section h2 { margin: 0 0 14px; color: var(--ink); font-size: 19px; }
.profile-section .auth-form { gap: 13px; }
.profile-section .auth-form label { font-size: 14px; }
.profile-section .auth-form input,
.profile-section .auth-form select { min-height: 46px; }
.profile-section .auth-form input[readonly] { background: #f5f6f1; color: #77827a; }
.profile-help { margin: 0 0 12px; color: #748078; font-size: 14px; line-height: 1.6; }
.profile-section input[type="file"] { width: 100%; color: #526158; font-size: 14px; }
.profile-section input[type="file"]::file-selector-button { min-height: 40px; margin-inline-end: 10px; padding: 0 12px; border: 1px solid #dce3d8; border-radius: 6px; background: #f5f7f1; color: var(--green); font-weight: 700; cursor: pointer; }
.profile-readonly { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-readonly span { min-height: 60px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid #e7eae2; border-radius: 7px; background: #fafbf7; }
.profile-readonly small { color: #879188; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.profile-readonly strong { color: #435249; font-size: 14px; }
.profile-danger-zone { padding: 20px; border: 1px solid #ead8d5; border-radius: 8px; background: #fffaf9; }
.profile-danger-zone h2 { color: #9c5148; }
.account-delete-form { max-width: 430px; margin-top: 16px; }
.button-danger { border-color: #b75d52; background: #b75d52; color: #fff; }
.button-danger:hover { background: #994b43; }
.account-admin-table { min-width: 980px; }
.managed-user { min-width: 170px; display: flex; flex-direction: column; gap: 4px; }
.managed-user strong { color: #35433a; }
.managed-user small { color: #89938b; font-size: 10.5px; }
.managed-role { color: #526158; }
.managed-status { padding: 5px 7px; display: inline-flex; border-radius: 3px; font-size: 10.5px; font-weight: 700; }
.managed-status-active { background: #edf4e9; color: #56804b; }
.managed-status-pending { background: #fbf3e5; color: #a37a3c; }
.managed-status-inactive { background: #f8ebe9; color: #ad6459; }
.account-row-actions { display: flex; align-items: center; gap: 7px; }
.admin-contact-actions { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.admin-contact-button {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: 4px;
    background: var(--bs-primary-subtle);
    color: var(--bs-primary);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}
.admin-contact-button:hover:not(:disabled) { background: #cfe2ff; }
.admin-contact-button:disabled { opacity: .5; cursor: not-allowed; }
.admin-communication-form {
    margin-top: 16px;
    padding: 16px;
    display: grid;
    gap: 13px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: #fff;
}
.admin-communication-heading,
.admin-communication-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-communication-heading > div { display: grid; gap: 3px; }
.admin-communication-heading span,
.admin-communication-footer small { color: var(--bs-secondary); font-size: 12px; }
.admin-communication-form label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.admin-communication-form textarea {
    width: 100%;
    min-height: 78px;
    padding: 9px 11px;
    resize: vertical;
    border: 1px solid var(--bs-border-color);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 400;
}
.admin-communication-form textarea:focus { border-color: var(--bs-primary); outline: 2px solid #0d6efd26; }
.admin-select { min-height: 31px; max-width: 130px; padding: 4px 7px; border: 1px solid #dfe4db; border-radius: 4px; background: #fffefa; color: #526158; font: inherit; font-size: 11px; }
.account-save-button { min-height: 31px; padding: 0 9px; border: 1px solid #d6e5d0; border-radius: 4px; background: #edf4e9; color: #4e7945; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.account-save-button:disabled { opacity: .6; cursor: wait; }
.admin-notice-error { border-color: #eed8d5; background: #fdf2f0; color: #9c5148; }
.admin-empty { padding: 18px !important; color: #89938b !important; text-align: center; }

@media (max-width: 680px) {
    .user-avatar-button { width: 42px; height: 42px; }
    .profile-card { padding: 24px 20px; }
}

.listing-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-wrap: anywhere;
    color: #64736a;
    font-size: 12px;
    line-height: 1.5;
}
.listing-contact a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.detail-modal .listing-contact { margin-top: 12px; font-size: 14px; }
.location-capture { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.location-capture .profile-help { margin: 0; direction: ltr; }
.location-map { width: 100%; height: 250px; border: 1px solid #e3e7df; border-radius: 6px; background: #f5f6f1; }

.topbar-map { color: var(--bs-primary-hover); font-size: 13px; font-weight: 800; white-space: nowrap; }
.topbar-map:hover { color: var(--bs-primary); }
.listings-map-page { width: min(1190px, calc(100% - 64px)); margin: auto; padding: 38px 0 64px; }
.listings-map-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.listings-map-heading h1 { margin: 8px 0; color: var(--ink); font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.listings-map-heading p { margin: 0; color: #727b75; font-size: 16px; line-height: 1.6; }
.listings-map-heading .button { flex: 0 0 auto; }
.listings-map-toolbar { min-height: 52px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.listings-map-count { color: #66716a; font-size: 15px; }
.listings-map-count strong { margin-inline-end: 5px; color: var(--ink); font-size: 18px; }
.listings-map-view-toggle { padding: 3px; display: inline-flex; align-items: center; gap: 3px; border: 1px solid #dfe8df; border-radius: 10px; background: #fff; }
.listings-map-view-toggle button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #365341; font: 650 12px/1.2 "Manrope", "Noto Sans Arabic", sans-serif; white-space: nowrap; }
.listings-map-view-toggle button.active { background: #245c3e; color: #fff; }
.listings-map-view-toggle button:focus-visible { outline: 2px solid #6f9579; outline-offset: 2px; }
.listings-map-locate { min-height: 42px; font-size: 14px; }
.listings-map-status { margin: 0 0 12px; color: #66716a; font-size: 14px; }
.listings-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: stretch; }
.listings-map-canvas { position: relative; z-index: 0; isolation: isolate; width: 100%; min-width: 0; height: min(68vh, 680px); min-height: 430px; border: 1px solid #dfe4dc; background: #edf1e8; }
.listings-map-legend { padding: 20px; border: 1px solid #e3e7df; background: #fffefa; }
.listings-map-legend h2 { margin: 0 0 15px; color: var(--ink); font-size: 18px; font-weight: 800; }
.listings-map-legend ul { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.listings-map-legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 9px; color: #526058; font-size: 14px; }
.listings-map-dot { width: 13px; height: 13px; border: 1px solid #495057; border-radius: 50%; background: var(--marker-color); box-shadow: 0 0 0 1px #fff; }
.listings-map-category { min-width: 0; }
.listings-map-category-count { color: #88928a; font-size: 12px; }
.listings-map-note { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid #e9ece5; color: #788179; font-size: 12px; line-height: 1.65; }
.listings-map-attribution { margin: 8px 0 0; color: #778078; font-size: 11px; text-align: end; }
.listings-map-attribution a { color: var(--bs-primary-hover); }
.listings-map-popup { display: flex; min-width: 190px; flex-direction: column; gap: 8px; font: 13px/1.45 "Manrope", "Noto Sans Arabic", sans-serif; }
.listings-map-popup > strong { color: #212529; font-size: 14px; }
.listings-map-point-list { max-height: 260px; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 6px; list-style: none; }
.listings-map-point-listing { width: 100%; padding: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 1px solid #e3e7df; background: #fffefa; color: var(--ink); text-align: start; cursor: pointer; }
.listings-map-point-listing:hover,
.listings-map-point-listing:focus-visible { border-color: var(--bs-primary); background: var(--bs-primary-subtle); }
.listings-map-point-title { font-weight: 800; }
.listings-map-point-category { font-size: 12px; font-weight: 800; }
.listings-map-point-listing small { color: #788179; font-size: 11px; }
.listings-map-marker-icon { display: grid; overflow: visible; place-items: center; border: 0; background: transparent; }
.listings-map-marker { position: relative; width: var(--marker-size); height: var(--marker-size); display: block; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px #0009, 0 0 0 1px #495057; }
.listings-map-marker-count { position: absolute; top: -6px; left: 50%; min-width: var(--marker-count-size); height: var(--marker-count-size); padding: 0 3px; display: grid; place-items: center; transform: translate(-50%, -100%); border: 2px solid #495057; border-radius: 999px; background: #fff; color: #212529; box-shadow: 0 1px 4px #0006; font: 800 var(--marker-count-font)/1 "Manrope", sans-serif; }
.listings-map-detail-backdrop { position: fixed; z-index: 1300; inset: 0; padding: 20px; display: grid; place-items: center; background: #17241fc4; }
.listings-map-detail-dialog { position: relative; width: min(620px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 30px; border: 1px solid #e3e7df; background: #fffefa; box-shadow: 0 25px 80px #101b1760; }
.listings-map-detail-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border: 1px solid #dfe4dc; background: #fff; color: #526058; font-size: 25px; line-height: 1; cursor: pointer; }
.listings-map-detail-dialog h2 { margin: 8px 40px 8px 0; color: var(--ink); font-size: 25px; }
.listings-map-detail-seller { margin: 0; color: #727b75; font-size: 14px; }
.listings-map-detail-seller span { padding: 0 4px; }
.listings-map-detail-photo { width: 100%; max-height: 320px; margin-top: 18px; object-fit: contain; background: #f1f3ed; }
.listings-map-detail-description { color: #626d65; font-size: 15px; line-height: 1.7; white-space: pre-line; }

.listing-photo-cover { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: pointer; }
.listing-photo-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.listing-photo-strip,
.detail-thumbnails { display: flex; gap: 7px; overflow-x: auto; }
.listing-photo-strip { margin: 0 0 12px; }
.listing-photo-strip button,
.listing-photo-strip a,
.detail-thumbnails button { width: 48px; height: 48px; flex: 0 0 auto; padding: 0; overflow: hidden; border: 1px solid #dfe5da; border-radius: 4px; background: #f5f6f1; cursor: pointer; }
.listing-photo-strip img,
.detail-thumbnails img { width: 100%; height: 100%; display: block; object-fit: cover; }
.listing-photo-strip button:focus-visible,
.listing-photo-strip a:focus-visible,
.detail-thumbnails button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.detail-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.detail-gallery { margin: 0 0 18px; }
.detail-photo { width: 100%; max-height: 340px; display: block; border-radius: 5px; background: #f1f3ed; object-fit: contain; }
.detail-thumbnails { margin-top: 8px; }
.detail-thumbnails button.selected { border: 2px solid var(--green); }

@media (max-width: 760px) {
    .modal-backdrop { padding: 10px; }
    .detail-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 12px;
        overflow-y: auto;
    }
    .detail-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .detail-media {
        height: 280px;
        min-height: 280px;
        padding: 18px;
    }
    .detail-media .detail-gallery {
        grid-template-rows: minmax(0, 1fr) 58px;
    }
    .detail-media .detail-photo { max-height: none; }
    .detail-status { top: 28px; inset-inline-end: 28px; }
    .detail-content {
        max-height: none;
        padding: 24px 20px 20px;
    }
    .detail-modal h2 { font-size: 24px; }
    .detail-actions { flex-direction: column; align-items: stretch; }
    .detail-actions .button,
    .detail-contact-button { width: 100%; }
}
.my-listings-card { width: min(850px, 100%); }
.my-listings-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.my-listing { padding: 16px; border: 1px solid #e5e9e1; border-radius: 8px; background: #fffefa; }
.my-listing-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.my-listing-main h2 { margin: 7px 0 4px; color: var(--ink); font-size: 18px; }
.my-listing-main p { margin: 0; color: #78827a; font-size: 14px; }
.my-listing-status { padding: 5px 8px; border-radius: 4px; background: #edf4e9; color: #4e7945; font-size: 12px; font-weight: 700; white-space: nowrap; }
.my-listing-status.sold { background: #f2ece4; color: #8a6743; }
.my-listing .listing-photo-strip { margin-top: 12px; }
.my-listing-actions,
.listing-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; }
.my-listing-actions .button,
.listing-edit-actions .button { min-height: 38px; }
.listing-edit-form { margin-top: 16px; padding: 16px; display: flex; flex-direction: column; gap: 13px; border: 1px solid #e5e9e1; border-radius: 7px; background: #fafbf7; }
.listing-edit-form label { display: flex; flex-direction: column; gap: 6px; color: #59665d; font-size: 13px; font-weight: 700; }
.listing-edit-form input,
.listing-edit-form select,
.listing-edit-form textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #dfe5da; border-radius: 5px; background: #fffefa; color: #39483e; font: inherit; font-weight: 400; }
.listing-edit-form textarea { resize: vertical; }
.listing-edit-photos { padding-top: 12px; border-top: 1px solid var(--line); }
.listing-edit-photos h3 { margin: 0 0 5px; color: var(--ink); font-size: 15px; }
.listing-edit-photos p { margin: 0 0 10px; color: #77827a; font-size: 13px; line-height: 1.5; }
.listing-edit-photos input[type="file"] { width: 100%; margin-top: 10px; color: #526158; font-size: 13px; }
.edit-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-photo { position: relative; width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dfe5da; border-radius: 5px; background: #f0f3ec; }
.edit-photo img { width: 100%; height: 100%; object-fit: cover; }
.edit-photo span { max-width: 100%; padding: 5px; overflow: hidden; color: #526158; font-size: 10px; text-align: center; text-overflow: ellipsis; }
.edit-photo button { position: absolute; top: 3px; inset-inline-end: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #27372ed9; color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.mark-sold-button { min-height: 38px; margin-top: 12px; border-color: #d7b8ad; color: #9c5148; }
.mark-sold-button:hover { background: #fff3ef; }
.my-listings-empty { margin-top: 22px; }

@media (max-width: 680px) {
    .account-activity-preview { top: calc(100% + 8px); inset-inline-end: -4px; width: min(340px, calc(100vw - 20px)); }
    .admin-communication-form { padding: 12px; }
    .admin-communication-footer { align-items: flex-end; }
    .admin-communication-footer small { max-width: 60%; }
    .listing-photo-strip button,
    .listing-photo-strip a,
    .detail-thumbnails button { width: 44px; height: 44px; }
    .my-listing { padding: 13px; }
    .my-listing-main { flex-direction: column; gap: 8px; }
    .listing-edit-form { padding: 12px; }
    .detail-photo { max-height: 260px; }
}

body { color: var(--bs-dark); background: var(--bs-body-bg); }
.topbar { border-bottom-color: var(--bs-border-color); background: #fff; }
.topbar-login,
.category-breadcrumb a,
.card-action,
.text-button,
.auth-links a,
.listing-contact a { color: var(--bs-primary); }
.topbar-login:hover,
.category-breadcrumb a:hover,
.text-button:hover,
.auth-links a:hover,
.listing-contact a:hover { color: var(--bs-primary-hover); }
.topbar .topbar-cta { background: var(--bs-success); color: #fff; }
.topbar .topbar-cta:hover { background: var(--bs-success-hover); color: #fff; }
.button { border-radius: .5rem; }
.button-green { background: var(--bs-success); color: #fff; }
.button-green:hover { background: var(--bs-success-hover); }
.button-dark { background: var(--bs-dark); color: #fff; }
.button-outline { border-color: var(--bs-border-color); background: #fff; color: var(--bs-dark); }
.button-light { background: var(--bs-success-subtle); color: #0f5132; }
.button-danger { border-color: var(--bs-danger); background: var(--bs-danger); color: #fff; }
.button-danger:hover { background: #bb2d3b; }
.topbar-search:focus-within { box-shadow: 0 0 0 .25rem #0d6efd40; }
.category-search-input:focus-within { outline: 2px solid #0d6efd66; outline-offset: 1px; }
.topbar-search { border-color: var(--bs-primary); }
.topbar-search button,
.form-submit { background: var(--bs-primary); }
.topbar-search button:hover,
.form-submit:hover { background: var(--bs-primary-hover); }
.category-filter-bar { border-color: var(--bs-primary); }
.category-filter-field select,
.category-search-input { border-color: var(--bs-primary); }
.category-filter-field + .category-filter-field,
.category-more-filters { border-color: var(--bs-border-color); }
.category-sidebar-block nav a:hover,
.category-sidebar-block nav a.selected { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.listing-card,
.sell-form-wrap,
.how-it-works-step,
.category-sidebar-block,
.metric-card,
.admin-table-wrap,
.my-listing,
.listing-edit-form,
.empty-state,
.detail-modal { border-color: var(--bs-border-color); background: #fff; }
.listing-card,
.sell-form-wrap,
.how-it-works-step,
.category-sidebar-block,
.metric-card,
.admin-table-wrap,
.my-listing,
.listing-edit-form { border-radius: .5rem; }
.listing-card:hover { box-shadow: 0 .5rem 1rem #2125291a; }
.listing-bottom,
.card-action,
.browse-footer,
.admin-table td,
.listing-edit-photos { border-color: var(--bs-border-color); }
.card-action { color: var(--bs-primary); }
.seller-avatar,
.form-step { background: var(--bs-success-subtle); color: var(--bs-success); }
.available-pill,
.my-listing-status { background: var(--bs-success-subtle); color: #0f5132; }
.my-listing-status.sold { background: #e9ecef; color: var(--bs-secondary); }
.form-success,
.auth-message { border-color: #a3cfbb; background: var(--bs-success-subtle); color: #0f5132; }
.validation-message,
.language-save-error { color: var(--bs-danger); }
.auth-message-error,
.admin-notice-error { border-color: #f1aeb5; background: #f8d7da; color: #842029; }
.form-submit { border-color: var(--bs-primary); }
.listing-form input,
.listing-form select,
.auth-form input,
.listing-edit-form input,
.listing-edit-form select,
.listing-edit-form textarea,
.profile-section .auth-form select,
.category-results-heading select { border-color: var(--bs-border-color); border-radius: .375rem; }
.listing-form input:focus,
.listing-form select:focus,
.auth-form input:focus,
.listing-edit-form input:focus,
.listing-edit-form select:focus,
.listing-edit-form textarea:focus,
.profile-section .auth-form input:focus,
.profile-section .auth-form select:focus,
.category-results-heading select:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .25rem #0d6efd40; }
.listing-form input:hover,
.listing-form select:hover { border-color: #6ea8fe; }
.admin-table-wrap { overflow: hidden; }
.admin-table th { border-color: var(--bs-border-color); background: #f8f9fa; color: var(--bs-secondary); }
.admin-table td { border-color: #e9ecef; color: #495057; }
.admin-table td strong,
.managed-user strong { color: var(--bs-dark); }
.listing-pagination button { border-color: var(--bs-border-color); border-radius: .375rem; color: var(--bs-primary); }
.listing-pagination strong { color: var(--bs-dark); }
.demo-warning,
.pending-badge { border-color: #ffda6a; background: #fff3cd; color: #664d03; }
.warning-icon { background: var(--bs-warning); color: var(--bs-dark); }
.metric-attention { border-color: #ffda6a; }
.status-live,
.available-pill i { background: var(--bs-success); }
.closing-banner { background: var(--bs-success); }
.closing-spark { color: #d1e7dd; }
.site-footer { background: var(--bs-dark); color: #f8f9fa; }
.footer-inner p,
.footer-location { color: #adb5bd; }
.footer-location span { color: var(--bs-success); }
.sell-section { background: #edf4e9; }
.auth-page { background: radial-gradient(circle at 20% 20%, #cfe2ff 0, transparent 30%), radial-gradient(circle at 82% 76%, #d1e7dd 0, transparent 26%), var(--bs-body-bg); }
.auth-card { border-color: var(--bs-border-color); background: #fff; box-shadow: 0 1rem 2rem #21252914; }
.auth-form input { border-color: var(--bs-border-color); }
.auth-form input:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .25rem #0d6efd40; }
.role-radio { border-color: var(--bs-border-color); border-radius: .375rem; }
.role-radio:has(input:checked) { border-color: var(--bs-primary); background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.auth-message-error { border-color: #f1aeb5; background: #f8d7da; color: #842029; }
.account-status-avatar-fallback,
.profile-avatar-fallback { background: var(--bs-success-subtle); color: var(--bs-success); }
.account-dropdown { border-color: var(--bs-border-color); background: #fff; }
.account-dropdown-nav > a:hover,
.account-dropdown form button:hover { background: #cfe2ff; color: var(--bs-primary-hover); }
.account-dropdown-nav > a span,
.account-dropdown form button span { color: var(--bs-primary); }
.profile-summary,
.profile-readonly span { border-color: var(--bs-border-color); background: #f8f9fa; }
.profile-danger-zone { border-color: #f1aeb5; background: #fff5f5; }
.profile-danger-zone h2 { color: #842029; }
.managed-status-active { background: var(--bs-success-subtle); color: #0f5132; }
.managed-status-pending { background: #fff3cd; color: #664d03; }
.managed-status-inactive { background: #f8d7da; color: #842029; }
.account-save-button { border-color: #a3cfbb; background: var(--bs-success-subtle); color: #0f5132; }
.location-map { border-color: var(--bs-border-color); background: #f8f9fa; }
.listing-photo-strip button,
.listing-photo-strip a,
.detail-thumbnails button,
.edit-photo { border-color: var(--bs-border-color); background: #f8f9fa; }
.listing-photo-strip button:focus-visible,
.listing-photo-strip a:focus-visible,
.detail-thumbnails button:focus-visible { outline-color: var(--bs-primary); }
.menu-button,
.offcanvas-close { border-color: var(--bs-primary); background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.offcanvas-nav > a { border-color: #9ec5fe; background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.offcanvas-nav > a > span:first-child { color: var(--bs-primary); }
.offcanvas-nav > a b { color: var(--bs-primary); }
.offcanvas-nav > a:hover,
.offcanvas-nav > a.active { border-color: var(--bs-primary); background: #b6d4fe; color: var(--bs-primary-hover); }
.offcanvas-language { border-color: #9ec5fe; background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.offcanvas-language b { color: var(--bs-primary); }
.bottom-nav { border-top-color: var(--bs-border-color); background: #fff; }
.bottom-nav-item { border-color: #9ec5fe; background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
.bottom-nav-item:first-child { border-inline-start-color: #9ec5fe; }
.bottom-nav-item.active,
.bottom-nav-item:hover { border-color: var(--bs-primary); background: #b6d4fe; color: var(--bs-primary-hover); }
.bottom-nav-item:focus-visible { outline-color: var(--bs-primary); }
.bottom-nav-primary { border-color: var(--bs-primary); background: var(--bs-primary); color: #fff; }
.bottom-nav-primary:hover,
.bottom-nav-primary.active { border-color: var(--bs-primary-hover); background: var(--bs-primary-hover); color: #fff; }
.offcanvas-note > span { background: var(--bs-success-subtle); color: var(--bs-success); }
.eyebrow-dot,
.status-live { background: var(--bs-success); }
.green-icon { color: var(--bs-success); }
.amber-icon { color: #fd7e14; }
.seller-mark { background: var(--bs-success-subtle); color: var(--bs-success); }
.material-category:focus-visible,
.listing-photo-strip button:focus-visible,
.listing-photo-strip a:focus-visible,
.detail-thumbnails button:focus-visible,
.button:focus-visible,
.category-filter-clear:focus-visible,
.category-filter-apply:focus-visible,
.category-more-filters:focus-visible { outline: 3px solid #0d6efd66; outline-offset: 2px; }
.category-page .button,
.category-page button,
.category-filter-bar,
.category-filter-dropdown,
.category-filter-field select,
.category-search-input input,
.category-results-heading select { border-radius: 0; }
.detail-thumbnails button.selected { border-color: var(--bs-primary); }

.seller-avatar,
.user-avatar-button,
.user-avatar-button img,
.profile-avatar-large-frame,
.profile-avatar-large,
.profile-avatar-fallback,
.account-status-avatar-frame,
.account-status-avatar,
.account-status-avatar-fallback {
    border-radius: 0;
}

.offcanvas-language {
    border: 1px solid #9ec5fe;
    border-radius: 0;
    background: var(--bs-light);
    color: var(--bs-primary-hover);
}
.offcanvas-language b { color: var(--bs-primary); }
.offcanvas-note { color: var(--bs-secondary); }
.offcanvas-note > span {
    border-radius: 0;
    background: var(--bs-success);
    color: #fff;
}
.category-sidebar-block h2,
.category-sidebar-block nav a,
.category-sidebar-block .category-count { font-size: 15px; color: #000; }

.category-mobile-backdrop,
.category-mobile-offcanvas { display: none; }

@media (max-width: 680px) {
    .app-shell.category-route { padding-bottom: 72px; }
    .category-filter-shell,
    .category-sidebar { display: none; }
    .category-results-layout { grid-template-columns: minmax(0, 1fr); }
    .category-results-heading { flex-direction: row; }
    .category-results-heading label { width: auto; }
    .category-mobile-backdrop {
        position: fixed;
        z-index: 49;
        inset: 0;
        display: block;
        border: 0;
        background: #19231ec2;
        backdrop-filter: blur(2px);
    }
    .category-mobile-offcanvas {
        position: fixed;
        z-index: 50;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: min(82vh, 720px);
        display: flex;
        flex-direction: column;
        border-top: 1px solid var(--bs-border-color);
        background: #fff;
        box-shadow: 0 -18px 50px #1a2a2150;
    }
    [dir="rtl"] .category-mobile-offcanvas { direction: rtl; }
    .category-mobile-offcanvas-head {
        min-height: 58px;
        padding: 9px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--bs-border-color);
    }
    .category-mobile-offcanvas-head h2 { margin: 0; color: #000; font-size: 16px; }
    .category-mobile-offcanvas-head button {
        width: 38px;
        height: 38px;
        border: 1px solid var(--bs-primary);
        border-radius: 0;
        background: var(--bs-primary-subtle);
        color: var(--bs-primary-hover);
        font-size: 24px;
        line-height: 1;
    }
    .category-mobile-categories nav { overflow-y: auto; padding: 8px 12px 16px; }
    .category-mobile-categories nav a {
        min-height: 52px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--bs-border-color);
        color: #000;
        font-size: 15px;
        text-decoration: none;
    }
    .category-mobile-categories nav a.selected {
        background: var(--bs-primary-subtle);
        color: var(--bs-primary-hover);
        font-weight: 800;
    }
    .category-mobile-filter-controls {
        overflow-y: auto;
        padding: 14px 16px;
        display: grid;
        gap: 10px;
    }
    .category-mobile-filter-controls > input,
    .category-mobile-filter-controls > select,
    .category-mobile-filter-footer {
        min-height: 64px;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-top: 1px solid var(--bs-border-color);
        background: #fff;
    }

    .bottom-nav {
        height: calc(72px + env(safe-area-inset-bottom));
        padding: 0 0 env(safe-area-inset-bottom);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border: 0;
        background: var(--bs-dark);
        box-shadow: 0 -8px 24px #21252926;
    }
    .bottom-nav-item {
        min-height: 72px;
        border: 0;
        background: transparent;
        color: #fff;
    }
    .bottom-nav-item:first-child,
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        border: 0;
        background: transparent;
        color: #fff;
    }
    .bottom-nav-label { display: none; }
    .bottom-nav-icon { height: 26px; font-size: 26px; }
    .bottom-nav-menu { background: var(--bs-danger) !important; color: #fff !important; }
    .bottom-nav-menu:hover,
    .bottom-nav-menu:active,
    .bottom-nav-menu:focus { background: #bb2d3b !important; color: #fff !important; }
    .bottom-nav-help { background: #6f42c1 !important; color: #fff !important; }
    .bottom-nav-help:hover,
    .bottom-nav-help:active,
    .bottom-nav-help:focus { background: #59359c !important; color: #fff !important; }
    .bottom-nav-info-icon {
        width: 24px;
        height: 24px;
        border: 2px solid currentColor;
        border-radius: 50%;
        font-size: 15px;
        font-weight: 800;
        line-height: 1;
    }
    .bottom-nav-secondary { background: var(--bs-warning); color: var(--bs-dark); }
    .bottom-nav-secondary:hover { background: #ffcd39; color: var(--bs-dark); }
    .bottom-nav-warning { background: var(--bs-warning); color: var(--bs-dark); }
    .bottom-nav-warning:hover { background: #ffcd39; color: var(--bs-dark); }
    .bottom-nav-success { background: var(--bs-success); color: #fff; }
    .bottom-nav-success:hover { background: var(--bs-success-hover); color: #fff; }
    .bottom-nav-favorites { background: var(--bs-info); color: #fff; }
    .bottom-nav-favorites:hover { background: #0aa2c0; color: #fff; }
    .bottom-nav-primary,
    .bottom-nav-primary:hover,
    .bottom-nav-primary.active {
        position: static;
        z-index: 3;
        width: 72px;
        height: 72px;
        min-height: 72px;
        align-self: center;
        justify-self: center;
        border: 0;
        border-radius: 0;
        background: var(--bs-primary);
        color: #fff;
        transform: none;
        box-shadow: none;
    }
    .bottom-nav-add { width: 100%; height: 100%; font-size: 32px; }
    .app-shell.home-route { padding-bottom: 72px; }
}

.favorite-toggle {
    position: absolute;
    z-index: 4;
    top: 10px;
    inset-inline-end: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--bs-danger);
    box-shadow: 0 2px 8px #0002;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.favorite-toggle.is-favorite { background: var(--bs-danger); color: #fff; }
.favorite-toggle[href] { text-decoration: none; }
.favorite-toggle:disabled { opacity: .65; cursor: wait; }
.favorite-error { margin: 12px 0; color: var(--bs-danger); font-weight: 700; }

.favorites-page { width: min(1180px, calc(100% - 44px)); min-height: 55vh; margin: 0 auto; padding: 42px 0 64px; }
.favorites-heading { margin-bottom: 28px; }
.favorites-heading h1 { margin: 8px 0; color: var(--ink); font-size: clamp(32px, 5vw, 48px); }
.favorites-heading p { max-width: 650px; margin: 0; color: var(--muted); }
.favorites-empty { padding: 45px 20px; }
.favorites-empty > span { color: var(--bs-danger); font-size: 42px; }
.favorites-empty h2 { margin: 10px 0; }
.favorites-status { padding: 24px; color: var(--muted); }
.favorites-listing-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.favorites-grid .listing-visual { position: relative; }
.favorite-remove { width: 100%; min-height: 38px; margin-top: 9px; border: 1px solid var(--bs-danger); background: #fff; color: var(--bs-danger); font-weight: 700; cursor: pointer; }
.favorite-remove:hover { background: var(--bs-danger); color: #fff; }
.favorite-remove:disabled { opacity: .65; cursor: wait; }

@media (max-width: 680px) {
    .favorites-page { width: calc(100% - 28px); padding: 28px 0 40px; }
    .favorite-toggle { width: 34px; height: 34px; }
}

@media (max-width: 680px) {
    .user-account .account-offcanvas-backdrop {
        position: fixed;
        z-index: 1090;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: #19231ec2;
        backdrop-filter: blur(2px);
    }

    .user-account .account-dropdown {
        position: fixed;
        z-index: 1091;
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        width: min(84vw, 340px);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0;
        padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 18px 0 50px #21252940;
    }
    [dir="rtl"] .user-account .account-dropdown { right: 0; left: auto; direction: rtl; }
    .user-account .user-name-tooltip { display: none; }
    .user-account .account-menu-mobile-head {
        display: block;
        flex: 0 0 auto;
        padding: 0;
        border-bottom: 1px solid #eef1f5;
    }
    .user-account .account-menu-handle { display: none; }
    .user-account .account-menu-mobile-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        direction: ltr;
    }
    .user-account .account-menu-mobile-brand {
        width: min(190px, calc(100% - 54px));
        height: 44px;
        display: flex;
        align-items: center;
    }
    .user-account .account-menu-mobile-brand img {
        max-width: 100%;
        max-height: 40px;
        display: block;
        object-fit: contain;
    }
    .user-account .account-menu-close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: grid;
        place-items: center;
        border: 1px solid #78a8ff;
        border-radius: 0;
        background: #e8f1ff;
        color: var(--bs-primary-hover);
        font-size: 28px;
        line-height: 1;
    }
    .user-account .account-menu-close:hover { background: #eaf1fb; color: var(--bs-primary-hover); }
    .user-account .account-dropdown-nav {
        display: grid;
        gap: 7px;
        margin-top: 14px;
        padding: 0;
    }
    .user-account .account-menu-language-form {
        margin-top: 18px;
        padding: 0;
        border: 0;
    }
    .user-account .account-menu-language-form .offcanvas-language {
        width: 100%;
        margin-top: 0;
    }
    .user-account .account-dropdown-nav > a,
    .user-account .account-menu-language-form .offcanvas-language,
    .user-account .account-dropdown-signout button {
        min-height: 58px;
        padding: 0 12px;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 24px;
        align-items: center;
        column-gap: 6px;
        border: 1px solid #9ec5fe;
        border-radius: 0;
        background: #fff;
        color: var(--bs-primary-hover);
        box-shadow: none;
        font-size: 16px;
        font-weight: 700;
        text-align: start;
        transition: background .15s ease, color .15s ease;
    }
    .user-account .account-dropdown-nav > a:hover { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
    .user-account .account-dropdown-nav > a > span:nth-child(2),
    .user-account .account-menu-language-form .offcanvas-language > span:nth-child(2),
    .user-account .account-dropdown-signout button > span:nth-child(2) {
        width: auto;
        min-width: 0;
        flex: initial;
        color: inherit;
        text-align: start;
        white-space: normal;
        line-height: 1.35;
    }
    .user-account .account-dropdown-nav > a > span:first-child,
    .user-account .account-menu-language-form .offcanvas-language > span:first-child,
    .user-account .account-dropdown-signout button > span:first-child {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        justify-self: center;
        border-radius: 0;
        background: var(--bs-primary-subtle);
        color: var(--bs-primary);
        font-size: 20px;
    }
    .user-account .account-dropdown-nav > a:nth-child(4n + 1) { border-inline-start: 5px solid var(--bs-primary); }
    .user-account .account-dropdown-nav > a:nth-child(4n + 2) { border-inline-start: 5px solid var(--bs-success); }
    .user-account .account-dropdown-nav > a:nth-child(4n + 3) { border-inline-start: 5px solid var(--bs-warning); }
    .user-account .account-dropdown-nav > a:nth-child(4n) { border-inline-start: 5px solid var(--bs-danger); }
    .user-account .account-dropdown-nav > a b,
    .user-account .account-menu-language-form .offcanvas-language > b,
    .user-account .account-dropdown-signout button b {
        display: block;
        justify-self: end;
        color: #064ab3;
        font-size: 30px;
    }
    [dir="rtl"] .user-account .account-dropdown-nav > a b,
    [dir="rtl"] .user-account .account-menu-language-form .offcanvas-language > b,
    [dir="rtl"] .user-account .account-dropdown-signout button b { transform: rotate(180deg); }
    .user-account .account-dropdown-signout {
        margin: 0;
        padding: 8px 0 0;
        border: 0;
    }
    .user-account .account-dropdown-signout button {
        border-color: #9ec5fe;
        border-inline-start: 5px solid var(--bs-danger);
        background: #fff;
        color: var(--bs-primary-hover);
        box-shadow: none;
    }
    .user-account .account-dropdown-signout button > span:first-child { background: #f8d7da; color: var(--bs-danger); }
    .user-account .account-dropdown-signout button b { color: var(--bs-danger); }
    .user-account .account-dropdown-signout button:hover { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
    .user-account .account-menu-footer {
        margin-top: auto;
        padding-top: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #7b8794;
        font-size: 12px;
    }
    .user-account .account-menu-footer > span {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        background: var(--bs-success);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
    }
    .user-account .account-menu-footer p { margin: 0; }
}

.communication-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 56px;
}
.communication-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.communication-heading h1 { margin: 4px 0 6px; color: var(--ink); font-size: clamp(28px, 4vw, 40px); }
.communication-heading p { margin: 0; color: var(--bs-secondary); }
.communication-live-status {
    margin: 0 0 12px;
    color: var(--bs-secondary);
    font-size: 14px;
}
.message-center {
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: #fff;
    box-shadow: 0 8px 26px #2125290d;
}
.message-list {
    min-width: 0;
    border-inline-end: 1px solid var(--bs-border-color);
    background: #f8f9fa;
}
.message-list h2 { margin: 0; padding: 18px; border-bottom: 1px solid var(--bs-border-color); font-size: 18px; }
.conversation-item {
    width: 100%;
    min-height: 82px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
    color: var(--ink);
    text-align: start;
}
.conversation-item:hover,
.conversation-item.selected { background: var(--bs-primary-subtle); }
.conversation-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: var(--bs-primary-hover);
    font-weight: 800;
}
.conversation-summary { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.conversation-summary strong,
.conversation-summary small,
.conversation-summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-summary small { color: var(--bs-secondary); }
.conversation-summary > span { color: #64748b; font-size: 13px; }
.communication-unread-count {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 12px;
}
.message-thread { min-width: 0; display: flex; flex-direction: column; }
.message-thread-heading {
    min-height: 76px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--bs-border-color);
}
.message-thread-heading h2 { margin: 0 0 3px; font-size: 18px; }
.message-listing-title { color: var(--bs-secondary); font-size: 13px; }
.message-back-button { display: none; }
.message-thread-body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    direction: ltr;
    background: #f8fafc;
}
.chat-message {
    max-width: min(78%, 560px);
    padding: 10px 13px;
    border: 1px solid #dbeafe;
    background: #fff;
    box-shadow: 0 2px 6px #2125290a;
}
.chat-message.mine { align-self: flex-end; border-color: #b6d4fe; background: #e7f1ff; }
.chat-message.theirs { align-self: flex-start; }
.chat-message p { margin: 0 0 5px; overflow-wrap: anywhere; }
.chat-message time { display: block; color: #64748b; font-size: 11px; text-align: end; }
.message-compose {
    padding: 14px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    border-top: 1px solid var(--bs-border-color);
}
.message-compose textarea {
    min-height: 48px;
    max-height: 150px;
    flex: 1 1 auto;
    padding: 10px 12px;
    resize: vertical;
    border: 1px solid #ced4da;
    background: #fff;
}
.message-compose textarea:focus { border-color: var(--bs-primary); outline: 2px solid #0d6efd26; }
.communication-empty { margin: 0; padding: 22px 18px; color: var(--bs-secondary); }
.thread-empty { margin: auto; text-align: center; }
.thread-empty > span,
.notification-empty > span { color: var(--bs-primary); font-size: 32px; }
.notification-toolbar {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bs-secondary);
}
.notification-list { display: grid; gap: 9px; }
.notification-item {
    min-height: 82px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--bs-border-color);
    background: #fff;
}
.notification-item.unread { border-inline-start: 4px solid var(--bs-primary); background: #f5f9ff; }
.notification-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: var(--bs-primary-subtle);
    color: var(--bs-primary);
    font-size: 20px;
}
.notification-copy { min-width: 0; flex: 1 1 auto; }
.notification-copy p { margin: 0 0 4px; color: var(--ink); }
.notification-copy time { color: var(--bs-secondary); font-size: 12px; }
.notification-actions { display: flex; align-items: center; gap: 12px; }
.notification-empty { padding: 42px 20px; text-align: center; border: 1px dashed var(--bs-border-color); background: #fff; }
.notification-empty h2 { margin: 8px 0 4px; color: var(--ink); font-size: 20px; }
.notification-empty p { margin: 0; color: var(--bs-secondary); }

@media (max-width: 680px) {
    .communication-page { width: calc(100% - 28px); padding: 30px 0 38px; }
    .communication-heading { align-items: flex-start; }
    .communication-heading > .button { min-height: 38px; padding: 0 10px; white-space: nowrap; }
    .message-center { min-height: min(620px, calc(100dvh - 260px)); display: block; }
    .message-list { min-height: 260px; border-inline-end: 0; }
    .message-list h2 { padding: 13px; }
    .message-thread { min-height: 420px; }
    .message-center:not(.has-selection) .message-thread { display: none; }
    .message-center.has-selection .message-list { display: none; }
    .message-back-button {
        padding: 7px 9px;
        display: block;
        border: 1px solid #9ec5fe;
        background: var(--bs-primary-subtle);
        color: var(--bs-primary-hover);
        font-size: 12px;
        white-space: nowrap;
    }
    .message-thread-heading { padding: 10px; gap: 9px; }
    .message-thread-body { min-height: 240px; padding: 12px; }
    .chat-message { max-width: 88%; }
    .message-compose { padding: 9px; gap: 7px; }
    .message-compose .button { min-height: 42px; padding: 0 12px; }
    .notification-item { align-items: flex-start; padding: 11px; gap: 10px; }
    .notification-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .notification-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
}

@media (max-width: 680px) {
    .listings-map-page { width: calc(100% - 36px); padding: 28px 0 48px; }
    .listings-map-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .listings-map-heading h1 { font-size: 31px; }
    .listings-map-heading p { font-size: 14px; }
    .listings-map-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .listings-map-canvas { height: 55vh; min-height: 360px; }
    .listings-map-legend { padding: 16px; }
    .listings-map-legend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
    .listings-map-detail-backdrop { padding: 12px; }
    .listings-map-detail-dialog { width: calc(100vw - 24px); padding: 24px 18px; }
    .listings-map-detail-dialog h2 { font-size: 21px; }
}

.topbar {
    border-bottom-color: #e7ece5;
    background: #fff;
}
.topbar-utility {
    min-height: 36px;
    border-bottom: 1px solid #e8eee7;
    background: #f3f6f0;
    color: #53635a;
    font-size: 12px;
}
.topbar-utility-inner {
    width: min(1190px, calc(100% - 64px));
    min-height: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.topbar-utility-message,
.topbar-utility-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-utility-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #5c8b52;
}
.topbar-utility-links { gap: 20px; }
.topbar-utility-links a {
    color: #53635a;
    font-weight: 650;
    transition: color .18s ease;
}
.topbar-utility-links a:hover,
.topbar-utility-links a.active { color: #245c3e; }
.topbar-inner {
    min-height: 86px;
    height: auto;
    gap: 16px;
}
.topbar .brand-mark {
    width: 176px;
    height: 62px;
    flex-basis: 176px;
}
.topbar-title {
    color: #315d43;
    font-size: clamp(12px, 1.2vw, 15px);
}
.topbar-search {
    height: 46px;
    margin-inline: 8px;
    border: 1px solid #cfd9cf;
    border-radius: 8px;
    background: #f8faf7;
}
.topbar-search:focus-within {
    border-color: #4b7f55;
    box-shadow: 0 0 0 3px #4b7f5524;
}
.topbar-search input,
.topbar-search select { background: transparent; }
.topbar-search button {
    background: #245c3e;
    transition: background .18s ease;
}
.topbar-search button:hover { background: #17472f; }
.topbar .topbar-cta {
    min-height: 42px;
    border-radius: 8px;
    background: #245c3e;
    color: #fff;
}
.topbar .topbar-cta:hover { background: #17472f; color: #fff; }
.topbar-map {
    padding: 9px 11px;
    border: 1px solid #dce5dc;
    border-radius: 8px;
    color: #315d43;
    transition: background .18s ease, border-color .18s ease;
}
.topbar-map:hover {
    border-color: #c5d8c6;
    background: #f3f7f1;
    color: #17472f;
}
.topbar-menu-button { display: none; }

.site-footer {
    height: auto;
    background: #163d32;
    color: #f3f6f0;
}
.footer-inner {
    width: min(1190px, calc(100% - 64px));
    height: auto;
    margin: 0 auto;
    padding: 46px 0 36px;
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(130px, .7fr)) minmax(230px, 1.2fr);
    align-items: start;
    gap: 32px;
}
.footer-brand-block { min-width: 0; }
.brand-footer .brand-mark {
    width: 190px;
    height: 68px;
    flex-basis: 190px;
}
.footer-brand-block p,
.footer-action p {
    margin: 12px 0 0;
    color: #c0d0c4;
    font-size: 13px;
    line-height: 1.7;
}
.footer-location {
    margin: 17px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #d3ded5;
    font-size: 12px;
}
.footer-location-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #6f9579;
    border-radius: 8px;
    color: #d8e6a3;
    font-size: 10px;
    font-weight: 800;
}
.footer-link-group {
    display: grid;
    justify-items: start;
    gap: 12px;
}
.footer-link-group h2,
.footer-action h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
}
.footer-link-group a {
    color: #c0d0c4;
    font-size: 13px;
    transition: color .18s ease;
}
.footer-link-group a:hover,
.footer-link-group a.active { color: #d8e6a3; }
.footer-action {
    padding: 20px;
    border: 1px solid #416354;
    border-radius: 12px;
    background: #1d493a;
}
.footer-kicker {
    display: block;
    margin-bottom: 9px;
    color: #d8e6a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.footer-action p { margin-top: 8px; font-size: 12px; }
.footer-cta {
    min-height: 40px;
    margin-top: 15px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 7px;
    background: #d8e6a3;
    color: #183f31;
    font-size: 12px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}
.footer-cta:hover {
    transform: translateY(-1px);
    background: #e7f2bf;
    color: #183f31;
}
.footer-bottom {
    width: min(1190px, calc(100% - 64px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #416354;
    color: #b7c8bb;
    font-size: 11px;
}

@media (max-width: 950px) {
    .topbar-utility-inner { width: calc(100% - 36px); }
    .topbar-inner { gap: 10px; }
    .topbar .brand-mark { width: 150px; flex-basis: 150px; }
    .topbar-search { margin-inline: 0; }
    .topbar-actions { gap: 8px; }
    .footer-inner {
        grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(120px, .7fr));
        gap: 28px 22px;
    }
    .footer-action { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .topbar-utility { display: none; }
    .topbar-inner {
        width: calc(100% - 28px);
        min-height: 0;
        padding: 10px 0 12px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "search search";
        align-items: center;
        gap: 8px 10px;
    }
    .topbar-inner > .brand { grid-area: brand; order: 0; }
    .topbar .brand-mark {
        width: 148px;
        height: 46px;
        flex-basis: 148px;
    }
    .topbar-title { display: none; }
    .topbar-actions {
        grid-area: actions;
        order: 0;
        margin: 0;
        gap: 8px;
    }
    .topbar-actions .language-switch,
    .topbar-actions .topbar-cta,
    .topbar-actions .topbar-map { display: none; }
    .topbar-login { font-size: 13px; white-space: nowrap; }
    .topbar-search {
        grid-area: search;
        order: 0;
        width: 100%;
        height: 44px;
        margin: 0;
        border-radius: 8px;
    }
    .topbar-search select { flex-basis: 104px; }
    .topbar-search button { min-width: 60px; }
    .topbar-menu-button {
        width: 42px;
        height: 42px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px solid #d9e3d8;
        border-radius: 9px;
        background: #f3f7f1;
    }
    .topbar-menu-button span {
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: #245c3e;
    }
    .topbar-menu-button:focus-visible {
        outline: 3px solid #4b7f5550;
        outline-offset: 2px;
    }

    .site-footer { padding-bottom: 2px; }
    .footer-inner {
        width: calc(100% - 36px);
        padding: 32px 0 25px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }
    .footer-brand-block,
    .footer-action { grid-column: 1 / -1; }
    .brand-footer .brand-mark {
        width: 172px;
        height: 56px;
        flex-basis: 172px;
    }
    .footer-brand-block p { max-width: 420px; }
    .footer-link-group { gap: 10px; }
    .footer-link-group h2 { font-size: 14px; }
    .footer-link-group a { font-size: 12px; }
    .footer-action { padding: 17px; }
    .footer-bottom {
        width: calc(100% - 36px);
        min-height: 56px;
        padding: 11px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        font-size: 10px;
    }

    .bottom-nav {
        z-index: 40;
        height: calc(76px + env(safe-area-inset-bottom));
        padding: 5px 8px env(safe-area-inset-bottom);
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-top: 1px solid #e5ebe4;
        border-radius: 15px 15px 0 0;
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 -7px 24px rgb(22 61 50 / 12%);
        backdrop-filter: blur(14px);
    }
    .bottom-nav .bottom-nav-item {
        width: 100%;
        min-width: 0;
        height: 64px;
        min-height: 64px;
        padding: 4px 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        border-radius: 10px;
        background: transparent !important;
        color: #66756a !important;
        font-size: 10px;
        font-weight: 650;
        line-height: 1.1;
        text-decoration: none;
        box-shadow: none;
        transform: none;
    }
    .bottom-nav .bottom-nav-item.active {
        background: #edf4eb !important;
        color: #245c3e !important;
    }
    .bottom-nav .bottom-nav-item:focus-visible {
        outline: 2px solid #4b7f55;
        outline-offset: -2px;
    }
    .bottom-nav .bottom-nav-icon {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        font-size: 20px;
        line-height: 1;
    }
    .bottom-nav .bottom-nav-label {
        max-width: 100%;
        display: block;
        overflow: hidden;
        font-size: 9px;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .bottom-nav .bottom-nav-primary,
    .bottom-nav .bottom-nav-primary:hover,
    .bottom-nav .bottom-nav-primary.active {
        width: 52px;
        height: 52px;
        min-height: 52px;
        justify-self: center;
        align-self: center;
        padding: 3px 2px;
        border: 0;
        border-radius: 16px;
        background: #245c3e !important;
        color: #fff !important;
        box-shadow: 0 5px 13px rgb(36 92 62 / 24%);
    }
    .bottom-nav .bottom-nav-add {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        color: inherit;
        font-size: 26px;
        line-height: 1;
    }
    .bottom-nav .bottom-nav-map { order: 1; }
    .bottom-nav .bottom-nav-success { order: 2; }
    .bottom-nav .bottom-nav-primary { order: 3; }
    .bottom-nav .bottom-nav-favorites { order: 4; }
    .bottom-nav .bottom-nav-menu { order: 5; }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-utility-links a,
    .topbar-search button,
    .topbar-map,
    .footer-link-group a,
    .footer-cta { transition: none; }
}

.primary-navigation {
    position: relative;
    z-index: 30;
    background: #163d32;
    color: #f3f6f0;
}
.primary-navigation-inner {
    width: min(1190px, calc(100% - 64px));
    min-height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 20px;
}
.primary-nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}
.primary-nav-dropdown > summary {
    min-width: 220px;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    background: #d8e6a3;
    color: #183f31;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}
.primary-nav-dropdown > summary::-webkit-details-marker { display: none; }
.primary-nav-dropdown > summary > span:first-child { font-size: 17px; }
.primary-nav-dropdown > summary b {
    margin-inline-start: auto;
    font-size: 18px;
    font-weight: 500;
    transition: transform .18s ease;
}
.primary-nav-dropdown[open] > summary b { transform: rotate(180deg); }
.primary-nav-dropdown-menu {
    position: absolute;
    z-index: 1201;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    width: 250px;
    padding: 7px;
    display: grid;
    border: 1px solid #e1e9df;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 32px rgb(22 61 50 / 20%);
}
.primary-nav-dropdown-menu a {
    min-height: 43px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    color: #385847;
    font-size: 13px;
    font-weight: 650;
    transition: background .16s ease, color .16s ease;
}
.primary-nav-dropdown-menu a:hover,
.primary-nav-dropdown-menu a:focus-visible {
    background: #edf4eb;
    color: #17472f;
}
.primary-nav-links {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 5px;
}
.primary-nav-links a {
    min-height: 54px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #e4ede6;
    font-size: 13px;
    font-weight: 700;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.primary-nav-links a:hover,
.primary-nav-links a.active {
    border-bottom-color: #d8e6a3;
    background: #ffffff0d;
    color: #fff;
}
.primary-nav-cta {
    min-height: 36px;
    margin-block: auto;
    margin-inline-start: auto;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #5b7c68;
    border-radius: 7px;
    color: #f3f6f0;
    font-size: 12px;
    font-weight: 750;
    transition: background .16s ease, border-color .16s ease;
}
.primary-nav-cta:hover {
    border-color: #d8e6a3;
    background: #ffffff0d;
    color: #d8e6a3;
}
.primary-nav-cta span { font-size: 16px; }

.account-activity-button {
    border-color: #dfe8df;
    border-radius: 50%;
    color: #315d43;
}
.account-activity-button:hover,
.account-activity-button[aria-expanded="true"] {
    border-color: #c9dbc9;
    background: #edf4eb;
}
.account-activity-button.has-unread,
.account-activity-button.has-unread:hover,
.account-activity-button.has-unread[aria-expanded="true"] { color: #805d12; }
.account-activity-button:focus-visible,
.user-avatar-button:focus-visible {
    outline: 3px solid #6c956d70;
    outline-offset: 2px;
}
.activity-badge {
    min-width: 17px;
    height: 17px;
    border: 2px solid #fff;
    background: #c48a27;
    font-size: 9px;
}
.account-activity-preview {
    width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #e1e9df;
    border-radius: 13px;
    box-shadow: 0 14px 32px rgb(22 61 50 / 18%);
}
.account-activity-preview > header {
    min-height: 52px;
    background: #f3f6f0;
}
.account-activity-preview > header a { color: #245c3e; }
.activity-preview-item:hover { background: #f3f7f1; }
.activity-preview-item.unread { background: #f7f9ee; }

.account-dropdown {
    width: min(360px, calc(100vw - 24px));
    max-height: min(78vh, 680px);
    padding: 9px;
    border: 1px solid #e1e9df;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgb(22 61 50 / 18%);
}
.account-menu-profile {
    min-width: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    background: #edf4eb;
}
.account-menu-profile-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid #d5e4d1;
    border-radius: 50%;
    background: #fff;
    color: #245c3e;
    font-size: 15px;
    font-weight: 800;
}
.account-menu-profile-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.account-menu-profile-copy strong,
.account-menu-profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-menu-profile-copy strong { color: #243b2d; font-size: 13px; }
.account-menu-profile-copy small { color: #65756a; font-size: 11px; }
.account-dropdown-nav {
    gap: 2px;
    padding: 7px 0;
}
.account-dropdown-nav > a {
    min-height: 44px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    border: 0;
    border-radius: 8px;
    color: #3c5143;
    font-size: 12px;
    font-weight: 650;
}
.account-dropdown-nav > a > span:first-child,
.account-dropdown form button > span:first-child {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #edf4eb;
    color: #315d43;
}
.account-dropdown-nav > a:hover,
.account-dropdown form button:hover {
    background: #f1f6ef;
    color: #17472f;
}
.account-dropdown-nav > a:focus-visible,
.account-dropdown form button:focus-visible {
    outline-color: #4b7f55;
    border-radius: 8px;
}
.account-dropdown form { margin: 0; padding: 6px 0 0; border-top: 1px solid #e8eee7; }
.account-dropdown .account-menu-language-form .offcanvas-language {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3c5143;
    font-size: 12px;
}
.account-dropdown .account-menu-language-form .offcanvas-language:hover { background: #f1f6ef; }
.account-dropdown-signout { border: 0; }
.account-dropdown-signout button {
    min-height: 42px;
    border-radius: 8px;
    background: #fff7f4;
    color: #934a3b;
}
.account-dropdown-signout button:hover {
    background: #fae7e1 !important;
    color: #7e382d !important;
}

@media (max-width: 680px) {
    .primary-navigation { display: none; }
    .mobile-offcanvas {
        z-index: 1050;
        width: min(88vw, 370px);
        padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-inline-end: 1px solid #e1e9df;
        background: #f8faf7;
        box-shadow: 16px 0 44px rgb(22 61 50 / 20%);
    }
    [dir="rtl"] .mobile-offcanvas { right: 0; left: auto; }
    .offcanvas-head {
        height: auto;
        min-height: 58px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e3ebe1;
    }
    .offcanvas-head .brand-mark {
        width: 155px;
        height: 48px;
        flex-basis: 155px;
    }
    .offcanvas-close {
        width: 40px;
        height: 40px;
        border: 1px solid #d8e4d6;
        border-radius: 9px;
        background: #fff;
        color: #315d43;
        font-size: 26px;
    }
    .offcanvas-nav {
        min-height: 0;
        flex: 1 1 auto;
        gap: 7px;
        margin-top: 15px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .offcanvas-nav > a,
    .offcanvas-dropdown > summary {
        min-height: 50px;
        padding: 0 10px;
        grid-template-columns: 36px minmax(0, 1fr) 22px;
        gap: 8px;
        border: 1px solid #e1e9df !important;
        border-radius: 9px;
        background: #fff;
        color: #365341;
        font-size: 13px;
        font-weight: 700;
    }
    .offcanvas-nav > a > span:first-child,
    .offcanvas-dropdown > summary > span:first-child {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #edf4eb;
        color: #315d43;
        font-size: 19px;
    }
    .offcanvas-nav > a b,
    .offcanvas-dropdown > summary b {
        width: 22px;
        height: 30px;
        color: #66836b;
        font-size: 23px;
    }
    .offcanvas-nav > a:hover,
    .offcanvas-nav > a.active,
    .offcanvas-dropdown[open] > summary {
        border-color: #c9dbc9 !important;
        background: #edf4eb;
        color: #17472f;
    }
    .offcanvas-dropdown {
        overflow: hidden;
        border: 1px solid #e1e9df;
        border-radius: 9px;
        background: #fff;
    }
    .offcanvas-dropdown > summary {
        display: grid;
        list-style: none;
        cursor: pointer;
    }
    .offcanvas-dropdown > summary::-webkit-details-marker { display: none; }
    .offcanvas-dropdown > summary b { transition: transform .18s ease; }
    .offcanvas-dropdown[open] > summary b { transform: rotate(180deg); }
    .offcanvas-dropdown-links {
        padding: 8px 10px 10px 40px;
        display: grid;
        gap: 4px;
    }
    [dir="rtl"] .offcanvas-dropdown-links { padding-right: 40px; padding-left: 10px; }
    .offcanvas-dropdown-links a {
        min-height: 42px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        border: 1px solid #e4ece2;
        border-radius: 7px;
        background: #fff;
        color: #536b5a;
        font-size: 12px;
        font-weight: 650;
        text-decoration: none;
        transition: border-color .16s ease, background .16s ease, color .16s ease;
    }
    .offcanvas-dropdown-links a:hover,
    .offcanvas-dropdown-links a:focus-visible {
        border-color: #c9dbc9;
        background: #edf4eb;
        color: #17472f;
    }
    .offcanvas-dropdown-links a:focus-visible {
        outline: 2px solid #6f9579;
        outline-offset: 1px;
    }
    .offcanvas-language {
        min-height: 48px;
        margin-top: 14px;
        border: 0;
        border-radius: 9px;
        background: #245c3e;
        color: #fff;
        font-size: 13px;
    }
    .offcanvas-language b { color: #d8e6a3; }
    .offcanvas-note {
        padding-top: 13px;
        border-top: 1px solid #e3ebe1;
        color: #617267;
        font-size: 11px;
    }
    .offcanvas-note > span { border-radius: 9px; background: #d8e6a3; color: #183f31; }
    .offcanvas-backdrop { z-index: 1040; background: rgb(18 43 31 / 48%); }

    .user-account .account-offcanvas-backdrop {
        background: rgb(18 43 31 / 52%);
        backdrop-filter: blur(3px);
    }
    .user-account .account-dropdown {
        width: min(88vw, 370px);
        padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0 18px 18px 0;
        background: #f8faf7;
        box-shadow: 16px 0 44px rgb(22 61 50 / 22%);
    }
    [dir="rtl"] .user-account .account-dropdown { border-radius: 18px 0 0 18px; }
    .user-account .account-menu-mobile-head { border-bottom-color: #e3ebe1; }
    .user-account .account-menu-close {
        border-color: #d8e4d6;
        border-radius: 9px;
        background: #fff;
        color: #315d43;
    }
    .user-account .account-menu-profile {
        margin: 14px 0 4px;
        background: #edf4eb;
    }
    .user-account .account-dropdown-nav {
        gap: 6px;
        margin-top: 10px;
    }
    .user-account .account-dropdown-nav > a,
    .user-account .account-menu-language-form .offcanvas-language,
    .user-account .account-dropdown-signout button {
        min-height: 49px;
        border: 1px solid #e1e9df;
        border-radius: 9px;
        background: #fff;
        color: #365341;
        font-size: 13px;
        font-weight: 650;
    }
    .user-account .account-dropdown-nav > a:nth-child(n),
    .user-account .account-dropdown-signout button {
        border-inline-start: 1px solid #e1e9df;
    }
    .user-account .account-dropdown-nav > a:hover { background: #edf4eb; color: #17472f; }
    .user-account .account-dropdown-nav > a > span:first-child,
    .user-account .account-menu-language-form .offcanvas-language > span:first-child,
    .user-account .account-dropdown-signout button > span:first-child {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #edf4eb;
        color: #315d43;
    }
    .user-account .account-dropdown-nav > a b,
    .user-account .account-menu-language-form .offcanvas-language > b,
    .user-account .account-dropdown-signout button b {
        color: #66836b;
        font-size: 22px;
    }
    .user-account .account-menu-language-form { margin-top: 12px; }
    .user-account .account-menu-language-form .offcanvas-language {
        background: #245c3e;
        color: #fff;
    }
    .user-account .account-menu-language-form .offcanvas-language > span:first-child {
        background: #356e4d;
        color: #fff;
    }
    .user-account .account-menu-language-form .offcanvas-language > b { color: #d8e6a3; }
    .user-account .account-dropdown-signout { padding-top: 8px; }
    .user-account .account-dropdown-signout button {
        border-color: #f0d8d1;
        background: #fff7f4;
        color: #934a3b;
    }
    .user-account .account-dropdown-signout button > span:first-child {
        background: #fbe9e3;
        color: #934a3b;
    }
    .user-account .account-dropdown-signout button b { color: #934a3b; }
    .user-account .account-menu-footer {
        padding-top: 14px;
        color: #617267;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-nav-dropdown > summary b,
    .primary-nav-dropdown-menu a,
    .primary-nav-links a,
    .primary-nav-cta,
    .offcanvas-dropdown > summary b { transition: none; }
}

@media (max-width: 680px) {
    .category-mobile-offcanvas {
        max-height: min(86vh, 760px);
        border: 0;
        border-radius: 20px 20px 0 0;
        background: #f8faf7;
        box-shadow: 0 -16px 42px rgb(22 61 50 / 20%);
        overflow: hidden;
    }
    .category-mobile-filter {
        height: min(86vh, 760px);
        height: min(86dvh, 760px);
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: min(88vw, 370px);
        border: 1px solid #e1e9df;
        border-left: 0;
        border-radius: 0;
        box-shadow: 12px 0 38px rgb(22 61 50 / 20%);
        animation: category-filter-slide-in .22s ease-out both;
    }
    .category-mobile-filter .category-mobile-offcanvas-head {
        min-height: 64px;
        padding: 11px 16px;
        border-bottom: 1px solid #e1e9df;
        background: #f8faf7;
        color: #365341;
    }
    .category-mobile-filter .category-mobile-offcanvas-head h2 {
        color: #365341;
        font-size: 15px;
        font-weight: 750;
    }
    .category-mobile-filter .category-mobile-offcanvas-head button {
        width: 40px;
        height: 40px;
        border: 1px solid #d8e4d6;
        border-radius: 9px;
        background: #fff;
        color: #315d43;
    }
    .category-mobile-offcanvas-head button:hover { background: #edf4eb; }
    .category-mobile-filter-controls {
        width: min(100%, 560px);
        min-height: 0;
        flex: 1 1 auto;
        margin-inline: auto;
        padding: 16px;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 10px;
        background: #f8faf7;
    }
    .category-mobile-filter-controls > input,
    .category-mobile-filter-controls > select {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 0 12px;
        border: 1px solid #e1e9df;
        border-radius: 9px;
        background: #fff;
        color: #365341;
        font-size: 16px;
    }
    .category-mobile-filter-controls > input,
    .category-mobile-filter-controls > select,
    .category-mobile-filter-controls .category-filter-option { grid-column: 1 / -1; }
    .category-mobile-filter-controls > input:focus,
    .category-mobile-filter-controls > select:focus {
        border-color: #6f9579;
        outline: 0;
        box-shadow: 0 0 0 3px #6f95792e;
    }
    .category-mobile-filter-controls .category-filter-option {
        min-width: 0;
        min-height: 58px;
        padding: 8px 10px;
        gap: 8px;
        border: 1px solid #e1e9df;
        border-radius: 9px;
        background: #fff;
        color: #365341;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.35;
    }
    .category-mobile-filter-controls .category-filter-option input {
        width: 20px;
        height: 20px;
        border-color: #9eb29f;
        border-radius: 5px;
        background: #fff;
    }
    .category-mobile-filter-controls .category-filter-option input:checked {
        border-color: #245c3e;
        background: #245c3e;
    }
    .category-mobile-filter-footer {
        min-height: 0;
        flex: 0 0 auto;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
        gap: 10px;
        border-top: 1px solid #e1e9df;
        background: #fff;
        box-shadow: 0 -5px 16px rgb(22 61 50 / 6%);
    }
    .category-mobile-filter-footer .category-filter-apply,
    .category-mobile-filter-footer .category-filter-clear {
        min-height: 46px;
        padding: 0 14px;
        border: 1px solid transparent;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 700;
        transition: background .16s ease, border-color .16s ease, color .16s ease;
    }
    .category-mobile-filter-footer .category-filter-apply {
        background: #245c3e;
        color: #fff;
    }
    .category-mobile-filter-footer .category-filter-apply:hover {
        background: #17472f;
    }
    .category-mobile-filter-footer .category-filter-clear {
        border-color: #d8e4d6;
        background: #fff;
        color: #315d43;
    }
    .category-mobile-filter-footer .category-filter-clear:hover {
        border-color: #cbdccc;
        background: #edf4eb;
        color: #17472f;
    }
    .category-mobile-filter-footer button:focus-visible {
        outline: 3px solid #5c8b6250;
        outline-offset: 2px;
    }
}

@keyframes category-filter-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .category-mobile-filter { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .category-mobile-filter-footer button { transition: none; }
}

@media (max-width: 680px) {
    .app-shell.map-route {
        height: calc(100vh - 76px - env(safe-area-inset-bottom));
        height: calc(100dvh - 76px - env(safe-area-inset-bottom));
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .app-shell.map-route > .topbar { flex: 0 0 auto; }
    .app-shell.map-route > main {
        min-height: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .app-shell.map-route .site-footer { display: none; }
    .app-shell.map-route .listings-map-page {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .app-shell.map-route .listings-map-heading { display: none; }
    .app-shell.map-route .listings-map-toolbar {
        position: static;
        min-height: 0;
        margin: 0;
    }
    .app-shell.map-route .listings-map-count { display: none; }
    .app-shell.map-route .listings-map-view-toggle {
        position: absolute;
        z-index: 20;
        top: 10px;
        inset-inline-start: 10px;
    }
    .app-shell.map-route .listings-map-view-toggle button {
        min-height: 36px;
        padding: 0 9px;
        font-size: 11px;
    }
    .app-shell.map-route .listings-map-locate {
        position: absolute;
        z-index: 20;
        top: 10px;
        inset-inline-end: 10px;
        min-height: 42px;
        padding: 0 12px;
        border-color: var(--bs-border-color);
        border-radius: .5rem;
        background: #fff;
        box-shadow: 0 2px 10px rgb(33 37 41 / 16%);
        font-size: 12px;
    }
    .app-shell.map-route .listings-map-status {
        position: absolute;
        z-index: 20;
        top: 58px;
        left: 50%;
        max-width: calc(100% - 24px);
        margin: 0;
        padding: 7px 10px;
        transform: translateX(-50%);
        border: 1px solid var(--bs-border-color);
        border-radius: .5rem;
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 2px 10px rgb(33 37 41 / 12%);
        font-size: 12px;
    }
    .app-shell.map-route .listings-map-layout {
        position: relative;
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .app-shell.map-route .listings-map-canvas {
        position: relative;
        z-index: 0;
        flex: 1 1 auto;
        isolation: isolate;
        height: auto;
        min-height: 0;
        border: 0;
    }
    .app-shell.map-route .listings-map-legend {
        position: relative;
        z-index: 10;
        min-height: 42px;
        flex: 0 0 auto;
        margin: 0 8px 8px;
        padding: 6px 8px;
        border: 1px solid rgb(222 226 230 / 90%);
        border-radius: .75rem;
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 2px 12px rgb(33 37 41 / 14%);
        backdrop-filter: blur(8px);
    }
    .app-shell.map-route .listings-map-legend h2,
    .app-shell.map-route .listings-map-note,
    .app-shell.map-route .listings-map-attribution { display: none; }
    .app-shell.map-route .listings-map-legend ul {
        width: 100%;
        margin: 0;
        padding: 0 0 2px;
        display: flex;
        grid-template-columns: none;
        gap: 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }
    .app-shell.map-route .listings-map-legend ul::-webkit-scrollbar { display: none; }
    .app-shell.map-route .listings-map-legend ul:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: 2px;
    }
    .app-shell.map-route .listings-map-legend li {
        min-height: 30px;
        padding: 4px 8px;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 5px;
        border: 1px solid var(--bs-border-color);
        border-radius: 999px;
        background: #fff;
        font-size: 10px;
        white-space: nowrap;
    }
    .app-shell.map-route .listings-map-dot { width: 9px; height: 9px; }
    .app-shell.map-route .listings-map-category-count { font-size: 10px; }
    .app-shell.map-route .listings-map-legend > p {
        margin: 0;
        font-size: 11px;
        white-space: nowrap;
    }
    .app-shell.map-route .listings-map-page > .auth-message {
        position: absolute;
        z-index: 30;
        top: 60px;
        right: 12px;
        left: 12px;
        margin: 0;
    }
    .app-shell.map-route .listings-map-page > .auth-lede {
        min-height: 0;
        flex: 1 1 auto;
        display: grid;
        place-items: center;
        padding: 16px;
    }
    .app-shell.map-route .leaflet-bottom.leaflet-right {
        right: 8px;
        bottom: 0;
    }
    .app-shell.map-route .leaflet-top { top: 54px; }
    .app-shell.map-route .leaflet-control-attribution {
        padding: 2px 6px;
        border-radius: .25rem;
        background: rgb(255 255 255 / 92%);
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .app-shell.map-route .listings-map-view-toggle button { padding: 0 6px; font-size: 10px; }
    .app-shell.map-route .listings-map-locate { padding: 0 8px; font-size: 11px; }
}

/* RecyclE-Hub's marketplace theme */
:root {
    --bs-primary: #3498db;
    --bs-primary-hover: #287fb8;
    --bs-primary-subtle: #e6f4fb;
    --bs-success: #20b96b;
    --bs-success-hover: #159957;
    --bs-success-subtle: #e2f6eb;
    --bs-danger: #e74c3c;
    --bs-warning: #f39c12;
    --bs-info: #1abc9c;
    --bs-dark: #34495e;
    --bs-secondary: #718493;
    --bs-light: #f7fbfc;
    --bs-border-color: #d3e5e9;
    --bs-body-bg: #e1f2f5;
    --ink: #34495e;
    --muted: #748694;
    --green: #20b96b;
    --green-dark: #159957;
    --lime: #e2f6eb;
    --paper: #e1f2f5;
    --line: #d3e5e9;
    --orange: #f47e20;
    font-family: "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
}

.topbar {
    border-bottom: 0;
    background: var(--paper);
}

.topbar-utility {
    border: 0;
    background: #fff;
    color: #647687;
}

.topbar-utility-dot { background: var(--bs-info); }
.topbar-utility-links a:hover,
.topbar-utility-links a.active { color: var(--bs-primary-hover); }
.topbar-inner { min-height: 92px; }
.topbar-title { color: var(--ink); }

.topbar-search {
    border-color: #c6dce2;
    background: #fff;
}

.topbar-search:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px #3498db24;
}

.topbar-search button {
    background: var(--bs-info);
    color: #fff;
}

.topbar-search button:hover { background: #13a98b; }
.topbar-login { color: var(--bs-primary-hover); }
.topbar .topbar-cta { background: var(--bs-success); }
.topbar .topbar-cta:hover { background: var(--bs-success-hover); }

.primary-navigation {
    background: transparent;
    color: #fff;
}

.primary-navigation-inner {
    min-height: 62px;
    gap: 0;
}

.primary-nav-dropdown { flex: 0 0 220px; }
.primary-nav-dropdown > summary {
    min-width: 0;
    background: var(--bs-dark);
    color: #fff;
}

.primary-nav-links { flex: 1 1 auto; gap: 0; }
.primary-nav-links a { min-height: 62px; border: 0; color: #fff; }
.primary-nav-links a:first-child { background: var(--bs-danger); }
.primary-nav-links a:nth-child(2) { background: var(--bs-primary); }
.primary-nav-links a:hover,
.primary-nav-links a.active { background: var(--bs-info); color: #fff; }

.primary-nav-cta {
    min-height: 62px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--bs-success);
    color: #fff;
}

.primary-nav-cta:hover { background: var(--bs-success-hover); color: #fff; }

.marketplace-intro {
    margin-top: 25px;
    padding: 36px 28px;
    border-top: 5px solid var(--bs-info);
    background: #fff;
}

.marketplace-intro .eyebrow { color: var(--bs-primary-hover); }
.eyebrow-dot { background: var(--bs-success); box-shadow: 0 0 0 4px #20b96b20; }
.marketplace-intro h1 span { color: var(--bs-primary-hover); }
.marketplace-intro p { color: #627586; }

.material-categories { padding-top: 28px; }
.material-categories-heading {
    margin-bottom: 12px;
    padding: 13px 18px;
    background: var(--bs-dark);
    text-align: start;
}

.material-categories-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    letter-spacing: 0;
}

.material-category {
    width: 100%;
    min-height: 146px;
    padding: 10px;
    border-bottom: 3px solid var(--bs-info);
    background: #fff;
}

.material-category:nth-child(4n + 1) { border-bottom-color: var(--bs-primary); }
.material-category:nth-child(4n + 2) { border-bottom-color: var(--bs-danger); }
.material-category:nth-child(4n + 3) { border-bottom-color: var(--orange); }
.material-category:nth-child(4n) { border-bottom-color: var(--bs-success); }
.material-category-image {
    width: 100%;
    max-width: 150px;
    border: 0;
    border-radius: 2px;
    background: #f7fbfc;
    box-shadow: none;
}

.material-category:hover .material-category-image { transform: none; box-shadow: none; }
.material-category:hover .material-category-image img { transform: scale(1.04); }
.material-category strong { color: var(--ink); font-size: 14px; }

.market-section { padding-top: 20px; }
.listing-grid { gap: 12px; }
.listing-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #d7dfe2;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transition: border-color .15s ease;
}

.listing-card:hover { transform: none; border-color: #aebdc3; box-shadow: none; }
.listing-visual { height: 210px; aspect-ratio: auto; background: #fff; }
.listing-visual::before,
.listing-visual::after { display: none; }
.listing-photo-cover { padding: 8px; background: #fff; }
.listing-photo-cover img { object-fit: contain; }
.listing-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 10px 12px 0;
    background: #f6f6f6;
}

.listing-content h3 {
    margin: 3px 0 6px;
    color: #286887;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

.listing-meta { color: #718493; font-size: 11px; }
.available-pill { border-radius: 0; background: #fff; }
.visual-code { display: none; }
.listing-card .listing-photo-strip { display: none; }
.listing-card .seller-line { gap: 5px; font-size: 12px; }
.listing-card .seller-avatar {
    width: 17px;
    height: 17px;
    border-radius: 0;
    background: #e6f4fb;
    color: var(--bs-primary-hover);
    font-size: 9px;
}

.listing-bottom {
    min-height: 0;
    margin-top: 5px;
    padding: 0 0 8px;
    align-items: center;
    border: 0;
}

.quantity { color: #718493; font-size: 11px; }
.quantity strong { font-size: 14px; }
.price { color: #718493; font-size: 9px; }
.price strong { color: var(--bs-danger); font-size: 16px; }
.listing-facts { margin: 8px 0 12px; border-top: 1px solid var(--bs-border-color); }
.listing-fact-row {
    min-height: 30px;
    padding: 6px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--bs-border-color);
}
.listing-fact-label { flex: 0 0 auto; color: #718493; font-size: 11px; }
.listing-fact-value {
    min-width: 0;
    max-width: 72%;
    color: #34495e;
    font-size: 12px;
    text-align: end;
    overflow-wrap: anywhere;
}
.listing-fact-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px; }
.listing-fact-price strong { color: var(--bs-danger); font-size: 14px; }
.listing-fact-link { color: var(--bs-primary); font-weight: 700; text-decoration: none; }
.listing-fact-link:hover { color: var(--bs-primary-hover); text-decoration: underline; }
.listing-photo-strip button,
.listing-photo-strip a { border-radius: 0; }
.favorite-toggle { border-radius: 0; }
.listing-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: calc(100% + 24px);
    margin-top: auto;
    margin-inline: -12px;
}
.listing-actions .card-action {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
}
.card-action-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    border: 0;
    border-inline-start: 1px solid #fff;
    background: var(--bs-primary);
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
}
.card-action-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.favorite-card-action { background: var(--bs-danger); color: #fff; }
.favorite-card-action.is-favorite svg path { fill: currentColor; }
.view-card-action { background: var(--bs-primary); color: #fff; }
.card-action-icon:disabled { opacity: .6; cursor: wait; }
.favorite-card-action:hover { background: #d63e34; color: #fff; }
.view-card-action:hover { background: #287fb8; color: #fff; }
.card-action {
    width: calc(100% + 24px);
    min-height: 40px;
    margin: auto -12px 0;
    padding: 8px 12px;
    border: 0;
    background: var(--orange);
    color: #fff;
    justify-content: space-between;
    font-size: 14px;
}

.card-action:hover { background: #df6e14; color: #fff; }
.listing-actions .card-action-icon { margin: 0; }
.listing-actions .call-seller-action,
.listing-actions .call-seller-action:hover {
    justify-content: center;
    gap: 8px;
    background: var(--bs-primary);
    color: #fff;
}
.listing-actions .call-seller-action:hover { background: var(--bs-primary-hover); }
.call-seller-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.listing-pagination button { border-color: var(--line); border-radius: 2px; background: #fff; color: var(--bs-primary-hover); }
.empty-state { border-color: var(--line); background: #fff; }

.sell-section { background: #edf4e9; }
.sell-form-wrap {
    border: 0;
    border-top: 4px solid var(--bs-success);
    background: #fff;
    box-shadow: 0 2px 8px #34495e12;
}

.form-step { border-radius: 2px; background: var(--bs-primary); color: #fff; }
.listing-form input,
.listing-form select {
    border-color: #cbdde2;
    border-radius: 2px;
}

.listing-form input:focus,
.listing-form select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px #3498db20;
}

.listing-form input[type="file"]::file-selector-button {
    border-radius: 2px;
    background: var(--bs-primary-subtle);
    color: var(--bs-primary-hover);
}

.form-submit { border-radius: 2px; background: var(--bs-success); }
.form-submit:hover { background: var(--bs-success-hover); }
.form-success { border-color: #c4e7d2; border-radius: 2px; background: #effaf3; color: #23734b; }

.closing-banner { background: var(--bs-dark); }
.closing-banner .eyebrow { color: #b7d7e5; }
.closing-spark { color: var(--bs-info); }
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.footer-brand-block p,
.footer-action p,
.footer-location,
.footer-link-group a { color: #6d7f8e; }

.footer-link-group h2,
.footer-action h2 { color: var(--ink); }
.footer-link-group a:hover,
.footer-link-group a.active { color: var(--bs-primary-hover); }
.footer-location-mark { border-color: #b9dbe5; color: var(--bs-primary-hover); }
.footer-action { background: #f4fafb; }
.footer-kicker { color: var(--bs-primary-hover); }
.footer-cta { border-radius: 2px; background: var(--bs-success); color: #fff; }
.footer-cta:hover { background: var(--bs-success-hover); color: #fff; }
.footer-bottom { border-top-color: var(--line); color: #718493; }

.category-sidebar-block,
.category-results-heading,
.category-filter-dropdown,
.auth-card,
.communication-page,
.profile-card,
.admin-table-wrap,
.metric-card {
    border-radius: 2px;
    background-color: #fff;
}

.category-sidebar-block { padding: 14px; border: 0; }
.category-sidebar-block h2 {
    margin: -14px -14px 8px;
    padding: 12px 14px;
    background: var(--bs-info);
    color: #fff;
}

.category-sidebar-block:nth-child(2) h2 { background: var(--bs-primary); }
.category-sidebar-block:nth-child(3) h2 { background: #9b59b6; }
.category-sidebar-block nav a { min-height: 44px; border-color: #edf2f4; }
.category-sidebar-block nav a:hover,
.category-sidebar-block nav a.selected { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }

.category-filter-bar,
.category-filter-dropdown,
.category-search-input,
.category-filter-field select,
.category-results-heading select {
    border-radius: 2px;
}

.category-more-filters { color: var(--ink); }
.category-filter-apply { border-radius: 2px; background: var(--bs-success); }
.category-filter-apply:hover { background: var(--bs-success-hover); }

.button { border-radius: 2px; }
.button-green { background: var(--bs-success); }
.button-green:hover { background: var(--bs-success-hover); }
.button-outline { border-color: #c8dce2; }

.auth-card,
.metric-card,
.admin-table-wrap,
.help-opportunity,
.how-it-works-step {
    border-color: var(--line);
    box-shadow: 0 1px 4px #34495e0d;
}

.admin-topline h1,
.admin-section-heading h2 { color: var(--ink); }
.admin-section-heading {
    min-height: 46px;
    padding: 11px 14px;
    background: var(--bs-dark);
    color: #fff;
}

.admin-section-heading h2 { color: #fff; }
.admin-table th { background: #eef7f9; color: #536a7b; }
.admin-table td { border-color: #edf2f4; }
.metric-attention { border-color: #f5d6b3; }

.listings-map-toolbar,
.listings-map-legend,
.listings-map-layout,
.communication-empty,
.notification-item,
.conversation-item,
.message-thread {
    border-radius: 2px;
}

.listings-map-legend,
.listings-map-layout,
.message-list,
.message-thread,
.notification-item {
    background: #fff;
}

.listings-map-legend h2 { color: var(--ink); }
.listings-map-locate,
.message-compose button,
.communication-page .button-green { background: var(--bs-success); color: #fff; }
.mobile-offcanvas { background: #f5fafb; }
.offcanvas-language { border-color: #b9dbe5; background: #e8f5f8; color: var(--bs-primary-hover); }
.offcanvas-note > span { border-radius: 2px; background: var(--bs-primary); color: #fff; }

@media (max-width: 900px) {
    .material-category { min-height: 124px; }
    .material-category-image { max-width: 120px; }
}

@media (max-width: 680px) {
    .topbar { background: #fff; }
    .topbar-inner { min-height: 76px; }
    .topbar-search { border-color: #cbdde2; background: #fff; }
    .marketplace-intro { margin-top: 12px; padding: 25px 18px; }
    .material-categories { padding-top: 20px; }
    .material-categories-heading { padding: 11px 13px; }
    .material-categories-heading h2 { font-size: 17px; }
    .material-category { min-height: 112px; padding: 7px; }
    .material-category-image { width: 100%; max-width: 78px; }
    .material-category strong { font-size: 12px; }
    .listing-visual { height: 140px; aspect-ratio: auto; }
    .listing-content { padding: 8px 8px 0; }
    .listing-content h3 { margin: 3px 0 5px; font-size: 14px; }
    .listing-meta { font-size: 10px; }
    .listing-card .seller-line { font-size: 10px; }
    .listing-card .seller-avatar { width: 15px; height: 15px; }
    .listing-actions {
        width: calc(100% + 16px);
        margin-inline: -8px;
    }
    .listing-bottom { flex-direction: row; gap: 4px; padding-bottom: 6px; }
    .quantity { font-size: 10px; }
    .quantity strong { font-size: 12px; }
    .price { align-items: flex-start; font-size: 8px; }
    .price strong { font-size: 13px; }
    .listing-fact-row { gap: 6px; padding: 5px 0; }
    .listing-fact-label { font-size: 9px; }
    .listing-fact-value { max-width: 75%; font-size: 10px; }
    .listing-fact-price strong { font-size: 12px; }
    .card-action {
        width: calc(100% + 16px);
        min-height: 36px;
        margin-inline: -8px;
        padding: 7px 8px;
        font-size: 12px;
    }
    .sell-section { background: #edf4e9; }
    .sell-form-wrap { padding: 20px 16px; }
    .bottom-nav {
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 -4px 16px #34495e12;
    }

    .bottom-nav-item { color: #617687; }
    .bottom-nav-item.active { color: var(--bs-primary-hover); }
    .bottom-nav-item:hover { background: var(--bs-primary-subtle); color: var(--bs-primary-hover); }
    .bottom-nav-primary,
    .bottom-nav-primary:hover,
    .bottom-nav-primary.active { background: var(--bs-success) !important; color: #fff; }
}

*, *::before, *::after { border-radius: 0 !important; }

.detail-modal.detail-showcase {
    width: min(896px, calc(100vw - 48px));
    height: min(608px, calc(100vh - 48px));
    min-height: min(384px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #f8faf6;
    color: #26352d;
    isolation: isolate;
    box-shadow: none;
}

.detail-showcase-photo,
.detail-showcase-no-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-showcase-photo {
    display: block;
    object-fit: cover;
}

.detail-showcase-no-photo {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, #456452, #14231c 72%);
}

.detail-showcase-no-photo .detail-icon {
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    color: #ffffff40;
    font-size: clamp(140px, 30vw, 280px);
}

.detail-showcase-topline {
    position: absolute;
    z-index: 2;
    top: 18px;
    inset-inline: 20px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-showcase .detail-status {
    position: static;
    padding: 7px 10px;
    background: #f7fff0;
    color: #255a37;
    box-shadow: none;
}

.detail-showcase-count {
    padding: 6px 9px;
    border: 1px solid #dfe7df;
    border-radius: 999px;
    background: #fff;
    color: #26352d;
    font-size: 12px;
    font-weight: 800;
}

.detail-showcase .detail-showcase-close {
    z-index: 4;
    top: 12px;
    inset-inline-end: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe7df;
    background: #fff;
    color: #26352d;
    box-shadow: none;
}

.detail-showcase-arrow {
    position: absolute;
    z-index: 2;
    top: 40%;
    width: 42px;
    height: 48px;
    padding: 0;
    border: 1px solid #dfe7df;
    border-radius: 12px;
    background: #ffffffed;
    color: #26352d;
    font: 400 36px/1 "Manrope", sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease;
}

.detail-showcase-arrow:hover {
    background: #fff;
}

.detail-showcase-previous { inset-inline-start: 14px; }
.detail-showcase-next { inset-inline-end: 14px; }

.detail-showcase-content {
    position: absolute;
    z-index: 2;
    inset-inline: 18px;
    bottom: 18px;
    max-height: 72%;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
    gap: 8px 18px;
    padding: 14px 18px;
    border: 1px solid #fff;
    background: #f8faf6;
    color: #26352d;
    scrollbar-color: #a7b6aa transparent;
    scrollbar-width: thin;
}

.detail-showcase .detail-breadcrumb,
.detail-showcase h2,
.detail-showcase .detail-description,
.detail-showcase .listings-map-detail-description { grid-column: 1 / -1; }
.detail-showcase .detail-facts,
.detail-showcase .contact-note { grid-column: 1; }
.detail-showcase .detail-seller,
.detail-showcase .listings-map-detail-seller,
.detail-showcase .detail-actions { grid-column: 2; }

.detail-showcase .detail-breadcrumb {
    margin-bottom: 6px;
    color: #526358;
}

.detail-showcase .detail-breadcrumb span { color: #829087; }

.detail-showcase h2 {
    max-width: 860px;
    margin: 0 0 7px;
    color: #26352d;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.16;
}

.detail-showcase .detail-description {
    max-width: 820px;
    margin: 0;
    color: #526158;
    font-size: 13px;
    line-height: 1.5;
}

.detail-showcase .listings-map-detail-seller {
    margin: 0 0 6px;
    color: #526158;
}

.detail-showcase .listings-map-detail-description {
    margin: 0;
    color: #526158;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.detail-showcase .detail-facts {
    max-width: none;
    margin: 8px 0;
    padding: 8px 0;
    border-color: #d6dfd8;
}

.detail-showcase .detail-facts small { color: #78857c; }
.detail-showcase .detail-facts strong { color: #26352d; font-size: 14px; }

.detail-showcase .detail-seller {
    width: fit-content;
    min-width: min(240px, 100%);
    margin: 8px 0;
    padding: 6px 9px;
    border-color: #dfe7df;
    background: #eef3ed;
}

.detail-showcase .detail-seller-avatar {
    background: #d4e35f;
    color: #173a2b;
}

.detail-showcase .detail-seller small { color: #78857c; }
.detail-showcase .detail-seller strong { color: #26352d; }

.detail-showcase .contact-note {
    max-width: none;
    padding: 7px 9px;
    border-color: #dfe7df;
    background: #eef3ed;
    color: #526158;
    font-size: 12px;
}

.detail-showcase .listing-contact a {
    color: #245c3e;
}

.detail-showcase .detail-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.detail-showcase .modal-primary {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 15px;
    border: 0;
    background: #20b66e;
    color: #fff;
}

.detail-showcase .modal-primary:hover { background: #15965a; }

.detail-showcase .detail-contact-button {
    min-height: 38px;
    border-color: #cbd8d1;
    background: #fff;
    color: #315646;
    text-decoration: none;
}

.detail-showcase .detail-contact-button:hover { background: #eef3ed; }

@media (max-width: 760px) {
    .detail-modal.detail-showcase {
        width: calc(100vw - 24px);
        height: 80vh;
        min-height: 0;
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .detail-showcase-topline {
        top: 18px;
        inset-inline-start: 16px;
        inset-inline-end: 62px;
    }

    .detail-showcase .detail-showcase-close {
        top: 14px;
        inset-inline-end: 14px;
    }

    .detail-showcase-arrow {
        top: 37%;
        width: 36px;
        height: 42px;
        font-size: 30px;
    }

    .detail-showcase-previous { inset-inline-start: 8px; }
    .detail-showcase-next { inset-inline-end: 8px; }

    .detail-showcase-content {
        inset-inline: 10px;
        bottom: 10px;
        max-height: 76%;
        padding: 12px;
    }

    .detail-showcase h2 { font-size: clamp(21px, 6vw, 28px); }
    .detail-showcase .detail-facts { margin: 7px 0; }
    .detail-showcase .detail-seller { min-width: 0; margin: 4px 0; padding: 5px 7px; }
    .detail-showcase .detail-seller-avatar { width: 34px; height: 34px; flex-basis: 34px; }
    .detail-showcase .contact-note { overflow-wrap: anywhere; }
    .detail-showcase .detail-actions { flex-direction: column; align-items: stretch; margin-top: 4px; }
    .detail-showcase .modal-primary,
    .detail-showcase .detail-contact-button { width: 100%; }
}

@media (max-width: 560px) {
    .detail-showcase-content { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .detail-showcase .detail-facts,
    .detail-showcase .detail-seller,
    .detail-showcase .listings-map-detail-seller,
    .detail-showcase .contact-note,
    .detail-showcase .detail-actions { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .detail-showcase-arrow { transition: none; }
}

.modal-backdrop,
.listings-map-detail-backdrop {
    background: rgba(244, 244, 246, .88);
    backdrop-filter: blur(8px);
}

.detail-modal.detail-showcase {
    width: min(560px, calc(100vw - 32px), calc(75vh - 42px));
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 32px);
    aspect-ratio: 3 / 4;
    border: 9px solid #fff;
    border-radius: 42px !important;
    background: #12251c;
    box-shadow: 0 24px 60px rgba(27, 38, 32, .2);
}

.detail-showcase-content {
    inset-inline: 0;
    bottom: 0;
    max-height: 76%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    padding: 48px 22px 18px;
    border: 0;
    background: linear-gradient(180deg, #07120c00 0%, #07120c75 14%, #07120ce8 46%, #07120cf5 100%);
    color: #fff;
    scrollbar-color: #ffffff80 transparent;
}

.detail-showcase .detail-status {
    align-self: flex-start;
    padding: 6px 10px;
    border: 1px solid #ffffff60;
    border-radius: 999px !important;
    background: #ffffffed;
    color: #255a37;
    box-shadow: none;
}

.detail-showcase .detail-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50% !important;
    background: #43a047;
}

.detail-showcase-topline {
    top: 16px;
    left: 62px;
    right: 62px;
    inset-inline: auto;
    justify-content: center;
}

.detail-showcase-count {
    border: 1px solid #ffffff70;
    border-radius: 999px !important;
    background: #10251c99;
    color: #fff;
}

.detail-showcase .detail-showcase-close {
    top: 12px;
    left: 12px;
    right: auto;
    inset-inline: auto;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff80;
    border-radius: 50% !important;
    background: #ffffffd9;
    color: #26352d;
    box-shadow: none;
}

.detail-showcase-favorite {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 9px;
    border: 1px solid #ffffff80;
    border-radius: 50% !important;
    background: #ffffff38;
    color: #fff;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.detail-showcase-favorite svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.detail-showcase-favorite:hover { background: #ffffff70; transform: scale(1.05); }
.detail-showcase-favorite.is-favorite { background: #fff; color: #d64252; }
.detail-showcase-favorite.is-favorite svg { fill: currentColor; }
.detail-showcase-favorite:disabled { cursor: wait; opacity: .7; }

.detail-showcase-arrow {
    top: 42%;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff70;
    border-radius: 50% !important;
    background: #ffffffd9;
    color: #26352d;
    font-size: 30px;
    line-height: 1;
    box-shadow: none;
}

.detail-showcase-arrow:hover { background: #fff; }
.detail-showcase-previous { inset-inline-start: 10px; }
.detail-showcase-next { inset-inline-end: 10px; }

.detail-showcase .detail-breadcrumb {
    margin: 0;
    color: #ffffffc9;
    font-size: 13px;
    text-shadow: 0 1px 8px #0009;
}

.detail-showcase .detail-breadcrumb span { color: #ffffffa0; }

.detail-showcase h2 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.12;
    text-shadow: 0 2px 12px #000b;
}

.detail-showcase .detail-description,
.detail-showcase .listings-map-detail-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #ffffffdf;
    font-size: 13px;
    line-height: 1.5;
    text-shadow: 0 1px 8px #0009;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.detail-showcase .detail-facts {
    width: 100%;
    max-width: none;
    margin: 4px 0;
    padding: 10px 0;
    border-top: 1px solid #ffffff55;
    border-bottom: 1px solid #ffffff55;
}

.detail-showcase .detail-facts small { color: #ffffffb8; font-size: 10px; }
.detail-showcase .detail-facts strong { color: #fff; font-size: 14px; }

.detail-showcase .detail-seller {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.detail-showcase .detail-seller-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    background: #ffffffed;
    color: #173a2b;
}

.detail-showcase .detail-seller small,
.detail-showcase .detail-seller strong,
.detail-showcase .listings-map-detail-seller { color: #fff; }

.detail-showcase .detail-seller small { font-size: 10px; }
.detail-showcase .detail-seller strong { font-size: 13px; }
.detail-showcase .listings-map-detail-seller { margin: 0; font-size: 13px; }

.detail-showcase .contact-note {
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #ffffff45;
    border-radius: 12px !important;
    background: #ffffff20;
    color: #fff;
    font-size: 12px;
}

.detail-showcase .listing-contact a { color: #fff; text-decoration: underline; }

.detail-showcase .detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 3px;
}

.detail-showcase .modal-primary,
.detail-showcase .detail-contact-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #fff;
    border-radius: 999px !important;
    background: #fff;
    color: #17251d;
    font-weight: 800;
    text-decoration: none;
}

.detail-showcase .modal-primary:hover,
.detail-showcase .detail-contact-button:hover {
    background: #edf2ee;
    color: #17251d;
}

@media (max-width: 760px) {
    .detail-modal.detail-showcase {
        width: min(calc(100vw - 24px), calc(75vh - 42px));
        height: auto;
        max-height: calc(100vh - 24px);
        border-width: 7px;
        border-radius: 34px !important;
    }

    .detail-showcase-content { max-height: 78%; padding: 42px 16px 14px; }
    .detail-showcase-topline { top: 14px; left: 56px; right: 56px; }
    .detail-showcase .detail-showcase-close,
    .detail-showcase-favorite { top: 9px; width: 36px; height: 36px; }
    .detail-showcase .detail-showcase-close { left: 9px; }
    .detail-showcase-favorite { right: 9px; }
    .detail-showcase-arrow { top: 39%; width: 36px; height: 36px; font-size: 26px; }
}

@media (max-height: 520px) {
    .detail-modal.detail-showcase {
        width: auto;
        height: calc(100vh - 28px);
        aspect-ratio: 3 / 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-showcase-arrow,
    .detail-showcase-favorite { transition: none; }
}

.listing-loading {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #526158;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.listing-loading-animation {
    position: relative;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: #edf4eb;
}

.listing-loading-animation span {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 0;
    height: 0;
    border: 3px solid #4b7f55;
    opacity: 0;
    animation: listing-loading-ripple 1.5s cubic-bezier(0, .2, .8, 1) infinite;
}

.listing-loading-animation span:nth-child(2) { animation-delay: -.5s; }

@keyframes listing-loading-ripple {
    0%, 4.9% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { opacity: 1; }
    100% { top: 0; left: 0; width: 64px; height: 64px; opacity: 0; }
}

@media (max-width: 680px) {
    .listing-loading { min-height: 220px; }
    .favorites-loading { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    .listing-loading-animation span {
        inset: 8px;
        width: auto;
        height: auto;
        opacity: .8;
        animation: none;
    }

    .listing-loading-animation span:nth-child(2) { inset: 18px; opacity: .45; }
}

.listings-map-marker { border-radius: 50% !important; }
.listings-map-marker-count { border-radius: 50% !important; }

.listing-photo-carousel {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    background: #e9eee9;
}

.listing-photo-carousel > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.listing-photo-carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0 0 3px;
    transform: translateY(-50%);
    border: 1px solid #fff9;
    border-radius: 50% !important;
    background: #16231ca8;
    color: #fff;
    font: 26px/1 "Segoe UI", Tahoma, Arial, sans-serif;
    cursor: pointer;
    transition: background .15s ease;
}

.listing-photo-carousel-arrow:hover { background: #16231ce8; }
.listing-photo-carousel-previous { inset-inline-start: 8px; }
.listing-photo-carousel-next { inset-inline-end: 8px; }

.listing-photo-carousel-count {
    position: absolute;
    z-index: 3;
    inset-inline-end: 8px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 999px !important;
    background: #16231ca8;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.listing-photo-carousel-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.listings-map-popup-card {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #26352d;
    font: 12px/1.45 "Manrope", "Noto Sans Arabic", sans-serif;
}

.listings-map-popup-back {
    align-self: flex-start;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #276789;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.listings-map-popup-gallery,
.listings-map-popup-placeholder {
    position: relative;
    height: 148px;
    overflow: hidden;
    background: #edf2ed;
}

.listings-map-popup-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.listings-map-popup-placeholder {
    display: grid;
    place-items: center;
    color: #64826f;
    font-size: 44px;
}

.listings-map-popup-photo-arrow {
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    padding: 0 0 2px;
    transform: translateY(-50%);
    border: 1px solid #fff9;
    border-radius: 50% !important;
    background: #16231ca8;
    color: #fff;
    font: 22px/1 "Segoe UI", Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.listings-map-popup-photo-arrow.previous { inset-inline-start: 6px; }
.listings-map-popup-photo-arrow.next { inset-inline-end: 6px; }

.listings-map-popup-photo-count {
    position: absolute;
    inset-inline-end: 7px;
    bottom: 7px;
    padding: 2px 6px;
    border-radius: 999px !important;
    background: #16231ca8;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.listings-map-popup-category { font-size: 11px; font-weight: 800; }
.listings-map-popup-title { color: #26352d; font-size: 15px; }
.listings-map-popup-seller,
.listings-map-popup-location { color: #718078; font-size: 11px; }

.listings-map-popup-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    padding: 7px 0;
    border-top: 1px solid #e6ebe6;
    border-bottom: 1px solid #e6ebe6;
}

.listings-map-popup-facts strong { color: #1c7d4d; }

.listings-map-popup-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #526158;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.listings-map-popup-back:focus-visible,
.listings-map-popup-photo-arrow:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .listing-photo-carousel-arrow { transition: none; }
}

body {
    background: linear-gradient(180deg, #72c8d4 0%, #a9c5e8 48%, #31577f 100%) fixed;
}

.app-shell {
    background: #e1f2f5;
    box-shadow: 0 10px 38px #1c38502b;
}

.home-category-strip,
.home-news-feed,
.category-page,
.market-section {
    width: min(1190px, calc(100% - 64px));
    margin-inline: auto;
}

.home-category-strip {
    margin-top: 20px;
    margin-bottom: 16px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.home-category-links {
    max-width: 648px;
    margin-inline-start: 0;
    margin-inline-end: auto;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    justify-items: stretch;
    gap: 0;
}

.home-category-link {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    padding: 6px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: #3498db;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border-inline-end: 1px solid #fff;
    transition: filter .15s ease;
}

.home-category-link:hover {
    color: #fff;
    filter: brightness(1.08);
}

.home-category-link:last-child { border-inline-end: 0; }

.home-category-link:focus-visible,
.home-news-read-more:focus-visible,
.home-news-feed-all:focus-visible,
.home-news-image:focus-visible,
.home-news-content h2 a:focus-visible {
    outline: 3px solid #0d6efd66;
    outline-offset: 2px;
}

.home-category-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.home-category-link.category-all { background: #3498db; }
.home-category-link.category-wood { background: #8e6e53; }
.home-category-link.category-paper { background: #f39c12; }
.home-category-link.category-glass { background: #178fa6; }
.home-category-link.category-metals { background: #34495e; }
.home-category-link.category-plastics { background: #27ae60; }
.home-category-link.category-textiles { background: #8e44ad; }
.home-category-link.category-cardboard { background: #d97706; }
.home-category-link.category-other { background: #607d8b; }

.home-news-feed {
    margin-top: 0;
    margin-bottom: 24px;
}

.home-news-feed-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home-news-feed-kicker {
    margin: 0 0 5px;
    color: #f04478;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.home-news-feed-heading h1 {
    margin: 0;
    color: #243746;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
}

.home-news-feed-heading > div > p:last-child {
    margin: 7px 0 0;
    color: #748694;
    font-size: 14px;
}

.home-news-feed-all {
    padding-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #34495e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-news-feed-all:hover { color: #f04478; }

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.home-news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe4e7;
    background: #fff;
    box-shadow: 0 3px 12px #24374612;
}

.home-news-image {
    height: 220px;
    position: relative;
    display: block;
    overflow: hidden;
    background: #e8edef;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .2s ease-in-out;
}

.home-news-card:hover .home-news-image img { transform: scale(1.035); }

.home-news-date {
    width: 56px;
    min-height: 88px;
    position: absolute;
    z-index: 1;
    top: 0;
    inset-inline-start: 16px;
    padding: 9px 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #343c42;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.home-news-date span:first-child {
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.home-news-date span:nth-child(2) {
    font-size: 12px;
    line-height: 1.2;
}

.home-news-date span:last-child {
    font-size: 11px;
    line-height: 1.2;
}

.home-news-date-new {
    min-height: 46px;
    font-size: 12px;
    font-weight: 800;
}

.home-news-content {
    flex: 1;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
}

.home-news-content h2 {
    min-height: 2.4em;
    margin: 0 0 12px;
    color: #17191b;
    font-size: clamp(18px, 1.65vw, 23px);
    font-weight: 750;
    line-height: 1.3;
}

.home-news-content h2 a {
    color: inherit;
    text-decoration: none;
}

.home-news-content h2 a:hover { color: #f04478; }

.home-news-content > p {
    min-height: 4.35em;
    margin: 0 0 18px;
    display: -webkit-box;
    overflow: hidden;
    color: #858b90;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-news-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-news-read-more {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 3px;
    background: #f04478;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

.home-news-read-more:hover {
    background: #d92e62;
    color: #fff;
}

.home-news-byline {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #9a9fa3;
    font-size: 11px;
    text-align: end;
}

.home-news-feed-status,
.home-news-feed-empty {
    min-height: 190px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #dfe4e7;
    background: #fff;
    color: #748694;
    text-align: center;
}

.home-news-feed-status { flex-direction: row; }

.home-news-feed-empty h2 {
    margin: 0;
    color: #243746;
    font-size: 20px;
}

.home-news-feed-empty p { margin: 0; }

.home-news-feed-empty .home-news-read-more { margin-top: 4px; }

.market-section {
    margin-top: 0;
    margin-bottom: 36px;
    padding: 16px 16px 22px;
    border: 1px solid var(--line);
    background: #fff;
}

.category-results-heading {
    min-height: 58px;
    margin: 0 -16px 16px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #233e52;
    color: #fff;
}

.category-results-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.category-page { padding-top: 22px; }
.category-heading {
    margin-bottom: 18px;
    padding: 20px;
    border-top: 4px solid var(--bs-info);
    background: transparent;
}

.category-heading h1 {
    font-size: clamp(22px, 2.4vw, 32px);
}

.category-filter-shell {
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.category-results-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
}

.category-results {
    padding: 0 16px 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.category-results-heading { margin-bottom: 16px; }
.category-results-heading label { color: #d3e2e9; }
.category-results-heading select { border-color: #b7cbd4; }
.category-results .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1000px) {
    .home-category-strip,
    .home-news-feed,
    .category-page,
    .market-section { width: calc(100% - 40px); }

    .category-results-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }

    .category-results .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
    .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .home-category-strip,
    .home-news-feed,
    .category-page,
    .market-section { width: calc(100% - 28px); }

    .home-category-strip { margin-top: 14px; margin-bottom: 14px; }
    .home-category-links { max-width: 324px; }
    .home-category-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-category-link:nth-child(4n) { border-inline-end: 0; }
    .home-category-links { gap: 0; }
    .home-category-link { padding: 5px; font-size: 12px; }
    .home-category-icon { width: 19px; height: 19px; flex-basis: 19px; }

    .home-news-feed { margin-bottom: 18px; }
    .home-news-feed-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .home-news-grid { gap: 14px; }
    .home-news-image { height: 180px; }
    .home-news-content { padding: 15px; }
    .home-news-content h2 { font-size: 18px; }
    .home-news-footer { align-items: flex-start; flex-direction: column; }
    .home-news-byline { align-items: flex-start; text-align: start; }

    .market-section { padding: 12px 12px 18px; }
    .category-results-heading { min-height: 52px; margin: 0 -12px 12px; padding: 9px 12px; }
    .category-results-heading h2 { font-size: 17px; }

    .category-page { padding-top: 14px; }
    .category-heading { margin-bottom: 12px; padding: 14px; }
    .category-results-layout { grid-template-columns: minmax(0, 1fr); }
    .app-shell.category-route .category-sidebar { display: none; }
    .category-results { padding: 0 12px 14px; }
    .category-results-heading { margin-inline: -12px; }
    .category-results-heading label { gap: 6px; font-size: 11px; }
    .category-results-heading select { min-width: 120px; }
    .category-results .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .home-news-grid { grid-template-columns: minmax(0, 1fr); }
    .home-news-image { height: 220px; }
    .home-news-footer { align-items: center; flex-direction: row; }
    .home-news-byline { align-items: flex-end; text-align: end; }
}

@media (prefers-reduced-motion: reduce) {
    .home-category-link,
    .home-news-read-more,
    .home-news-image img { transition: none; }
}
