/* ============================================================
   PROFI MAX USA — Mobile production fixes
   Loads after styles.css. Desktop unchanged.
   ============================================================ */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  main,
  .main,
  header,
  footer,
  section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header,
  .header .container,
  .header .nav {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* ── Booking page ── */
  .booking-hero,
  .booking-hero .container,
  .section .container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 24px 0 48px;
    margin: 0;
  }

  .booking-layout > *,
  .booking-layout > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Form first, summary below */
  #booking-summary {
    order: 0;
  }

  .booking-card,
  .booking-form,
  .summary-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .booking-card {
    padding: 18px;
  }

  .field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .field input,
  .field select,
  .field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-min-logical-width: 0;
  }

  .field select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .booking-card .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .summary-card {
    position: relative;
    top: auto;
    margin: 0;
  }

  .summary-media,
  .summary-media img {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .summary-body,
  .summary-foot,
  .summary-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .summary-row {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .summary-row span:last-child {
    max-width: 100%;
    word-break: break-word;
  }

  .summary-actions {
    position: relative;
    top: auto;
    z-index: auto;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
  }

  .summary-actions__btn {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    white-space: normal;
    height: 48px;
  }

  /* ── Fleet cards ── */
  .car-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .car-card,
  .car-card__body,
  .car-card__foot,
  .car-card__cta {
    max-width: 100%;
    min-width: 0;
  }

  /* ── Modal ── */
  .modal {
    padding: 12px;
    box-sizing: border-box;
  }

  .modal__dialog {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal__body {
    padding: 18px 16px;
  }

  .modal__actions {
    flex-direction: column;
  }

  .modal__actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* ── Carousel: only track scrolls ── */
  #featured,
  #featured .container {
    overflow: hidden;
    max-width: 100%;
  }

  .popular__container {
    overflow: hidden;
    max-width: 100%;
  }

  .scrollup {
    right: 16px;
    max-width: calc(100vw - 32px);
  }

  /* ── Homepage hero ── */
  .hero {
    overflow-x: hidden;
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 1rem) 0 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero .container,
  .hero__container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
  }

  .hero__grid {
    width: 100%;
    max-width: 100%;
    justify-items: center;
    margin: 0 auto;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero__title,
  .hero__tagline,
  .hero__desc,
  .hero__eyebrow {
    text-align: center;
    width: 100%;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.65rem);
  }

  .hero__desc {
    font-size: .92rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero__ctas .btn {
    width: min(100%, 300px);
  }

  .hero__badges {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ── Featured carousel cards ── */
  .popular__card.swiper-slide {
    width: min(80vw, 340px);
    flex: 0 0 min(80vw, 340px);
  }

  .popular__actions .car-card__btn {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
  }

  /* ── Picks / filters ── */
  .picks__filters {
    max-width: 100%;
    gap: 6px;
  }

  .picks__filter {
    height: 36px;
    padding: 0 12px;
    font-size: .8rem;
  }

  /* ── Coverage / CTA / Contact ── */
  .coverage__wrap,
  .cta-block,
  .contact-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .coverage__wrap {
    padding: 1.75rem 1.15rem;
  }

  .cta-block {
    padding: 2rem 1.15rem;
  }

  .cta-block__row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-block__row .btn {
    width: 100%;
  }

  /* ── Fleet page ── */
  .fleet-hero,
  .fleet-hero .container {
    overflow-x: hidden;
    max-width: 100%;
  }

  .fleet-toolbar,
  .fleet-brand-row,
  .fleet-filters {
    max-width: 100%;
    min-width: 0;
  }

  .fleet-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .fleet-brand-row {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .fleet-more-wrap .btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .car-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .car-card__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .car-card__cta .car-card__btn--primary {
    flex: 1;
    max-width: 160px;
    margin-left: auto;
  }

  /* ── Footer ── */
  .footer {
    overflow-x: hidden;
    padding: 3.5rem 0 1.75rem;
  }

  .footer__grid,
  .footer__bottom {
    max-width: 100%;
  }

  .footer__desc {
    max-width: 100%;
  }

  .brand-banner {
    flex-direction: column;
    gap: 14px;
    padding: 1.5rem 1rem;
  }

  .brand-banner__divider {
    width: 36px;
    height: 1px;
  }

  .brand-banner__text {
    text-align: center;
  }

  .nav__logo-img {
    width: 40px;
    height: 40px;
  }

  .car-card {
    border-radius: 16px;
  }

  .car-card__media {
    aspect-ratio: 4 / 3;
    margin: 8px 8px 0;
    width: calc(100% - 16px);
    border-radius: 10px;
  }

  .car-card__media::after { border-radius: 10px; }

  .car-card__img-frame {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
  }

  .car-card__img {
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
    object-fit: cover;
    border-radius: 10px;
  }

  .car-card__foot {
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding-top: .9rem;
  }

  .car-card__cta {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: auto;
  }

  .car-card__cta .car-card__btn--primary {
    flex: 0 0 auto;
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .booking-card {
    padding: 16px;
  }

  .booking-hero__title {
    font-size: clamp(1.65rem, 8.5vw, 2.1rem);
  }

  .popular__card.swiper-slide {
    width: min(78vw, 320px);
    flex: 0 0 min(78vw, 320px);
  }

  .car-card__cta {
    grid-template-columns: 1fr;
  }
}
