﻿/* ============================================================
   STICKY BOOK BUTTON — Mobile Bottom Bar
   ============================================================ */

/* Hide on desktop by default */
.sticky-book-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: #fff;
  border-top: 1px solid rgba(201,169,97,.25);
  box-shadow: 0 -10px 30px -10px rgba(0,0,0,.15);
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  align-items: center;
  gap: 10px;
}
.sticky-book-bar.show {
  transform: translateY(0);
}
.sticky-book-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
}

/* Price side */
.sbb-price {
  flex: 1;
  min-width: 0;
}
.sbb-price small {
  display: block;
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 1px;
}
.sbb-price strong {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #b08f42;
  letter-spacing: -.02em;
  line-height: 1;
}

/* Action buttons */
.sbb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sbb-call-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1.5px solid #e5e7eb;
  color: #1f2937;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .22s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.sbb-call-btn:hover {
  border-color: #c9a961;
  color: #b08f42;
  background: #fdfbf6;
}
.sbb-book-btn {
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c9a961, #b08f42);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all .22s ease;
  box-shadow: 0 4px 14px rgba(201,169,97,.35);
  white-space: nowrap;
}
.sbb-book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(201,169,97,.5);
}
.sbb-book-btn i {
  font-size: 15px;
}

/* Pulsing dot on Book button */
.sbb-book-btn::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.7);
  animation: sbbPulse 2s ease-in-out infinite;
}
.sbb-book-btn {
  position: relative;
}
@keyframes sbbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ===== ACTIVE STATE on scroll ===== */
.sticky-book-bar.show::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(201,169,97,.15);
}

/* ===== SHOW ONLY ON MOBILE/TABLET ===== */
@media (max-width: 900px) {
  .sticky-book-bar {
    display: flex;
  }
  /* Push page content up so footer isn't hidden */
  body.has-sticky-bar {
    padding-bottom: 76px;
  }
  /* Hide floating WhatsApp on mobile when sticky bar is active */
  body.has-sticky-bar .float-wa {
    bottom: 90px !important;
  }
}

/* Adjust for small phones */
@media (max-width: 480px) {
  .sbb-price strong { font-size: 18px; }
  .sbb-book-btn { padding: 11px 18px; font-size: 13px; }
  .sbb-call-btn { width: 42px; height: 42px; font-size: 15px; }
}

/* Extra small */
@media (max-width: 360px) {
  .sbb-price small { display: none; }
  .sbb-book-btn { padding: 11px 14px; font-size: 12.5px; gap: 6px; }
  .sbb-book-btn::after { display: none; }
  .sbb-call-btn { width: 38px; height: 38px; font-size: 14px; }
}