/* Applies to both index and flyer pages */
.flyer img, .flyer video {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* Index flyer card */
.flyer {
  background: #222;
  margin: 20px auto;
  max-width: 800px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

/* Caption styling on index */
.caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #ccc;
  text-align: center;
}
.caption button {
  background: none;
  border: none;
  color: #e60026;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 5px;
  padding: 0;
}

a {
  color: #ffcc00;
  text-decoration: underline;
}

.flyer-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Flyer pages only */
.flyer-body .flyer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  max-width: 100%;
  padding: 1rem;
}

.flyer-body .caption {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* Shared base */
html, body, .flyer-body {
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0px;
}

header {
  background: #e60026;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  left: 0;
  right: 0;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

.controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

input[type="text"], select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  width: 250px;
}
/* Target only flyer images on the index (not flyer pages) */
body:not(.flyer-body) .flyer img,
body:not(.flyer-body) .flyer video {
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

#sponsor-banner {
  position: fixed;
  bottom: 20px;
  left: 10px;  /* ✅ Bottom-left instead of right */
  background: rgba(230, 0, 38, 0.9);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
  z-index: 99999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 200px;
  line-height: 1.4;
}
@media only screen and (max-width: 480px) {
  #sponsor-banner {
    display: none;
  }
}
#flyer-promo {
  position: fixed;
  bottom: 190px; /* 200px above the sponsor banner */
  left: 10px;
  background: rgba(230, 0, 38, 0.9);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
  z-index: 99999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 200px;
  line-height: 1.4;
}

/* Hide it on mobile like the sponsor banner */
@media only screen and (max-width: 480px) {
  #flyer-promo {
    display: none;
  }
}

#testimonial-box {
  position: fixed;
  bottom: 310px; /* above the other 2 boxes */
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
  z-index: 999999;
  max-width: 200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  line-height: 1.4;
  font-style: italic;
}

#testimonial-box::before {
  content: "💬 User Feedback";
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  color: #e60026;
}

/* Hide on mobile */
@media only screen and (max-width: 480px) {
  #testimonial-box {
    display: none;
  }
}
/* Default: hide it */
.whatsapp-share-mobile {
  display: none;
}

/* Show only on small screens */
@media only screen and (max-width: 768px) {
  .whatsapp-share-mobile {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
}

/* Re-hide forcefully on large screens */
@media only screen and (min-width: 769px) {
  .whatsapp-share-mobile {
    display: none !important;
  }
}
/* === Today's Events box (index only) === */
#todays-events.today-box {
  max-width: 900px;
  margin: 16px auto 8px auto;
  background: #1a1a1a;
  border: 2px solid #e60026;  /* matches site accent */
  border-radius: 10px;
  padding: 12px 16px;
}

#todays-events h2 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.today-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.today-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.today-list li:first-child {
  border-top: none;
}

.today-list a {
  flex: 1;
  text-decoration: underline;
  line-height: 1.4;
}

.tag-today {
  display: inline-block;
  font-size: 0.75rem;
  background: #e60026;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  #todays-events.today-box { margin: 12px 8px; padding: 10px 12px; }
  .today-list li { gap: 8px; }
  .tag-today { font-size: 0.7rem; padding: 2px 6px; }
}
/* Thumbnails in Today's Events */
.today-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.today-list li:first-child { border-top: none; }

.today-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 72px;
  background: #111; /* prevents layout shift during load */
}

.today-thumb.placeholder {
  /* shows a subtle placeholder when image is missing */
  background: linear-gradient(135deg, #111 0%, #1b1b1b 100%);
}

.today-text {
  flex: 1;
}

.today-text a {
  display: inline-block;
  text-decoration: underline;
  line-height: 1.4;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .today-thumb { width: 56px; height: 56px; flex-basis: 56px; }
}
/* Two-tab pill bar */
.pill-tabs {
  position: sticky; top: 0; z-index: 20;
  background: #0b0b0b;
  padding: 8px;
  display: flex; gap: 8px;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pill-tabs .pill {
  flex: 1;
  padding: 10px 20px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #eee;
  border: 1px solid #333;
  font-size: .95rem;
}
.pill-tabs .pill.active {
  border-color: #e60026;
  outline: 2px solid #e60026;
}
@media (max-width: 480px){
  .pill-tabs .pill { font-size: .9rem; padding: 9px 10px; }
}
.tag-class {
  display:inline-block;
  font-size:.72rem;
  background:#2a7; /* green */
  color:#fff;
  border-radius:999px;
  padding:2px 6px;
  white-space:nowrap;
  margin-left:6px;
}
.pager{
  position: fixed !important;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(20,20,20,.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 8px 12px;
  z-index: 1000;            /* stays above floating boxes */
}
/* default hidden (desktop) */
.wa-share{ display:none; }

/* Fallback for devices that don't match hover/pointer correctly */
@media (max-width: 820px){
  .wa-share{ display:inline-flex !important; }
}

/* phones/tablets w/ touch */
@media (max-width: 820px) and (hover:none) and (pointer:coarse){
  .wa-share{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border:1px solid #25D366;
    border-radius:10px;
    color:#25D366;
    text-decoration:none;
    font-weight:600;
    gap:8px;
  }
}
.wa-share-wrap{ text-align:center; margin-top:8px; }
/* --- WhatsApp button: make extra sure it shows on phones --- */
@media (max-width: 900px){
  #todays-events .wa-share{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #25D366;
    border-radius: 10px;
    color: #25D366 !important;
    text-decoration: none !important;
    font-weight: 600;
    gap: 8px;
  }
}
/* Hide voice mic on desktop */
@media (min-width: 900px), (hover: hover) and (pointer: fine) {
  #salsa-voice {
    display: none !important;
  }
}

/* Hide chatbot on phones */
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  #chatbot-widget {
    display: none !important;
  }
}
/* Show mic only on small screens */
#salsa-voice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 28px;
  padding: 10px;
  border-radius: 50%;
  z-index: 9999;
  background: #e91e63;
  color: white;
  border: none;
  display: none; /* hidden by default */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Only show mic on phones */
@media (max-width: 899px) {
  #salsa-voice {
    display: block;
  }

  .chatbot-button, #chatbot-container {
    display: none !important; /* Hide bot on mobile */
  }
}

/* Show chatbot only on desktop */
@media (min-width: 900px) {
  #salsa-voice {
    display: none !important; /* Hide mic on desktop */
  }

  .chatbot-button, #chatbot-container {
    display: block;
  }
}
/* === Affiliate Ads Block === */
.salsa-ad-box {
  margin: 20px auto;
  padding: 16px;
  background: #1a1a1a;           /* match dark theme */
  border: 2px solid #e60026;     /* match red site accent */
  border-radius: 12px;
  max-width: 600px;
}

.salsa-ad-box h3 {
  color: #ffcc00;                /* match link/yellow accent */
  font-size: 1.2rem;
  margin: 0 0 10px;
  text-align: center;
}

.salsa-ad-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 14px;
}

.salsa-ad-items a {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  text-align: center;
  text-decoration: none;
  color: #fff;                   /* keep text white */
  font-size: 0.9rem;
}

.salsa-ad-items img {
  width: 100%;
  max-width: 120px;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.salsa-ad-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 10px;
  color: #aaa;
  font-style: italic;
}
