/* Shared plots promo + primary FABs (index + properties) */

#plots-promo {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0);
  pointer-events: none;
}
#plots-promo.is-open {
  display: flex !important;
  pointer-events: auto;
  animation: promoBackdropIn 0.55s ease forwards;
  background: rgba(15, 23, 42, 0.58);
}
#plots-promo .plots-promo-card {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.45);
  transform: translateY(0) scale(1);
  opacity: 1;
}
#plots-promo.is-open .plots-promo-card {
  opacity: 1 !important;
  visibility: visible !important;
  animation: promoCardFlyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.plots-promo-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.plots-promo-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 1;
}
#plots-promo.is-open .plots-promo-media::after {
  animation: promoShine 1.1s ease 0.55s forwards;
}
.plots-promo-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: min(52vh, 340px) !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f8fafc;
  transform: scale(1);
  filter: none;
  opacity: 1 !important;
  visibility: visible !important;
}
#plots-promo.is-open .plots-promo-media img {
  animation: promoMapReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.plots-promo-body {
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: center;
}
.plots-promo-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(12px);
}
#plots-promo.is-open .plots-promo-body h3 {
  animation: promoFadeUp 0.5s ease 0.45s forwards;
}
.plots-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 9999px;
  background: #047857;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.35);
  opacity: 0;
  transform: translateY(10px);
}
#plots-promo.is-open .plots-promo-cta {
  animation: promoFadeUp 0.5s ease 0.58s forwards, promoCtaPulse 2.2s ease-in-out 1.2s infinite;
}
.plots-promo-cta:hover {
  background: #065f46;
}
#plots-promo-dismiss {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  opacity: 0;
}
#plots-promo.is-open #plots-promo-dismiss {
  animation: promoFadeUp 0.45s ease 0.7s forwards;
}
#plots-promo-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
}
#plots-promo.is-open #plots-promo-close {
  animation: promoFadeUp 0.4s ease 0.35s forwards;
}
#plots-promo-close:hover { background: #0f172a; }
.plots-promo-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
#plots-promo.is-open .plots-promo-spark {
  animation: promoSpark 0.9s ease forwards;
}
.plots-promo-spark:nth-child(1) { top: 18%; left: 12%; animation-delay: 0.35s !important; }
.plots-promo-spark:nth-child(2) { top: 28%; right: 14%; animation-delay: 0.5s !important; background: #34d399; }
.plots-promo-spark:nth-child(3) { bottom: 38%; left: 18%; animation-delay: 0.62s !important; }
.plots-promo-spark:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 0.74s !important; background: #fde68a; }

@keyframes promoBackdropIn {
  to { background: rgba(15, 23, 42, 0.58); }
}
@keyframes promoCardFlyIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes promoMapReveal {
  from { transform: scale(1.08); filter: saturate(0.85); }
  to { transform: scale(1); filter: none; opacity: 1; }
}
@keyframes promoShine {
  to { transform: translateX(120%); }
}
@keyframes promoFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes promoCtaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(4, 120, 87, 0.35); }
  50% { box-shadow: 0 14px 32px rgba(4, 120, 87, 0.55); }
}
@keyframes promoSpark {
  0% { opacity: 0; transform: scale(0.4); }
  40% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.2) translateY(-18px); }
}

.fab-dock .wa-fab,
.fab-dock .plots-promo-fab,
.fab-dock .more-fab,
.fab-dock .plots-fab,
.fab-dock .years-fab {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}
.fab-dock .years-fab {
  width: auto !important;
  min-width: 0 !important;
  padding: 1.15rem 1.65rem !important;
}
.fab-dock .years-fab span[data-i18n] {
  display: inline !important;
}

/* FAB dock — WhatsApp + Reserve always; More holds secondary */
.fab-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 50;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.85rem;
  max-width: calc(100vw - 1.5rem);
}
.fab-more-panel {
  display: none;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.75rem;
}
.fab-dock.is-more-open .fab-more-panel {
  display: flex;
  animation: fabMoreIn 0.28s ease;
}
@keyframes fabMoreIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fab-dock .wa-fab,
.fab-dock .plots-promo-fab,
.fab-dock .more-fab,
.fab-dock .plots-fab,
.fab-dock .years-fab {
  position: relative;
  right: auto;
  bottom: auto;
  overflow: visible;
  isolation: isolate;
  max-width: calc(100vw - 2rem);
  padding: 1.15rem 1.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  color: #fff;
  transition: box-shadow 0.25s ease, background 0.2s ease, transform 0.2s ease;
}
.fab-dock .wa-fab span[data-i18n],
.fab-dock .plots-promo-fab span[data-i18n],
.fab-dock .more-fab span[data-i18n],
.fab-dock .plots-fab span[data-i18n],
.fab-dock .years-fab span[data-i18n] {
  white-space: nowrap;
}
.fab-dock .wa-fab i,
.fab-dock .plots-promo-fab i,
.fab-dock .more-fab i,
.fab-dock .plots-fab i,
.fab-dock .years-fab i {
  font-size: 1.55rem;
  flex-shrink: 0;
}

