/* =============================================================
   Phone-Map Mock — iPhone bezel showing live property pins.
   Used in Discovery hero + Coverage section + sub-brand callouts.
   ============================================================= */

.phn {
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 8px 16px rgba(167,139,250,.15));
  user-select: none;
}

.phn-bezel {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1d24 0%, #0a0c10 100%);
  border-radius: 44px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 2px rgba(0,0,0,.4);
}

/* Notch */
.phn-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000;
  border-radius: 18px;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
}
.phn-notch-cam { width: 7px; height: 7px; border-radius: 50%; background: #1a1820; box-shadow: inset 0 0 2px rgba(167,139,250,.3); }
.phn-notch-bar { width: 38px; height: 5px; border-radius: 4px; background: #0a0c12; }

/* Screen */
.phn-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #07090c;
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Status bar */
.phn-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 4px;
  height: 36px;
  flex-shrink: 0;
}
.phn-time {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: #fff;
}
.phn-status-r { display: flex; gap: 5px; align-items: center; color: #fff; }

/* App header */
.phn-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px 10px;
  flex-shrink: 0;
}
.phn-brand {
  font-size: 13px; font-weight: 700;
  letter-spacing: var(--tr-mono);
  color: var(--text-hi);
}
.phn-sub {
  font-size: 8px; letter-spacing: 2px;
  color: var(--accent); margin-top: 2px;
}
.phn-hdr-btn {
  width: 24px; height: 24px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 50%; color: var(--text-mid);
  font-size: 14px; cursor: pointer;
  display: grid; place-items: center;
}

/* Filter chips */
.phn-filters {
  display: flex; gap: 4px;
  padding: 0 12px 8px;
  flex-shrink: 0;
}
.phn-chip {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 1px;
  padding: 3px 7px;
  background: rgba(167,139,250,.04);
  border: 1px solid rgba(167,139,250,.12);
  border-radius: 4px;
  color: var(--text-mid);
}
.phn-chip.is-on {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* Map */
.phn-map {
  flex: 1; position: relative;
  margin: 0 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #050709;
  border: 1px solid rgba(167,139,250,.1);
  min-height: 0;
}
.phn-map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.phn-map-ctl {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 3;
}
.phn-map-ctl button {
  width: 22px; height: 22px;
  background: rgba(7,9,12,.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(167,139,250,.15);
  color: var(--text-hi);
  font-size: 12px; font-weight: 600;
  border-radius: 4px; cursor: pointer;
  display: grid; place-items: center;
}
.phn-live {
  position: absolute; top: 8px; right: 8px;
  font-size: 8px; letter-spacing: 1.5px;
  padding: 3px 6px;
  background: rgba(248,113,113,.15);
  border: 1px solid rgba(248,113,113,.3);
  color: var(--bad);
  border-radius: 4px; z-index: 3;
  animation: phn-blink 2s ease-in-out infinite;
}
@keyframes phn-blink { 50% { opacity: 0.5; } }
.phn-attr {
  position: absolute; bottom: 4px; right: 6px;
  font-size: 7px; letter-spacing: 0.5px;
  color: rgba(160,160,180,.4); z-index: 3;
}

/* Pins */
.phn-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: phn-pin-in 0.6s var(--ease) backwards;
}
@keyframes phn-pin-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.phn-pin-dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid #07090c;
  position: relative; z-index: 2;
}
.phn-pin-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: phn-pulse 2.4s ease-out infinite;
  opacity: 0;
}
.phn-pin.is-sale .phn-pin-dot  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.phn-pin.is-sale .phn-pin-pulse{ background: var(--accent); }
.phn-pin.is-rent .phn-pin-dot  { background: #60a5fa; box-shadow: 0 0 6px rgba(96,165,250,.6); }
.phn-pin.is-rent .phn-pin-pulse{ background: #60a5fa; }
.phn-pin.is-hot  .phn-pin-dot  { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,.7); }
.phn-pin.is-hot  .phn-pin-pulse{ background: #f87171; }
.phn-pin.is-inv  .phn-pin-dot  { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.6); }
.phn-pin.is-inv  .phn-pin-pulse{ background: #34d399; }

@keyframes phn-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(4.5); opacity: 0; }
}

/* Footer */
.phn-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px 6px;
  flex-shrink: 0;
}
.phn-foot-l {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: var(--tr-mono);
  color: var(--text-hi); font-weight: 600;
}
.phn-foot-dot { width: 6px; height: 6px; border-radius: 50%; }
.phn-foot-legend { display: flex; gap: 8px; font-size: 8px; color: var(--text-lo); letter-spacing: 1px; font-family: var(--font-mono); }
.phn-foot-legend span { display: inline-flex; align-items: center; gap: 3px; }
.phn-foot-legend i {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block;
}
.phn-foot-legend i.is-sale { background: var(--accent); }
.phn-foot-legend i.is-rent { background: #60a5fa; }
.phn-foot-legend i.is-hot  { background: #f87171; }

/* Home indicator */
.phn-home {
  width: 36%; height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  margin: 4px auto 6px;
  flex-shrink: 0;
}

/* Subtle reflection on the bezel */
.phn-reflection {
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  border-radius: 44px 44px 0 0;
  pointer-events: none;
}
