/*
 * Happening Near You - on top of bangalore.css (its tokens, top bar, buttons and hand-off sheet).
 * Our own look only: an emoji tile on a colour, never the organiser's poster or photos.
 */
[data-colour='teal'] { --k: var(--teal); --k-ink: var(--teal-ink); --k-soft: var(--teal-soft); }
[data-colour='red']  { --k: var(--red);  --k-ink: var(--red-ink);  --k-soft: var(--red-soft); }
[data-colour='blue'] { --k: var(--blue); --k-ink: var(--blue-ink); --k-soft: var(--blue-soft); }

main {
  padding: 0 16px 40px;
}
.bx-top,
.bx-tagline {
  padding-left: 16px;
  padding-right: 16px;
}

.hx-eyebrow {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--sub);
}
.hx-eyebrow + h1 { margin-top: 4px; }
.hx-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 800;
}
.hx-lead {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--sub);
}

/* City chips: filter only, nothing remembered. */
.hx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hx-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hx-chip[aria-pressed='true'] {
  background: var(--teal-ink);
  border-color: var(--teal-ink);
  color: #fff;
}
.hx-chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hx-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.hx-card {
  display: grid;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(15 34 54 / 5%), 0 6px 18px rgb(15 34 54 / 6%);
  overflow: hidden;
  min-width: 0;
}
.hx-card[hidden],
.hx-empty[hidden],
.hx-badge[hidden] {
  display: none;
}
/* The photo banner: our own stock photo, cropped to 2:1. The card's overflow rounds its top corners. */
.hx-media {
  position: relative;
}
.hx-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 30%;
  background: var(--surface-2);
}
/* No photo: the emoji on the item's colour, in a shorter band. */
.hx-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 1;
  background: var(--k-soft);
  font-size: 44px;
  line-height: 1;
}
.hx-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hx-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgb(15 34 54 / 25%);
}
.hx-badge--soon {
  background: var(--red-ink);
  color: #fff;
}
.hx-body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  min-width: 0;
}
.hx-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}
.hx-price {
  justify-self: start;
  margin: -2px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 700;
}
/* Detail lines: every icon in one fixed-width column, the text aligned beside it. */
.hx-facts {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sub);
  overflow-wrap: anywhere;
}
.hx-ico {
  text-align: center;
}
.hx-facts b {
  color: var(--ink);
}
.hx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
.hx-btn--line {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.hx-btn--go {
  background: var(--teal);
  color: #fff;
}
.hx-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.hx-note {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--sub);
}
.hx-empty {
  margin: 8px 2px;
  font-size: 15px;
  color: var(--sub);
}
.hx-listed {
  margin: 20px 2px 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 640px) {
  main {
    padding: 28px 28px 32px;
  }
  .hx-hero h1 {
    margin-top: 0;
  }
}

/* The details that open in the card when the organiser has no page of their own. */
.hx-more {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2, #f2f5f6);
}
.hx-more[hidden] {
  display: none;
}
.hx-more ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.hx-more a {
  color: inherit;
  font-weight: 600;
}

/* An item's own page (/happening/<id>/): the card, opened up. */
.hx-back {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--k-ink, inherit);
  text-decoration: none;
}
.hx-card--detail h1.hx-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.hx-detail-lines {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2, #f2f5f6);
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.45;
}
.hx-contact {
  margin-top: 12px;
}
.hx-contact a {
  color: inherit;
  font-weight: 600;
}
.hx-actions--single {
  grid-template-columns: 1fr;
}

/* Friends-first invitation: one clear primary action, details secondary. */
.hx-actions { grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
.hx-btn--go { min-height: 52px; font-size: 16px; box-shadow: 0 4px 12px rgb(0 128 136 / 16%); }
.hx-btn--line { min-height: 34px; border: 0; background: transparent; color: var(--sub); font-size: 13px; font-weight: 600; }
.hx-plan-hint { margin: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hx-hero { padding-bottom: 8px; }
.hx-lead { font-size: 18px; margin-top: 10px; color: var(--ink); }
.hx-hero .hx-note { margin-top: 12px; }

.hx-field-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:3px; }
.hx-facts { gap:12px; }

.hx-facts .hx-summary-row { grid-template-columns:1fr; }

.hx-summary { min-width:0; }
.hx-summary > summary { cursor:pointer; color:var(--teal-ink); font-size:14px; font-weight:700; list-style:none; width:fit-content; padding:7px 0; text-decoration:underline; text-underline-offset:3px; }
.hx-summary > summary::-webkit-details-marker { display:none; }
.hx-summary > summary::after { content:' ＋'; display:inline-block; text-decoration:none; }
.hx-summary[open] > summary::after { content:' −'; }
.hx-summary > summary:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
.hx-summary-content { padding:4px 0 8px; line-height:1.55; }
.hx-summary-content p { margin:0 0 10px; }
.hx-summary-content ul { padding-left:20px; display:grid; gap:8px; }
.hx-summary-content a { color:var(--teal-ink); }

/* Expanded summaries use normal lists, rather than the outer icon-row grid. */
.hx-facts .hx-summary-content li {
  display: list-item;
  font: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}
.hx-summary-content ul { margin: 8px 0 12px; }

.hx-illustration { position:absolute;right:8px;bottom:8px;font-size:10px;line-height:1.4;padding:3px 7px;border-radius:6px;color:white;background:rgb(0 0 0 / 50%); }

/* No chips when everything listed is in one city. */
.hx-chips:not(:has(.hx-chip)) {
  display: none;
}
