/* ── Early-bird banner ─────────────────────────────────────────────────────── */
#early-bird-banner {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
#early-bird-banner strong { font-weight: 700; }
#banner-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
}
#banner-close:hover { opacity: 1; }

/* ── Page section ──────────────────────────────────────────────────────────── */
.calendario-section {
  padding: 40px 0 60px;
}
.calendario-header {
  text-align: center;
  margin-bottom: 32px;
}
.calendario-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.calendario-header p {
  font-size: 15px;
  color: #666;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Month navigation ──────────────────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.cal-nav h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  min-width: 200px;
  text-align: center;
  text-transform: capitalize;
  color: #FDB913;
}
.cal-nav-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: #eee; }
.cal-nav-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Legend ────────────────────────────────────────────────────────────────── */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 12px;
  color: #555;
  margin-bottom: 20px;
}
.legend-item { display: flex; align-items: center; gap: 5px; color: #FDB913; }
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-dot.green  { background: #00c9b8; }
.legend-dot.yellow { background: #E91E8C; }
.legend-dot.red    { background: red; }
.legend-dot.gray   { background: #ccc; }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
}
.cal-grid-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal-empty { /* spacer for first-day alignment */ }

/* ── Day cell ──────────────────────────────────────────────────────────────── */
.cal-day {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px 6px 6px;
  min-height: 80px;
  position: relative;
  background: #fafafa;
  font-size: 12px;
  transition: box-shadow 0.15s, transform 0.1s;
}
.cal-day.bookable {
  cursor: pointer;
}
.cal-day.bookable:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-1px);
  z-index: 10;
}
.cal-day.past {
  opacity: 0.38;
  cursor: default;
  background: #f0f0f0;
}
.cal-day.status-available  { border-color: #00c9b8; background: #f0fffe; }
.cal-day.status-limited    { border-color: #E91E8C; background: #fff0f7; }
.cal-day.status-full       { border-color: red;     background: #fff5f5; }
.cal-day.status-unknown    { border-color: #e0e0e0; background: #fafafa; }

.cal-day-num {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  line-height: 1;
}
.cal-day.past .cal-day-num { color: #aaa; }

/* ── AM/PM chips ───────────────────────────────────────────────────────────── */
.cal-slots {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.cal-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
.chip-available { background: #00c9b8; color: #fff; }
.chip-limited   { background: #E91E8C; color: #fff; }
.chip-full      { background: #ccc;    color: #888; }
.chip-unknown   { background: #ddd;    color: #aaa; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.cal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.badge-earlybird {
  font-size: 9px;
  font-weight: 700;
  background: #e67e22;
  color: #fff;
  padding: 1px 5px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}


/* ── Loading state ─────────────────────────────────────────────────────────── */
#cal-loading {
  text-align: center;
  padding: 32px;
  color: #999;
  font-size: 14px;
}

/* ── Mobile adjustments ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cal-grid { gap: 3px; }
  .cal-day  { min-height: 60px; padding: 6px 4px 4px; }
  .cal-day-num { font-size: 12px; }
  .cal-chip { font-size: 9px; padding: 1px 4px; }
  .badge-earlybird { font-size: 8px; padding: 1px 4px; }
  .cal-nav h3 { font-size: 16px; min-width: 160px; }
  .cal-popover { display: none !important; } /* skip popovers on mobile, tap opens modal */
}
