/* POF Logistics — Public Car Listings Styles */

:root {
  --navy: #1B2A4A;
  --orange: #E8772E;
  --orange-dark: #cf6520;
  --bg: #f5f6f8;
  --border: #e1e4ea;
  --text: #2b2f36;
  --muted: #6b7280;
  --green: #1e8e5a;
  --red: #c0392b;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.filters select, .filters input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.filters button {
  padding: 9px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.filters button:hover { background: var(--orange-dark); }
.filters a.clear { align-self: center; font-size: 13px; color: var(--muted); text-decoration: none; }

/* Grid */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.car-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.car-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }

.car-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}
.car-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card .sold-flag {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.car-card .info { padding: 14px 16px; }
.car-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.car-card .year { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.car-card .price { font-size: 18px; font-weight: 700; color: var(--orange-dark); margin-bottom: 8px; }
.car-card .meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Detail page */
.detail-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .detail-wrap { grid-template-columns: 1fr; }
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 10px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-thumbs img {
  width: 80px; height: 60px; object-fit: cover; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
}
.gallery-thumbs img.active { border-color: var(--orange); }

.detail-info h1 { margin: 0 0 4px; color: var(--navy); font-size: 26px; }
.detail-info .year { color: var(--muted); margin-bottom: 12px; }
.detail-info .price { font-size: 26px; font-weight: 700; color: var(--orange-dark); margin-bottom: 16px; }

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.spec-list li { font-size: 14px; }
.spec-list li strong { display: block; color: var(--navy); font-size: 13px; }

.detail-info .description { font-size: 14px; line-height: 1.6; white-space: pre-line; }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--navy); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--orange); }

.contact-cta {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.contact-cta h3 { margin-top: 0; color: var(--navy); }
.contact-cta a.btn-call {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.contact-cta a.btn-call:hover { background: var(--orange-dark); }
