/**
 * Unseen Place — Map Mobile Experience & Bottom Sheet Styles
 *
 * @package Unseen_Place
 * @since 3.0.0
 */

/* Mobile Bottom Navigation Bar */
.up-mobile-nav-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.up-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 16px;
  transition: color 0.15s ease;
}

.up-mobile-nav-item.active {
  color: var(--up-color-primary, #006a4e);
}

/* Mobile Bottom Sheet Overlay & Drawer */
.up-mobile-sheet {
  display: none;
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  max-height: 70vh;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-mobile-sheet.open {
  transform: translateY(0);
}

.up-sheet-handle-bar {
  width: 100%;
  padding: 10px 0 6px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.up-sheet-handle {
  width: 44px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 9999px;
}

.up-sheet-body {
  overflow-y: auto;
  padding: 12px 16px 24px;
  flex: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .unseen-map-layout {
    flex-direction: column;
    height: calc(100vh - 76px);
    position: relative;
  }

  .tourist-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 56px;
    width: 320px;
    z-index: 950;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .tourist-sidebar.mobile-open {
    transform: translateX(0);
  }

  .place-info-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 56px;
    width: 340px;
    z-index: 950;
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .place-info-panel.mobile-open {
    transform: translateX(0);
  }

  .up-mobile-nav-bar {
    display: flex;
  }

  .up-mobile-sheet {
    display: flex;
  }
}

@media (max-width: 640px) {
  .tourist-sidebar {
    width: 100%;
  }

  .place-info-panel {
    width: 100%;
  }
}
