/**
 * Flats in Hyderabad - Responsive Media Queries
 * Mobile-first responsiveness for phones, tablets, and large screens.
 */

/* Drawer Navigation Styles */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1500;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.drawer-close-btn {
  font-size: 1.5rem;
  color: var(--text-primary);
  padding: 0.25rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* ==================================================
   TABLETS & MEDIUM SCREENS (<= 1024px)
   ================================================== */
@media (max-width: 1024px) {
  .search-grid-inputs {
    grid-template-columns: 1fr 1fr;
  }
  
  .search-grid-inputs button {
    grid-column: span 2;
  }

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

  .emi-calculator-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .property-page-layout {
    grid-template-columns: 1fr;
  }

  .property-lead-sidebar {
    position: static;
  }

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

/* ==================================================
   MOBILE DEVICES (<= 768px)
   ================================================== */
@media (max-width: 768px) {
  .header-top-bar {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .header-actions .btn-call {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

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

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-supporting-text {
    font-size: 1.05rem;
  }

  .hero-search-card {
    padding: 1.5rem 1.25rem;
  }

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

  .search-grid-inputs button {
    grid-column: 1;
    width: 100%;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

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

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs-col {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .thumb-btn {
    width: 80px;
    flex-shrink: 0;
  }

  .p-header-top {
    flex-direction: column;
    gap: 0.75rem;
  }

  .p-price-group {
    text-align: left;
  }

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

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

  /* Sticky Mobile Bottom Bar is visible on mobile */
  .sticky-mobile-cta {
    display: block;
  }

  /* Add bottom padding to body so content isn't obscured by mobile sticky bar */
  body.has-sticky-bar {
    padding-bottom: 70px;
  }

  .floating-actions-container {
    bottom: 5.5rem;
    right: 1.25rem;
  }

  .filter-bar-grid {
    grid-template-columns: 1fr;
  }

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

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