/**
 * 酒店活动日历样式
 * 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.has-major-event {
  background: linear-gradient(135deg, #fed7d7 0%, #fefcbf 100%);
  border: 2px solid #e53e3e;
}

.calendar-day.has-major-event::after {
  content: '★';
  position: absolute;
  bottom: 2px;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: #e53e3e;
  font-size: 10px;
}

.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: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 20px;
  max-height: 520px;
  overflow-y: auto;
}

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

/* 时间段区域 */
.time-slot-section {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
}

.time-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #cbd5e0;
}

.time-slot-label {
  font-size: 14px;
  font-weight: bold;
  color: #2d3748;
}

/* 3列酒店网格 */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* 酒店单元格 */
.hotel-cell {
  position: relative;
  min-height: 180px;
}

.hotel-cell-content {
  background: #fff;
  border-radius: 8px;
  padding: 12px 10px;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  box-sizing: border-box;
}

.hotel-cell.has-event .hotel-cell-content {
  border-color: var(--hotel-color, #2c5282);
  border-left-width: 4px;
}

.hotel-cell.has-event .hotel-cell-content:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hotel-cell-content.no-event {
  background: #f7fafc;
  border-style: dashed;
  cursor: default;
}

.hotel-label {
  font-size: 11px;
  font-weight: bold;
  color: #718096;
  margin-bottom: 5px;
  text-align: center;
}

.hotel-cell.has-event .hotel-label {
  color: var(--hotel-color, #2c5282);
}

.event-preview {
  text-align: center;
}

/* 活动图片样式 */
.event-image {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.hotel-cell.has-event .hotel-cell-content:hover .event-image img {
  transform: scale(1.05);
}

.event-mini-title {
  font-size: 12px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

/* 活动描述样式 */
.event-description {
  font-size: 10px;
  color: #718096;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  padding: 4px 0;
}

.no-event-text {
  font-size: 16px;
  color: #cbd5e0;
}

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

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

/* ====== 大型联合活动卡片样式 ====== */
.major-event-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f0fff4 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-bottom: 20px;
  border: 2px solid #feb2b2;
}

.major-event-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.major-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.major-event-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
  white-space: nowrap;
}

.major-event-content {
  padding: 18px;
}

.major-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.major-event-title {
  font-size: 20px;
  font-weight: bold;
  color: #2d3748;
  margin: 0;
  background: linear-gradient(135deg, #e53e3e, #d69e2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.major-event-time {
  background: #fef3c7;
  color: #92400e;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.major-event-desc {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.major-event-section {
  margin-bottom: 14px;
}

.major-event-section h4 {
  font-size: 14px;
  color: #2d3748;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 2px dashed #e2e8f0;
}

.major-event-contents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.content-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-text strong {
  font-size: 13px;
  color: #2d3748;
}

.content-text span {
  font-size: 12px;
  color: #718096;
}

.special-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.special-tag {
  background: linear-gradient(135deg, #faf089 0%, #f6e05e 100%);
  color: #744210;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.major-event-hotels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  margin-top: 14px;
}

.major-event-hotels > span:first-child {
  font-size: 12px;
  color: #718096;
}

.hotel-tag {
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

/* ====== 响应式设计 - 手机端 ====== */
@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;
  }

  .hotels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .major-event-image {
    height: 120px;
  }

  .major-event-title {
    font-size: 16px;
  }

  .major-event-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .major-event-badge {
    font-size: 11px;
    padding: 6px 16px;
  }
}
