/* ============================================================
   favorites.css — My Favorites Page (/profile/favorites)
   Namespace prefix: boh-favorites
   ============================================================ */

.boh-favorites {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boh-favorites__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boh-favorites__card {
  background-color: var(--boh-color-surface);
  border-radius: var(--boh-radius-card);
  padding: 0.75rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--boh-shadow-card);
  align-items: center;
}

.boh-favorites__img-btn {
  width: 5rem;
  height: 5rem;
  border-radius: var(--boh-radius-chip);
  overflow: hidden;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

.boh-favorites__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-favorites__info-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.boh-favorites__name {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-favorites__location {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-favorites__rating-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 13px;
}

.boh-favorites__star {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--boh-color-gold);
  fill: var(--boh-color-gold);
}

.boh-favorites__rating-val {
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
}

.boh-favorites__rating-count {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
}

.boh-favorites__remove-btn {
  align-self: flex-start;
  padding: 0.25rem;
  color: var(--boh-color-danger);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.boh-favorites__remove-btn:active {
  transform: scale(0.9);
}

.boh-favorites__remove-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--boh-color-danger);
}

/* Empty State */
.boh-favorites__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  text-align: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.boh-favorites__empty-icon-box {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--boh-color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--boh-shadow-card);
}

.boh-favorites__empty-icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
  color: color-mix(in srgb, var(--boh-color-muted) 40%, transparent);
}

.boh-favorites__empty-title {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 16px;
  margin: 0 0 0.25rem 0;
}

.boh-favorites__empty-desc {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 16px;
  margin: 0;
}

.boh-favorites__empty-svg {
  width: 1.75rem;
  height: 1.75rem;
  color: color-mix(in srgb, var(--boh-color-muted) 40%, transparent);
}

/* Header styling */
.boh-favorites__header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen);
  flex-shrink: 0;
  background-color: var(--boh-color-bg);
  position: relative;
  z-index: 10;
}

.boh-favorites__header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boh-favorites__header-back {
  padding: 0.5rem;
  margin-left: -0.5rem;
  color: var(--boh-color-primary);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.boh-favorites__header-back svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-favorites__header-title {
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: var(--boh-font-size-navtitle);
  margin: 0;
}

.boh-favorites__main {
  flex: 1;
  overflow-y: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.boh-favorites__main::-webkit-scrollbar {
  display: none;
}

.boh-favorites__main {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* ── SPA client-render states ──────────────────────────────────────────────
   Added for BOH.SPA: data arrives asynchronously, so these pages need
   loading / error / empty placeholders the server-rendered BOH.Web did not. */
.boh-favorites__loading,
.boh-favorites__error {
  font-size: 13px;
  color: var(--boh-color-primary);
  padding: 1rem 0;
  text-align: center;
}

.boh-favorites__error {
  color: #A8584E;
}
