/* ═══════════════════════════════════════════════════════════════════════
   7 PALMS — readability and brand pass

   Three things were wrong, all visible on an iPhone:

   1. It was mint green (#63f29b / #7ef0a6 / #dfffe8) end to end, which is
      not the DREV palette. Green now means one thing only — live/available
      status — and everything structural is Royal Blue and Silver.
   2. Type bottomed out at 8-10px on phones, in Orbitron, uppercase and
      letter-spaced. That is the "hard to read" complaint directly.
   3. The panel opened at top:52px, underneath the world-nav pills, so the
      title sat behind them; controls were 32-36px, under the 44px touch
      minimum.

   Loaded after seven-palms-leasing.css and ios27.css, so it overrides
   without editing either.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Ambient clutter suppression during 3D site tours ── */
body.sp-tour-active #fleet-rail,
body.sp-tour-active #cockpit,
body.sp-tour-active #weather-chip,
body.sp-tour-active #mode-badge,
body.sp-tour-active #time-hud,
body.sp-tour-active #cascade-fab,
body.sp-tour-active #drev-fab,
body.unit-tour-active #fleet-rail,
body.unit-tour-active #cockpit,
body.unit-tour-active #weather-chip,
body.unit-tour-active #mode-badge,
body.unit-tour-active #time-hud,
body.unit-tour-active #cascade-fab,
body.unit-tour-active #drev-fab {
  display: none !important;
}

/* ── Panel shell ───────────────────────────────────────────────────────
   Glass at the measured strength (the original blur(24px) was four times
   the kit value and turned the map behind it to mush). */
.sp-panel {
  border-radius: var(--r-panel, 34px) !important;
  border: 0 !important;
  background: rgba(7, 14, 28, .88) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  backdrop-filter: var(--glass-blur) !important;
  box-shadow: var(--glass-rim), 0 18px 60px rgba(0, 0, 0, .58) !important;
  padding: 20px !important;
}

#sp-leasing { font-family: var(--font-ui) !important; }

/* ── Headings ── */
.sp-eyebrow,
.sp-level,
.sp-use-title,
.sp-variant > span {
  color: var(--dv-silver, #C0C6D4) !important;
  font: 700 11px/1 var(--font-ui) !important;
  letter-spacing: .13em !important;
  text-transform: uppercase;
}
.sp-panel h2 {
  font: 800 27px/1.08 var(--font-ui) !important;
  letter-spacing: -.024em !important;
  color: #fff;
  margin: 10px 40px 4px 0 !important;
}
.sp-title { font: 700 20px/1.2 var(--font-ui) !important; letter-spacing: -.018em; }
.sp-address { color: rgba(255, 255, 255, .62) !important; font-size: 13.5px !important; }
.sp-concept { color: rgba(255, 255, 255, .76) !important; font-size: 14.5px !important; line-height: 1.5 !important; }
.sp-notes {
  border-left: 2px solid var(--dv-royal-lift, #1a6ae0) !important;
  background: rgba(26, 106, 224, .10) !important;
  color: rgba(255, 255, 255, .78) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  border-radius: 0 12px 12px 0;
  padding: 13px 14px !important;
}
.sp-disclaimer { color: rgba(255, 255, 255, .45) !important; font-size: 11.5px !important; line-height: 1.4; }

/* ── Status: green survives, because here it means "available" ── */
.sp-status {
  border-radius: var(--r-pill, 9999px) !important;
  border-color: rgba(52, 211, 153, .45) !important;
  color: #6ee7a8 !important;
  font: 700 11px/1 var(--font-ui) !important;
  letter-spacing: .09em !important;
  padding: 7px 12px !important;
}

/* ── Metrics ── */
.sp-metric {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .07) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  padding: 12px 10px !important;
}
.sp-metric b {
  font: 800 17px/1 var(--font-num, var(--font-ui)) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.sp-metric span { color: rgba(255, 255, 255, .58) !important; font-size: 11.5px !important; letter-spacing: .05em; }

.sp-uses li {
  border-radius: var(--r-pill, 9999px) !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .17);
  color: rgba(255, 255, 255, .82) !important;
  font-size: 12.5px !important;
  padding: 7px 12px !important;
}

/* ── Controls: pills, 44px, brand blue ── */
.sp-view-actions {
  border: 0 !important;
  border-radius: var(--r-pill, 9999px) !important;
  background: rgba(0, 0, 0, .3) !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14);
  padding: 3px !important;
  gap: 2px !important;
}
.sp-view-actions button {
  min-height: 44px !important;
  border-radius: var(--r-pill, 9999px) !important;
  color: rgba(255, 255, 255, .72) !important;
  font: 650 12.5px/1 var(--font-ui) !important;
  letter-spacing: 0 !important;
}
.sp-view-actions button.active {
  background: #fff !important;
  color: var(--dv-royal, #0052CC) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25) !important;
}

.sp-actions button,
.sp-lead-form button {
  min-height: 46px !important;
  border-radius: var(--r-pill, 9999px) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .09) !important;
  color: #fff !important;
  font: 700 13.5px/1 var(--font-ui) !important;
  letter-spacing: 0 !important;
  transition: transform .18s var(--ios-ease);
}
.sp-actions button:active, .sp-lead-form button:active { transform: scale(.97); }
.sp-actions .primary,
.sp-lead-form button.primary {
  background: #fff !important;
  color: var(--dv-royal, #0052CC) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3) !important;
}

/* ── Tower version selector ── */
.sp-variant-btns button {
  min-height: 56px !important;
  border-radius: var(--r-tile, 20px) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
  font: 800 19px/1 var(--font-num, var(--font-ui)) !important;
  font-variant-numeric: tabular-nums;
}
.sp-variant-btns button small {
  font: 650 11px/1.2 var(--font-ui) !important;
  letter-spacing: .07em !important;
  color: rgba(255, 255, 255, .6) !important;
  margin-top: 3px;
}
.sp-variant-btns button.active {
  background: #fff !important;
  color: var(--dv-royal, #0052CC) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important;
}
.sp-variant-btns button.active small { color: rgba(1, 48, 111, .72) !important; }
.sp-variant-meta { color: rgba(255, 255, 255, .62) !important; font-size: 12px !important; line-height: 1.45 !important; }

/* ── Heart Array / Powerwall card: amber is a deliberate energy accent ── */
.sp-solar-card {
  border-radius: var(--r-clear, 23px) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 199, 110, .4);
  background: linear-gradient(135deg, rgba(255, 183, 77, .14), rgba(26, 106, 224, .10)) !important;
  padding: 13px 14px !important;
}
.sp-solar-card b { font: 800 11px/1 var(--font-ui) !important; letter-spacing: .11em !important; }
.sp-solar-card span { font-size: 12.5px !important; line-height: 1.45 !important; color: rgba(255, 255, 255, .76) !important; }
.sp-solar-card button {
  min-height: 44px !important;
  min-width: 62px !important;
  border-radius: var(--r-pill, 9999px) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 211, 128, .5);
  font: 800 12.5px/1 var(--font-ui) !important;
}

