/* Consumer View Styles: Map, Search, Sheet, Modals */

#consumer-map {
  width: 100%;
  height: 100%;
  background: #0f172a;
  z-index: 1;
}

/* Floating Top Search Bar */
.search-floating-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 480px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #38bdf8;
  font-size: 18px;
}

/* Category Filter Chips */
.filter-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.chip-btn.active {
  background: #2563eb;
  color: white;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

/* GPS Recenter Floating Button */
.recenter-btn {
  position: absolute;
  right: 16px;
  bottom: 70px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.recenter-btn.sheet-expanded {
  bottom: 220px;
}

.recenter-btn:hover {
  transform: scale(1.05);
  background: var(--primary);
}

/* Bottom Sheet Vendor Drawer (Collapsible Peek Mode) */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 45vh;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--bg-card-border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% - 52px)); /* Peek mode default */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.expanded {
  transform: translateY(0); /* Expanded mode */
}

.sheet-handle-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  margin: 10px auto 6px auto;
  cursor: pointer;
}

.sheet-header {
  padding: 0 16px 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.vendor-count-badge {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.vendor-cards-list {
  overflow-y: auto;
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vendor-card:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(56, 189, 248, 0.5);
}

.vendor-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #334155;
  flex-shrink: 0;
}

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

.vendor-title {
  font-size: 15px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vendor-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.vendor-distance {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
}

/* Custom Marker Styling for Map */
.custom-vendor-pin {
  background: var(--primary);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.custom-vendor-pin.jasa {
  background: #8b5cf6;
}
