/* WI-891 — Hero card style (magazine layout), refined to match beta.yourbreezes.com/account.
 *
 * A hero card is a bento-widget with an extra `.hero-card` class. It opts
 * into the beta-site "stay-card" visual vocabulary: Bitter (display) serif
 * for primary anchors, gray-100 hairline borders, 10-12px radii, soft chrome.
 *
 * Token references (from pages/breezes-site/src/app.css lines 13-90):
 *   --font-display      = 'Bitter', Georgia, serif         (line 18)
 *   --color-primary     = rgba(1, 45, 83, 1)               (line 52) == ops --brand-navy
 *   --color-teal        = rgba(0, 178, 207, 1)             (line 62) == ops --brand-aqua
 *   --color-coral       = #ff7f79                          (line 60) == ops --brand-coral
 *   --color-text-muted  = rgba(82, 82, 82, 1)              (line 79)
 *   --color-gray-100    = rgba(242, 242, 242, 1)           (line 82)
 *
 * Beta-site reference blocks:
 *   .hero            (account/+page.svelte line 2053)  — full-bleed dark navy band
 *   .stay-card       (account/+page.svelte line 2393)  — outer card chrome
 *   .activity-item   (account/+page.svelte line 2295)  — inner row treatment
 *   .panel-title     (account/+page.svelte line 2340)  — Bitter serif title
 *   .item-badge      (account/+page.svelte line 2359)  — pill badges
 */

/* ============ FONT FAMILIES ============ */
/* WI-891 — Bitter serif (mirrors var(--font-display) on the beta site)
 * (pages/breezes-site/src/app.css line 18). Loaded via the same Google Fonts
 * link used by the rest of ops-admin (see layout.js top-of-head injection). */

/* ============ OUTER CARD CHROME ============ */
/* Matches beta .stay-card (line 2393-2401): white background, 10-12px radius,
 * gray-100 hairline border, no heavy shadow. */

.bento-widget.hero-card {
  background: #ffffff;
  border: 1px solid rgba(242, 242, 242, 1);   /* == beta --color-gray-100 */
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);  /* subtle, NOT a heavy drop */
}

body[data-theme="dark"] .bento-widget.hero-card {
  background: var(--bento-card-bg);
  border-color: var(--bento-card-border);
}

/* ============ HERO CARD HEADER ============ */
/* Matches beta .panel-title (line 2340-2346): Bitter serif, 22px, weight 600,
 * --color-primary (== --brand-navy). */

.hero-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid rgba(242, 242, 242, 1);  /* gray-100 hairline */
}

