/* =========================
   Calendar wrapper
========================= */
.tbo-calendar {
  max-width: 1000px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #d9e2ef;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

/* =========================
   Header (Month + Route)
========================= */
.tbo-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f6fb;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: bold;
  border-bottom: 1px solid #d9e2ef;
}

.tbo-cal-header a {
  color: #0b5ed7;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   Weekday row
========================= */
.tbo-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.tbo-weekdays .weekday {
  background: #0b5ed7;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: bold;
  border-right: 1px solid #0a4fc2;
}

.tbo-weekdays .weekday:last-child {
  border-right: none;
}

/* =========================
   Calendar grid
========================= */
.tbo-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* Empty cells */
.tbo-cal-empty {
  border: 1px solid #e5e5e5;
  min-height: 85px;
  background: #fafafa;
}

/* Day cell */
.tbo-cal-day {
  border: 1px solid #e5e5e5;
  min-height: 85px;
  padding: 6px 8px;
  cursor: pointer;
  background: #fff;
  position: relative;
  overflow: visible;
}

/* Hover (yellow like TBO) */
.tbo-cal-day:hover {
  background: #fff4cc;
}

/* Lowest fare (green highlight) */
.tbo-cal-day.lowest {
  background: #e8fff1;
  border-color: #28a745;
}

/* Selected day (blue outline) */
.tbo-cal-day.selected {
  outline: 2px solid #0b5ed7;
  background: #eef6ff;
  z-index: 2;
}

/* =========================
   Day content
========================= */
.day-top,
.day-num {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.day-fare {
  font-weight: bold;
  color: #0b5ed7;
  margin-top: 8px;
  font-size: 14px;
}

.day-airline {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* =========================
   Hover popup
========================= */
#tbo-hover-popup {
  position: absolute;
  background: #fff;
  border: 2px solid #f0a500;
  padding: 10px 12px;
  font-size: 12px;
  display: none;
  z-index: 9999;
  min-width: 190px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

#tbo-hover-popup strong {
  color: #000;
}

.popup-fare {
  font-weight: bold;
  margin: 6px 0;
  color: #0b5ed7;
}
