/* ==========================================================================
   SEEYOUSOON SUPER-APP — ULTRA-GLASS COMPONENTS & BOTTOM SHEET
   ========================================================================== */

/* 1. BOTTOM SHEET ENGINE (Ultra-Glass Refraction & Aurora Chamfered Rim) */
.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sheet-expanded);
  background: rgba(14, 18, 30, 0.95);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: 28px 28px 0 0;
  border-top: 1.5px solid transparent;
  border-left: 1.5px solid transparent;
  border-right: 1.5px solid transparent;
  border-bottom: none;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: 
    linear-gradient(rgba(14, 18, 30, 0.96), rgba(14, 18, 30, 0.96)),
    linear-gradient(90deg, #8B5CF6 0%, #EC4899 35%, #06B6D4 70%, #8B5CF6 100%);
  box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.25), 0 -14px 44px rgba(0, 0, 0, 0.85);
  z-index: var(--z-sheet);
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--sheet-expanded) - var(--sheet-half)));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  touch-action: pan-y;
}
.bottom-sheet::before {
  content: '';
  display: none;
}
.bottom-sheet.collapsed { transform: translateY(calc(var(--sheet-expanded) - var(--sheet-collapsed))); }
.bottom-sheet.half { transform: translateY(calc(var(--sheet-expanded) - var(--sheet-half))); }
.bottom-sheet.expanded { transform: translateY(0); }
.bottom-sheet.dragging { transition: none !important; }

.sheet-handle-bar {
  width: 100%;
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: grab;
  touch-action: none;
  gap: 6px;
}
.sheet-handle-pill {
  width: 44px;
  height: 4.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #A855F7 0%, #C084FC 50%, #EC4899 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sheet-handle-bar:active .sheet-handle-pill {
  width: 58px;
  background: linear-gradient(90deg, #C084FC 0%, #FFFFFF 50%, #F472B6 100%);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.9), 0 0 6px #FFF;
}
.sheet-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px calc(var(--safe-bottom) + 36px);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* 2. CATEGORY FILTER STRIP */
.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-strip::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--paper-dim);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.category-pill:active { transform: scale(0.95); }
.category-pill .cat-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-pill.active {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px var(--purple-glow), 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* 3. ULTRA-GLASS SEARCH BAR */
.sheet-search-wrap {
  position: relative;
  margin-bottom: 14px;
  width: 100%;
}
.sheet-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--paper-muted);
  pointer-events: none;
}
html[dir="rtl"] .sheet-search-icon { left: auto; right: 14px; }
.sheet-search-input {
  width: 100%;
  height: 46px;
  background: var(--glass-input-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0 14px 0 42px;
  color: #FFF;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}
html[dir="rtl"] .sheet-search-input { padding: 0 42px 0 14px; }
.sheet-search-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 16px var(--purple-glow), inset 0 2px 4px rgba(0,0,0,0.3);
}
.sheet-search-input::placeholder { color: var(--paper-muted); }

/* 4. ULTRA-LUXE PLACE CARDS */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.place-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
}
.place-card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hi);
  box-shadow: var(--shadow-luxe);
}
.place-card:active { transform: scale(0.98); }

.place-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.place-info { flex: 1; min-width: 0; }
.place-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.place-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-dist {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--kr-green);
  flex-shrink: 0;
}
.place-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--paper-muted);
}
.badge-rating {
  color: #FBBF24;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.badge-open {
  color: var(--kr-green);
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 5. SKELETONS */
.skeleton-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.skeleton-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  animation: shimmer 1.5s infinite;
}
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-bar {
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { opacity: 0.3; } 50% { opacity: 0.8; } 100% { opacity: 0.3; }
}

/* 6. BUTTONS & TOAST */
.btn-primary {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--purple-glow), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.btn-primary:active { transform: scale(0.97); }

.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 68px);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  color: #FFF;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 7. TAXI & TIERS */
.dest-input-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.tier-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.tier-card.selected {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: 0 0 20px var(--purple-glow);
}
.tier-name { font-size: 13.5px; font-weight: 800; color: #FFF; margin-bottom: 2px; }
.tier-price { font-family: var(--font-mono); font-size: 14.5px; font-weight: 900; color: var(--kr-green); }
.tier-eta { font-size: 11.5px; color: var(--paper-muted); }

/* 8. MAP PIN & FLOATING BOTTOM NAV */
.seeusoon-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.seeusoon-map-pin:hover, .seeusoon-map-pin:active { transform: scale(1.25); z-index: 100; }

.taxi-radar-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  margin-left: -26px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  pointer-events: none;
  animation: taxiRadarGlow 2.2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
@keyframes taxiRadarGlow {
  0% { transform: scale(0.6); opacity: 0.95; }
  65% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

.pin-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(22, 28, 56, 0.95) 0%, rgba(10, 14, 30, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--purple);
  box-shadow: 0 8px 24px var(--purple-glow), 0 0 14px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  z-index: 2;
}
.pin-inner::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--purple);
}

.pin-inner.cat-taxi {
  border-color: #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.55), 0 8px 24px rgba(0, 0, 0, 0.8);
  background: linear-gradient(145deg, rgba(38, 28, 12, 0.95) 0%, rgba(14, 18, 38, 0.98) 100%);
}
.pin-inner.cat-taxi::after { border-top-color: #F59E0B; }

.pin-inner.cat-food {
  border-color: #06B6D4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.55), 0 8px 24px rgba(0, 0, 0, 0.8);
  background: linear-gradient(145deg, rgba(10, 32, 44, 0.95) 0%, rgba(14, 18, 38, 0.98) 100%);
}
.pin-inner.cat-food::after { border-top-color: #06B6D4; }

.pin-inner.cat-cleaning {
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.55), 0 8px 24px rgba(0, 0, 0, 0.8);
  background: linear-gradient(145deg, rgba(12, 34, 24, 0.95) 0%, rgba(14, 18, 38, 0.98) 100%);
}
.pin-inner.cat-cleaning::after { border-top-color: #10B981; }

.pin-inner.cat-moving {
  border-color: #EAB308;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.55), 0 8px 24px rgba(0, 0, 0, 0.8);
}
.pin-inner.cat-moving::after { border-top-color: #EAB308; }

.pin-inner.cat-beauty {
  border-color: #EC4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.55), 0 8px 24px rgba(0, 0, 0, 0.8);
}
.pin-inner.cat-beauty::after { border-top-color: #EC4899; }

.pin-label-chip {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 9, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 8px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.65);
  z-index: 3;
}
