/* TDR Hotel Vacancy Calendar Styles
 * @version 1.4.0
 * Generated: 2025-08-20T06:43:30.763Z
 * iPhone8対応レスポンシブデザイン (375px)
 */

.tdr-vacancy-calendar {
  max-width: 1200px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

.tdr-vacancy-calendar h4 {
  margin: 0px;
}

.tdr-vacancy-calendar table {
  margin-bottom: 0px;
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.calendar-header h3 {
  color: #333;
  margin-bottom: 10px;
}


.calendar-container {
  display: grid;
  gap: 8px;
}

.calendar-month {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0px;
  margin-left: -14px;
  margin-right: -6px;
  background: #fff;
}

.month-title {
  text-align: center;
  color: #333;
  font-size: 18px;
}

.fullcalendar {
  min-height: 300px;
}

/* ランクアイコンコンテナ - 単一アイコン表示 */
.rank-icons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0px;
  min-height: 100%;
  padding: 0px 1px;
  margin-top: 22px;
  /* 日付と重ならないようマージン設定 */
}

/* ランクアイコン - PC60px、オリジナル縦横比維持 */
.rank-icon {
  width: 68px;
  height: auto;
  /* 縦横比維持 */
  cursor: pointer;
  border-radius: 2px;
  display: block;
  opacity: 1 !important;
  /* 半透明問題修正 */
}

/* 空室率表示 */
.vacancy-rate {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-top: -2px;
  color: #666;
}

/* 背景イベントの半透明問題修正 */
.fc-bg-event {
  opacity: 1 !important;
}

.fc-bg-event .rank-icons-container {
  opacity: 1 !important;
}

.rank-icon:hover {
  opacity: 0.8 !important;
  transform: scale(1.1);
}

/* モーダルダイアログ */
.vacancy-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.dialog-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  width: 600px;
  height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.dialog-header h4 {
  margin: 0;
  color: #333;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
}

.dialog-close:hover {
  color: #333;
}

.dialog-body {
  padding: 20px;
}

.room-info-row {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.room-info-row:last-child {
  border-bottom: none;
}

.room-main-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.room-details {
  flex: 1;
}

.room-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.room-name a {
  color: #0066cc;
  text-decoration: none;
}

.room-name a:hover {
  text-decoration: underline;
}

.room-group {
  color: #666;
  font-size: 14px;
}

.vacancy-info {
  font-size: 18px;
  font-weight: bold;
  color: #0066cc;
  min-width: 45px;
  text-align: center;
}

.price-info {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 5px;
}

/* 対象外日の背景色 */
.fc-day-other {
  background-color: #f5f5f5 !important;
}

.fc-day-past {
  background-color: #f0f0f0 !important;
}

.fc-day-future.fc-day-other {
  background-color: #f5f5f5 !important;
}

/* モーダルダイアログのタブ機能 */
.dialog-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  background: #f8f9fa;
}

.dialog-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  background: #f8f9fa;
  border-bottom: 3px solid transparent;
  min-width: 80px;
}

.dialog-tab.active {
  border-bottom-color: #0066cc;
}

.dialog-tab:hover {
  background: #e9ecef;
}

.dialog-tab.active:hover {
  background: #e9ecef;
}

.dialog-tab-icon {
  width: 68px;
  height: auto;
  margin-bottom: 5px;
}

.dialog-tab-label {
  font-size: 12px;
  font-weight: bold;
}

/* ランク別背景色 */
.rank-background-sss {
  background-color: #ffffe6;
}

.rank-background-ss {
  background-color: #e9e9e9;
}

.rank-background-s {
  background-color: #fff0d1;
}

.rank-background-a {
  background-color: #fcffff;
}

.rank-background-b {
  background-color: #deffde;
}

.rank-background-c {
  background-color: #e7e9e8;
}

/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* ローディングスピナー */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* iPhone8対応 (375px以下) - スマホ38px */
@media (max-width: 767px) {
  .tdr-vacancy-calendar {
    margin: 5px;
  }


  .rank-icon {
    width: 48px;
    height: auto;
    /* 縦横比維持 */
  }

  .rank-icons-container {
    margin-top: 21px;
    /* スマホ用マージン調整 */
  }

  .calendar-container {
    gap: 20px;
  }

  .calendar-month {
    padding: 0px;
  }

  .month-title {
    font-size: 16px;
  }

  .dialog-content {
    width: 90%;
    height: 85vh;
  }

  .dialog-header {
    padding: 10px 15px;
  }

  .dialog-body {
    padding: 8px;
  }

  .room-info-row {
    padding: 10px 0;
  }

  .hotel-icon {
    width: 28px;
    height: 28px;
  }

  .vacancy-info {
    font-size: 16px;
    min-width: 30px;
  }

  .price-info {
    font-size: 12px;
  }

  .dialog-tab {
    padding: 2px;
    border-bottom: 3px solid transparent;
    min-width: 56px;
  }

  .dialog-tab-icon {
    width: 48px;
    margin-bottom: 5px;
  }

  .room-main-info {
    gap: 4px;
  }

}