/* ============================================================
   RESPONSIVE - ChenAfrica Business
   ============================================================ */

/* ============================================================
   FIX MOBILE OVERFLOW - Prevent empty spaces on sides
   ============================================================ */

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: clip;
  width: 100%;
}

/* Large devices (desktops, < 1200px) */
@media (max-width: 1199.98px) {
  .vehicle-card__image {
    height: 180px;
  }

  .vehicle-detail__main-image {
    height: 380px;
  }
}

/* Medium devices (tablets, < 992px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 3.5rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .vehicle-detail__main-image {
    height: 320px;
  }

  .vehicle-detail__specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small devices (landscape phones, < 768px) */
@media (max-width: 767.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .row>* {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .px-gutter {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Small devices (landscape phones, < 768px) */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 2.5rem 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 1.6rem !important;
  }

  .hero-section p {
    margin: 0 auto;
    font-size: 1rem !important;
    max-width: 100% !important;
  }

  .hero-section .d-flex.flex-wrap {
    justify-content: center;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .page-header {
    padding: 3rem 0 2.25rem;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header .breadcrumb-custom {
    margin: 0 auto;
  }

  .breadcrumb-custom {
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
  }

  .vehicle-card__image {
    height: 200px;
  }

  .vehicle-detail__main-image {
    height: 250px;
  }

  .vehicle-detail__info {
    padding: 1.25rem;
  }

  .vehicle-detail__title {
    font-size: 1.35rem;
  }

  .vehicle-detail__price {
    font-size: 1.5rem;
  }

  .vehicle-detail__specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .filter-section {
    padding: 1rem;
  }

  .filter-section .row>div {
    margin-bottom: 0.5rem;
  }

  .vehicle-card__content {
    padding: 1rem;
  }

  .vehicle-card__title {
    font-size: 0.95rem;
  }

  .vehicle-card__price {
    font-size: 1.1rem;
  }

  .brand-card {
    padding: 1rem;
  }

  .brand-card__count {
    font-size: 0.75rem;
  }

  .stat-item__number {
    font-size: 1.5rem;
  }

  .filter-section .form-label {
    font-size: 0.75rem;
  }

  .page-content {
    padding: 1.25rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}

/* Extra small devices (< 576px) */
@media (max-width: 575.98px) {
  .admin-content {
    padding: 0.75rem !important;
  }

  .admin-card__body {
    padding: 0.75rem !important;
  }

  .table {
    font-size: 0.78rem;
  }
}

/* Extra small devices (< 576px) */
@media (max-width: 575.98px) {
  .vehicle-card__image {
    height: 180px;
  }

  .vehicle-detail__main-image {
    height: 200px;
  }

  .vehicle-detail__thumb {
    width: 60px;
    height: 45px;
  }

  .vehicle-detail__specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vehicle-detail__price-box {
    padding: 1rem;
  }

  .vehicle-detail__price {
    font-size: 1.35rem;
  }

  .hero-section h1 {
    font-size: 1.4rem !important;
  }

  .navbar-custom .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-custom .navbar-brand img {
    height: 30px;
  }
}