/* ============================================================
   Booking SaaS — Portal Styles
   ============================================================ */

:root {
  --bs-brand: #0d9488;
}

/* ── Page layout ── */
.bs-portal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.bs-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
}

/* ── Tenant discovery grid ── */
.bs-tenant-card {
  transition: box-shadow .15s, transform .15s;
  cursor: pointer;
}
.bs-tenant-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.12) !important;
  transform: translateY(-2px);
}

.bs-tenant-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.bs-tenant-logo-lg {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.bs-tenant-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}
.bs-tenant-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.bs-category-badge {
  background: #e2e8f0;
  color: #475569;
  font-weight: 500;
}

/* ── Step progress bar ── */
.bs-step-bar {
  display: flex;
  align-items: center;
}
.bs-step {
  display: flex;
  align-items: center;
  gap: .35rem;
  opacity: .4;
  transition: opacity .2s;
}
.bs-step.active,
.bs-step.completed {
  opacity: 1;
}
.bs-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.bs-step.active .bs-step-num {
  background: var(--bs-brand);
  color: #fff;
}
.bs-step.completed .bs-step-num {
  background: #10b981;
  color: #fff;
}
.bs-step-label {
  font-size: .8rem;
  font-weight: 500;
  color: #475569;
}
.bs-step.active .bs-step-label {
  color: var(--bs-brand);
}
.bs-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 .25rem;
}

/* ── Service / staff cards (step 1 & 2) ── */
.bs-service-card,
.bs-staff-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.bs-service-card:hover,
.bs-staff-card:hover {
  border-color: var(--bs-brand);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.bs-service-card.selected,
.bs-staff-card.selected {
  border-color: var(--bs-brand);
  background: color-mix(in srgb, var(--bs-brand) 8%, #fff);
}
.bs-service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-brand);
}
.bs-service-duration {
  font-size: .8rem;
  color: #94a3b8;
}

/* ── Slot grid ── */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}
.bs-slot {
  padding: .4rem .5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bs-slot:hover {
  border-color: var(--bs-brand);
}
.bs-slot.selected {
  border-color: var(--bs-brand);
  background: var(--bs-brand);
  color: #fff;
}

/* ── Confirm summary card ── */
.bs-confirm-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
}
.bs-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .9rem;
}
.bs-confirm-row:last-child {
  border-bottom: none;
}
.bs-confirm-label {
  color: #64748b;
}
.bs-confirm-value {
  font-weight: 500;
}

/* ── Booking list rows ── */
.bs-booking-row {
  border-left: 4px solid transparent;
}
.bs-booking-row:has(.bs-badge-confirmed) { border-left-color: #10b981; }
.bs-booking-row:has(.bs-badge-pending)   { border-left-color: #f59e0b; }
.bs-booking-row:has(.bs-badge-cancelled) { border-left-color: #ef4444; }
.bs-booking-row:has(.bs-badge-completed) { border-left-color: #64748b; }

/* ── Detail card ── */
.bs-detail-card { border-radius: 12px; overflow: hidden; }
.bs-detail-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
  margin-bottom: .15rem;
}
.bs-detail-value {
  font-size: .95rem;
  color: #1e293b;
}

/* ── Status badges ── */
.bs-status-badge {
  display: inline-block;
  padding: .2em .65em;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.bs-badge-pending   { background: #fef3c7; color: #92400e; }
.bs-badge-confirmed { background: #d1fae5; color: #065f46; }
.bs-badge-completed { background: #e0e7ff; color: #3730a3; }
.bs-badge-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Filter bar ── */
.bs-filter-bar { }

/* ── Tenant header on booking page ── */
.bs-tenant-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

/* ── Booking tenant page full-width ── */
.bs-booking-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}