.hero-card__brand-logo {
  max-height: 32px;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

/* WI-896 — Rewards card brand lockup is the title itself (no text title
 * alongside). Size it generously so the script + sunburst read clearly.
 * Mockup target: ~180px wide; height auto.
 * WI-899 — left-align in header (was centered). Logo is now navy and sits
 * flush against the card's existing inner padding on the left edge. */
.hero-card.hero-card--rewards .hero-card__brand-logo {
  max-width: 200px;
  max-height: 48px;
  width: 180px;
  height: auto;
  margin: 4px 0 2px;
  display: block;
}
.hero-card.hero-card--rewards .hero-card__header {
  justify-content: flex-start;
}
.hero-card.hero-card--rewards .hero-card__title-block {
  flex: 0 0 auto;
}

.hero-card__title-block {
  flex: 1;
  min-width: 0;
}

.hero-card__title {
  margin: 0;
  font-family: 'Bitter', Georgia, serif;   /* WI-891 — display serif */
  font-size: 22px;
  font-weight: 600;
  color: #012d53;   /* == --brand-navy == beta --color-primary */
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card__count {
  font-family: 'Bitter', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #012d53;
  letter-spacing: 0.01em;
}

.hero-card__summary {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(82, 82, 82, 1);   /* beta --color-text-muted */
  letter-spacing: 0.02em;
}

.hero-card__summary .summary-sep {
  margin: 0 8px;
  color: rgba(138, 138, 138, 1);   /* beta --color-text-light */
}

/* ============ BODY ROWS — beta .stay-card / .activity-item treatment ============ */
/* Each row is a self-contained white block: 10px radius, gray-100 border,
 * 12-16px padding. Date / name / amount anchor uses Bitter; metadata is
 * smaller and muted. Compare to beta .stay-card (line 2393) and
 * .activity-item (line 2295). */

.hero-card .bento-widget-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(242, 242, 242, 1);  /* gray-100 — matches .stay-card */
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-card__row:hover {
  background: rgba(0, 178, 207, 0.04);   /* mirrors beta .stay-card-action hover */
  border-color: rgba(0, 178, 207, 0.15);
}

.hero-card__row-main {
  flex: 1;
  min-width: 0;
}

.hero-card__row-primary {
  font-family: 'Bitter', Georgia, serif;   /* WI-891 — display font on anchor */
  font-size: 15px;
  font-weight: 600;
  color: #012d53;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-card__row-secondary {
  margin-top: 3px;
  font-size: 12.5px;
  color: rgba(82, 82, 82, 1);   /* beta --color-text-muted */
  letter-spacing: 0.01em;
}

.hero-card__row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
  font-size: 12px;
  color: rgba(82, 82, 82, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-card__row-meta strong {
  color: #012d53;
  font-weight: 700;
}

/* ============ WI-896 — REWARDS HERO ROW (beige tinted pills) ============ */
/* Scoped exclusively to the Rewards hero card. The other two hero cards
 * (Private Dinners, Guests In-House) keep their white outlined treatment.
 * Beige gradient mirrors beta-site .greeting-card (lines 2230-2256). */

.hero-card.hero-card--rewards .hero-card__row {
  background: linear-gradient(135deg, #f8f6f0 0%, #faf8f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  /* WI-897 — tighter vertical rhythm (was 14px 18px). Row typography also
   * stepped down one notch — see .hero-card__row-name / __row-time / __row-action. */
  padding: 10px 16px;
  align-items: center;
  gap: 16px;
}

.hero-card.hero-card--rewards .hero-card__row:hover {
  background: linear-gradient(135deg, #faf8f2 0%, #f8f6f0 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

/* WI-902 — clickable rewards rows. Scoped via [data-drawer] so non-clickable
 * rows (no person_id resolvable from CDP) keep the default beige treatment
 * without cursor or hover-overlay. Mirrors beta-site .stay-card-action:hover
 * (rgba(0,178,207,0.08) — see pages/breezes-site/src/routes/account/+page.svelte
 * lines ~2280-2295). The beige gradient base above stays intact; this layers
 * a teal tint ON TOP via background-color (not background:) so the gradient
 * survives. */
.hero-card.hero-card--rewards .hero-card__row[data-drawer] {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.hero-card.hero-card--rewards .hero-card__row[data-drawer]:hover {
  background-color: rgba(0, 178, 207, 0.08);
  border-color: rgba(0, 178, 207, 0.18);
}

.hero-card.hero-card--rewards .hero-card__row[data-drawer]:focus-visible {
  outline: 2px solid rgba(0, 178, 207, 1);
  outline-offset: 2px;
}

/* Two-column row body — solo tier chip + name on left, time + action on right.
 * All scoped under .hero-card--rewards so WI-897 changes do not bleed into the
 * Private Dinners or Guests In-House hero cards. */
.hero-card.hero-card--rewards .hero-card__row-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.hero-card.hero-card--rewards .hero-card__row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

/* WI-897 — guest name stepped down from 17px → 14px to reduce row crowding. */
.hero-card.hero-card--rewards .hero-card__row-name {
  font-family: 'Bitter', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: #012d53;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* WI-897 — timestamp 12px → 11px. */
.hero-card.hero-card--rewards .hero-card__row-time {
  font-size: 11px;
  color: rgba(82, 82, 82, 1);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* WI-897 — action text 17px → 14px; <strong> stays same size but bolder. */
.hero-card.hero-card--rewards .hero-card__row-action {
  font-family: 'Bitter', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: #012d53;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-card.hero-card--rewards .hero-card__row-action strong {
  font-weight: 700;
  color: #012d53;
}

/* ============ WI-896 — SOLO TIER CHIP ============ */
/* Single chip top-left of each Rewards row. Replaces the combined two-tone
 * RewardsBadge that paired tier + member ID. Member ID is intentionally
 * dropped from the row per the owner mockup. */

/* WI-900 — shrunk to ~12px rendered height per owner.
 * Math: 8px font * 1.0 line-height + 1px padding * 2 + 1px border * 2 = 12px.
 * (WI-899 prior: 8.5px / 2px 7px / 1.35 → ~17px rendered.)
 * Scope inherits .hero-card.hero-card--rewards via the parent row context;
 * the base selector below is shared by old non-rewards callers but the
 * Rewards card is the only surface using these chips today. */
.hero-card__tier-chip {
  display: inline-flex;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(242, 242, 242, 1);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  line-height: 1;
}

.hero-card__tier-chip--silver {
  background: linear-gradient(135deg, #e8e8e8 0%, #b9b9b9 100%);
  color: #1a1a1a;
}

.hero-card__tier-chip--bronze {
  background: linear-gradient(135deg, #e2b08a 0%, #b88358 100%);
  color: #3a1e08;
}

.hero-card__tier-chip--gold {
  background: linear-gradient(135deg, #f4d27a 0%, #c9a84c 100%);
  color: #2a1d00;
}

.hero-card__tier-chip--platinum {
  background: linear-gradient(135deg, #e8eef5 0%, #b9c7d6 100%);
  color: #16223a;
}

.hero-card__tier-chip--member {
  background: rgba(0, 178, 207, 0.85);
  color: #ffffff;
  border-color: rgba(0, 178, 207, 0.95);
}

/* ============ WI-928 — PRIVATE DINNERS HERO ROW (beige tinted pills) ============ */
/* Mirrors the WI-896 Rewards row treatment, scoped to the Private Dinners
 * hero card. Beige gradient pills, Bitter font for guest name + dinner time,
 * compact letter avatars (C/P/N) on the left, status chip on the right. */

.hero-card.hero-card--dinners .hero-card__row {
  background: linear-gradient(135deg, #f8f6f0 0%, #faf8f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 10px 16px;
  align-items: center;
  gap: 14px;
}

.hero-card.hero-card--dinners .hero-card__row:hover {
  background: linear-gradient(135deg, #faf8f2 0%, #f8f6f0 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Clickable rows (data-drawer="dinner:<id>") — mirrors WI-902 rewards rows.
 * Teal hover tint layered ON TOP via background-color so the beige gradient
 * survives. */
.hero-card.hero-card--dinners .hero-card__row[data-drawer] {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.hero-card.hero-card--dinners .hero-card__row[data-drawer]:hover {
  background-color: rgba(0, 178, 207, 0.08);
  border-color: rgba(0, 178, 207, 0.18);
}

.hero-card.hero-card--dinners .hero-card__row[data-drawer]:focus-visible {
  outline: 2px solid rgba(0, 178, 207, 1);
  outline-offset: 2px;
}

/* Compact letter avatar (smaller than the default 28px). C/P/N status letter
 * with the same color semantics as the status pill. */
.hero-card.hero-card--dinners .hero-card__avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Guest name in Bitter, stepped down to 14px to match the Rewards card. */
.hero-card.hero-card--dinners .hero-card__row-primary {
  font-family: 'Bitter', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: #012d53;
  line-height: 1.2;
}

/* Secondary line (date · time) — small, muted. */
.hero-card.hero-card--dinners .hero-card__row-secondary {
  font-size: 11px;
  color: rgba(82, 82, 82, 1);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* Right column: status chip stacked over a small timestamp. */
.hero-card.hero-card--dinners .hero-card__row-meta {
  gap: 4px;
}

/* Status chip — uses the .hero-card__tier-chip base shape with semantic
 * colors. Sized to ~12-13px rendered height to match rewards tier chips. */
.hero-card.hero-card--dinners .hero-card__status-chip {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
}

.hero-card.hero-card--dinners .hero-card__status-chip--new {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
}

.hero-card.hero-card--dinners .hero-card__status-chip--pending {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.22);
}

.hero-card.hero-card--dinners .hero-card__status-chip--confirmed {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.22);
}

.hero-card.hero-card--dinners .hero-card__status-chip--canceled {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.22);
}

/* Tiny timestamp under the status chip. */
.hero-card.hero-card--dinners .hero-card__row-time {
  font-size: 10.5px;
  color: rgba(138, 138, 138, 1);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* ============ WI-929 — GUESTS IN-HOUSE HERO ROW (beige tinted pills) ============ */
/* Scoped exclusively to the Guests In-House hero card via heroVariant:'in_house'.
 * Mirrors the WI-896/897 Rewards card treatment: beige gradient row pills,
 * Bitter font for the primary anchor, small muted secondary line. The
 * existing navy room pill on the right is preserved (hero-card__room-pill,
 * shared with the legacy widget). */

.hero-card.hero-card--in_house .hero-card__row {
  background: linear-gradient(135deg, #f8f6f0 0%, #faf8f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 12px 16px;
  align-items: center;
  gap: 16px;
}

.hero-card.hero-card--in_house .hero-card__row:hover {
  background: linear-gradient(135deg, #faf8f2 0%, #f8f6f0 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

/* WI-929 — clickable in-house rows. Scoped via [data-drawer] so any
 * future non-clickable variant keeps the default beige treatment without
 * cursor or teal hover overlay. Mirrors the WI-902 rewards-row pattern:
 * a teal tint layers ON TOP via background-color (not background:) so the
 * beige gradient base survives. */
.hero-card.hero-card--in_house .hero-card__row[data-drawer] {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.hero-card.hero-card--in_house .hero-card__row[data-drawer]:hover {
  background-color: rgba(0, 178, 207, 0.08);
  border-color: rgba(0, 178, 207, 0.18);
}

.hero-card.hero-card--in_house .hero-card__row[data-drawer]:focus-visible {
  outline: 2px solid rgba(0, 178, 207, 1);
  outline-offset: 2px;
}

/* Row body — main column (name + stay) on the left, room pill + booking
 * id stacked on the right (the existing widget shape). Bitter font on the
 * primary anchor, small muted booking id below the room pill. */
.hero-card.hero-card--in_house .hero-card__row-primary {
  font-family: 'Bitter', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #012d53;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-card.hero-card--in_house .hero-card__row-secondary {
  font-family: 'Bitter', Georgia, serif;
  font-size: 12.5px;
  color: rgba(82, 82, 82, 1);
  letter-spacing: 0.01em;
  margin-top: 3px;
  line-height: 1.2;
}

/* The booking-id chip below the navy room pill — slightly smaller and
 * mono so the room number stays the visual anchor on the right. */
.hero-card.hero-card--in_house .hero-card__booking-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: rgba(138, 138, 138, 1);
  margin-top: 4px;
}

/* ============ STATUS / TIER PILLS — beta .stay-card-badge ============ */
/* Beta line 2429-2438: 3px 10px padding, 100px radius, 11px / 700 / capitalize. */

.hero-card__avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.hero-card__avatar.status-confirmed { background: #16a34a; }
.hero-card__avatar.status-pending   { background: #d97706; }
.hero-card__avatar.status-new       { background: #2563eb; }
.hero-card__avatar.status-canceled  { background: #64748b; }

.hero-card__status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;          /* beta .stay-card-badge / .item-badge */
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.hero-card__status-pill.status-confirmed { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.hero-card__status-pill.status-pending   { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.hero-card__status-pill.status-new       { background: rgba(37, 99, 235, 0.14); color: #1d4ed8; }
.hero-card__status-pill.status-canceled  { background: rgba(100, 116, 139, 0.14); color: #475569; }

/* Room-number pill, used by Guests In-House card. */
.hero-card__room-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #012d53;          /* brand navy */
  color: #ffffff;
  font-family: 'Bitter', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-card__booking-id {
  display: block;
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: rgba(138, 138, 138, 1);   /* beta --color-text-light */
}

.hero-card__member-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(0, 178, 207, 0.12);
  color: #0078dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============ FOOTER LINK ("View all →") ============ */

.hero-card__footer-link {
  display: block;
  text-align: center;
  margin: 8px 16px 14px;
  padding: 10px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(0, 178, 207, 1);     /* beta --color-teal */
  text-decoration: none;
  border-top: 1px solid rgba(242, 242, 242, 1);
  letter-spacing: 0.02em;
}
.hero-card__footer-link:hover { text-decoration: underline; }

/* ============ SEARCH INPUT ============ */

.hero-card__search-wrap {
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(242, 242, 242, 1);
}

/* WI-949 Fix 5 — Search input is now rendered at the TOP of the hero card,
 * directly under the header and above the first body row. Owner: "below the
 * widget header, above the first row". Use a bottom hairline (instead of the
 * legacy top hairline) so the search visually separates from the rows below,
 * not from the header above. The header already has its own border-bottom. */
.hero-card__search-wrap--top {
  border-top: none;
  border-bottom: 1px solid rgba(242, 242, 242, 1);
  padding: 12px 16px;
}

/* Ensure the rows container grows to fill available space (so cards with
 * fewer rows don't collapse and the search input sits flush under the
 * header). */
.bento-widget.hero-card { display: flex; flex-direction: column; }
.bento-widget.hero-card .bento-widget-body { flex: 1 1 auto; min-height: 0; }

.hero-card__search {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(242, 242, 242, 1);
  border-radius: 8px;
  background: #ffffff;
  color: #012d53;
  font-size: 13px;
  font-family: inherit;
}

.hero-card__search:focus {
  outline: none;
  border-color: rgba(0, 178, 207, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 178, 207, 0.12);
}

/* Hide the standard bento-widget-subtitle when we're inside a hero card. */
.bento-widget.hero-card .bento-widget-header { display: none; }

/* ============ WI-931 — Cabanas widget (beige-pill cascade) ============
 * The Cabanas widget is a regular bento card (not a hero), but adopts the
 * beige-pill row language from the Rewards hero card so the Concierge
 * dashboard reads as one consistent surface. Scoped exclusively via
 * [data-widget-id="concierge_cabanas"] so other bento widgets keep their
 * default treatment. Mirrors WI-896 / WI-915 styling rules. */

.bento-widget[data-widget-id="concierge_cabanas"] .bento-widget-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__summary {
  display: flex;
  gap: 12px;
  padding: 4px 2px 6px;
  font-family: 'Bitter', Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(82, 82, 82, 1);
  letter-spacing: 0.01em;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__summary strong {
  color: #012d53;
  font-weight: 700;
  font-size: 13px;
  margin-right: 4px;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__search-wrap {
  padding: 4px 0 8px;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__search {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(242, 242, 242, 1);
  border-radius: 8px;
  background: #ffffff;
  color: #012d53;
  font-size: 12.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__search:focus {
  outline: none;
  border-color: rgba(0, 178, 207, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 178, 207, 0.12);
}

/* Beige-pill row — mirrors .hero-card.hero-card--rewards .hero-card__row
 * (linear-gradient beige base, 12px radius, hairline border, tight gap). */
.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8f6f0 0%, #faf8f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row[data-drawer] {
  cursor: pointer;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row[data-drawer]:hover {
  background-color: rgba(0, 178, 207, 0.08);
  border-color: rgba(0, 178, 207, 0.18);
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row[data-drawer]:focus-visible {
  outline: 2px solid rgba(0, 178, 207, 1);
  outline-offset: 2px;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row-main {
  flex: 1;
  min-width: 0;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row-name {
  font-family: 'Bitter', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: #012d53;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row-meta-line {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(82, 82, 82, 1);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* Status chip — mirrors .hero-card__status-pill (beta .stay-card-badge).
 * Variants picked to match the existing bento-status-pill colors so the
 * cascade reads consistently across the Concierge dashboard. */
.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__chip--confirmed {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__chip--pending {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__chip--canceled {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.bento-widget[data-widget-id="concierge_cabanas"] .widget-cabanas__chip--neutral {
  background: rgba(0, 178, 207, 0.12);
  color: #006e88;
}

/* ============ MAGAZINE GRID — 6-COL ============ */
/* Top row: three 2-col-wide hero cards. They overlap the banner via
 * negative margin-top + z-index (WI-891 Fix 3). */

.bento-grid.bento-grid--magazine {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 110px;
  position: relative;
  z-index: 2;                         /* sits above the banner */
  /* WI-949 Fix 2 — INVERTED THE MATH (was margin-top: -70px which pulled ALL
   * cards up into the banner, including Rewards + Private Dinners). Owner
   * complaint: non-anchor cards (Rewards, Dinners) sit too close to the navy
   * banner. They want PADDING below the banner for non-anchor cards.
   *
   * New approach:
   *   • Grid has POSITIVE top margin → all cards sit comfortably below banner.
   *   • Anchor card gets a large NEGATIVE margin-top that pulls IT (and only
   *     it) up to overlap the banner bottom edge by ~75px (Fix 3).
   *
   * Visual result: Rewards and Dinners read as "below the banner with air";
   * the anchor (In-House) card reads as "rising up into the banner". */
  margin-top: 24px;
  padding-top: 0;
}

/* Each hero card itself */
.bento-grid.bento-grid--magazine .bento-widget.hero-card {
  position: relative;
  z-index: 2;
}

/* WI-949 Fix 3 — Anchor card overlaps banner by ~75px.
 *
 * Math (desktop):
 *   grid margin-top   = +24px   (cards start 24px BELOW banner bottom edge)
 *   anchor margin-top = -99px   (pulls anchor up by 99px from grid top)
 *   Net overlap into banner = 99 - 24 = 75px ✓
 *
 * This produces a REAL 75px overlap from the banner's bottom edge — not the
 * prior "barely overlaps" result owner complained about.
 *
 * Slot is layout-level (defaultLayout entry), NOT widget-level. Swap the
 * slot=anchor entry to a different widget id and THAT widget gets the 75px
 * overlap. Visual differentiation: heavier shadow so anchor reads as the
 * "featured" slot. */
.bento-grid.bento-grid--magazine .bento-widget.hero-card.hero-card--slot-anchor {
  margin-top: -99px;                    /* -99 + grid +24 = -75px overlap */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
  .bento-grid.bento-grid--magazine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Tighter padding at tablet — banner is shorter, give cards 16px below. */
    margin-top: 16px;
  }
  .bento-grid.bento-grid--magazine .bento-widget.hero-card.hero-card--slot-anchor {
    /* Tablet: proportional ~63% scale → 47px overlap.
     * Math: -63 + 16 = -47px overlap. */
    margin-top: -63px;
  }
}

@media (max-width: 640px) {
  .bento-grid.bento-grid--magazine {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    /* Single-column stack — give each card breathing room below the banner. */
    margin-top: 12px;
  }
  .bento-grid.bento-grid--magazine .bento-widget.hero-card.hero-card--slot-anchor {
    /* Single-column layout — cards stack, overlap no longer meaningful. */
    margin-top: 0;
  }
}

/* ============ FULL-BLEED ROLE-CENTER BANNER ============ */
/* WI-891 Fix 1 — banner is full-bleed within the .main-content column.
 * The role-home-shell has padding: 18px 24px 40px; we break out with
 * negative horizontal margins equal to that left/right padding. The
 * banner also gets a tall vertical block so the overlap (Fix 3) has
 * enough darkness behind the rising cards. */

.role-center-banner {
  /* Beta .hero gradient — line 2054 of account/+page.svelte. */
  background: linear-gradient(135deg, #0a1628 0%, #122a4a 100%);
  color: #ffffff;

  /* Full-bleed: cancel the role-home-shell horizontal padding (24px) and
   * its top padding (18px) so the band reaches the sidebar edge. */
  margin: -18px -24px 0;
  padding: 36px 48px 80px;             /* extra bottom so cards have a runway */
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;                          /* below the hero cards (z=2) */
  min-height: 160px;
  box-sizing: border-box;
}

.role-center-banner__left {
  flex: 1;
  min-width: 0;
}

.role-center-banner__greeting {
  margin: 0;
  font-family: 'Bitter', Georgia, serif;   /* WI-891 — display serif */
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: #ffffff;
}

.role-center-banner__center-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff7f79;                       /* --brand-coral default */
}

.role-center-banner__center-label .material-icons {
  font-size: 16px;
}

/* WI-919 Fix 1 — In-banner CENTER LABEL dropdown (admin/multi-center).
 * The label becomes a clickable affordance with a small chevron. The menu
 * opens below the toggle on click, closes on outside click or Escape. */

.role-center-banner__center-label--switcher {
  position: relative;
  padding: 0;
  margin-top: 10px;
}

.role-center-banner__center-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 4px 10px 4px 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;         /* inherits the accent color from parent --center-label */
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 120ms ease, color 120ms ease;
}

.role-center-banner__center-toggle:hover,
.role-center-banner__center-toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.06);
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.role-center-banner__center-toggle .material-icons {
  font-size: 16px;
}

.role-center-banner__chevron {
  font-size: 9px;
  margin-left: 2px;
  opacity: 0.8;
  transition: transform 150ms ease;
  letter-spacing: 0;
}

.role-center-banner__center-label--switcher.is-open .role-center-banner__chevron {
  transform: rotate(180deg);
}

.role-center-banner__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #012d53;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.role-center-banner__menu[hidden] { display: none; }

.role-center-banner__menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.role-center-banner__menu-item:hover,
.role-center-banner__menu-item:focus-visible {
  background-color: rgba(0, 178, 207, 0.10);
  outline: none;
}

.role-center-banner__menu-item.is-active {
  background-color: rgba(0, 178, 207, 0.16);
  color: #006e88;
}

.role-center-banner.accent-coral .role-center-banner__center-label { color: #ff7f79; }
.role-center-banner.accent-teal  .role-center-banner__center-label { color: #00b2cf; }
.role-center-banner.accent-blue  .role-center-banner__center-label { color: #60a5fa; }
.role-center-banner.accent-gold  .role-center-banner__center-label { color: #f59e0b; }
.role-center-banner.accent-green .role-center-banner__center-label { color: #34d399; }

.role-center-banner__date {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
  white-space: nowrap;
  align-self: center;
}

/* WI-949 Fix 1 — right-side container groups the date + the small View-as pill
 * so they stack neatly under each other in the banner. */
.role-center-banner__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* WI-949 Fix 1 — Compact "View as:" pill (admin / multi-center). Sits on the
 * right side of the banner, under the date. Click opens the same dropdown
 * already wired to the CENTER LABEL on the left. Smaller than the WI-891
 * body pill (~11px text) and uses translucent white on the navy banner. */
.role-center-banner__view-as-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.role-center-banner__view-as-pill:hover,
.role-center-banner__view-as-pill:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.role-center-banner__view-as-label {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.role-center-banner__view-as-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.role-center-banner__view-as-chevron {
  font-size: 9px;
  opacity: 0.85;
  margin-left: 1px;
  transition: transform 150ms ease;
}

.role-center-banner__view-as-pill[aria-expanded="true"] .role-center-banner__view-as-chevron {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .role-center-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px 64px;
    min-height: 140px;
  }
  .role-center-banner__greeting { font-size: 24px; }
  .role-center-banner__date { text-align: left; align-self: flex-start; }
  /* WI-949 Fix 1 — pill drops below the date in the same column. */
  .role-center-banner__right {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
  }
}

/* ============ SUPERADMIN CENTER SWITCHER (WI-891 Fix 4) ============ */
/* Small pill-shaped dropdown rendered in place of the workspace tile grid
 * when an admin is viewing a specific center via ?center=<id>. */

.center-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 6px;
  padding: 6px 8px 6px 14px;
  background: #ffffff;
  border: 1px solid rgba(242, 242, 242, 1);
  border-radius: 100px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: #012d53;
}

.center-switcher__label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(82, 82, 82, 1);
}

.center-switcher__select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #012d53;
  padding: 6px 28px 6px 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23012d53'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.center-switcher__select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 178, 207, 0.25);
  border-radius: 6px;
}
