/* iPhone mockup — mirrors the Sponti map + bottom sheet UI */

.sp-phone-wrap {
  width: 280px;
  max-width: 100%;
  position: relative;
  z-index: 2;
}
.sp-phone {
  width: 100%;
  aspect-ratio: 340 / 700;
  background: #0B0A08;
  border-radius: 52px;
  padding: 9px;
  box-shadow:
    0 2px 0 #2a2822 inset,
    0 -2px 0 #2a2822 inset,
    0 36px 60px -20px rgba(33, 32, 28, 0.45),
    0 18px 30px -15px rgba(103, 21, 255, 0.12);
  position: relative;
}
.sp-phone::before {
  /* side buttons: ringer */
  content: "";
  position: absolute;
  left: -2px;
  top: 120px;
  width: 3px;
  height: 28px;
  background: #17160F;
  border-radius: 2px 0 0 2px;
}
.sp-phone::after {
  /* side buttons: volume pair (approximated as one long bar) */
  content: "";
  position: absolute;
  left: -3px;
  top: 170px;
  width: 3px;
  height: 90px;
  background: #17160F;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 110px 0 #17160F inset;
}

.sp-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: #E9E5DC; /* map fallback */
  isolation: isolate;
}

/* Dynamic Island */
.sp-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 102px;
  height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}

/* Status bar */
.sp-status {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 30px;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #21201C;
  z-index: 9;
  font-variant-numeric: tabular-nums;
}
.sp-status .icons { display: inline-flex; gap: 5px; align-items: center; }
.sp-status svg { width: 16px; height: 11px; }

/* Map layer — stylized Apple-Maps-ish */
.sp-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 30%, #E5EADE 0%, transparent 60%),
    radial-gradient(ellipse 100% 70% at 80% 70%, #E0E8D8 0%, transparent 55%),
    linear-gradient(180deg, #EFEDE3 0%, #E8E4D8 100%);
}
.sp-map::before {
  /* river */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 180% 30% at 30% 55%, #BCD7E7 0%, transparent 22%);
  opacity: 0.85;
}
.sp-map::after {
  /* park */
  content: "";
  position: absolute;
  top: 28%;
  left: 58%;
  width: 36%;
  height: 26%;
  background: #CFDDBE;
  border-radius: 40% 60% 50% 50%;
  opacity: 0.9;
  filter: blur(0.4px);
}

/* Roads — thin cream lines */
.sp-road {
  position: absolute;
  background: #FBF9F2;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 1;
}
.sp-road.r1 { top: 22%; left: -4%; width: 70%; height: 6px; transform: rotate(-7deg); }
.sp-road.r2 { top: 44%; left: -10%; width: 120%; height: 8px; transform: rotate(4deg); }
.sp-road.r3 { top: 62%; left: 10%; width: 90%; height: 5px; transform: rotate(-3deg); }
.sp-road.r4 { top: 10%; left: 55%; width: 4px; height: 40%; transform: rotate(8deg); }
.sp-road.r5 { top: 48%; left: 24%; width: 3px; height: 28%; transform: rotate(-6deg); }

/* Map buildings — subtle blocks */
.sp-block {
  position: absolute;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(33,32,28,0.04);
  border-radius: 2px;
  z-index: 0;
}
.sp-block.b1 { top: 12%; left: 8%; width: 28px; height: 18px; }
.sp-block.b2 { top: 14%; left: 40%; width: 22px; height: 22px; }
.sp-block.b3 { top: 52%; left: 12%; width: 34px; height: 20px; }
.sp-block.b4 { top: 32%; left: 26%; width: 20px; height: 16px; }

/* Top bar buttons */
.sp-topbar {
  position: absolute;
  top: 54px;
  left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 7;
}
.sp-topbar-btn {
  width: 42px; height: 42px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--sp-shadow-icon);
  display: grid;
  place-items: center;
  color: #21201C;
}
.sp-topbar-btn svg { width: 20px; height: 20px; }
.sp-topbar-btn.profile {
  background: var(--sp-avatar-amber);
  color: #7A5A00;
  font-weight: 700;
  font-size: 15px;
}

/* Pins on the map */
.sp-pin {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%);
}
.sp-pin-bubble {
  background: #6715FF;
  color: white;
  padding: 7px 11px 7px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 14px rgba(103, 21, 255, 0.35);
  white-space: nowrap;
}
.sp-pin-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px; height: 10px;
  background: #6715FF;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.sp-pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  border: 3px solid #6715FF;
}

.sp-pin.p1 { top: 30%; left: 35%; }
.sp-pin.p2 { top: 54%; left: 66%; }

/* Friend avatar pin */
.sp-friend-pin {
  position: absolute;
  z-index: 4;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid white;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
}
.sp-friend-pin.f1 { top: 42%; left: 20%; background: var(--sp-avatar-sky); color: #1F6F8B; }
.sp-friend-pin.f2 { top: 66%; left: 42%; background: var(--sp-avatar-jade); color: #208368; }

/* Bottom sheet */
.sp-sheet {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  background: #F9F9F8;
  border-radius: 20px 20px 0 0;
  padding: 8px 16px 22px;
  box-shadow: 0 -5.355px 18.208px rgba(0,0,0,0.08);
  z-index: 8;
}
.sp-grabber {
  width: 48px; height: 4px;
  border-radius: 2px;
  background: #BCBBB5;
  margin: 0 auto 12px;
}
.sp-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sp-sheet-title {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #21201C;
}
.sp-bell {
  width: 32px; height: 32px;
  border-radius: 12px;
  background: #E9E8E6;
  display: grid;
  place-items: center;
  color: #21201C;
  position: relative;
}
.sp-bell svg { width: 16px; height: 16px; }
.sp-bell::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6715FF;
  border: 1.5px solid #E9E8E6;
}

/* Meeting card */
.sp-card {
  background: white;
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 10px;
}
.sp-card-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sp-avatar {
  width: 40px; height: 40px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  color: #21201C;
}
.sp-avatar.a-amber { background: var(--sp-avatar-amber); }
.sp-avatar.a-purple { background: var(--sp-avatar-purple); color: #5308DF; }
.sp-card-content { flex: 1; min-width: 0; }
.sp-card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #21201C;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-card-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #82827C;
  margin-top: 3px;
  align-items: center;
}
.sp-card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: #BCBBB5; }
.sp-card-participants {
  display: flex;
  margin-top: 10px;
}
.sp-mini-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -6px;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.sp-mini-avatar:first-child { margin-left: 0; }
.sp-count-chip {
  margin-left: 6px;
  padding: 4px 9px;
  background: var(--sp-joined-bg);
  color: var(--sp-joined-text);
  border-radius: 64px;
  font-size: 11px;
  font-weight: 600;
  align-self: center;
}

/* CTA button at bottom */
.sp-sheet-cta {
  background: #5308DF;
  color: white;
  padding: 14px;
  border-radius: 64px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Floating FAB */
.sp-fab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 150px;
  width: 54px; height: 54px;
  border-radius: 22px;
  background: #5308DF;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--sp-shadow-fab);
  z-index: 7;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

/* Home indicator */
.sp-home-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 4px;
  background: #21201C;
  border-radius: 2px;
  z-index: 12;
}
