#timelineCalendar {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.timeline-grid {
  display: grid;
  border-top: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
  width: max-content;
  background: var(--surface);
}

.timeline-month-corner,
.timeline-month-cell {
  height: 32px;
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  background: var(--surface);
}

.timeline-month-corner {
  position: sticky;
  left: 0;
  z-index: 40;
}

.timeline-month-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  background: #f7f3ff;
}

.timeline-corner {
  position: sticky;
  left: 0;
  z-index: 30;
  background: var(--surface);
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.timeline-day-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  text-align: center;
  font-size: 12px;
  padding-top: 6px;
  background: var(--surface);
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.timeline-day-header.today-column,
.timeline-cell.today-column {
  position: relative;
  background: var(--today);
}

.timeline-cell.today-column::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(116, 87, 232, 0.30);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}


.timeline-property,
.timeline-cell {
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.timeline-property {
  position: sticky;
  left: 0;
  z-index: 20;
  min-height: 56px;
  padding: 14px;
  font-weight: 800;
  color: white;
  border-right: 2px solid var(--grid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(60, 48px);
  min-height: 56px;
}


.timeline-booking-bar {
  position: absolute;
  z-index: 2;
  top: 12px;
  height: 32px;
  border-radius: 999px;
  padding: 7px 28px 0 12px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: auto;
}

.timeline-stay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.clean-dot {
  position: absolute;
  top: 38px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--surface);
  cursor: pointer;
  z-index: 100;
  padding: 0;
  pointer-events: auto;
  transform: translate(50%, -90%);
}

.clean-pending { background: var(--green); }
.clean-complete { background: var(--blue); }

.clean-complete::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.timeline-cell {
  min-height: 56px;
  background: var(--surface);
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.timeline-row-track {
  position: relative;
  display: grid;
}


.timeline-empty { padding: 16px; }

@media (max-width: 720px) {
  #timelineCalendar {
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 0 0 10px;
  }

  .timeline-grid {
    border-left: 0;
  }

  .timeline-property {
    min-width: 0;
    padding: 10px 7px;
    font-size: 12px;
    line-height: 1.2;
  }

  .timeline-day-header {
    height: 48px;
    font-size: 11px;
  }

  .timeline-row-track,
  .timeline-cell,
  .timeline-property {
    min-height: 52px;
  }

  .timeline-booking-bar {
    top: 10px;
    height: 30px;
    font-size: 11px;
    padding: 7px 24px 0 9px;
  }

  .clean-dot {
    top: 35px;
    width: 22px;
    height: 22px;
  }
}