.car-grid {
  margin-top: 0;
}

.filter-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  border-top: 3px solid #0d6efd;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.filter-panel .box-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.filter-panel .box-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.filter-panel .box-body {
  padding: 1rem;
}

.filter-panel .form-group {
  margin-bottom: 1rem;
}

.filter-panel label {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-panel .form-control,
.filter-panel .form-select {
  min-height: 40px;
  border-color: #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.9rem;
}

.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.14);
}

.filter-actions {
  margin-bottom: 1rem;
}

.filter-actions .btn {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 700;
}

.filter-actions .btn-block {
  width: 100%;
}

.filter-panel .select2-container {
  width: 100% !important;
}

.filter-panel .select2-container--default .select2-selection--single {
  min-height: 40px;
  border-color: #e2e8f0;
  border-radius: 8px;
}

.filter-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  color: #0f172a;
  font-size: 0.9rem;
}

.filter-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.listing-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
}

.listing-subtitle {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.car-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.car-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.car-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-brand-badge {
  display: inline-flex;
  align-items: center;
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.92);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.car-card-title {
  margin: 0.65rem 0 0.5rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.6rem;
}

.car-meta-item,
.car-location {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.25;
}

.car-meta-item {
  padding: 0.18rem 0.48rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
}

.car-location {
  margin-bottom: 0.9rem;
}

.car-price {
  margin: auto 0 0.9rem;
  color: #15803d;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.car-card .btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 700;
}

.single-gallery {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.single-gallery .carousel-item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  background: #f1f5f9;
}

.single-summary,
.single-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.single-summary {
  position: sticky;
  top: 88px;
}

.single-brand {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #0d6efd;
  font-size: 0.78rem;
  font-weight: 800;
}

.single-title {
  margin: 0.75rem 0 0.8rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
}

.single-price {
  color: #15803d;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.single-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.9rem;
}

.single-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.single-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.22rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.single-pill-success {
  border-color: rgba(21, 128, 61, 0.18);
  background: #f0fdf4;
  color: #15803d;
}

.seller-box {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.seller-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.seller-name {
  margin-top: 0.2rem;
  color: #0f172a;
  font-weight: 800;
}

.single-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.single-actions .btn {
  width: 100%;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.spec-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.7rem;
  background: #f8fafc;
}

.spec-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-value {
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.single-section-title {
  margin: 0 0 0.85rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.single-description {
  color: #334155;
  line-height: 1.75;
}

.gallery-thumb-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f1f5f9;
  cursor: pointer;
}

.pagination {
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination .page-item .page-link {
  min-width: 38px;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  text-decoration: none;
}

.pagination .page-item .page-link:hover {
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #ffffff;
}

.pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.16);
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.floating-whatsapp:focus,
.floating-whatsapp:hover {
  color: #ffffff;
  background: #1ebe5d;
  text-decoration: none;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.web-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.web-navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f172a;
}

.web-brand-logo {
  display: block;
  width: auto;
  max-width: 170px;
  max-height: 44px;
  object-fit: contain;
}

.web-navbar .nav-link {
  color: #334155;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.web-navbar .nav-link.active,
.web-navbar .nav-link:hover {
  color: #1d4ed8;
}

.web-navbar .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.web-navbar .nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
}

.web-navbar .nav-icon:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.page-detail {
  background: #f8fafc;
  padding: 28px 0 56px;
}

.page-cover-simple {
  max-width: 900px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.page-cover-simple img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 1rem;
  line-height: 1.85;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 1.7rem 0 0.75rem;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
}

.page-content h1 {
  margin: 0 0 1rem;
  color: #0f172a;
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.page-content h2 {
  font-size: 1.5rem;
}

.page-content h3 {
  font-size: 1.25rem;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content blockquote {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid #0d6efd;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #334155;
}

.page-content hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  opacity: 1;
}

.page-content a {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.page-content th,
.page-content td {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.page-content th {
  background: #f8fafc;
  color: #0f172a;
}

.notfound-page {
  min-height: calc(100vh - 132px);
  padding: 56px 0;
  background: #f8fafc;
}

.notfound-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.notfound-code {
  color: #0d6efd;
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.notfound-card h1 {
  margin: 1rem 0 0;
  color: #0f172a;
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
}

.notfound-card p {
  max-width: 520px;
  margin: 0.85rem auto 0;
  color: #64748b;
  line-height: 1.7;
}

.notfound-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.notfound-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.web-hero {
  background: #f0f7ff;
  padding: 48px 0 84px;
}

.web-hero h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.web-hero p {
  color: #475569;
  max-width: 520px;
}

.hero-car {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(15, 23, 42, 0.18));
}

.search-card {
  margin-top: -56px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.mobile-filter-toggle-wrap {
  display: none;
}

.mobile-filter-toggle {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.search-card .card-body {
  padding: 18px 18px 14px;
}

.search-card .form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.search-card .form-control,
.search-card select.form-control {
  border-radius: 10px;
  border-color: #cbd5e1;
  border-width: 1.5px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.search-card .select2-container {
  display: block;
  width: 100% !important;
}

.search-card .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
}

.search-card .select2-container--default.select2-container--focus .select2-selection--single,
.search-card .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.16);
}

.search-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 2.25rem;
  color: #0f172a;
  line-height: 1.5;
}

.search-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 0.45rem;
  height: 100%;
}

.search-card .select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right: 1.9rem;
}

.search-card .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.16);
}

.search-card .btn-search {
  border-radius: 12px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
}

.year-range .year-sep {
  color: #64748b;
  font-weight: 700;
  padding-bottom: 0.45rem;
}

.filter-card-footer .btn-more {
  color: #2563eb;
  font-weight: 600;
}

.filter-card-footer .btn-more:hover {
  color: #1d4ed8;
}

.feature-strip {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
  padding: 28px 20px;
  margin-top: 28px;
}

.feature-strip .feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
}

.feature-strip .feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-strip .feat-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.feature-strip .feat-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .web-hero {
    padding: 28px 0 76px;
  }

  .search-card {
    margin-top: -46px;
  }
}

@media (max-width: 767.98px) {
  .web-hero {
    display: none;
  }

  .mobile-filter-toggle-wrap {
    display: block;
    margin: 14px 0 0;
  }

  .search-card {
    display: none;
    margin-top: 12px;
    border-radius: 8px;
  }

  .search-card.is-open {
    display: block;
  }

  .page-detail {
    padding: 16px 0 34px;
  }

  .page-content {
    padding: 20px;
  }

  .page-content h1 {
    font-size: 1.65rem;
  }

  .notfound-page {
    min-height: auto;
    padding: 28px 0;
  }

  .notfound-card {
    padding: 34px 20px;
  }

  .notfound-actions {
    flex-direction: column;
  }

  .notfound-actions .btn {
    width: 100%;
  }

  .filter-panel .box-body {
    padding: 0.9rem;
  }

  .floating-whatsapp {
    right: 0.9rem;
    bottom: 0.9rem;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp i {
    font-size: 1.35rem;
    line-height: 1;
  }

  .single-gallery .carousel-item img {
    height: 320px;
  }

  .single-summary {
    position: static;
  }

  .gallery-thumb-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
