@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&display=swap');

/* Bachelor Trip UI kit — class-based, framework-agnostic. Every value is a token. */
.bt, .bt * { box-sizing: border-box; }
.bt { font-family: var(--font-sans); color: var(--ink); font-size: 15px; line-height: 22px; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); font-family: var(--font-sans); color: var(--ink); }
.bt :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.bt-btn { white-space: nowrap; text-transform: none; letter-spacing: 0; }
.bt-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.bt-btn:hover { background: var(--surface-sunken); }
.bt-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bt-btn--primary:hover { background: var(--accent); filter: brightness(1.06); }
.bt-btn--ghost { border-color: transparent; background: transparent; color: var(--ink-muted); }
.bt-btn--sm { min-height: 36px; padding: 0 var(--space-3); font-size: 14px; border-radius: var(--radius-sm); }
.bt-btn--icon { width: 44px; padding: 0; }

/* ---------- Card ---------- */
.bt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); }
.bt-card__label { font: 700 12px/16px var(--font-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.bt-card + .bt-card { margin-top: var(--space-4); }
@media (min-width: 640px) { .bt-card { padding: var(--space-6); } }

/* ---------- Chip / badge ---------- */
.bt-chip { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); font: 600 12px/1 var(--font-sans); white-space: nowrap; }
.bt-chip--you { background: var(--accent-soft); color: var(--accent-ink); }
.bt-chip--groom { background: var(--highlight); color: var(--on-highlight); }

/* ---------- Avatar ---------- */
.bt-avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; font: 700 calc(var(--size) * .38)/1 var(--font-sans); border: 2px solid var(--surface); }
.bt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-avatar--groom { box-shadow: 0 0 0 2px var(--highlight); }
.bt-avatar-stack { display: inline-flex; }
.bt-avatar-stack .bt-avatar { --size: 26px; margin-left: calc(var(--space-1) * -2); }
.bt-avatar-stack .bt-avatar:first-child { margin-left: 0; }
.bt-avatar-stack__more { font: 600 12px/26px var(--font-sans); color: var(--ink-muted); padding-left: var(--space-1); }

/* ---------- Day tabs ---------- */
.bt-daytabs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 calc(var(--space-4) * -1); padding-inline: var(--space-4); scroll-snap-type: x mandatory; }
.bt-daytabs::-webkit-scrollbar { display: none; }
.bt-daytab { scroll-snap-align: start; flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--font-sans); }
.bt-daytab__dow { font: 700 12px/16px var(--font-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-muted); }
.bt-daytab__num { font: 800 20px/24px var(--font-display); }
.bt-daytab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bt-daytab[aria-selected="true"] .bt-daytab__dow { color: var(--on-accent); }
@media (min-width: 640px) { .bt-daytabs { margin: 0; padding-inline: 2px; } }

/* ---------- Schedule ---------- */
.bt-schedule { list-style: none; margin: 0; padding: 0; display: grid; }
.bt-sched-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.bt-sched-row:first-child { border-top: 0; padding-top: 0; }
.bt-sched-row__time { font: 700 13px/22px var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.bt-sched-row__title { font: 650 17px/24px var(--font-sans); margin: 0; }
.bt-sched-row__meta { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); margin: 2px 0 0; }
.bt-sched-row__meta a { color: var(--accent); }

/* ---------- Vote control ---------- */
.bt-vote { display: inline-flex; align-items: center; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 2px; flex: 0 0 auto; }
.bt-vote__btn { width: 40px; height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.bt-vote__btn svg { width: 20px; height: 20px; }
.bt-vote__btn:hover { background: var(--surface); }
.bt-vote__btn--up[aria-pressed="true"] { background: var(--surface); color: var(--vote-up); }
.bt-vote__btn--down[aria-pressed="true"] { background: var(--surface); color: var(--vote-down); }
.bt-vote__score { min-width: 36px; text-align: center; font: 800 18px/22px var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.bt-vote__score--pos { color: var(--vote-up); }
.bt-vote__score--neg { color: var(--vote-down); }
.bt-vote--stacked { flex-direction: column; }

/* ---------- Proposal (votable idea) ---------- */
.bt-proposal { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.bt-proposal:first-child { border-top: 0; }
.bt-proposal__body { flex: 1; min-width: 0; }
.bt-proposal__title { font: 650 17px/24px var(--font-sans); margin: 0; }
.bt-proposal__meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-1); font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.bt-proposal--winner .bt-proposal__title::after { content: "Top pick"; margin-left: var(--space-2); vertical-align: 2px; display: inline-block; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--highlight); color: var(--on-highlight); font: 700 11px/1 var(--font-sans); letter-spacing: .4px; text-transform: uppercase; }

/* ---------- Profile card ---------- */
.bt-crew { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .bt-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 1024px) { .bt-crew { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.bt-profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; text-align: left; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.bt-profile__photo { aspect-ratio: 1 / 1; background: var(--surface-sunken); display: grid; place-items: center; color: var(--ink-muted); font: 800 40px/1 var(--font-display); position: relative; }
.bt-profile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.bt-profile__photo .bt-chip { position: absolute; left: var(--space-2); top: var(--space-2); }
.bt-profile__body { padding: var(--space-3); display: grid; gap: 2px; }
.bt-profile__name { font: 650 17px/24px var(--font-sans); margin: 0; }
.bt-profile__nick { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); margin: 0; }
.bt-profile--groom { border-color: var(--highlight); box-shadow: 0 0 0 2px var(--highlight), var(--shadow-card); }

/* ---------- Profile detail (sheet content) ---------- */
.bt-profile-detail { display: grid; gap: var(--space-4); }
.bt-profile-detail__head { display: flex; gap: var(--space-4); align-items: center; }
.bt-profile-detail__head .bt-avatar { --size: 88px; }
.bt-facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; font-size: 15px; }
.bt-facts dt { color: var(--ink-muted); font: 400 13px/22px var(--font-sans); }
.bt-facts dd { margin: 0; }

/* ---------- Photo drop / upload ---------- */
.bt-drop { position: relative; display: grid; place-items: center; gap: var(--space-2); text-align: center; min-height: 140px; padding: var(--space-4); border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted); cursor: pointer; font: 400 13px/18px var(--font-sans); overflow: hidden; }
.bt-drop > svg { width: 32px; height: 32px; }
.bt-drop strong { color: var(--ink); font: 650 15px/22px var(--font-sans); display: block; }
.bt-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bt-drop--over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.bt-drop--round { width: 120px; height: 120px; min-height: 0; border-radius: var(--radius-pill); padding: var(--space-2); }
.bt-drop__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Background gallery ---------- */
.bt-bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 640px) { .bt-bg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bt-bg-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; background: var(--surface-sunken); padding: 0; cursor: pointer; }
.bt-bg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-bg-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--surface) inset; }
.bt-bg-tile[aria-pressed="true"]::after { content: "Active"; position: absolute; left: var(--space-1); bottom: var(--space-1); padding: 3px 8px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--font-sans); }

