/* Site colors, typography, logo and navigation are inherited from site-shell.css. */
:root { color-scheme: dark; --focus: #f0ca72; }
body { background: radial-gradient(ellipse at 90% 0, rgba(214,170,75,.07), transparent 42%), linear-gradient(135deg,var(--bg),var(--bg-soft) 55%,var(--bg-deep)); }
body::after { display: none; }
.brand-logo { filter: none; }
a[aria-current="page"] { color: var(--monarch-gold-soft); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--monarch-gold); color: #14100a; }
.skip-link:focus { top: 10px; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 64px 0 36px; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .17em; color: var(--monarch-gold-soft); }
h1 { margin: 16px 0 16px; font-size: clamp(2.4rem,5vw,4.25rem); line-height: 1.06; letter-spacing: -.045em; }
h1 span { color: var(--monarch-gold-soft); }
.lead { color: var(--muted); line-height: 1.7; font-size: 1rem; }
.catalog-stats { display: flex; gap: 28px; padding-bottom: 5px; flex-shrink: 0; }
.catalog-stats div { display: flex; flex-direction: column-reverse; gap: 8px; }
.catalog-stats dt { font-size: .72rem; color: var(--muted); }
.catalog-stats dd { font-size: 1.7rem; letter-spacing: -.04em; font-weight: 700; }
.catalog-controls { padding: 22px; border: 1px solid var(--card-border); border-radius: var(--radius); background: rgba(15,18,30,.86); }
.search-row { display: flex; gap: 14px; }
.search-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 13px; background: #090c17; border: 1px solid #343848; border-radius: 12px; padding: 0 16px; }
.search-field:focus-within { border-color: var(--monarch-gold); }
.search-field svg { width: 20px; flex: 0 0 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search-field input { min-width: 0; width: 100%; height: 52px; background: transparent; border: 0; color: var(--text); outline: 0; font-size: .92rem; }
input::placeholder { color: #8892ae; }
.button { min-height: 46px; border: 1px solid #3b3f4e; border-radius: 12px; background: #1a1d2a; color: var(--text); padding: 10px 18px; font-weight: 600; font-size: .85rem; transition: border-color .15s,background .15s; }
.button:hover:not(:disabled) { border-color: var(--monarch-gold); background: #242535; }
.favorites-filter { display: flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; }
.favorites-filter > span:first-child { font-size: 1.6rem; line-height: 1; color: var(--monarch-gold-soft); }
.favorites-filter[aria-pressed="true"] { border-color: var(--monarch-gold); color: var(--monarch-gold-soft); }
#favorites-count { background: #303241; border-radius: 6px; padding: 3px 7px; font-size: .72rem; }
.filter-row { display: flex; gap: 16px; align-items: end; margin-top: 18px; }
.filter-row label { flex: 1; min-width: 0; display: grid; gap: 8px; color: var(--muted); font-size: .72rem; }
.filter-row select { width: 100%; min-width: 0; height: 44px; padding: 0 10px; color: var(--text); border: 1px solid #343848; border-radius: 9px; background: #141827; font-size: .83rem; }
.reset-button { min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: var(--muted); font-size: .78rem; }
.reset-button:hover { color: var(--monarch-gold-soft); }
.results-bar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 25px 0 18px; color: var(--muted); font-size: .78rem; }
#result-count { color: var(--text); }
#index-date { font-size: .72rem; text-align: right; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.vehicle-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #303442; border-radius: 18px; background: #10131f; transition: border-color .15s; }
.vehicle-card:hover { border-color: #79663e; }
.vehicle-open { display: block; width: 100%; text-align: left; color: inherit; background: transparent; border: 0; }
.vehicle-image { position: relative; aspect-ratio: 1.62; background: #0b0e17; overflow: hidden; }
.vehicle-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vehicle-info { padding: 19px 21px 20px; }
.vehicle-brand { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.vehicle-name { display: block; font-size: 1.15rem; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.vehicle-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; }
.vehicle-category { font-size: .66rem; color: #c1c8dd; background: #242837; border-radius: 6px; padding: 5px 8px; }
.vehicle-price { color: var(--monarch-gold-soft); font-size: .8rem; font-weight: 600; }
.vehicle-spawn { display: block; color: var(--muted-soft); font: .65rem/1.4 ui-monospace,monospace; margin-top: 8px; overflow-wrap: anywhere; }
.favorite-button { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid #464952; border-radius: 50%; background: rgba(12,15,24,.9); color: #e1e5f0; font-size: 1.6rem; display: grid; place-items: center; }
.favorite-button[aria-pressed="true"] { color: var(--monarch-gold-soft); border-color: var(--monarch-gold); }
.favorite-button:hover { border-color: var(--monarch-gold-soft); }
.image-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 34px; }
#page-label { color: var(--muted); font-size: .8rem; }
.catalog-note { margin: 36px auto 55px; max-width: 770px; color: var(--muted-soft); text-align: center; font-size: .72rem; line-height: 1.8; }
.empty-state { text-align: center; padding: 60px 18px; border: 1px dashed #3a3f50; border-radius: 18px; color: var(--muted); }
.empty-state > span { display: block; font-size: 2.7rem; color: var(--monarch-gold); margin-bottom: 15px; }
.empty-state h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 12px; }
.empty-state p { line-height: 1.7; }
.empty-state .button { margin-top: 20px; }
dialog { position: fixed; inset: 0; margin: auto; width: min(760px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid #4e4737; border-radius: 22px; background: #101420; color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3,5,12,.85); backdrop-filter: blur(5px); }
.close-button { position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border: 1px solid #4d505b; border-radius: 50%; background: #171b28; color: var(--text); font-size: 1.9rem; }
.detail-image { position: relative; aspect-ratio: 1.75; background: #080b12; }
.detail-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-content { padding: 30px; }
.detail-content h2 { margin: 12px 0 26px; font-size: clamp(1.7rem,4vw,2.4rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.detail-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 22px 0; border-top: 1px solid #303444; border-bottom: 1px solid #303444; }
.detail-facts dt { color: var(--muted); font-size: .72rem; margin-bottom: 9px; }
.detail-facts dd { font-size: .88rem; overflow-wrap: anywhere; }
.spawn-name { font-family: ui-monospace,monospace; }
#detail-price { color: var(--monarch-gold-soft); font-weight: 700; }
.detail-favorite { width: 100%; margin-top: 25px; min-height: 49px; border-color: #70603c; }
.detail-favorite[aria-pressed="true"] { color: var(--monarch-gold-soft); background: #26231b; }
.detail-note { margin-top: 20px; font-size: .75rem; color: var(--muted); line-height: 1.7; }
body.detail-open { overflow: hidden; }
.catalog-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border: 1px solid #70603c; border-radius: 12px; background: #1b1e2a; color: var(--text); font-size: .85rem; box-shadow: var(--shadow); }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
  .catalog-intro { align-items: start; }
  .catalog-stats { gap: 20px; padding-top: 12px; }
  .vehicle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .catalog-intro { display: block; padding: 28px 0 22px; }
  h1 { margin: 12px 0; }
  .lead { font-size: .9rem; line-height: 1.55; }
  .catalog-stats { margin-top: 18px; justify-content: space-between; max-width: 350px; }
  .catalog-stats dd { font-size: 1.4rem; }
  .catalog-controls { padding: 16px; }
  .search-row { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; padding: 0 11px; gap: 9px; }
  .search-field input { font-size: .8rem; }
  .favorites-filter { width: 100%; min-height: 44px; }
  .filter-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
  .reset-button { align-self: end; }
  .vehicle-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .results-bar { align-items: start; }
  .vehicle-name { font-size: 1.2rem; }
  .footer-row { flex-direction: column; align-items: start; }
  .footer-links { justify-content: start; }
  .pagination { gap: 12px; }
  .pagination .button { padding: 10px 12px; }
  .detail-content { padding: 24px 20px; }
  .detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
  .brand { gap: 8px; font-size: .85rem; }
}
@media (max-width: 340px) { .detail-facts > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
