/* OpenVibe.Rent — theme-token driven (openvibe-shared presets). Every page works without JavaScript. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary, #0a0f1c); color: var(--text-primary, #e6edf7); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-light, #60a5fa); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent, #3b82f6); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg-card, #131c2e); padding: 8px 12px; z-index: 10; }
.account-bar { max-width: 1080px; margin: 0 auto; padding: 6px 16px 0; text-align: right; font-size: 14px; color: var(--text-secondary, #96a7c2); }
.page { max-width: 1080px; margin: 0 auto; padding: 16px 16px 64px; min-height: 60vh; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 1rem 0 .6rem; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
h3 { font-size: 1.08rem; margin: 1.2rem 0 .4rem; }
.muted { color: var(--text-muted, #7386a3); }
.small { font-size: .85rem; }
.crumbs { font-size: .9rem; color: var(--text-muted, #7386a3); margin: 8px 0; overflow-wrap: anywhere; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code { overflow-wrap: anywhere; }
pre { background: var(--bg-secondary, #0f1729); border: 1px solid var(--border, #1f2d47); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
pre code { overflow-wrap: normal; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--border, #1f2d47); }
th { color: var(--text-secondary, #96a7c2); font-weight: 600; }
.badge { display: inline-block; font-size: .75rem; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); white-space: nowrap; line-height: 1.6; }
.badge.ok { border-color: var(--success, #22c55e); color: var(--success, #22c55e); }
.badge.info { border-color: var(--info, #38bdf8); color: var(--info, #38bdf8); }
.badge.warn { border-color: var(--warning, #f59e0b); color: var(--warning, #f59e0b); }
.badge.bad { border-color: var(--error, #ef4444); color: var(--error, #ef4444); }
.notice { border-left: 3px solid var(--info, #38bdf8); padding: 8px 12px; margin: 12px 0; background: var(--bg-card, #131c2e); border-radius: 0 8px 8px 0; }
.notice.ok { border-left-color: var(--success, #22c55e); }
.notice.warn { border-left-color: var(--warning, #f59e0b); }
.notice.bad { border-left-color: var(--error, #ef4444); }
button { font: inherit; cursor: pointer; }
form.inline { display: inline; }
.prose { max-width: 820px; overflow-wrap: anywhere; }
.prose table { margin: .6rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Listings: one card per listing — what kind, the title, where, the price on the right. */
.txt { white-space: pre-line; }
.listing-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.listing-alert { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.listing { --k: 212; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); transition: border-color .15s, transform .15s; }
.listing:hover { border-color: color-mix(in srgb, var(--accent, #3b82f6) 55%, var(--border, #1f2d47)); transform: translateY(-1px); }
.listing.kind-room { --k: 265; } .listing.kind-house { --k: 150; } .listing.kind-commercial { --k: 32; } .listing.kind-parking { --k: 190; } .listing.kind-equipment { --k: 340; } .listing.kind-other { --k: 220; }
.listing-mark { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: hsl(var(--k) 80% 78%); background: hsl(var(--k) 45% 20%); border: 1px solid hsl(var(--k) 40% 30%); }
.listing-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.listing-title { font-weight: 650; font-size: 1.04rem; color: var(--text-primary, #e6edf7); text-decoration: none; overflow-wrap: anywhere; }
.listing-title:hover { color: var(--accent-light, #60a5fa); text-decoration: underline; text-underline-offset: 3px; }
.listing-where { font-size: .9rem; color: var(--text-secondary, #96a7c2); }
.listing-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.chip { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); color: var(--text-secondary, #96a7c2); white-space: nowrap; }
.listing-age { font-size: .78rem; color: var(--text-muted, #7386a3); }
.listing-price { text-align: right; }
.listing-price .price { font-size: 1.02rem; color: var(--text-primary, #e6edf7); }
.price { white-space: nowrap; }
.listing-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.facets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
@media (max-width: 620px) {
  .listing { grid-template-columns: 44px minmax(0, 1fr); }
  .listing-mark { width: 44px; height: 44px; }
  .listing-price { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .listing { transition: none; } }

/* The search: one panel, the big box first, the filters in a grid. */
.search-form { display: grid; gap: 12px; margin: 14px 0 0; padding: 18px; border-radius: 16px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); }
.search-form .field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.search-form label { font-size: .8rem; font-weight: 650; color: var(--text-secondary, #96a7c2); }
.search-form input, .search-form select { font: inherit; width: 100%; min-width: 0; height: 40px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border-light, #2c3d5c); background: var(--bg-secondary, #0f1729); color: var(--text-primary, #e6edf7); }
.search-form input[type="search"] { height: 46px; font-size: 1.02rem; }
.search-form input:focus-visible, .search-form select:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent, #3b82f6) 70%, transparent); outline-offset: 1px; border-color: var(--accent, #3b82f6); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.search-form > p { display: flex; gap: 8px; margin: 2px 0 0; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Signed out on /post: what posting asks for. */
.post-preview { margin-top: 18px; }
.need-list { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.need-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); }
.need-list b { color: var(--text-primary, #e6edf7); }
.need-list span { font-size: .9rem; line-height: 1.45; color: var(--text-secondary, #96a7c2); }
.saved-list, .report-list { list-style: none; padding: 0; }
.saved-list > li, .staff-item { padding: 8px 0; }
.staff-item { border-bottom: 1px solid var(--border, #1f2d47); }

/* The home page's showcase sections (openvibe-shared/showcase.css) sit inside .page, which has its own gutter. */
.page .sc-hero, .page .sc-sec, .page .sc-cta { padding-left: 0; padding-right: 0; }
.page .sc-ic .ov-icon { --ovi-size: 28px !important; }
button.sc-btn { background: transparent; }
button.sc-btn.sc-primary { border: 0; }
/* The sites the search-everywhere form opens (home); the results page has css/everywhere.css. */
.ew-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 6px; }
.ew-chips li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); font-size: .9rem; }