/* ── Floor rail ── */
.sp-floor-rail {
  border-radius: var(--r-panel, 34px) !important;
  border: 0 !important;
  background: rgba(7, 14, 28, .86) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  backdrop-filter: var(--glass-blur) !important;
  box-shadow: var(--glass-rim), 0 10px 34px rgba(0, 0, 0, .46) !important;
}
.sp-floor-btn { border-radius: var(--r-tile, 20px) !important; min-height: 44px; }
.sp-floor-btn b { font: 700 11px/1 var(--font-ui) !important; color: rgba(255, 255, 255, .55) !important; }
.sp-floor-btn span { font: 650 13px/1.2 var(--font-ui) !important; }
.sp-floor-btn.active { background: #fff !important; color: var(--dv-royal, #0052CC) !important; }
.sp-floor-btn.active b { color: rgba(1, 48, 111, .7) !important; }

/* ── Close button: was a 20px glyph with no hit area ── */
.sp-close {
  width: 38px; height: 38px;
  border-radius: var(--r-pill, 9999px) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .26);
  color: #fff !important;
  font: 600 19px/1 var(--font-ui) !important;
  display: grid; place-items: center;
}

/* ── Forms ── */
.sp-lead-form label { color: rgba(255, 255, 255, .62) !important; font-size: 11.5px !important; letter-spacing: .07em !important; }
.sp-lead-form input,
.sp-lead-form textarea {
  border-radius: 14px !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .24);
  background: rgba(0, 0, 0, .26) !important;
  font: 500 15px/1.3 var(--font-ui) !important;   /* 15px: iOS zooms fields under 16px, and this is inside a zoom-locked view */
  padding: 13px 14px !important;
}
.sp-lead-form input:focus,
.sp-lead-form textarea:focus { box-shadow: inset 0 0 0 1.5px #fff !important; }
#sp-form-status { color: #6ee7a8 !important; font-size: 13.5px !important; }

#sp-tour-launch {
  border-radius: var(--r-pill, 9999px) !important;
  border: 0 !important;
  background: rgba(7, 14, 28, .9) !important;
  box-shadow: var(--glass-rim), 0 12px 36px rgba(0, 0, 0, .55) !important;
  font: 700 13px/1 var(--font-ui) !important;
  letter-spacing: 0 !important;
  min-height: 46px;
  padding: 0 20px !important;
}

/* ── Phone ──
   The panel used to start at 52px, which is under the world-nav pills; the
   title sat behind them. It now clears the nav and the safe-area inset, and
   nothing drops below 11px. */
@media (max-width: 480px) {
  .sp-panel {
    top: calc(96px + env(safe-area-inset-top, 0px)) !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important; right: 10px !important;
    width: auto !important;
    padding: 16px !important;
    border-radius: 28px !important;
  }
  .sp-close { right: 20px !important; top: calc(106px + env(safe-area-inset-top, 0px)) !important; }
  .sp-panel h2 { font: 800 21px/1.1 var(--font-ui) !important; margin: 6px 42px 3px 0 !important; }
  .sp-title { font-size: 17px !important; }
  .sp-concept { font-size: 13.5px !important; }
  .sp-address { font-size: 12.5px !important; }
  .sp-eyebrow, .sp-level, .sp-use-title, .sp-variant > span { font-size: 11.5px !important; }
  .sp-metric b { font-size: 15px !important; }
  .sp-metric span { font-size: 11px !important; }
  .sp-uses li { font-size: 12px !important; padding: 6px 11px !important; }
  .sp-notes { font-size: 12.5px !important; }
  .sp-view-actions button { min-height: 44px !important; font-size: 12.5px !important; }
  .sp-actions button, .sp-lead-form button { min-height: 44px !important; font-size: 13px !important; }
  .sp-variant-btns button { min-height: 56px !important; font-size: 18px !important; }
  .sp-floor-rail { bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 24px !important; }
  .sp-floor-btn { min-width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-actions button, .sp-lead-form button { transition: none; }
}
