/* ═══ FINAL SUMMER ESCAPE — 10% OFF (auto-expira 15/set 2026) ═══ */

/* ── Banner topo (acima do announce-bar quando existe; senão no topo) ── */
#stp-promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003; /* acima do announce-bar (1002) e navbar (1000) */
  background: linear-gradient(90deg, #0f3d2e 0%, #14533e 55%, #1a7a4f 100%);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 34px 8px 0;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(15, 61, 46, 0.28);
  animation: stpPromoIn 0.45s var(--ease) both;
}
@keyframes stpPromoIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.stp-promo-banner-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 12px;
  text-decoration: none;
}
.stp-promo-banner-label { font-weight: 600; letter-spacing: 0.3px; }
.stp-promo-banner-count { opacity: 0.92; font-variant-numeric: tabular-nums; }
.stp-promo-banner-count b { color: #ffd97a; font-weight: 700; }
.stp-promo-banner-btn {
  background: #ffd97a;
  color: #0f3d2e;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}
.stp-promo-banner-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.14);
  border: 0;
  color: #fff;
  width: 22px;
  height: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}
.stp-promo-banner-close:hover { background: rgba(255,255,255,0.3); }

/* ── Integração com navbar/announce (NUNCA cobrir o menu) ──
   Base do site: body padding-top:35px; navbar top:35px; announce top:0.
   Com o banner promo (~33px) visível: tudo desce 33px. Ao fazer scroll,
   o announce esconde e o navbar cola a top:33px (logo abaixo do banner). */
body.has-stp-promo-banner .announce-bar { top: 33px; }
body.has-stp-promo-banner .navbar { top: 68px; } /* 35 + 33 */
body.has-stp-promo-banner .navbar.scrolled { top: 33px; }
body.has-stp-promo-banner .navbar .mobile-nav { top: 0; } /* menu lateral mantém-se */

/* ── Popup ── */
#stp-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 26, 20, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: stpPromoFade 0.3s ease both;
}
@keyframes stpPromoFade { from { opacity: 0; } to { opacity: 1; } }
.stp-promo-pop {
  position: relative;
  max-width: 430px;
  width: 100%;
  background: linear-gradient(160deg, #fdfbf7 0%, #f7efdd 100%);
  border-radius: 22px;
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  animation: stpPromoPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes stpPromoPop { from { transform: translateY(26px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.stp-promo-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 61, 46, 0.08);
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.2s;
}
.stp-promo-pop-close:hover { background: rgba(15, 61, 46, 0.18); }
.stp-promo-pop-sun { font-size: 40px; line-height: 1; animation: stpSunSpin 7s linear infinite; display: inline-block; }
@keyframes stpSunSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.stp-promo-pop h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  margin: 10px 0 10px;
}
.stp-promo-pop p { font-size: 0.95rem; line-height: 1.6; color: var(--charcoal); margin-bottom: 20px; }
.stp-promo-pop-actions { display: flex; flex-direction: column; gap: 10px; }
.stp-promo-pop-cta {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stp-promo-pop-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 61, 46, 0.35); }
.stp-promo-pop-wa {
  display: inline-block;
  font-size: 0.88rem;
  color: #1a7a4f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Hero chip ── */
#stp-promo-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 217, 122, 0.55);
  color: #ffd97a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  animation: stpPromoPulse 2.6s ease-in-out infinite;
}
#stp-promo-hero-chip:hover { background: rgba(255, 217, 122, 0.18); }
@keyframes stpPromoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 122, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(255, 217, 122, 0); }
}

/* ── Badges de preço nos tour cards ── */
.tour-card-price.stp-promo-active { align-items: baseline; }
.tour-card-price.stp-promo-active .price-now { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tour-card-price.stp-promo-active .price-now s { opacity: 0.5; font-weight: 400; font-size: 0.88em; }
.stp-promo-badge {
  background: linear-gradient(90deg, #1a7a4f, #2a9d68);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-transform: none;
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  #stp-promo-banner { padding: 7px 30px 7px 0; font-size: 0.74rem; }
  .stp-promo-banner-cta { flex-direction: column; gap: 2px; text-align: center; }
  .stp-promo-banner-label { font-size: 0.76rem; }
  .stp-promo-banner-count b { font-size: 0.76rem; }
  .stp-promo-banner-btn { display: none; }
  /* banner mobile ~44px (2 linhas): navbar base 35 + 44 */
  body.has-stp-promo-banner .navbar { top: 79px; }
  body.has-stp-promo-banner .navbar.scrolled { top: 44px; }
  body.has-stp-promo-banner .announce-bar { top: 44px; }
  .stp-promo-pop { padding: 26px 20px 22px; }
  .stp-promo-pop h3 { font-size: 1.2rem; }
  .stp-promo-pop p { font-size: 0.88rem; }
  #stp-promo-hero-chip { font-size: 0.8rem; padding: 8px 14px; margin-top: 10px; }
}

/* Mobile nav (menu hambúrguer lateral) fica ACIMA do banner para estar sempre
   acessível — o banner nunca pode bloquear o botão de fechar do menu. */
.mobile-nav { z-index: 1004; }
.mobile-overlay { z-index: 1003; }
