/* Mobile Location and Occupancy Drawers - Similar to Calendar Drawer */

@media (max-width: 767px) {
  /* Location Drawer Container */
  .mobile-location-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: -webkit-fill-available;
    background: #ffffff;
    width: 100%;
    position: relative;
    z-index: 10002;
  }

  /* Occupancy Drawer Container */
  .mobile-occupancy-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    background: #ffffff;
    width: 100%;
    position: relative;
    z-index: 10002;
    overflow: hidden;
  }

  /* Location Content */
  .mobile-location-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
  }

  /* Occupancy Content */
  .mobile-occupancy-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    min-height: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  
  /* Occupancy Footer - Same as calendar footer */
  .mobile-occupancy-container .mobile-calendar-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    bottom: 0;
    z-index: 10011 !important;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    display: flex !important;
    position: relative;
  }

  /* Location Search Input */
  .mobile-location-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
  }

  .mobile-location-content input:focus {
    border-color: #1976d2;
  }

  /* Location Suggestions List */
  .mobile-location-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
  }

  .mobile-location-content li {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
  }

  .mobile-location-content li:hover,
  .mobile-location-content li:active {
    background: #f5f5f5;
  }

  .mobile-location-content li i {
    margin-right: 10px;
    color: #1976d2;
    font-size: 20px;
  }

  /* Empty State */
  .mobile-location-content > div {
    text-align: center;
    padding: 0;
    color: #999;
  }
}

/* Desktop Drawers - Hide on desktop */
@media (min-width: 768px) {
  /* Hide location drawer on desktop */
  .bottom_drawer {
    display: none !important;
  }
  
  /* Prevent drawer from opening on desktop */
  .rc-drawer-content-wrapper {
    display: none !important;
  }
  
  .rc-drawer {
    display: none !important;
  }
  
  .mobile-location-container,
  .mobile-occupancy-container {
    display: none !important;
  }
  
  /* Make location input editable on desktop */
  .searchFormItem__content input[name="location"] {
    cursor: text !important;
  }
}

