@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    margin: 0;
    color: #1a202c;
}
.header {
    display: flex;
    align-items: center;
    padding: 16px 22px 12px 22px;
    margin-bottom: 10px;
    background: #fff;
    border-bottom: 1px solid #e8eaf4;
}
.logo {
    height: 42px;
    margin-right: 16px;
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #233164;
    letter-spacing: 0.02em;
}
.wrapper {
    max-width: 1450px;
    margin: 0 auto;
    padding: 28px 18px 46px 18px;
    display: flex;
    gap: 34px;
}
@media (max-width: 1100px) {
    .sidebar,
    .content {
        max-width: 100vw !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .wrapper {
        padding: 6px 0 16px 0 !important;
        gap: 0 !important;
    }
}
.sidebar {
    width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px #e9edf7;
    padding: 26px 22px 20px 22px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100vh;
}
.sidebar input[type="text"],
.sidebar input[type="number"],
.sidebar select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    background: #f7fafc;
}
.sidebar label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    gap: 7px;
    margin-bottom: 6px;
    color: #495060;
    font-weight: 400;
    cursor: pointer;
}
.sidebar .filter-group {
    margin-bottom: 19px;
}
.sidebar .filter-title {
    font-weight: 500;
    margin-bottom: 9px;
    color: #1e293b;
    font-size: 1.01rem;
}
.range-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}
.range-fields input[type="number"] {
    width: 50%;
}
.sidebar button[type="submit"] {
    background:#e7392e;
    color:#fff;
    padding:10px 25px;
    border:none;
    border-radius:9px;
    font-weight:600;
    cursor:pointer;
}
.sidebar input[type="range"] {
    width: 100%;
    margin-bottom: 2px;
}
.sidebar input[type="range"]::-webkit-slider-thumb {
    background: #e7392e;
}
.content {
    flex: 1;
    min-width: 300px;
}
.car-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px #e9edf7;
    display: flex;
    gap: 32px;
    padding: 18px 24px;
    margin-bottom: 24px;
    align-items: flex-start;
    transition: box-shadow .13s;
	overflow: hidden;
	position: relative;
}
.car-card:hover {
    box-shadow: 0 8px 32px #c2d0f7cc;
}
.car-photo {
    width: 300px;
    height: 225px;
    border-radius: 5px;
    object-fit: cover;
    background: #f3f5f9;
}
.car-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.car-title {
    font-size: 1.30rem;
    font-weight: 600;
    color: #222046;
    margin-bottom: 5px;
}
.car-info-row {
  margin-bottom: 3px;
  line-height: 1.45;
  font-family: 'Inter', 'Arial', sans-serif;
  font-size: 1em;
  display: flex;
  align-items: baseline;
}

.car-info-label {
  color: #8a99ad;
  font-size: 0.95em;
  letter-spacing: 0.01em;
  margin-right: 10px;
  min-width: 75px;
  display: inline-block;
}
.car-info-value {
  color: #22336d;
  font-weight: 500;
  font-size: 1.08em;
}


.auction-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
    gap: 13px;
    height: 100%;
}
.auction-date {
    color: #737b8c;
    font-size: 1rem;
    font-weight: 500;
}
.auction-time {
    color: #2563eb;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.auction-price {
    color: #0e9e4a;
    font-weight: 700;
    font-size: 1.25rem;
}
.details-btn {
    background: #e7392e;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 11px 23px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.13s;
}
.details-btn:hover {
    background: #c72c20;
}
@media (max-width: 1100px) {
    .wrapper { flex-direction: column; gap: 0; }
    .sidebar { width: 100%; margin-bottom: 24px;}
}
@media (max-width: 700px) {
    .car-card { flex-direction: column; gap: 12px; padding: 13px 8px; }
    .auction-meta { flex-direction: row; gap: 25px; justify-content: space-between; align-items: center;}
    .car-photo { width: 100%; height: 170px; }
}
#slider-year.noUi-target {
    height: 18px !important;
    margin-top: 0 !important;
}
.price-toggle.active {
    background: #e7392e;
    color: #fff;
    border: 2px solid #e7392e;
}
.price-toggle {
    background: #eee;
    color: #222;
    border: 1px solid #bbb;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.price-toggle:disabled {
    background: #f3f3f3;
    color: #aaa;
    cursor: not-allowed;
    border: 1px solid #eee;
}
.models-group {
    display: none;
    margin-top: 12px;
}
.year-range-fields {
    display: flex;
    gap: 12px;
}
.year-input {
    width: 80px;
}
.slider-year {
    margin: 15px 4px 0 4px;
}
.price-toggle-group {
    display: flex;
    gap: 12px;
}
.price-range-przed,
.price-range-po {
    display: none;
    margin-top: 12px;
}
.vin-suggestions {
    position: relative;
    z-index: 10;
}
.filter-actions {
    display: flex;
    gap: 12px;
}
.clear-btn {
    background: #eee;
    color: #222;
    border: 1px solid #bbb;
}
.brand-item { margin-bottom: 8px; }
.models-sublist { margin-left: 18px; margin-top: 3px; }

