/* ==========================================================================
   PRIME REAL ESTATE LDA CITY LAHORE — RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- Medium Desktop & Laptops (1024px and below) --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .split-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .map-container {
    min-height: 350px;
  }
}

/* --- Tablets & Mobile Navigation Trigger (768px and below) --- */
@media (max-width: 768px) {
  .top-bar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .top-bar-social {
    display: none; /* Hide top bar social icons on small screens to avoid clutter */
  }

  .mobile-toggle {
    display: block;
  }

  .header-cta {
    display: none; /* Hide header CTA button on mobile, available in mobile drawer */
  }

  /* Mobile Drawer Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: right 0.4s ease;
    z-index: 1050;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
  }

  /* Backdrop for Mobile Menu */
  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
  }

  .nav-backdrop.active {
    display: block;
  }

  /* Search Box Adjustment */
  .search-section {
    margin-top: 0;
    padding-top: 2rem;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .categories-grid,
  .services-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .google-rating-box {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Extra Small Mobile (480px and below) --- */
@media (max-width: 480px) {
  .brand-logo-img {
    max-height: 40px;
  }

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

  .hero-section {
    min-height: 480px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

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

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

  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}
