/**
 * 酒店活动日历样式
 * Hotel Event Calendar Styles
 */

/* 日历组件容器 */
.hotel-calendar-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Yu Gothic", "游ゴシック", sans-serif;
}

/* 日历标题 */
.hotel-calendar-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

/* 日历容器 - Flexbox 布局 */
.hotel-calendar-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* ====== 日历区域 ====== */
.calendar-section {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav-btn {
  background: #2c5282;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.calendar-nav-btn:hover {
  background: #1a365d;
}

.calendar-month-year {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* 星期标题 */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.weekday {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  padding: 10px 0;
}

.weekday.sun { color: #e53e3e; }
.weekday.sat { color: #3182ce; }

/* 日期格子 */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  background: #f7fafc;
}

.calendar-day:hover {
  background: #bee3f8;
}

.calendar-day.selected {
  background: #2c5282;
  color: #fff;
}

/* 有活动的日期标记 */
.calendar-day.has-event {
  position: relative;
  font-weight: bold;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 6px;
  height: 6px;
  background: #ed8936;
  border-radius: 50%;
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day.sun { color: #e53e3e; }
.calendar-day.sat { color: #3182ce; }
.calendar-day.selected.sun,
.calendar-day.selected.sat { color: #fff; }

/* ====== 活动展示区域 ====== */
.events-section {
  flex: 1.5;
  min-width: 350px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.events-date-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2c5282;
}

/* 活动卡片 */
.hotel-event-card {
  background: #f7fafc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #2c5282;
  transition: transform 0.2s;
}

.hotel-event-card:hover {
  transform: translateX(5px);
}

/* 四家酒店不同颜色 */
.hotel-event-card:nth-child(1) { border-left-color: #e53e3e; }
.hotel-event-card:nth-child(2) { border-left-color: #38a169; }
.hotel-event-card:nth-child(3) { border-left-color: #d69e2e; }
.hotel-event-card:nth-child(4) { border-left-color: #805ad5; }

.hotel-name {
  font-size: 14px;
  font-weight: bold;
  color: #2c5282;
  margin-bottom: 8px;
}

.event-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.event-time {
  font-size: 12px;
  color: #718096;
}

.event-description {
  font-size: 13px;
  color: #4a5568;
  margin-top: 8px;
  line-height: 1.6;
}

/* 空状态提示 */
.no-events {
  text-align: center;
  color: #a0aec0;
  padding: 40px 20px;
}

/* 加载中提示 */
.loading-message {
  text-align: center;
  color: #718096;
  padding: 20px;
}

/* ====== 响应式设计 - 手机端 ====== */
@media (max-width: 768px) {
  .hotel-calendar-container {
    flex-direction: column;
  }

  .calendar-section,
  .events-section {
    min-width: 100%;
  }

  .hotel-calendar-title {
    font-size: 22px;
  }

  .hotel-calendar-wrapper {
    padding: 20px 10px;
  }
}