/* --- FILTRUJ/WYCZYŚĆ na dole, przezroczyste tło, wyśrodkowane --- */

/* DESKTOP: fixed na dole ekranu, WYŚRODKOWANE w sidebarze (NIE na całej stronie) */
@media (min-width: 700px) {
    #filter-actions-sticky {
        position: fixed !important;
        left: calc( max(0px, (100vw - 1450px) / 2 ) + 18px ); /* 1450 = max-width .wrapper, 18px = padding .wrapper */
        right: unset;
        bottom: 0;
        width: 240px; /* szerokość sidebaru */
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        z-index: 1200;
        display: flex;
        justify-content: center;
        gap: 16px;
        padding: 13px 0 15px 0;
        pointer-events: auto;
    }
    .sidebar {
        padding-bottom: 66px !important;
    }
}

/* MOBILE: fixed na dole ekranu, WYŚRODKOWANE, przezroczyste tło */
@media (max-width: 700px) {
    #filter-actions-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px 6px 11px 6px;
        display: flex;
        justify-content: center;
        gap: 13px;
        z-index: 1111;
    }
    .sidebar {
        padding-bottom: 60px !important;
    }
}
#filter-actions-sticky button[disabled] {
    opacity: 0.56;
    cursor: not-allowed;
}
/* --- NAPRAWA WYSOKOŚCI SIDEBARU NA MOBILE --- */
@media (max-width: 700px) {
    .sidebar {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 60px !important; /* zostaw pod przyciski */
    }
}
@media (min-width: 700px) {
    .sidebar {
        height: 100vh;
        /* reszta stylów jak była */
    }
}
.icon-fallback {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: #eee;
  color: #888;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1em;
}

.car-details-btn-row {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start; /* do lewej */
}

.details-btn.details-btn--ghost {
    background: transparent;
    color: #e7392e;
    border: 1.7px solid #e7392e;
    border-radius: 7px;
    padding: 7px 22px;
    font-size: 1.04rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.16s, color 0.16s, border 0.16s;
    outline: none;
    letter-spacing: 0.01em;
    text-decoration: none !important;   /* <-- usuwa podkreślenie */
}
.details-btn.details-btn--ghost:hover,
.details-btn.details-btn--ghost:focus {
    background: #e7392e;
    color: #fff;
    border-color: #e7392e;
    text-decoration: none !important;
}
.transport-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    margin-top: 0;
	padding: 12px 0 14px 0;
}
.transport-status-bar img {
    width: 30px;
    height: 30px;
    display: block;
}
.status-icon-wrap {
    display: flex;
    align-items: center;
}

.car-status-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* <--- klucz! */
    justify-content: center;
	margin-top: 40px;
}
.sale-chip {
  display: inline-block;
  margin-top: 11px;
  padding: 10px 17px 10px 17px;
  border-radius: 17px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #f1f4fb;
  color: #274188;
  border: 1px solid #e3e8f3;
  transition: background 0.13s, color 0.13s;
  min-width: 98px;
  text-align: center;
}

.sale-chip--sold {
  background: #feecec;
  color: #b32e24;
  border-color: #fad7d7;
}
.sale-chip--ready {
  background: #e7fbee;
  color: #17874a;
  border-color: #c2e8d5;
}
.sale-chip--forsale {
  background: #f1f4fb;
  color: #274188;
  border-color: #e3e8f3;
}
.sale-chip--repair {
  background: #f6f9fc;
  color: #2578a8;
  border-color: #d2e2f6;
}
.sale-chip--default {
  background: #f5f6fa;
  color: #666;
  border-color: #e0e3eb;
}
.car-status-label {
    font-size: 1.04em;
    font-weight: 600;
    color: #21315b;
    background: #e6ecf8;
    border-radius: 6px;
    padding: 3px 11px;
    display: inline-block;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.sale-divider {
    border-top: 1.5px solid #2563eb;   /* mocniejszy niebieski – pasuje do car-status-label */
    margin: 0px 0 20px 0;
    width: 80%;
    max-width: 260px;
    border-radius: 2px;
    opacity: 0.93;                     /* niemal pełna widoczność */
    box-shadow: 0 0 2px #2563eb44;     /* bardzo lekki cień */
    transition: border-color 0.13s;
}
@media (max-width: 700px) {
    .sale-divider {
        width: 98%;
        max-width: none;
    }
}
.mini-badge {
  display: inline-block;
  border-radius: 7px;
  font-size: 0.7em;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 4px 13px 4px 10px;
  vertical-align: middle;
  background: #e2e8f0;
  color: #555;
  text-transform: uppercase;
  margin-right: 5px;
  margin-top: 5px;
}
.mini-badge--gray {
  background: #e2e8f0;
  color: #777;
}
.mini-badge--green {
  background: #e7fbee;
  color: #288838;
}
