/* ==========================================================================
   SEEYOUSOON — SCREEN B1: MAP PINS & OVERLAY CONTROLS (B-HEM-UI)
   Obsidian Glassmorphism · Stitch 1:1 Implementation
   ========================================================================== */

/* ── 1. Map Pins & Floating Controls Keyframes ── */
@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

@keyframes carDrift {
  0% { transform: translate(0, 0) rotate(18deg); }
  50% { transform: translate(6px, -10px) rotate(16deg); }
  100% { transform: translate(0, 0) rotate(18deg); }
}

@keyframes auroraDrift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 2. Interactive Map Pins Overlay Layer ── */
.hem-map-pins-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

/* User Location Pin (Avenyn Radar Pulse) */
.hem-pin-radar-user {
  position: absolute; top: 395px; left: 196px;
  transform: translate(-50%, -50%); pointer-events: auto;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hem-radar-wave {
  position: absolute; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(139, 92, 246, 0.28);
  animation: radarPulse 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.hem-radar-halo {
  position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(139, 92, 246, 0.45);
}
.hem-radar-core {
  width: 14px; height: 14px; border-radius: 50%;
  background: #8B5CF6; border: 2px solid #090B10;
  box-shadow: 0 0 12px #8B5CF6; position: relative; z-index: 2;
}

/* Drifting Electric Taxi Pin (2 min bort) */
.hem-pin-taxi-drift {
  position: absolute;
  top: 320px;
  left: 162px;
  pointer-events: auto;
  animation: carDrift 7s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.hem-pin-taxi-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: rgba(20, 26, 41, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  transition: transform 0.18s ease;
}
.hem-pin-taxi-badge:active { transform: scale(0.94); }
.hem-pin-taxi-time {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hem-pin-taxi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A855F7;
  margin-top: 2px;
  box-shadow: 0 0 8px #A855F7;
}

/* Generic Map Pin Wrapper */
.hem-pin-generic {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.hem-pin-generic:active { transform: scale(0.92); }

/* Restaurant Pin (Toso) */
.hem-pin-toso { top: 490px; left: 175px; }
.hem-pin-pill-toso {
  display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 9999px;
  background: rgba(20, 26, 41, 0.9); backdrop-filter: blur(14px);
  border: 1px solid rgba(249, 115, 22, 0.45); box-shadow: 0 2px 12px rgba(249, 115, 22, 0.35);
  font-size: 10px; font-weight: 700; color: #F97316;
}
.hem-toso-dot { width: 7px; height: 7px; border-radius: 50%; background: #F97316; }

/* Salon Pin (Vasastan) */
.hem-pin-salon { top: 425px; left: 65px; }
.hem-pin-circle-salon {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 26, 41, 0.85);
  backdrop-filter: blur(12px); border: 1px solid rgba(236, 72, 153, 0.4);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

/* Cleaning Pin (Haga) */
.hem-pin-cleaning { top: 345px; left: 45px; }
.hem-pin-circle-cleaning {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 26, 41, 0.85);
  backdrop-filter: blur(12px); border: 1px solid rgba(20, 184, 166, 0.4);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(20, 184, 166, 0.35);
}

/* Cluster Pin (Centralen 12) */
.hem-pin-cluster { top: 260px; left: 270px; }
.hem-pin-circle-cluster {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(26, 24, 48, 0.92);
  backdrop-filter: blur(12px); border: 1px solid rgba(139, 92, 246, 0.5);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
  font-size: 11px; font-weight: 800; color: #D0BCFF; font-variant-numeric: tabular-nums;
}

/* ── 4. Floating Recenter GPS Button ── */
.hem-btn-recenter {
  position: fixed;
  bottom: calc(var(--sheet-half) + 16px);
  right: 16px;
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 26, 41, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #D0BCFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.hem-btn-recenter:active { transform: scale(0.92); }
.hem-btn-recenter:hover { border-color: rgba(168, 85, 247, 0.5); }

@media (prefers-reduced-motion: reduce) {
  .hem-radar-wave, .hem-pin-taxi-drift {
    animation: none !important;
  }
}

/* ── 5. Expanded Sheet: Filters, Near You Partners & Trust Guarantee ── */
.hem-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hem-filter-strip::-webkit-scrollbar { display: none; }

.hem-filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBC3D7;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}
.hem-filter-chip:active { transform: scale(0.94); }
.hem-filter-chip.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(124, 58, 237, 0.25) 100%);
  border-color: rgba(168, 85, 247, 0.6);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.hem-partners-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hem-partner-card {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(20, 26, 41, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.hem-partner-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(26, 32, 50, 0.85);
}
.hem-partner-card:active { transform: scale(0.98); }
.hem-partner-card.is-hidden { display: none !important; }

.hem-partner-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hem-partner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hem-partner-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.hem-partner-icon--food { background: rgba(249, 115, 22, 0.15); border: 1px solid rgba(249, 115, 22, 0.3); color: #F97316; }
.hem-partner-icon--beauty { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); color: #EC4899; }
.hem-partner-icon--cleaning { background: rgba(20, 184, 166, 0.15); border: 1px solid rgba(20, 184, 166, 0.3); color: #14B8A6; }
.hem-partner-icon--moving { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #A855F7; }
.hem-partner-icon--carwash { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); color: #06B6D4; }

.hem-partner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hem-partner-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hem-partner-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.hem-partner-cat {
  font-size: 11px;
  color: #958EA0;
}

.hem-partner-meta {
  font-size: 11px;
  font-weight: 500;
  color: #CBC3D7;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.hem-partner-meta-star {
  color: #FFB95F;
  font-weight: 700;
}

.hem-partner-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
  white-space: nowrap;
}

.hem-partner-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hem-partner-tag {
  font-size: 11px;
  color: #A855F7;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hem-partner-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.hem-partner-action-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
  color: #FFFFFF;
}

/* ── 6. Nordic Trust & Security Guarantee Card ── */
.hem-guarantee-card {
  margin-top: 6px;
  padding: 16px;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(30, 24, 56, 0.85) 0%, rgba(14, 18, 30, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hem-guarantee-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hem-guarantee-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #D0BCFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hem-guarantee-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.hem-guarantee-sub {
  font-size: 11px;
  color: #958EA0;
  margin-top: 1px;
}

.hem-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hem-guarantee-pill {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  color: #CBC3D7;
  font-size: 10px;
  font-weight: 600;
}

.hem-guarantee-pill svg {
  color: #A855F7;
}

.hem-guarantee-footer {
  font-size: 10px;
  color: #716B7B;
  text-align: center;
  line-height: 1.4;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
