/* bv04.css — Beach Insurance Homeowners Insurance (A1 Interactive Hotspot Anatomy Canvas)
   Scoped strictly to .bv04-* | Coastal Carolinas Sunlit Editorial | WCAG 2.2 AA | Zero CLS */

.bv04-shell {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.bv04-stage-card {
  background: var(--bv-paper, #FFFFFF);
  border: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
  border-radius: 20px;
  box-shadow: var(--bv-shadow, 0 2px 6px rgba(13, 59, 110, 0.05), 0 18px 40px -18px rgba(13, 59, 110, 0.18));
  overflow: hidden;
  min-width: 0;
}

.bv04-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 440;
  background: linear-gradient(180deg, #D7ECFA 0%, #EEF6FC 56%, #F5F0E8 100%);
  overflow: hidden;
}

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

/* SVG Zone Highlight States (Zero Layout Shift) */
.bv04-zone {
  transition: opacity 0.28s ease;
}

.bv04-zone-halo {
  opacity: 0.16;
  transition: opacity 0.28s ease, stroke-width 0.28s ease;
}

.bv04-shell[data-active="dwelling"] .bv04-zone-dwelling .bv04-zone-halo,
.bv04-shell[data-active="other"] .bv04-zone-other .bv04-zone-halo,
.bv04-shell[data-active="property"] .bv04-zone-property .bv04-zone-halo,
.bv04-shell[data-active="ale"] .bv04-zone-ale .bv04-zone-halo,
.bv04-shell[data-active="liability"] .bv04-zone-liability .bv04-zone-halo {
  opacity: 0.96;
  stroke-width: 3;
}

.bv04-shell[data-active="dwelling"] .bv04-zone:not(.bv04-zone-dwelling):not(.bv04-zone-property),
.bv04-shell[data-active="other"] .bv04-zone:not(.bv04-zone-other),
.bv04-shell[data-active="property"] .bv04-zone:not(.bv04-zone-property):not(.bv04-zone-dwelling),
.bv04-shell[data-active="ale"] .bv04-zone:not(.bv04-zone-ale),
.bv04-shell[data-active="liability"] .bv04-zone:not(.bv04-zone-liability) {
  opacity: 0.62;
}

.bv04-shell[data-active="property"] .bv04-zone-dwelling .bv04-zone-halo {
  opacity: 0.08;
}

/* GPU-Composited Ambient Coastal Motion */
@keyframes bv04-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}

@keyframes bv04-wave-flow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

@keyframes bv04-dash-move {
  to { stroke-dashoffset: -32; }
}

@keyframes bv04-ring-pulse {
  0% { transform: scale(0.88); opacity: 0.78; }
  70% { transform: scale(1.48); opacity: 0; }
  100% { transform: scale(1.48); opacity: 0; }
}

.bv04-clouds {
  animation: bv04-drift 16s ease-in-out infinite;
}

.bv04-wave-a {
  animation: bv04-wave-flow 5.5s ease-in-out infinite;
}

.bv04-wave-b {
  animation: bv04-wave-flow 7.2s ease-in-out infinite reverse;
}

.bv04-wind-a {
  animation: bv04-dash-move 2.6s linear infinite;
}

.bv04-wind-b {
  animation: bv04-dash-move 3.2s linear infinite;
}

.bv04-ale-arc {
  animation: bv04-dash-move 3.8s linear infinite;
}

/* Accessible >=44x44px Interactive Pin Overlays */
.bv04-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bv04-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;
  pointer-events: auto;
  border-radius: 999px;
}

.bv04-pin-pulse {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2.5px solid #0B6B52;
  opacity: 0;
  pointer-events: none;
}

.bv04-pin.is-active .bv04-pin-pulse {
  animation: bv04-ring-pulse 2.2s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

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

.bv04-pin:hover .bv04-pin-dot {
  transform: scale(1.08);
  background: #EEF4FB;
}

.bv04-pin.is-active .bv04-pin-dot {
  background: #0B6B52;
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px #0B6B52, 0 8px 18px rgba(13, 59, 110, 0.32);
  transform: scale(1.1);
}

/* Synced Horizontal Chip Bar */
.bv04-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(180deg, #F5F0E8 0%, #EEF4FB 100%);
  border-top: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
}

.bv04-chip {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 59, 110, 0.22);
  background: #FFFFFF;
  color: #0D3B6E;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.bv04-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #E4F5F0;
  color: #0B6B52;
  font-size: 0.74rem;
  font-weight: 800;
}

.bv04-chip.is-active {
  background: #0D3B6E;
  color: #FFFFFF;
  border-color: #0D3B6E;
  box-shadow: 0 6px 16px -8px rgba(13, 59, 110, 0.5);
}

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

/* Full-Width Editorial Readout Card */
.bv04-readout {
  background: #FFFFFF;
  border: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
  border-top: 4px solid #0B6B52;
  border-radius: 18px;
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  box-shadow: var(--bv-shadow, 0 2px 6px rgba(13, 59, 110, 0.05), 0 18px 40px -18px rgba(13, 59, 110, 0.18));
  min-width: 0;
}

.bv04-readout-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.bv04-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #FDF6E3;
  border: 1px solid rgba(212, 160, 23, 0.55);
  color: #664904;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bv04-step {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.bv04-readout-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0D3B6E;
}

.bv04-readout-desc {
  margin: 0 0 1.15rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #334155;
  max-width: 68ch;
}

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

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

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

.bv04-fact-v {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #0D3B6E;
}

/* Mobile & Tablet Responsive Layout (Zero Overflow at 390px) */
@media (max-width: 780px) {
  .bv04-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .bv04-pin-dot {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .bv04-pin-pulse {
    width: 30px;
    height: 30px;
  }
  .bv04-chips {
    padding: 0.75rem;
    gap: 0.45rem;
  }
  .bv04-chip {
    flex: 1 1 calc(50% - 0.45rem);
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }
}
