/* ==========================================================================
   DRIVEON — Luxury Car Rental Platform
   Responsive Design & Mobile Adaptations
   ========================================================================== */

/* 1400px Breakpoint */
@media (max-width: 1400px) {
  .search-form-grid {
    grid-template-columns: repeat(3, 1fr) repeat(2, 1fr) auto;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
  }
}

/* 1200px Breakpoint */
@media (max-width: 1200px) {
  :root {
    --header-height: 84px;
    --header-height-scrolled: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stage {
    min-height: 380px;
  }

  .search-form-grid {
    grid-template-columns: repeat(3, 1fr) auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) 1.5fr;
    gap: 3rem;
  }
}

/* 992px Breakpoint (Tablet Landscape & Down) */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .search-panel-wrapper {
    margin-top: 2rem;
  }

  .search-box-card {
    padding: 1.75rem 1.5rem;
  }

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

  .search-form-grid .btn-luxury {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-newsletter {
    grid-column: span 2;
  }
}

/* 768px Breakpoint (Tablet Portrait & Large Phones) */
@media (max-width: 768px) {
  :root {
    --header-height: 76px;
    --header-height-scrolled: 68px;
    --container-pad: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .search-form-grid {
    grid-template-columns: 1fr;
  }

  .search-form-grid .btn-luxury {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-item::after {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .scroll-car-section,
  .road-journey-section,
  .garage-reveal-section {
    padding: 4rem 0;
  }

  .road-scene-wrap {
    height: 320px;
  }

  .journey-destination-markers {
    padding: 0 1rem;
  }

  .dest-marker {
    padding: 0.4rem 0.8rem;
  }

  .dest-city {
    font-size: 0.85rem;
  }

  .horizontal-car-panel {
    width: 85vw;
    padding: 1.5rem;
  }

  .garage-doors-container {
    display: none;
  }

  .luxury-toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .luxury-toast {
    min-width: unset;
    width: 100%;
  }

  /* Disable heavy 3D transforms on mobile for smooth performance */
  .tilt-card {
    transform: none !important;
  }
}

/* 480px Breakpoint (Small Mobile) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-luxury {
    width: 100%;
  }

  .btn-luxury {
    padding: 0.9rem 1.5rem;
    font-size: 0.78rem;
  }

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