/* ============================================================
   offers.css — Offers List Page (/offers)
   Namespace prefix: boh-offers
   All values use design tokens from app.css (:root)
   ============================================================ */

/* --- LAYOUT OVERRIDE: hide shell chrome, own full-height layout --- */
html:has(.boh-offers),
body:has(.boh-offers) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-offers) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(.boh-offers) .boh-shell__header {
  display: none;
}

body:has(.boh-offers) .boh-shell__main {
  flex: 1;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

/* --- ROOT CONTAINER --- */
.boh-offers {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--boh-color-bg);
  font-family: var(--boh-font-sans);
  position: relative;
}

/* --- HEADER --- */
.boh-offers__header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen);
  background-color: var(--boh-color-bg);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.boh-offers__header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 2.5rem;
}

.boh-offers__back-btn {
  display: none;
  position: absolute;
  left: 0;
  padding: 0.5rem;
  margin-left: -0.5rem;
  color: var(--boh-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.boh-offers__back-btn:active {
  transform: scale(0.95);
}

.boh-offers__back-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-offers__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);
  line-height: var(--boh-line-height-navtitle);
  margin: 0;
}

/* --- SCROLLABLE MAIN --- */
.boh-offers__main {
  flex: 1;
  overflow-y: auto;
  padding-left: var(--boh-space-screen);
  padding-right: var(--boh-space-screen);
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#offers-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#offers-content[hidden] {
  display: none !important;
}

#offers-content .boh-offers__featured + section {
  margin-top: 0.25rem;
}

/* --- TAB STRIP --- */
.boh-offers__tabs {
  min-height: 56px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.boh-offers__tab {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border-radius: var(--boh-radius-chip);
  font-size: 13px;
  font-weight: var(--boh-font-weight-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.boh-offers__tab--active {
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
}

.boh-offers__tab--inactive {
  background-color: var(--boh-color-surface);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
}

.boh-offers__tab-count {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: var(--boh-font-weight-700);
  padding: 0 0.3rem;
  background: color-mix(in srgb, var(--boh-color-surface) 22%, transparent);
  color: inherit;
}

.boh-offers__tab--inactive .boh-offers__tab-count {
  background: color-mix(in srgb, var(--boh-color-primary) 8%, transparent);
}

/* --- FEATURED PROMO HERO CARD --- */
.boh-offers__featured {
  width: 100%;
  height: 180px;
  border-radius: var(--boh-radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--boh-shadow-card);
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  flex-shrink: 0;
}

.boh-offers__featured:active {
  transform: scale(0.98);
}

.boh-offers__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boh-offers__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.boh-offers__featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--boh-color-gold);
  color: var(--boh-color-surface);
  font-size: var(--boh-font-size-eyebrow);
  font-weight: var(--boh-font-weight-700);
  letter-spacing: var(--boh-letter-spacing-eyebrow);
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: var(--boh-radius-chip);
}

.boh-offers__featured-content {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: var(--boh-color-surface);
}

.boh-offers__featured-heading {
  font-family: var(--boh-font-serif);
  font-size: var(--boh-font-size-heading);
  font-weight: var(--boh-font-weight-600);
  line-height: var(--boh-line-height-heading);
  margin: 0 0 0.25rem 0;
  color: var(--boh-color-surface);
}

.boh-offers__featured-sub {
  font-size: var(--boh-font-size-body);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* --- SECTION LABEL --- */
.boh-offers__section-label {
  font-size: var(--boh-font-size-eyebrow);
  font-weight: var(--boh-font-weight-700);
  letter-spacing: var(--boh-letter-spacing-eyebrow);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  margin: 0 0 0.5rem 0;
}

/* --- OFFER LIST WITHIN A SECTION --- */
.boh-offers__section-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- OFFER ROW CARD --- */
.boh-offers__offer-card {
  width: 100%;
  text-align: left;
  background-color: var(--boh-color-surface);
  border-radius: var(--boh-radius-card);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--boh-shadow-card);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.boh-offers__offer-card--claimed {
  border-color: color-mix(in srgb, var(--boh-color-accent) 22%, transparent);
  background: color-mix(in srgb, var(--boh-color-accent) 2%, var(--boh-color-surface));
}

.boh-offers__offer-card:active {
  transform: scale(0.98);
}

.boh-offers__offer-thumb-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: var(--boh-radius-chip);
  overflow: hidden;
  flex-shrink: 0;
}

.boh-offers__offer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-offers__offer-info {
  flex: 1;
  min-width: 0;
}

.boh-offers__offer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.boh-offers__offer-badge {
  display: block;
  font-size: var(--boh-font-size-eyebrow);
  font-weight: var(--boh-font-weight-700);
  letter-spacing: var(--boh-letter-spacing-eyebrow);
  text-transform: uppercase;
  color: var(--boh-color-accent);
  margin-bottom: 0.125rem;
}

/* Andochine Resort section uses gold badge color to match React source */
.boh-offers__offer-badge--gold {
  color: var(--boh-color-gold);
}

.boh-offers__offer-title {
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: var(--boh-font-size-label);
  line-height: var(--boh-line-height-label);
  margin: 0 0 0.125rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-offers__offer-subtitle {
  font-size: var(--boh-font-size-body);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-offers__offer-state {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: var(--boh-font-weight-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.boh-offers__offer-state--claimed {
  color: var(--boh-color-accent);
  background: color-mix(in srgb, var(--boh-color-accent) 12%, transparent);
}

.boh-offers__offer-state--used {
  color: #55656a;
  background: rgba(85, 101, 106, 0.12);
}

.boh-offers__offer-state--expired {
  color: #9c5f2f;
  background: rgba(156, 95, 47, 0.12);
}

.boh-offers__offer-state--cancelled {
  color: #a8584e;
  background: rgba(168, 88, 78, 0.14);
}

.boh-offers__offer-code {
  margin: 0.25rem 0 0;
  font-size: 12px;
  font-weight: var(--boh-font-weight-600);
  color: color-mix(in srgb, var(--boh-color-primary) 76%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-offers__offer-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: color-mix(in srgb, var(--boh-color-muted) 30%, transparent);
  flex-shrink: 0;
}
