/* Mobile Bounds List - Airbnb Style with Expandable Height */
.mobile-bounds-list {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease, max-height 0.3s ease;
  z-index: 900;
  max-height: 40vh; /* Collapsed state */
  display: flex;
  flex-direction: column;
}

.mobile-bounds-list.expanded {
  max-height: 75vh; /* Expanded state - much taller */
}

.mobile-bounds-list.visible {
  transform: translateY(0);
}

.mobile-bounds-list.hidden {
  transform: translateY(100%);
}

.mobile-bounds-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 8px auto 4px;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none; /* Prevent default touch behaviors */
}

.mobile-bounds-handle:active {
  cursor: grabbing;
  background: #bbb;
}

.mobile-bounds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.bounds-count {
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.bounds-close-btn {
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.bounds-close-btn:active {
  background: #e0e0e0;
}

.mobile-bounds-scroll {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.bounds-list-content {
  padding: 12px 16px 100px;
}

.bounds-location-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.bounds-location-item:active {
  transform: scale(0.98);
  background: #f8f8f8;
}

.bounds-location-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.bounds-location-image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.bounds-location-info {
  flex: 1;
  min-width: 0;
}

.bounds-location-name {
  font-family: 'Afacad', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bounds-location-meta {
  font-size: 13px;
  color: #666;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bounds-location-meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.bounds-location-category {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  margin-top: 4px;
}

/* Hide bounds list on desktop */
@media (min-width: 768px) {
  .mobile-bounds-list {
    display: none !important;
  }
}

/* Adjust mobile card z-index to appear above bounds list */
.mobile-card {
  z-index: 950 !important;
}

/* When mobile card is visible, hide bounds list completely */
.mobile-card.visible ~ .mobile-bounds-list {
  display: none !important;
}

/* Ensure bounds list is hidden when card is open */
.mobile-bounds-list.card-open {
  transform: translateY(100%) !important;
  visibility: hidden !important;
}
