/* FB #1776598915167: 予約モーダル */

.reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.reservation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  animation: reservationModalFade 0.15s ease-out;
}

.reservation-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: reservationModalSlideIn 0.18s ease-out;
}

@keyframes reservationModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes reservationModalSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.reservation-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}
.reservation-modal__close:hover {
  color: #333;
}

.reservation-modal__title {
  margin: 0 0 16px;
  font-family: var(--font-serif, serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  padding-right: 24px;
}

.reservation-modal__coi-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: rgba(190, 60, 60, 0.06);
  border: 1px solid rgba(190, 60, 60, 0.28);
  border-radius: 8px;
}
.reservation-modal__coi-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: #be3c3c;
  color: #fff;
  border-radius: 3px;
  white-space: nowrap;
}
.reservation-modal__coi-text {
  font-size: 12px;
  color: var(--color-text-secondary, #555);
  line-height: 1.45;
}

.reservation-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reservation-modal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border-light, #e5e5e5);
  background: #ffffff;
  color: var(--color-text, #222);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.reservation-modal__item:hover {
  border-color: #2c5f4f;
  background: #fcfaf5;
}

.reservation-modal__item--official {
  background: #2c5f4f;
  border-color: #2c5f4f;
  color: #ffffff;
  font-weight: 500;
}
.reservation-modal__item--official:hover {
  background: #244d40;
  border-color: #244d40;
  color: #ffffff;
}

.reservation-modal__item-label {
  flex: 1;
  min-width: 0;
}

.reservation-modal__tag {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(44, 95, 79, 0.08);
  color: #2c5f4f;
  border: 1px solid rgba(44, 95, 79, 0.2);
}

.reservation-modal__item--official .reservation-modal__tag {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.reservation-modal__item-arrow {
  flex-shrink: 0;
  font-size: 14px;
  opacity: 0.6;
}
.reservation-modal__item:hover .reservation-modal__item-arrow {
  opacity: 1;
}

.reservation-modal__note {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--color-text-muted, #888);
  line-height: 1.55;
}

/* 共通の予約ボタン（施設詳細・コースカード共用） */
.reservation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #2c5f4f;
  border: 1px solid #2c5f4f;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.reservation-btn:hover {
  background: #2c5f4f;
  color: #ffffff;
}
.reservation-btn--card {
  padding: 7px 14px;
  font-size: 12px;
}

/* 施設詳細ページ サイドバー内でコースCTAとの間隔を確保 */
.spot-cta .reservation-btn {
  margin-top: 12px;
  width: 100%;
}

/* コースカード内の予約ボタン配置 */
.spot-card__reserve {
  margin-top: 10px;
}

