/* Responsive & Mobile Adaptation */

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
  .app-header {
    left: 16px;
    right: 16px;
    padding: 0 10px;
  }
  
  .details-panel {
    left: 16px;
    width: 380px;
  }
  
  .filter-drawer {
    right: 16px;
    width: 340px;
  }
}

/* Mobile Devices (<768px) */
@media (max-width: 767px) {
  .app-header {
    top: 12px;
    left: 12px;
    right: 12px;
    height: 52px;
    padding: 0 8px;
  }

  .header-brand-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .header-center-pill {
    margin: 0 8px;
    padding: 0 10px;
    height: 36px;
  }

  .brand-wordmark-center {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  /* Compact button on mobile */
  .btn-header-cta span {
    display: none;
  }
  .btn-header-cta {
    padding: 0 12px;
    height: 36px;
  }

  .btn-menu-toggle {
    width: 36px;
    height: 36px;
  }

  /* Bottom Dock repositioning for mobile (Zero collisions!) */
  .map-bottom-dock {
    bottom: 12px;
    right: 12px;
    left: 12px;
    align-items: stretch;
  }

  .dock-widget-card {
    padding: 8px 12px;
    gap: 8px;
  }

  .map-legend {
    display: none; /* Hide legend on mobile to keep map canvas clear */
  }

  /* Mobile Bottom Sheet Adaptation for Property Details (Screen 5) */
  .details-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 90vh;
    border-radius: var(--ab-radius-lg) var(--ab-radius-lg) 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(20, 83, 45, 0.2);
  }

  .details-panel.panel-active {
    transform: translateY(0);
  }

  /* Touch Drag Handle on Bottom Sheet */
  .details-panel::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 8px auto 0 auto;
  }

  /* Filter Drawer on Mobile (Full Bottom Sheet) */
  .filter-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 85vh;
    border-radius: var(--ab-radius-lg) var(--ab-radius-lg) 0 0;
    transform: translateY(100%);
  }

  .filter-drawer.drawer-active {
    transform: translateY(0);
  }

  .hero-card {
    padding: 28px 20px;
  }

  .hero-title {
    font-size: var(--ab-text-2xl);
  }
}
