/* Member pages (Views/Members). Builds on room-details.css for .booking-panel, .review-input-icon
   and the ID card upload boxes. */

.member-auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.member-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(62, 90, 58, 0.1);
  color: var(--hs-green);
  font-size: 1.5rem;
}

.member-btn {
  border-radius: 50rem;
  background-color: var(--hs-green);
  border-color: var(--hs-green);
  color: #fff;
  font-weight: 600;
}

.member-btn:hover,
.member-btn:focus {
  background-color: var(--hs-green-dark);
  border-color: var(--hs-green-dark);
  color: #fff;
}

.member-auth-switch {
  margin: 1.25rem 0 0;
  color: var(--hs-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.member-auth-switch a,
.member-link {
  color: var(--hs-green);
  font-weight: 700;
}

.member-help {
  margin-top: 0.75rem;
  color: var(--hs-text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.member-section {
  margin-bottom: 1.25rem;
  height: auto;
}

.member-section h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.member-section h2 i {
  color: var(--hs-green);
}

.member-greeting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.member-greeting h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.member-greeting p {
  margin: 0.15rem 0 0;
  color: var(--hs-text-muted);
}

/* The details wrap inside their own column, so status, price and link always stay on the right
   instead of dropping under a long line on a narrow screen. */
.member-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hs-border);
}

.member-booking:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.member-booking > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-booking strong {
  display: block;
}

.member-booking small {
  color: var(--hs-text-muted);
}

.member-booking-side {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 0.25rem;
  max-width: 50%;
  text-align: right;
}

.member-status {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 50rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.member-status.is-pending { background: #fff4de; color: var(--hs-amber-dark); }
.member-status.is-paid { background: #e5f5ea; color: var(--hs-green-dark); }
.member-status.is-closed { background: #f1eeea; color: var(--hs-text-muted); }

.member-empty {
  color: var(--hs-text-muted);
  margin: 0;
}

.member-id-card-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border: 1px solid var(--hs-border);
  border-radius: 0.65rem;
}

/* Member perks (Account page, #uu-dai). */
.loyalty-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.loyalty-summary strong,
.loyalty-summary span {
  display: block;
}

.loyalty-summary span {
  color: var(--hs-text-muted);
  font-size: 0.86rem;
}

.loyalty-summary .loyalty-count {
  color: var(--hs-green);
  font-size: 1.1rem;
  font-weight: 700;
}

.loyalty-progress {
  height: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 50rem;
  background: #f1eeea;
  overflow: hidden;
}

.loyalty-progress div {
  height: 100%;
  border-radius: 50rem;
  background: var(--hs-green);
}

.loyalty-milestones {
  margin: 1rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

.loyalty-milestones li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--hs-border);
}

.loyalty-milestones li:first-child {
  border-top: 0;
}

.loyalty-milestones li > span:nth-child(2) {
  flex-grow: 1;
}

.loyalty-milestones strong,
.loyalty-milestones small {
  display: block;
}

.loyalty-milestones small {
  color: var(--hs-text-muted);
}

.loyalty-milestones .bi-check-circle-fill {
  color: var(--hs-green);
}

.loyalty-step {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f1eeea;
  color: var(--hs-text-muted);
  font-weight: 700;
}

.loyalty-milestones li.is-reached .loyalty-step {
  background: var(--hs-green);
  color: #fff;
}

.loyalty-subtitle {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Booking history pages (Account page, #lich-su), in the site's green instead of Bootstrap blue. */
.member-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hs-border);
  color: var(--hs-text-muted);
  font-size: 0.82rem;
}

.member-pagination .pagination {
  --bs-pagination-color: var(--hs-green);
  --bs-pagination-hover-color: var(--hs-green-dark);
  --bs-pagination-focus-color: var(--hs-green-dark);
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(62, 90, 58, 0.2);
  --bs-pagination-active-bg: var(--hs-green);
  --bs-pagination-active-border-color: var(--hs-green);
}
