#day-schedule-container:empty {
  display: none;
}

/* ---------------- Day Card ---------------- */
.day-schedule-card {
  /* Reserve space for the absolute meta chips */
  --meta-reserve: 40px;          /* vertical height to clear the chips */
  --meta-inline-reserve: 260px;  /* horizontal space at right for the chips */

  position: relative;            /* anchor for absolute children */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;

  /* keep content away from chips area (top + right) */
  padding-top: calc(20px + var(--meta-reserve));
  padding-right: calc(20px + var(--meta-inline-reserve));
  padding-bottom: 20px;
  padding-left: 20px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0.6;
  visibility: var(--card-visibility, hidden); /* Default to hidden */
  pointer-events: auto;
}

/* -------- Meta chips INSIDE day card (top-right) -------- */
.day-schedule-card .schedule-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

/* Order them right-to-left visually (rightmost first) */
.day-schedule-card .schedule-language-card { order: 3; }
.day-schedule-card .schedule-price-card   { order: 2; }
.day-schedule-card .schedule-spots-card   { order: 1; }

/* Base chip look */
.day-schedule-card .schedule-language-card,
.day-schedule-card .schedule-price-card,
.day-schedule-card .schedule-spots-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;      /* pill */
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Optional tiny icon bubble if present */
.day-schedule-card .schedule-language-card .icon,
.day-schedule-card .schedule-price-card .icon,
.day-schedule-card .schedule-spots-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  font-size: 11px;
}

/* Per-chip accents */
.day-schedule-card .schedule-language-card {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}
.day-schedule-card .schedule-price-card {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}
.day-schedule-card .schedule-spots-card {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* ---------------- Title and text ---------------- */
.day-schedule-card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #2980b9;
}

.day-schedule-card ul, .info-card p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #34495e;
}

.day-schedule-card ul {
  list-style: none;
  padding: 0;
}

.day-schedule-card li {
  margin-bottom: 10px;
  background-color: white;
  color: black;
  pointer-events: auto;
}

/* Hover effect for cards */
.day-schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Selected/Unselected */
.selected-schedule {
  border: 2px solid #2D8ACF;
  background-color: #A7D3F4 !important;
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.unselected-schedule {
  border: 2px solid transparent;
  opacity: 0.6;
}

/* Selected itinerary item */
.schedule-card li.selected { /* (if shared list items are used) */
  background-color: #4CAF50;
  color: white;
}
.day-schedule-card li.selected:hover {
  background-color: #45a049;
}

/* Inactive state */
.day-schedule-card.inactive {
  opacity: 0.6;
  pointer-events: auto;
}

/* ---------------- Responsive for Mobile ---------------- */
@media (max-width: 768px) {
  .day-schedule-card {
    /* On mobile the chips flow in normal document flow, so remove reserves */
    --meta-reserve: 0px;
    --meta-inline-reserve: 0px;

    width: 100% !important;
    padding: 16px !important;
    margin-bottom: 20px;
    font-size: 1em;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .day-schedule-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  .day-schedule-card ul, .info-card p {
    font-size: 1em;
    line-height: 1.4;
  }

  .day-schedule-card li {
    font-size: 0.95em;
    padding: 8px;
    margin-bottom: 8px;
  }

  /* Chips go above title on mobile */
  .day-schedule-card .schedule-meta {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .day-schedule-card .schedule-language-card,
  .day-schedule-card .schedule-price-card,
  .day-schedule-card .schedule-spots-card {
    font-size: 0.95rem;
  }
}
