#rv-availability-calendar { padding: 10px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.month {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.month h4 {
  text-align: center;
  margin-bottom: 8px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  padding: 6px;
}
.day.empty {
  visibility: hidden;
  cursor: default;
}

/* Availability states */
.day.available { background: #b5f3b0; }
.day.booked-both { background: #ff4d4d; color: #fff; }
.day.booked-site1 { background: #ffcccb; }
.day.booked-site2 { background: #add8e6; }

/* Legend & heading styles */
.rv-container { margin: 20px 0; }
.rv-heading { text-align: center; font-size: 18px; margin-bottom: 12px; }
.rv-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  margin-bottom: 12px;
}
.rv-legend span {
  display: flex;
  align-items: center;
}
.rv-legend .legend-box {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 3px;
}
.rv-legend .available    { background: #b5f3b0; }
.rv-legend .booked-site1 { background: #ffcccb; }
.rv-legend .booked-site2 { background: #add8e6; }
.rv-legend .booked-both  { background: #ff4d4d; }

/* Site-1 available only: left half green, right half light red */
.day.split-site1 {
  position: relative;
  background: #add8e6; /* light red base */
}
.day.split-site1::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #b5f3b0; /* green */
  clip-path: polygon(0 0, 50% 0, 0 100%);
}

/* Site-2 available only: left half green, right half light blue */
.day.split-site2 {
  position: relative;
  background: #ffcccb; /* light blue base */
}
.day.split-site2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #b5f3b0; /* green */
  clip-path: polygon(0 0, 50% 0, 0 100%);
}

/* Modal styles */
.rv-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.rv-modal {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  max-width: 90%;
}
.rv-modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.rv-modal button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.rv-modal button:hover { opacity: 0.9; }