.fab-dock .wa-fab {
  background: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: fabVibrate 2.4s ease-in-out infinite;
}
.fab-dock .wa-fab:hover {
  animation: fabVibrateFast 0.45s ease-in-out infinite;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
  background: #1ebe57;
  transform: translateY(-2px);
}

/* Primary sales CTA — match WhatsApp energy */
.fab-dock .plots-promo-fab {
  background: #047857;
  box-shadow: 0 10px 25px rgba(4, 120, 87, 0.45);
  animation: fabVibrate 2.4s ease-in-out infinite;
  animation-delay: 0.2s;
}
.fab-dock .plots-promo-fab:hover {
  animation: fabVibrateFast 0.45s ease-in-out infinite;
  background: #065f46;
  box-shadow: 0 14px 30px rgba(4, 120, 87, 0.55);
  transform: translateY(-2px);
}

.fab-dock .more-fab {
  width: 3.25rem;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0 !important;
  justify-content: center;
  background: #334155;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}
.fab-dock .more-fab span[data-i18n] { display: none !important; }
.fab-dock.is-more-open .more-fab {
  background: #0f172a;
}
.fab-dock .more-fab:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.fab-dock .years-fab {
  background: #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}
.fab-dock .years-fab:hover {
  background: #d97706;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}
.fab-dock .plots-fab {
  background: #0f172a;
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
}
.fab-dock .plots-fab:hover {
  background: #1e293b;
  transform: translateY(-2px);
}
.fab-dock .plots-fab i { color: #fbbf24; }

@keyframes fabVibrate {
  0%, 70%, 100% { transform: translate(0, 0) rotate(0deg); }
  72% { transform: translate(-2px, 1px) rotate(-1.5deg); }
  74% { transform: translate(2px, -1px) rotate(1.5deg); }
  76% { transform: translate(-2px, -1px) rotate(-1deg); }
  78% { transform: translate(2px, 1px) rotate(1deg); }
  80% { transform: translate(-1px, 0) rotate(-0.5deg); }
  82% { transform: translate(1px, 0) rotate(0.5deg); }
  84% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes fabVibrateFast {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1.04); }
  25% { transform: translate(-3px, 1px) rotate(-2deg) scale(1.04); }
  50% { transform: translate(3px, -1px) rotate(2deg) scale(1.04); }
  75% { transform: translate(-2px, 1px) rotate(-1deg) scale(1.04); }
}

@media (max-width: 480px) {
  .fab-dock {
    right: 0.75rem;
    bottom: 1rem;
    gap: 0.7rem;
  }
  .fab-dock .wa-fab,
  .fab-dock .plots-promo-fab,
  .fab-dock .plots-fab,
  .fab-dock .years-fab {
    font-size: 0.78rem;
    padding: 0.85rem 1rem;
    gap: 0.45rem;
  }
  .fab-dock .wa-fab i,
  .fab-dock .plots-promo-fab i,
  .fab-dock .plots-fab i,
  .fab-dock .years-fab i,
  .fab-dock .more-fab i {
    font-size: 1.25rem;
  }
  /* Plots FAB: icon-only on small phones */
  .fab-dock .plots-promo-fab {
    width: 3.15rem;
    min-width: 3.15rem;
    height: 3.15rem;
    padding: 0 !important;
    justify-content: center;
  }
  .fab-dock .plots-promo-fab span[data-i18n] {
    display: none !important;
  }
  .fab-dock .more-fab {
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #plots-promo, #plots-promo .plots-promo-card,
  .plots-promo-media img, .plots-promo-media::after,
  .plots-promo-body h3, .plots-promo-cta, #plots-promo-dismiss, #plots-promo-close,
  .plots-promo-spark,
  .fab-dock .wa-fab, .fab-dock .plots-promo-fab {
    animation: none !important;
  }
  #plots-promo.is-open { background: rgba(15, 23, 42, 0.58); }
  .plots-promo-media img, .plots-promo-body h3, .plots-promo-cta, #plots-promo-dismiss, #plots-promo-close {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
  }
  #plots-promo.is-open .plots-promo-card {
    opacity: 1;
    transform: none;
  }
}
