@charset "UTF-8";
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 16px; width: 100%; }

.site-header {
    background: var(--header);
    color: #fff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-svg { height: 30px; width: auto; display: block; }
.header-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-link { color: #cbd5e1; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.12); color: #fff; }
.header-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); padding: 5px 11px; border-radius: 999px; font-size: 12px; }
.stat-pill.upcoming strong { color: #93c5fd; }
.stat-pill.finished strong { color: #86efac; }

.hero-strip { padding: 20px 0 12px; }
.hero-strip h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.hero-strip p { color: var(--muted); font-size: 14px; }

.filters-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
.filters-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: end; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.filter-group input, .filter-group select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; color: var(--text); }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.year-inputs { display: flex; gap: 6px; }
.filter-actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.btn-secondary:hover { background: #cbd5e1; }
.results-meta { margin-bottom: 12px; font-size: 14px; color: var(--muted); font-weight: 500; }

.lots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.lot-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.16s ease, box-shadow 0.16s ease; text-decoration: none; color: inherit; }
.lot-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09); }
.card-img-wrap { position: relative; aspect-ratio: 4/3; background: #e2e8f0; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.house-copart { background: var(--copart); }
.house-iaai { background: var(--iaai); }
.house-other { background: #475569; }
.status-upcoming { background: var(--primary); }
.status-finished { background: var(--green); }
.badge-warn { background: var(--orange); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.card-meta { font-size: 12px; color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.card-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-price { font-size: 18px; font-weight: 800; }
.card-price.sold { color: var(--green); }
.card-price-label { font-size: 11px; color: var(--muted); display: block; font-weight: 500; }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 26px 0; flex-wrap: wrap; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.detail-page { padding-top: 16px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.badges-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.detail-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.sub-ids { color: var(--muted); font-size: 14px; }
.price-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; min-width: 240px; }
.price-label { font-size: 12px; color: var(--muted); }
.price-value { font-size: 28px; font-weight: 800; color: var(--primary); }
.price-value.sold { color: var(--green); }
.price-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-bottom: 24px; }
.gallery-card, .specs-card, .history-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

.swipe-stage { position: relative; overflow: hidden; border-radius: 10px; background: #0b1220; aspect-ratio: 4/3; margin-bottom: 10px; touch-action: pan-y; user-select: none; cursor: grab; }
.swipe-stage:active { cursor: grabbing; }
.swipe-track { display: flex; height: 100%; will-change: transform; }
.swipe-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.swipe-slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; }
.gallery-arrow:hover { background: rgba(15, 23, 42, 0.95); }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-counter { position: absolute; bottom: 10px; right: 10px; background: rgba(15, 23, 42, 0.78); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

.thumbs-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-behavior: smooth; }
.thumb-item { width: 78px; height: 58px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.65; border: 2px solid transparent; flex-shrink: 0; }
.thumb-item.active, .thumb-item:hover { opacity: 1; border-color: var(--primary); }

.lightbox { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.16); color: #fff; font-size: 20px; cursor: pointer; }

.specs-card h2, .history-card h2 { font-size: 18px; margin-bottom: 12px; }
.specs-table, .history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table th, .specs-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.specs-table th { color: var(--muted); font-weight: 500; width: 42%; }
.table-wrap { overflow-x: auto; }
.history-table th, .history-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.history-table tr.current-row { background: #eff6ff; }
.loading-box, .empty-box { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }

.site-footer { background: var(--header); color: #cbd5e1; margin-top: 40px; padding: 32px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 26px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: #94a3b8; max-width: 360px; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; font-size: 13px; margin-bottom: 6px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #64748b; }

@media (max-width: 960px) {
    .filters-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .filters-grid { grid-template-columns: 1fr; }
    .hero-strip h1 { font-size: 20px; }
    .detail-header h1 { font-size: 21px; }
    .header-stats { display: none; }
}

:root {
    --bg: #eef2f6;
    --card: #fff;
    --header: #101b2c;
    --text: #142238;
    --muted: #526278;
    --border: #d7e0ea;
    --primary: #075c54;
    --primary-hover: #06463f;
    --green: #146348;
    --orange: #914510;
    --copart: #154d88;
    --iaai: #a8263d;
    --radius: 16px;
    --mint: #8ee8d2;
    --shadow: 0 8px 24px rgb(35 53 78 / 6%);
}

@font-face { font-family: FiraGO; src: url('FiraGO-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: FiraGO; src: url('FiraGO-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: FiraGO; src: url('FiraGO-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: FiraGO; src: url('FiraGO-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: FiraGO; src: url('FiraGO-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

body { font-family: FiraGO, "Noto Sans Georgian", system-ui, sans-serif; }
button, input, select, textarea { font-family: inherit; }
:where(a, button, input, select):focus-visible { outline: 3px solid #178d7f; outline-offset: 3px; }
:where(input, select, button) { scroll-margin-top: 16px; }
.container { max-width: 1328px; padding-inline: clamp(14px, 3vw, 32px); }

.site-header {
    position: relative;
    padding-block: 15px;
    border-bottom: 1px solid #29384b;
    box-shadow: none;
}
.header-inner { gap: 16px 30px; }
.header-nav { gap: 5px; margin-left: auto; }
.nav-link { color: #d4e0ee; padding: 9px 13px; font-size: 14px; }
.nav-link:hover, .nav-link.active, .nav-link[aria-current="page"] { color: var(--mint); background: #213247; }
.site-header .btn-secondary { background: #243248; color: #e6eff8; }
.site-header .btn-secondary:hover { background: #344760; }

.hero-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(20px, 4vw, 54px);
    align-items: center;
    margin: 26px 0 16px;
    padding: clamp(22px, 4vw, 50px);
    border: 1px solid #263b51;
    border-radius: 22px;
    color: #f6fbff;
    background:
        radial-gradient(ellipse at top right, #1d5a61 0%, transparent 65%),
        linear-gradient(116deg, #101b2c 20%, #1a3047 100%);
}
.hero-strip h1 { max-width: 740px; margin: 0 0 10px; font-size: clamp(25px, 3.2vw, 43px); line-height: 1.22; font-weight: 800; }
.hero-strip p { max-width: 56ch; color: #d0deea; font-size: clamp(14px, 1.25vw, 16px); }
.header-stats { display: grid; gap: 0; align-content: start; border: 1px solid #ffffff36; border-radius: 14px; background: #101b2c80; }
.stat-pill { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; border: 0; border-radius: 0; background: none; padding: 10px 14px; color: #d9e5f2; font-size: 13px; }
.stat-pill + .stat-pill { border-top: 1px solid #ffffff26; }
.stat-pill strong { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat-pill.upcoming strong { color: #afdaff; }
.stat-pill.finished strong { color: var(--mint); }

.filters-card { padding: clamp(14px, 2.3vw, 24px); margin-bottom: 24px; box-shadow: var(--shadow); }
.filters-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px 14px; }
.filter-group { min-width: 0; }
.search-group { grid-column: span 2; }
.filter-group label { margin-bottom: 5px; color: var(--text); font-size: 12px; font-weight: 600; }
.filter-group input, .filter-group select {
    height: 44px;
    min-width: 0;
    padding-inline: 10px;
    border-color: #cad5e2;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    text-overflow: ellipsis;
}
.filter-group input::placeholder { color: #627185; opacity: 1; }
.filter-group input:focus, .filter-group select:focus { border-color: #178d7f; box-shadow: 0 0 0 3px #178d7f2b; background: #fff; }
.filter-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 2px; }
.btn { min-height: 44px; height: auto; padding: 8px 16px; }
.btn-secondary { background: #e9eef4; color: var(--text); }
.btn-secondary:hover { background: #dce5ef; }
.results-meta { margin-bottom: 13px; font-weight: 600; }

.lots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lot-card { min-width: 0; box-shadow: var(--shadow); }
.lot-card:hover { box-shadow: 0 12px 24px rgb(35 53 78 / 14%); }
.card-img-wrap { aspect-ratio: 16 / 11; background: #dbe4ed; }
.card-badges { inset: 10px 10px auto; align-items: flex-start; flex-wrap: wrap; }
.badge { padding: 4px 8px; font-weight: 600; line-height: 1.35; }
.card-body { padding: 15px; gap: 10px; }
.card-title { font-size: 17px; overflow-wrap: anywhere; }
.card-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; overflow-wrap: anywhere; }
.card-footer { gap: 6px; padding-top: 11px; }
.card-price { font-size: 19px; font-variant-numeric: tabular-nums; }
.page-btn { min-width: 44px; height: 44px; }
.page-btn:not(:disabled):not(.active):hover { border-color: var(--primary); color: var(--primary); }

.detail-page { padding-top: clamp(18px, 3vw, 29px); }
.breadcrumbs { line-height: 1.8; overflow-wrap: anywhere; }
.detail-header { align-items: center; margin-bottom: 20px; }
.detail-header > div:first-child, .sub-ids { min-width: 0; overflow-wrap: anywhere; }
.detail-header h1 { font-size: clamp(24px, 3.1vw, 40px); line-height: 1.2; margin-bottom: 8px; }
.price-box { border-top: 3px solid var(--primary); box-shadow: var(--shadow); }
.price-value { font-variant-numeric: tabular-nums; }
.detail-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gallery-card, .specs-card, .history-card { min-width: 0; box-shadow: var(--shadow); padding: clamp(10px, 1.7vw, 20px); }
.swipe-stage { margin-bottom: 12px; }
.gallery-arrow, .lightbox-close { width: 44px; height: 44px; }
.thumbs-strip { overscroll-behavior-x: contain; }
.specs-card h2, .history-card h2 { font-size: 20px; }
.specs-table th, .specs-table td { padding-block: 10px; overflow-wrap: anywhere; }
.specs-table tr:last-child > * { border-bottom: 0; }
.history-table th { background: #f1f5fa; color: var(--text); }
.history-table tr.current-row { background: #e5f5f0; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; }
.footer-brand p, .footer-links a { color: #bccada; }
.footer-bottom { color: #a8b9cd; }

@media (max-width: 1100px) {
    .lots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .hero-strip { grid-template-columns: minmax(0, 1fr) minmax(170px, .65fr); }
    .filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .site-header { padding-block: 10px; }
    .header-inner { gap: 8px 14px; }
    .header-nav { margin: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .nav-link { flex: none; font-size: 13px; padding: 7px 8px; }
    .hero-strip { grid-template-columns: minmax(0, 1fr); margin-top: 14px; border-radius: 16px; padding: 20px 16px; }
    .header-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-pill { flex-direction: column; gap: 2px; padding: 7px 5px; align-items: center; font-size: 10px; }
    .stat-pill + .stat-pill { border-top: 0; border-left: 1px solid #ffffff26; }
    .stat-pill strong { font-size: 14px; }
    .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .filter-group input, .filter-group select { font-size: 16px; }
    .year-inputs { gap: 4px; }
    .year-inputs input { padding-inline: 6px; }
    .filter-actions { justify-content: stretch; }
    .filter-actions .btn { flex: 1; }
    .lots-grid { gap: 12px; }
    .lot-card { border-radius: 12px; }
    .card-body { padding: 11px; }
    .card-badges { inset: 6px 6px auto; gap: 4px; }
    .card-badges .badge { font-size: 10px; padding: 3px 5px; }
    .card-title { font-size: 15px; }
    .card-meta { grid-template-columns: minmax(0, 1fr); }
    .card-footer { flex-wrap: wrap; }
    .price-box { width: 100%; min-width: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
    .lots-grid { grid-template-columns: minmax(0, 1fr); }
    .site-header .btn { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 1101px) {
    .filter-actions { grid-column: auto; justify-content: stretch; }
    .filter-actions .btn { flex: 1; padding-inline: 9px; }
}
@media (max-width: 620px) {
    .filter-group:has(#sort) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .header-nav { flex-wrap: wrap; column-gap: 1px; row-gap: 2px; overflow: visible; }
    .nav-link { font-size: 12px; padding-inline: 7px; }
}

.site-header .logo-svg { height: 20px; }
.site-header .logo { flex: none; }
.site-header .header-inner { flex-wrap: nowrap; gap: clamp(12px, 3vw, 32px); }
.header-search {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    color: #526278;
}
.header-search:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.header-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0 0 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    text-overflow: ellipsis;
}
.header-search input::placeholder { color: #526278; opacity: 1; }
.header-search input:focus { outline: 0; }
.header-search button {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.header-search button:hover { background: #eef2f6; color: var(--primary); }
.header-search-icon {
    position: relative;
    width: 16px;
    height: 16px;
    margin: -3px 3px 0 0;
    border: 2px solid currentColor;
    border-radius: 50%;
}
.header-search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -5px;
    bottom: -2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
@media (max-width: 420px) {
    .header-search input { padding-left: 12px; }
}
