/* static/css/explore_bottom_sheet.css */

/* static/css/explore_bottom_sheet.css */

.explore-bottom-sheet {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-sheet-top);
  box-shadow: var(--shadow-bottom-sheet);
  z-index: var(--z-bottom-sheet);
  transition: height var(--transition-slow), transform var(--transition-medium);
  height: 60px; /* Collapsed height on mobile */
  flex-direction: column;
  overflow: hidden;
  max-height: 80vh;
}

.explore-bottom-sheet.expanded {
  height: 80vh; /* Expanded height */
}

@media (min-width: 769px) {
  .explore-bottom-sheet {
    top: calc(var(--header-height) + var(--space-md));
    left: 20px;
    right: auto;
    bottom: auto;
    width: var(--width-panel);
    max-width: var(--width-panel-max);
    height: auto;
    max-height: calc(100vh - var(--header-height) - 32px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transform: translateX(0);
  }

  .explore-bottom-sheet.expanded {
    height: auto;
  }

  .explore-bottom-sheet.desktop-collapsed {
    transform: translateX(calc(-100% + 52px));
  }

  .explore-bottom-sheet.desktop-collapsed .sheet-content {
    display: none;
  }
}

/* Sheet Header */
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  height: 60px;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
}

.sheet-back-btn:hover {
  background: var(--color-background-dark);
}

.sheet-back-btn:active {
  background: var(--color-border);
}

.sheet-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.sheet-toggle-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.chevron {
  display: inline-block;
  width: var(--space-md);
  height: var(--space-md);
  border-top: 3px solid var(--color-chevron);
  border-right: 3px solid var(--color-chevron);
  transition: transform var(--transition-slow);
}

.chevron-left {
  display: inline-block;
  width: var(--space-md);
  height: var(--space-md);
  border-top: 3px solid var(--color-chevron);
  border-left: 3px solid var(--color-chevron);
  transform: rotate(-45deg);
}

.chevron.up {
  transform: rotate(-45deg);
}

.chevron.down {
  transform: rotate(135deg);
}

.chevron.left {
  transform: rotate(225deg);
}

.chevron.right {
  transform: rotate(45deg);
}

.chevron.close {
  position: relative;
  border: none;
  transform: rotate(0);
}

.chevron.close::before,
.chevron.close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 3px;
  background: var(--color-chevron);
  transition: transform var(--transition-slow);
}

.chevron.close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chevron.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.explore-zoom-fab {
  position: fixed;
  right: var(--space-md);
  bottom: 100px;
  width: 52px;
  height: 52px;
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: var(--shadow-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.explore-zoom-fab:hover {
  background: var(--color-background);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.22);
}

.explore-zoom-fab:active {
  transform: translateY(1px);
}

.zoom-fab-icon {
  font-size: var(--font-size-lg);
  line-height: 1;
}

@media (min-width: 1024px) {
  .explore-zoom-fab {
    bottom: 120px;
    right: 24px;
  }
}

/* Sheet Content */
.sheet-content {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

/* View Containers */
.sheet-view {
  display: none;
}

.sheet-view.active {
  display: block;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  background: var(--color-background);
  border: var(--border-thin) solid var(--booking-border, var(--color-border));
  cursor: pointer;
  text-align: center;
  min-height: var(--size-touch-target);
}

.category-item img,
.list-item img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  margin-bottom: 8px;
  filter: invert(1);
  object-fit: contain;
}

.list-item img {
  max-width: 32px;
  max-height: 32px;
  margin-right: 16px;
  margin-bottom: 0;
}

.category-item span {
  font-weight: 600;
  font-size: 14px;
}

/* Type and POI List */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-background);
  border: var(--border-thin) solid var(--booking-border, var(--color-border));
  cursor: pointer;
  min-height: var(--size-touch-target);
}

.list-item img {
  width: var(--size-icon-md);
  height: var(--size-icon-md);
  margin-right: var(--space-md);
}

.list-item span {
  font-weight: var(--font-weight-semibold);
}
