/* THE 4F STUDIO IS CUT INTO ZONES, AND A ZONE BREATHES (the author,
   2026-10-08: "мигає дивно" → "в сингл рум треба виділяти зони" →
   "виділений шматок зараз мигає тільки де деск").
   On 2B a scene asking for "his room" pulses one room of the plan. On
   4F the whole studio was one clickable rectangle, so the same pulse
   blinked the entire plan. The studio is zones now
   (js/apartment-floorplans-data.js: the kitchenette along the wall,
   his corner — bed, laptop, desk —, the bath; the floor itself is not a
   click, like 2B's hallway).
   The ordinary room pulse (aps-pulse in the APARTMENT viewer,
   papt-pulse on the plan walks) fades a gold fill 1 ↔ .35 every 1.15 s —
   on a zone in the middle of the open studio that reads as a blink.
   A zone asked for breathes instead: the gold stays lit, the outline
   goes solid and swells 2 → 4 px, the fill warms and cools, 2.2 s.
   2B's rooms keep their pulse. */
#apartmentViewerModal svg g.apt-zone,
#pourAptPlan svg g.apt-zone { cursor: pointer; }
#apartmentViewerModal svg g.apt-zone:hover rect,
#pourAptPlan svg g.apt-zone:hover rect {
  stroke: #c4a87a;
  stroke-width: 2px;
  fill: rgba(196, 168, 122, 0.14);
}

#apartmentViewerModal svg g.aps-pulse.apt-zone rect,
#pourAptPlan svg g.papt-pulse.apt-zone rect {
  animation: aptZoneBreath 2.2s ease-in-out infinite;
  opacity: 1;
  stroke-dasharray: none;
}
@keyframes aptZoneBreath {
  0%, 100% { stroke: rgba(196, 168, 122, 0.6); stroke-width: 2px; fill: rgba(196, 168, 122, 0.16); }
  50%      { stroke: #c4a87a;                  stroke-width: 4px; fill: rgba(196, 168, 122, 0.30); }
}
@media (prefers-reduced-motion: reduce) {
  #apartmentViewerModal svg g.aps-pulse.apt-zone rect,
  #pourAptPlan svg g.papt-pulse.apt-zone rect {
    animation: none;
    stroke: #c4a87a;
    stroke-width: 3px;
    fill: rgba(196, 168, 122, 0.24);
  }
}
