.activity-details-page {
  background: #f8f9fa;
  min-height: 100vh;
}

/* ─── Hero Section ───────────────────────────────────────────── */
.activity-hero {
  position: relative;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-nav {
  margin-bottom: 1.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateX(-4px);
}

.service-badge-container {
  margin-bottom: 1rem;
}

.service-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #0984e3;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.hero-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.hero-meta {
  margin-top: 2rem;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.meta-item i {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

/* ─── Main Content ───────────────────────────────────────────── */
.activity-content {
  padding-bottom: 3rem;
}

.sidebar-sticky {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── CTA Card ───────────────────────────────────────────────── */
.cta-card {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.2);
  margin-bottom: 1.5rem;
}

.cta-card.coming-soon {
  background: #fdcb6e;
  color: #2d3436;
  box-shadow: 0 8px 25px rgba(253, 203, 110, 0.2);
}

.cta-card.closed {
  background: #a80e00;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(168, 14, 0, 0.2);
  border: none;
  cursor: not-allowed;
  justify-content: flex-start;
}

.cta-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.cta-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.btn-enroll {
  background: white;
  color: #00b894;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-enroll:hover {
  background: #f8f9fa;
  color: #00b894;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ─── Cards base ─────────────────────────────────────────────── */
.info-card,
.stats-card,
.content-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.info-title,
.stats-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem 0;
  color: #2d3436;
  font-weight: 600;
  font-size: 1.125rem;
}

.info-title i,
.stats-title i {
  color: #74b9ff;
}

/* ─── Info List ──────────────────────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #636e72;
  font-size: 0.875rem;
  font-weight: 500;
}

.info-label i {
  color: #74b9ff;
  font-size: 1rem;
}

.info-value {
  color: #2d3436;
  font-weight: 500;
  padding-left: 1.5rem;
}

/* ─── Stats Card ─────────────────────────────────────────────── */
.availability-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.availability-bar {
  height: 8px;
  background: #f1f3f4;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  transition: width 0.3s ease;
}

.availability-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
}

.stat-label {
  font-size: 0.875rem;
  color: #636e72;
}

/* ─── Content Card ───────────────────────────────────────────── */
.content-card {
  margin-bottom: 1.5rem;
}

.content-header h2 {
  margin: 0 0 1.5rem 0;
  color: #2d3436;
  font-weight: 600;
}

.content-body {
  color: #636e72;
  line-height: 1.6;
}

.content-body h1, .content-body h2, .content-body h3,
.content-body h4, .content-body h5, .content-body h6 {
  color: #2d3436;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-body h1:first-child, .content-body h2:first-child,
.content-body h3:first-child, .content-body h4:first-child,
.content-body h5:first-child, .content-body h6:first-child {
  margin-top: 0;
}

.content-body p { margin-bottom: 1rem; }

.content-body ul,
.content-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-body li { margin-bottom: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   PRICING — Secção de largura total abaixo do conteúdo
════════════════════════════════════════════════════════════════ */
.pricing-section-full {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: 0.5rem;
}

.pricing-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.pricing-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #2d3436;
  font-weight: 600;
  font-size: 1.125rem;
}

.pricing-title i {
  color: #74b9ff;
}

/* Lunch badge inline no header */
.lunch-info-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
}

.lunch-badge.optional {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
  color: white;
}

.lunch-badge.included {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
}

/* ── NOVO: almoço pago ao município ── */
.lunch-badge.external {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  color: white;
}

/* Grid de cards de preço */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: #f1f3f4; /* gap color via background trick */
}

/* Card individual */
.price-option-card {
  background: white;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

.price-option-card:hover {
  background: #f8f9ff;
}

/* Badge de frequência */
.price-freq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  align-self: flex-start;
}

.price-freq-badge.freq-monthly  { background: #eff6ff; color: #1d4ed8; }
.price-freq-badge.freq-weekly   { background: #f5f3ff; color: #6d28d9; }
.price-freq-badge.freq-daily    { background: #ecfdf5; color: #065f46; }
.price-freq-badge.freq-biweekly { background: #fefce8; color: #92400e; }

/* Valor principal */
.price-value-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1;
}

/* ── NOVO: Alerta valor por dia (calculate_by: daily) ── */
.daily-rate-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.76rem;
  color: #92400e;
  line-height: 1.4;
}

.daily-rate-alert i {
  color: #d97706;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.daily-rate-alert strong {
  display: block;
  font-weight: 700;
  margin-bottom: 1px;
}

/* Descrição */
.price-description {
  font-size: 0.8rem;
  color: #636e72;
  font-style: italic;
}

/* Período e Horários */
.price-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f3f4;
  margin-top: 0.25rem;
}

.period-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.period-tag i { font-size: 0.875rem; }

.period-tag.period-morning {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  color: #2d3436;
}

.period-tag.period-afternoon {
  background: linear-gradient(135deg, #fab1a0, #ff7675);
  color: white;
}

.period-tag.period-full_day {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  color: white;
}

.schedule-times {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #636e72;
  font-weight: 500;
}

.schedule-times i {
  color: #74b9ff;
  font-size: 1rem;
}

.schedule-times span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Almoço addon */
.price-addon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #636e72;
  font-size: 0.875rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #f1f3f4;
  margin-top: auto;
}

.price-addon i { color: #fdcb6e; }

/* ── NOVO: nota almoço externo inline ── */
.lunch-external-note {
  color: #6c5ce7;
  font-weight: 700;
}

/* ─── Mobile CTA ─────────────────────────────────────────────── */
.mobile-cta {
  display: none;
}

.btn-mobile-enroll {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
}

.btn-mobile-enroll:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

/* ─── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .sidebar-sticky {
    position: static;
  }

  .cta-card {
    display: none;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .activity-content {
    padding-bottom: 6rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .activity-hero {
    padding: 2rem 0;
    margin-bottom: 1rem;
  }

  .hero-title h1 {
    font-size: 1.75rem;
  }

  .meta-grid {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pricing-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .availability-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .price-schedule {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .activity-hero {
    padding: 1.5rem 0;
  }

  .hero-title h1 {
    font-size: 1.5rem;
  }

  .info-card,
  .stats-card,
  .content-card {
    padding: 1rem;
  }

  .pricing-section-full {
    border-radius: 12px;
  }

  .price-option-card {
    padding: 1rem;
  }
}
