/* ── ANNOUNCEMENT POPUP ─────────────────────────────────────── */
.ann-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}
.ann-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.ann-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 280ms ease;
}
.ann-backdrop.open .ann-popup {
  transform: translateY(0) scale(1);
}

/* ── size variants ── */
.ann-popup.size-small  { max-width: 480px; }
.ann-popup.size-medium { max-width: 680px; }
.ann-popup.size-large  { max-width: 920px; }

.ann-popup__header {
  background: var(--color-primary, #C8102E);
  padding: 20px 24px 16px;
  position: relative;
}
.ann-popup__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ann-popup__badge i { font-size: 0.85rem; }
.ann-popup__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.ann-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 150ms;
}
.ann-popup__close:hover { background: rgba(255,255,255,0.32); }

/* ── image band (normal mode) ── */
.ann-popup__image {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

/* ── image-only mode ── */
.ann-backdrop.img-only-mode {
  padding: 0;
}
.ann-popup--img-only {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
  /* max-width viene del size selector: size-small/medium/large */
}
.ann-popup__image--full {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  border: none;
}
/* floating close button */
.ann-popup__close--float {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  cursor: pointer;
}
.ann-popup__close--float:hover { background: rgba(0,0,0,0.8); }
/* optional CTA overlay at bottom of image-only */
.ann-popup__cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  display: flex;
  justify-content: flex-start;
}
.ann-popup__cta-overlay .ann-popup__cta {
  background: rgba(255,255,255,0.95);
  color: #111;
}
.ann-popup__cta-overlay .ann-popup__cta:hover { background: #fff; }

.ann-popup__body {
  padding: 22px 24px 24px;
}
.ann-popup__message {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 20px;
}
.ann-popup__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ann-popup__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary, #C8102E);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 150ms, transform 80ms;
}
.ann-popup__cta:hover { background: #a50d25; transform: translateY(-1px); }
.ann-popup__cta i { font-size: 1rem; }

.ann-popup__dismiss {
  font-size: 0.8125rem;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  font-family: inherit;
  transition: color 150ms;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ann-popup__dismiss:hover { color: #555; }

@media (max-width: 480px) {
  .ann-popup { border-radius: 14px; }
  .ann-popup__title { font-size: 1.2rem; }
  .ann-popup__actions { flex-direction: column; align-items: stretch; }
  .ann-popup__cta { justify-content: center; }
  .ann-popup__dismiss { text-align: center; }
}
