/**
 * Unseen Place — Map Left Sidebar (Explore Bangladesh) Styles
 *
 * @package Unseen_Place
 * @since 3.0.0
 */

.tourist-sidebar {
  width: 320px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
  z-index: 10;
}

/* Sidebar Header */
.up-sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.up-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.up-sidebar-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.up-sidebar-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--up-color-primary, #006a4e);
  background: rgba(0, 106, 78, 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
}

.up-sidebar-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
}

/* Sidebar Search */
.up-sidebar-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.up-sidebar-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  color: #1e293b;
}

.up-sidebar-search-input:focus {
  background: #ffffff;
  border-color: var(--up-color-primary, #006a4e);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.12);
}

.up-sidebar-search-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.up-sidebar-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}

/* Category Filter Pills in Sidebar */
.up-sidebar-category-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
}

.up-sidebar-category-filter::-webkit-scrollbar {
  display: none;
}

.up-cat-pill {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.up-cat-pill:hover {
  background: #e2e8f0;
}

.up-cat-pill.active {
  background: var(--up-color-primary, #006a4e);
  color: #ffffff;
}

/* Accordion Division List */
.up-sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.up-division-item {
  border-bottom: 1px solid #f8fafc;
}

.up-division-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.up-division-trigger:hover {
  background: #f8fafc;
}

.up-division-trigger.active {
  background: rgba(0, 106, 78, 0.05);
}

.up-division-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.up-division-trigger.active .up-division-title-group {
  color: var(--up-color-primary, #006a4e);
}

.up-division-count {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-right: 6px;
}

.up-chevron {
  transition: transform 0.2s ease;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.up-division-item.expanded .up-chevron {
  transform: rotate(180deg);
}

/* District Sub-list & Places */
.up-division-content {
  display: none;
  background: #f8fafc;
  padding: 6px 12px 10px;
}

.up-division-item.expanded .up-division-content {
  display: block;
}

.up-place-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.up-place-card-sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.up-place-card-sidebar:hover {
  border-color: var(--up-color-primary, #006a4e);
  transform: translateX(2px);
}

.up-place-card-sidebar.active {
  background: var(--up-color-primary, #006a4e);
  color: #ffffff;
  border-color: var(--up-color-primary, #006a4e);
  box-shadow: 0 2px 8px rgba(0, 106, 78, 0.25);
}

.up-place-card-sidebar.active .up-place-name,
.up-place-card-sidebar.active .up-place-district {
  color: #ffffff;
}

.up-place-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.up-place-thumb-mini {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.up-place-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.up-place-district {
  font-size: 11px;
  color: #64748b;
}

.up-place-category-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  flex-shrink: 0;
}

.up-place-card-sidebar.active .up-place-category-badge {
  color: #a5f3fc;
}
