/* TPH Booking — Frontend CSS */

/* ── カレンダーラッパー ──────────────────────────────────────────────────── */
.tph-calendar-wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* ── フィルターボタン ────────────────────────────────────────────────────── */
.tph-calendar-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tph-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 2px solid #e0d5c5;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tph-filter-btn.is-active,
.tph-filter-btn:hover {
  border-color: #c8a96e;
  background: #fffbf3;
  color: #c8a96e;
}

.tph-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── FullCalendar カスタム ───────────────────────────────────────────────── */
#tph-fullcalendar {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tph-fc-event {
  display: flex;
  flex-direction: column;
  padding: 2px 4px;
  font-size: 0.78rem;
  line-height: 1.3;
}

.tph-fc-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tph-fc-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 10px;
  margin-top: 1px;
  font-weight: 700;
}

.tph-fc-reserved { background: rgba(255,255,255,0.3); color: #fff; }
.tph-fc-full     { background: rgba(0,0,0,0.2); color: #fff; }
.tph-fc-seats    { background: rgba(255,255,255,0.25); color: #fff; }

/* ── モーダル ────────────────────────────────────────────────────────────── */
.tph-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tph-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.tph-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 1;
}

.tph-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.tph-modal-header { margin-bottom: 1rem; }

.tph-modal-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tph-type-basic   { background: #c8a96e; }
.tph-type-choreo  { background: #7b9e87; }
.tph-type-culture { background: #e07060; }
.tph-type-event   { background: #6b8cba; }

.tph-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2d2d2d;
  margin: 0;
}

.tph-modal-info {
  background: #f9f6f0;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.tph-modal-row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  color: #444;
}

.tph-modal-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tph-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tph-modal-reserved {
  color: #7b9e87;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.tph-modal-full,
.tph-modal-warning {
  color: #e07060;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* ── ボタン ──────────────────────────────────────────────────────────────── */
.tph-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.tph-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tph-btn-primary {
  background: #c8a96e;
  color: #fff;
}
.tph-btn-primary:hover:not(:disabled) {
  background: #b8945a;
  transform: translateY(-1px);
}

.tph-btn-outline {
  background: transparent;
  color: #c8a96e;
  border: 2px solid #c8a96e;
}
.tph-btn-outline:hover {
  background: #fffbf3;
}

/* ── マイ予約 ────────────────────────────────────────────────────────────── */
.tph-my-bookings { max-width: 700px; }

.tph-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #c8a96e;
  padding-bottom: 0.4rem;
  margin: 1.5rem 0 1rem;
}

.tph-booking-card {
  background: #fff;
  border: 1px solid #e0d5c5;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tph-booking-card.tph-past {
  background: #f9f9f9;
  opacity: 0.8;
}

.tph-booking-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
}

.tph-booking-type {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
  display: inline-block;
  width: fit-content;
}

.tph-booking-date { font-size: 0.85rem; color: #666; }
.tph-booking-title { font-weight: 700; flex: 1; }

.tph-btn-cancel {
  padding: 0.3rem 0.8rem;
  border: 1px solid #e07060;
  border-radius: 6px;
  background: transparent;
  color: #e07060;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.tph-btn-cancel:hover { background: #fff0ee; }

.tph-booking-status { font-size: 0.8rem; color: #888; }
.tph-status-checked_in { color: #7b9e87; font-weight: 700; }
.tph-status-cancelled  { color: #ccc; }
.tph-status-no_show    { color: #e07060; }

.tph-empty { color: #888; font-size: 0.9rem; }
.tph-loading { text-align: center; padding: 2rem; color: #888; }

/* ── まとめて予約：選択状態 ─────────────────────────────────────────────── */
.tph-fc-selected {
  outline: 3px solid #0A3D5C !important;
  outline-offset: -2px;
  border-radius: 4px;
}

.tph-fc-badge.tph-fc-checked {
  background: #0A3D5C;
  color: #fff;
}

/* ── まとめて予約カートバー ─────────────────────────────────────────────── */
#tph-booking-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  background: #0A3D5C;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.tph-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.tph-cart-label {
  font-size: 1rem;
}

.tph-cart-actions {
  display: flex;
  gap: 0.75rem;
}

.tph-cart-btn-book {
  padding: 0.55rem 1.4rem;
  background: #C4883A;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.tph-cart-btn-book:hover { background: #d49940; }
.tph-cart-btn-book:disabled { background: #888; cursor: not-allowed; }

.tph-cart-btn-clear {
  padding: 0.55rem 1rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tph-cart-btn-clear:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

#tph-cart-progress {
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── 管理画面 ────────────────────────────────────────────────────────────── */
.tph-admin-wrap .tph-admin-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
