/* The Marketplace page: the listings that are live right now, from the app's own API. */
.market-page { background: var(--navy); }
.market-main { margin-top: 0; border-radius: 0; padding-top: 70px; min-height: 100vh; }
.market-hero h1 { font-size: clamp(44px, 6.6vw, 92px); text-shadow: none; }
.market-hero { padding-bottom: clamp(30px, 5vh, 60px); }
.listings-band { padding-top: 0; }
.listings-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-bottom: 26px; }
.listings-top h2 { margin-right: auto; font-size: clamp(28px, 3.4vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button, .sort select { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #ffffff26; background: #0f2c45; color: #dbe6e8; font: 600 13.5px var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--green); color: #04241a; border-color: var(--green); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.listing { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #0f2c45, #0a2033); border: 1px solid #ffffff16; color: inherit; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; opacity: 0; transform: translateY(24px); animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise-in { to { opacity: 1; transform: none; } }
.listing:hover { transform: translateY(-4px); border-color: #39bf9488; box-shadow: 0 30px 70px #0008; }
.listing figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #071826; overflow: hidden; }
.listing img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.listing:hover img { transform: scale(1.05); }
.listing .type { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: #06192ae6; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
.listing .boost { position: absolute; right: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: var(--zone); color: #3a2b00; font-size: 11.5px; font-weight: 800; }
.listing .body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.listing .price { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.listing .price small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.listing h3 { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.listing .place { color: var(--muted); font-size: 13.5px; }
.listing .facts-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 13px; color: #dbe6e8; font-variant-numeric: tabular-nums; }
.listing .seller { margin-top: 6px; padding-top: 12px; border-top: 1px solid #ffffff14; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.listing .seller b { color: #8fe6c2; font-weight: 700; }
.empty { grid-column: 1 / -1; padding: 50px 26px; border-radius: 22px; border: 1px dashed #ffffff2a; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.skeleton { height: 360px; border-radius: 22px; background: linear-gradient(100deg, #0c2338 30%, #12344f 50%, #0c2338 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact-card { padding: 26px 24px; border-radius: 22px; background: linear-gradient(160deg, #0f2c45, #0a2033); border: 1px solid #ffffff14; display: grid; gap: 10px; align-content: start; }
.fact-card b { font-size: 34px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--green); }
.fact-card span { font-size: 15px; line-height: 1.5; color: #dbe6e8; }
.listing .place { font-size: 12px; letter-spacing: 0.06em; }
.note { margin-top: 26px !important; font-size: 13px; color: var(--muted); max-width: 72ch; line-height: 1.6; }
@media (max-width: 1000px) { .trio { grid-template-columns: 1fr; } }
.market-how { padding-top: 0; }
@media (max-width: 760px) { .listings-top h2 { flex-basis: 100%; } }
