/* bv19.css — Beach Insurance LLC: Multi-Unit Coastal Complex Hotspots (Archetype A1)
   Strictly scoped under .bv19-* | Zero CLS | WCAG 2.2 AA contrast & 44x44px hit targets */

.bv19-shell {
  background: var(--bv-paper, #FFFFFF);
  border: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
  border-radius: 22px;
  box-shadow: var(--bv-shadow, 0 2px 6px rgba(13, 59, 110, 0.05), 0 18px 40px -18px rgba(13, 59, 110, 0.18));
  padding: clamp(0.9rem, 2.2vw, 1.5rem);
  overflow: hidden;
}

.bv19-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 440;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13, 59, 110, 0.16);
  background: linear-gradient(180deg, #D7ECFA 0%, #EEF6FC 62%, #EADBC5 100%);
}

.bv19-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Zone illumination states — opacity & glow only (zero layout shift) */
.bv19-zone-aura {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.bv19-building-ring,
.bv19-code-lines,
.bv19-rent-arc {
  opacity: 0.28;
  transition: opacity 0.28s ease;
}

.bv19-shell[data-active="building"] .bv19-zone-building .bv19-zone-aura,
.bv19-shell[data-active="liability"] .bv19-zone-liability .bv19-zone-aura,
.bv19-shell[data-active="rents"] .bv19-zone-rents .bv19-zone-aura,
.bv19-shell[data-active="ordinance"] .bv19-zone-ordinance .bv19-zone-aura,
.bv19-shell[data-active="water"] .bv19-zone-water .bv19-zone-aura {
  opacity: 0.28;
}

.bv19-shell[data-active="building"] .bv19-building-ring,
.bv19-shell[data-active="ordinance"] .bv19-code-lines,
.bv19-shell[data-active="rents"] .bv19-rent-arc {
  opacity: 1;
}

/* Gentle GPU-friendly ambient coastal motion */
.bv19-clouds {
  animation: bv19-drift 22s ease-in-out infinite alternate;
}

.bv19-sun-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv19-sunpulse 6s ease-in-out infinite;
}

.bv19-waves,
.bv19-pool-shimmer {
  animation: bv19-shimmer 4.5s ease-in-out infinite alternate;
}

.bv19-water-flow {
  animation: bv19-flow 2.2s linear infinite;
}

.bv19-building-ring,
.bv19-rent-arc {
  animation: bv19-dash 9s linear infinite;
}

@keyframes bv19-drift {
  0% { transform: translateX(-10px); }
  100% { transform: translateX(14px); }
}

@keyframes bv19-sunpulse {
  0%, 100% { transform: scale(1); opacity: 0.16; }
  50% { transform: scale(1.12); opacity: 0.28; }
}

@keyframes bv19-shimmer {
  0% { transform: translateX(-4px); opacity: 0.45; }
  100% { transform: translateX(5px); opacity: 0.82; }
}

@keyframes bv19-flow {
  0% { stroke-dashoffset: 36; }
  100% { stroke-dashoffset: 0; }
}

@keyframes bv19-dash {
  0% { stroke-dashoffset: 48; }
  100% { stroke-dashoffset: 0; }
}

/* 44x44px Accessible Hotspot Overlay Buttons */
.bv19-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.bv19-pin-ring {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid #0B6B52;
  background: rgba(15, 138, 106, 0.22);
  opacity: 0.65;
  animation: bv19-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.bv19-pin-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #0D3B6E;
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(13, 59, 110, 0.36);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv19-pin:hover .bv19-pin-dot {
  transform: scale(1.08);
  background: #0B6B52;
}

.bv19-pin.is-active .bv19-pin-dot {
  background: #D4A017;
  color: #0D3B6E;
  border-color: #0D3B6E;
  transform: scale(1.12);
}

.bv19-pin.is-active .bv19-pin-ring {
  border-color: #D4A017;
  background: rgba(212, 160, 23, 0.34);
}

@keyframes bv19-pulse {
  0% { transform: scale(0.84); opacity: 0.8; }
  75% { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Synced Horizontal Chip Bar */
.bv19-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.bv19-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.95rem 0.5rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 59, 110, 0.22);
  background: #F5F0E8;
  color: #0D3B6E;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.bv19-chip:hover {
  background: #EEF4FB;
  border-color: #1565A8;
}

.bv19-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0D3B6E;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.bv19-chip.is-active {
  background: #0D3B6E;
  border-color: #0D3B6E;
  color: #FFFFFF;
}

.bv19-chip.is-active .bv19-chip-num {
  background: #D4A017;
  color: #0D3B6E;
}

/* Full-Width Editorial Readout Card */
.bv19-readout {
  margin-top: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
  border-radius: 18px;
  background: linear-gradient(135deg, #F5F0E8 0%, #EEF4FB 100%);
  border: 1px solid rgba(13, 59, 110, 0.14);
  min-height: 13.5rem;
}

.bv19-readout-top {
  max-width: 56rem;
}

.bv19-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  background: #E4F5F0;
  color: #0B6B52;
  border: 1px solid rgba(11, 107, 82, 0.28);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bv19-readout-title {
  margin: 0.55rem 0 0.4rem;
  font-size: clamp(1.14rem, 1.9vw, 1.38rem);
  font-weight: 800;
  line-height: 1.24;
  color: #0D3B6E;
}

.bv19-readout-desc {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
  color: #334155;
}

.bv19-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.bv19-fact {
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.13);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.bv19-fact-k {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0B6B52;
  margin-bottom: 0.3rem;
}

.bv19-fact-v {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #334155;
}

@media (max-width: 760px) {
  .bv19-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .bv19-chip {
    flex: 1 1 calc(50% - 0.55rem);
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .bv19-chip {
    flex: 1 1 100%;
  }
  .bv19-pin-dot {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }
  .bv19-pin-ring {
    width: 34px;
    height: 34px;
  }
}
