/* ── Reset & Typography cơ bản ── */
.g-b-header {
  height: auto;
}

#car_features_content {
  clear: both;
  padding: 8px;
  font-size: 14px;
  color: #111827;
}

#hub_page_content {
  color: #111827;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Breadcrumb ── */
ul.breadcrumb {
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
  color: #333;
}

ul.breadcrumb li {
  display: inline-block;
}

ul.breadcrumb li+li:before {
  color: #333;
  content: "\00BB";
}

ul.breadcrumb li a {
  color: #0331c4;
  text-decoration: none;
}

ul.breadcrumb li a:hover {
  text-decoration: underline;
}

ul.breadcrumb li span.crumb-label {
  color: #333;
  cursor: default;
}

ul.breadcrumb li span.active-crumb {
  color: #333;
  font-weight: bold;
}

/* ── Section Titles ── */
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 15px 0 20px 0;
  text-align: left;
  border-bottom: 1px solid #d6d6d6;
  padding: 10px 0 13px 0;
  text-transform: uppercase;
}

/* ── 1. Hero Text Box ── */
.hero-section {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 24px;
}

.search-box-container {
  margin: 0 auto;
  position: relative;
}

.main-search-input {
  width: 100%;
  padding: 13px 20px 13px 44px;
  border-radius: 12px;
  border: 1px solid #d6d6d6;
  font-size: 16px;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Dropdown Kết quả Tìm kiếm ── */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f8fafc;
  color: #2563eb;
  text-decoration: none;
}

.search-item-title {
  font-weight: 600;
  font-size: 15px;
}

.search-item-make {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

/* ── 2. Brand Header & Logo Grid ── */
.brand-header-flex {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ebebeb;
}

.brand-logo {
  flex-shrink: 0;
  width: auto;
  height: 60px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: auto;
  height: 60px;
  object-fit: contain;
}

.brand-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.2;
  color: #111;
}

.brand-info .stats {
  font-size: 13px;
  color: #888;
}

.brand-info .stats b {
  font-weight: 600;
  color: #333;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  transition: max-height 0.4s ease-out;
}

.brand-grid.collapsed {
  max-height: 390px;
  overflow: hidden;
}

.brand-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  text-decoration: none;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.brand-logo-item img {
  width: auto;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.brand-logo-item:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

.btn-load-more {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-load-more:hover {
  background: #f3f4f6;
}

/* ── 3. Filter Tabs ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  justify-content: flex-start;
}

.btn-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  outline: none;
}

.btn-tab:hover {
  border-color: #aaa;
  color: #111;
  background: #f5f5f5;
}

.btn-tab.active {
  background: #1558d6;
  border-color: #1558d6;
  color: #fff;
}

/* ── 4. Model & Compare Grids ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* ── Model Cards ── */
.model-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 15px 13px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.1s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.model-card:hover {
  border-color: #007bff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.model-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-title::after {
  content: "\2192";
  font-size: 16px;
  color: #d1d5db;
  transition: all 0.25s ease;
}

.model-card:hover .model-title::after {
  color: #2563eb;
  transform: translateX(4px);
}

.model_info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.year_range {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.year_range::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #7fb0ff;
  border-radius: 50%;
}

.model-card.hidden {
  display: none;
}

/* ── Compare Cards ── */
.compare-card {
  padding: 20px;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vs-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
}

/* ── Badges & Other UI ── */
.style-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bs-badge {
  display: inline-block;
  font-size: 11px;  
  padding: 4px 10px;
  border-radius: 6px;
  background: #f8fafc;
  color: #888;
  border: 1px solid #e2e8f0;
}

.model-card:hover .bs-badge {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.empty-state {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  padding: 60px 0;
  background: #f9fafb;
  border-radius: 12px;
}

.full_compare_div {
  padding: 12px;
  border-top: 1px solid #ebebeb;
  padding-top: 12px;
  margin-top: 22px;
}

.full_compare_div h3 {
  display: inline-block;
  border-bottom: solid 3px #999;
  margin: 10px 0 0 0;
  padding: 0 10px 5px 0;
}

ul.list_same_submodel {
  width: max-content;
}

ul.list_same_submodel li {
  padding: 5px 20px !important;
}

ul.list_same_submodel li h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* -------------------------------MOBILE */
@media (max-width: 767px) {
  
  .submodel_info h1 {
    padding: 6px 5px;
    background: #d2e3fb;
    margin: 5px 0px;
    font-weight: bold;
  }

  /* .submodel_info,
  .submodel_info div {
    line-height: 2.5rem;
    font-size: 1.6rem;
  } */

  ul.breadcrumb {
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
    color: #333;
    font-size: 1.6rem;
    padding-top: 5px;
  }

  ul.breadcrumb li {
    display: inline-block;
  }

  /* Dấu ngăn cách */
  ul.breadcrumb li+li:before {
    color: #333;
    content: "\00BB";
  }

  ul.breadcrumb li a {
    color: #0331c4;
    text-decoration: none;
  }

  ul.breadcrumb li a:hover {
    text-decoration: underline;
  }

  ul.breadcrumb li span.crumb-label {
    color: #333;
    cursor: default;
  }

  ul.breadcrumb li span.active-crumb {
    color: #333;
    font-weight: bold;
  }

  .g-b-header {
    float: none;
  }

  .content_text {
    padding-bottom: 10px;
    margin: 0;
    overflow: hidden;
  }

  .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  .brand-grid.collapsed {
    max-height: 495px;
  }

  .section-title {
    margin: 10px 0 10px 0;
    padding: 5px 0 3px 0;
  }

  #car_features_content {
    padding: 5px;
  }

  .brand-logo-item {
    padding: 10px 8px;
    border-radius: 8px;
  }

  ul.list_same_submodel li.item_car:last-child {
    border: none;
  }

  .hero-section {
    padding: 0px;
  }

  /* Trang hãng---------- */

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .model-card {
    padding: 10px;
  }

  .filter-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .btn-tab {
    white-space: nowrap;
  }

  .brand-header-flex {
    padding-bottom: 10px;
    margin-bottom: 2px;
  }
  .brand-logo {
    width: auto;
    height: 60px;
  }

  .brand-logo img {
    width: auto;
    height: 60px;
  }

  .brand-info h3 {
    font-size: 20px;
  }
  .filter-tabs{
    margin: 10px 0px;
    padding: 10px 0px;
    margin-top: 0;
  }
  .model-title{
    font-size: 15px;
    margin-bottom:10px;
  }
  .submodel_info div.year_range{
    font-size:12px;
  }
  .full_compare_div{
    padding:12px 0px;
  }
  ul.list_same_submodel{
    padding:5px 15px;
  }
  ul.list_same_submodel li {
      padding: 5px 0px !important;
  }
}

@media (max-width: 600px) {}