body {
  background-color: #f7f5f2;
}

.navbar-brand i {
  color: #e08a2c;
}

.card {
  border-radius: 0.75rem;
}

.card-img-top {
  height: 160px;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Calendar: CSS Grid with 1 corner cell + N day-header cells on row 1,
   and a time gutter + N day columns on row 2. Events are absolutely
   positioned within their day column by exact start/duration (so
   multi-hour events span correctly) and by column/numCols (so
   overlapping events sit side by side instead of stacking). */
.calendar-scroll {
  max-height: 70vh;
  overflow: auto;
}

.calendar-grid {
  display: grid;
  grid-auto-rows: auto;
  min-width: 100%;
  width: max-content;
}

.calendar-corner,
.calendar-day-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #fff;
  padding: 0.4rem;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}

.calendar-corner {
  left: 0;
  z-index: 3;
}

.calendar-gutter {
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: #fff;
  border-right: 1px solid #dee2e6;
}

.calendar-hour-label {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-0.5em);
  font-size: 0.75rem;
  color: #6c757d;
  padding-right: 0.4rem;
  text-align: right;
  white-space: nowrap;
}

.calendar-day-col {
  position: relative;
  border-left: 1px solid #eee;
}

.calendar-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #f0f0f0;
}

.calendar-event {
  position: absolute;
  overflow: hidden;
  color: #212529;
  line-height: 1.2;
  padding: 0.25rem;
  display: block;
  font: inherit;
  cursor: pointer;
}

.calendar-event:hover {
  filter: brightness(0.95);
  z-index: 1;
}

/* Background + left color-bar per activity category, so overlapping/
   side-by-side events are easy to tell apart at a glance — matches the
   Bootstrap badge color used for that category elsewhere. */
.calendar-event-free      { background-color: #cff4fc; border: 1px solid #9eeaf9; border-left: 4px solid #0dcaf0; }
.calendar-event-excursion { background-color: #d1e7dd; border: 1px solid #a3cfbb; border-left: 4px solid #198754; }
.calendar-event-event     { background-color: #cfe2ff; border: 1px solid #9ec5fe; border-left: 4px solid #0d6efd; }
.calendar-event-party     { background-color: #fff3cd; border: 1px solid #ffe69c; border-left: 4px solid #ffc107; }

[id^="activity-"] {
  scroll-margin-top: 1rem;
}

@media print {
  .navbar, .no-print {
    display: none !important;
  }
}