/* ---------- Scene: background photo behind the app ---------- */
.bt-scene { position: relative; isolation: isolate; min-height: 100%; background: var(--bg); }
.bt-scene__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.bt-scene--has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.bt-scene--has-img .bt-hero__title, .bt-scene--has-img .bt-hero__sub { color: var(--on-scrim); }

/* ---------- Hero (trip header) ---------- */
.bt-hero { padding: var(--space-6) 0 var(--space-4); }
.bt-hero__sub { font: 700 12px/16px var(--font-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-1); }
.bt-hero__title { font: 800 32px/36px var(--font-display); letter-spacing: -.5px; margin: 0; }
@media (min-width: 1024px) { .bt-hero__title { font-size: 44px; line-height: 48px; } }

/* ---------- Grocery ---------- */
.bt-grocery { list-style: none; margin: 0; padding: 0; }
.bt-grocery__group { font: 700 12px/16px var(--font-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-muted); padding: var(--space-4) 0 var(--space-2); }
.bt-grocery__group:first-child { padding-top: 0; }
.bt-grocery-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2); margin: 0 calc(var(--space-2) * -1); border-radius: var(--radius-md); }
.bt-grocery-item:hover { background: var(--surface-sunken); }
.bt-check { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: 0 0 auto; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.bt-check:checked { background: var(--accent); border-color: var(--accent); }
.bt-check:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.bt-grocery-item__body { flex: 1; min-width: 0; }
.bt-grocery-item__name { font: 650 15px/22px var(--font-sans); margin: 0; }
.bt-grocery-item__meta { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); margin: 0; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.bt-grocery-item__qty { font: 700 13px/1 var(--font-sans); color: var(--ink); background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 6px 10px; font-variant-numeric: tabular-nums; }
.bt-grocery-item--done .bt-grocery-item__name { text-decoration: line-through; color: var(--ink-muted); }
.bt-grocery-add { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.bt-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 15px/22px var(--font-sans); }
.bt-input::placeholder { color: var(--ink-muted); }
.bt-progress { height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.bt-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* ---------- App shell: bottom nav on phones, sidebar on desktop ---------- */
.bt-app { min-height: 100vh; }
.bt-app__main { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4) calc(96px + env(safe-area-inset-bottom, 0px)); }
.bt-nav { position: fixed; z-index: 10; left: var(--space-3); right: var(--space-3); bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-around; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: var(--space-1); }
.bt-nav__item { flex: 1; display: grid; justify-items: center; gap: 2px; padding: var(--space-2) 0; border-radius: var(--radius-md); color: var(--ink-muted); text-decoration: none; font: 600 11px/14px var(--font-sans); background: none; border: 0; cursor: pointer; }
.bt-nav__item svg { width: 22px; height: 22px; }
.bt-nav__item[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.bt-nav__brand { display: none; }
.bt-nav--static { position: static; }
@media (min-width: 1024px) {
  .bt-app { display: grid; grid-template-columns: 240px 1fr; }
  .bt-nav { position: sticky; top: 0; left: auto; right: auto; bottom: auto; height: 100vh; flex-direction: column; justify-content: flex-start; gap: var(--space-1); border-radius: 0; border-width: 0 1px 0 0; box-shadow: none; padding: var(--space-6) var(--space-3); }
  .bt-nav__brand { display: block; font: 800 20px/24px var(--font-display); padding: 0 var(--space-3) var(--space-6); }
  .bt-nav__item { flex: 0 0 auto; display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); font-size: 15px; }
  .bt-app__main { padding: 0 var(--space-6) var(--space-8); width: 100%; }
  .bt-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
  .bt-split > .bt-card + .bt-card { margin-top: 0; }
}

/* ---------- Empty state ---------- */
.bt-empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--ink-muted); font: 400 15px/22px var(--font-sans); }
.bt-empty strong { display: block; color: var(--ink); font: 700 17px/24px var(--font-sans); margin-bottom: var(--space-1); }

/* Force the phone bar at any width (previews, embedded phone mockups) */
.bt-nav.bt-nav--bar { position: static; top: auto; height: auto; flex-direction: row; justify-content: space-around; gap: 0; border-width: 1px; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: var(--space-1); }
.bt-nav.bt-nav--bar .bt-nav__brand { display: none; }
.bt-nav.bt-nav--bar .bt-nav__item { flex: 1; display: grid; justify-items: center; gap: 2px; padding: var(--space-2) 0; font-size: 11px; }
