/* Venue pages v2 — scoped to .tgv2-venue so header/footer styles are untouched. */

.tgv2-venue {
  --tg-ink: #0B2338;
  --tg-muted: #5b6776;
  --tg-line: #e3e8ef;
  --tg-soft: #f5f8fc;
  --tg-blue: #1a8cff;
  --tg-blue-dark: #0a6fd6;
  --tg-grad: linear-gradient(90deg, #7ee8a2 0%, #10c8f0 100%);
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--tg-ink);
  background: #fff;
  padding: 24px 0 56px;
}
.tgv2-venue *, .tgv2-venue *::before, .tgv2-venue *::after { box-sizing: border-box; }
.tgv2-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.tgv2-venue a { color: var(--tg-blue-dark); }
.tgv2-venue h1, .tgv2-venue h2, .tgv2-venue h3, .tgv2-venue h4 { font-family: inherit; color: var(--tg-ink); margin: 0; }

/* Breadcrumbs */
.tgv2-crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--tg-muted); }
.tgv2-crumbs li + li::before { content: '›'; margin-right: 6px; color: #9aa5b1; }
.tgv2-crumbs a { color: var(--tg-muted); text-decoration: none; }
.tgv2-crumbs a:hover { color: var(--tg-blue-dark); text-decoration: underline; }

/* Hero */
.tgv2-hero { border: 1px solid var(--tg-line); border-radius: 16px; overflow: hidden; background: #fff; }
/* Hero: fixed box; the whole image is shown sharp (contain) over a blurred copy of
   itself, so small logos and tall flyers both look clean at any width. */
.tgv2-hero-media { position: relative; overflow: hidden; aspect-ratio: 3 / 1; max-height: 360px; width: 100%; background: #0b2338; }
.tgv2-hero-media::before { content: ''; position: absolute; inset: -30px; background-image: var(--tgv2-hero-bg, none); background-size: cover; background-position: center; filter: blur(28px) brightness(.65); transform: scale(1.1); }
.tgv2-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.tgv2-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tgv2-hero-media .tgv2-hero-placeholder { position: absolute; inset: 0; }
.tgv2-hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 700; color: #c5d3e3; background: linear-gradient(135deg, #eef5ff, #e6fbf2); }
.tgv2-hero-body { padding: 20px 24px 24px; text-align: left; }
.tgv2-hero h1 { font-size: 34px; line-height: 1.2; font-weight: 700; }
.tgv2-address { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--tg-muted); font-size: 15px; }
.tgv2-address svg { flex: none; margin-top: 2px; color: var(--tg-blue); }
.tgv2-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.tgv2-badge { background: #e8f3ff; color: var(--tg-blue-dark); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }

/* Buttons */
.tgv2-btn { display: inline-block; background: var(--tg-grad); color: var(--tg-ink) !important; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 8px; text-decoration: none !important; border: 0; cursor: pointer; white-space: nowrap; }
.tgv2-btn:hover { filter: brightness(0.97); }
.tgv2-btn-outline { background: #fff; border: 1px solid var(--tg-blue); color: var(--tg-blue-dark) !important; padding: 8px 16px; }
.tgv2-btn-outline:hover { background: #f0f7ff; }

/* Summary + jump nav */
.tgv2-summary { font-size: 16px; line-height: 1.6; margin: 20px 0 0; color: var(--tg-ink); }
.tgv2-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; overflow-x: auto; margin: 20px 0 0; padding: 12px 0; background: #fff; border-bottom: 1px solid var(--tg-line); }
.tgv2-jump { scrollbar-width: none; }
.tgv2-jump::-webkit-scrollbar { display: none; }
.tgv2-jump a { color: var(--tg-muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.tgv2-jump a:hover { color: var(--tg-blue-dark); }

/* Sections */
.tgv2-section { margin-top: 36px; scroll-margin-top: 64px; }
.tgv2-section > h2, .tgv2-past summary h2 { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.tgv2-empty { color: var(--tg-muted); }
.tgv2-venue .tgv2-group { font-size: 15px; font-weight: 600; color: var(--tg-muted); text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 10px; }

/* Event rows */
.tgv2-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tgv2-event { display: grid; grid-template-columns: 160px 56px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--tg-line); border-radius: 12px; padding: 12px; background: #fff; transition: box-shadow .15s; }
.tgv2-event:hover { box-shadow: 0 4px 16px rgba(11, 35, 56, .08); }
.tgv2-event-img img { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; display: block; }
.tgv2-event-date { text-align: center; line-height: 1.1; }
.tgv2-event-date .m { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--tg-blue-dark); }
.tgv2-event-date .d { display: block; font-size: 24px; font-weight: 700; }
.tgv2-event-body h4 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.tgv2-event-body h4 a { color: var(--tg-ink); text-decoration: none; }
.tgv2-event-body h4 a:hover { color: var(--tg-blue-dark); text-decoration: underline; }
.tgv2-event-meta { margin: 6px 0 0; font-size: 13px; color: var(--tg-muted); }
.tgv2-event-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tgv2-price { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.tgv2-free { display: inline-block; background: #e7f8ee; color: #0f7a3d; border: 1px solid #b7e8c9; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; line-height: 1.4; }
.tgv2-status { font-size: 12px; font-weight: 600; color: #b42318; background: #fef3f2; padding: 2px 8px; border-radius: 999px; }

.tgv2-pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 20px; font-size: 14px; color: var(--tg-muted); }
.tgv2-pager a { font-weight: 600; text-decoration: none; }

/* About */
.tgv2-description { font-size: 15px; line-height: 1.7; }
.tgv2-description img { max-width: 100%; height: auto; }
.tgv2-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; margin: 16px 0 0; border: 1px solid var(--tg-line); border-radius: 12px; overflow: hidden; }
.tgv2-details > div { padding: 12px 16px; border-bottom: 1px solid var(--tg-line); background: #fff; }
.tgv2-details dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tg-muted); font-weight: 600; }
.tgv2-details dd { margin: 4px 0 0; font-size: 15px; }
.tgv2-social { margin-top: 16px; font-size: 14px; color: var(--tg-muted); }
.tgv2-social a { margin-left: 10px; font-weight: 500; }

/* Photos */
.tgv2-photos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tgv2-photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: block; }

/* Map */
.tgv2-map { margin-top: 12px; border: 1px solid var(--tg-line); border-radius: 12px; min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--tg-soft); overflow: hidden; }
.tgv2-map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* FAQ */
.tgv2-faq details { border-bottom: 1px solid var(--tg-line); padding: 14px 0; }
.tgv2-faq summary, .tgv2-past summary { cursor: pointer; list-style: none; display: block; padding: 6px 0; }
.tgv2-faq summary::-webkit-details-marker, .tgv2-past summary::-webkit-details-marker { display: none; }
.tgv2-faq summary h3 { display: inline; font-size: 16px; font-weight: 600; }
.tgv2-faq summary::after { content: '+'; float: right; font-size: 20px; color: var(--tg-blue-dark); line-height: 1; }
.tgv2-faq details[open] summary::after { content: '−'; }
.tgv2-faq p { margin: 10px 0 0; color: var(--tg-muted); line-height: 1.6; }

/* Past events */
.tgv2-past summary h2 { display: inline; }
.tgv2-past summary::after { content: ' ▾'; color: var(--tg-muted); }
.tgv2-past ul { margin: 12px 0 0; padding-left: 18px; line-height: 2; }
.tgv2-past li span { color: var(--tg-muted); font-size: 13px; margin-left: 6px; }

/* Nearby */
.tgv2-nearby { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tgv2-nearby a { display: block; border: 1px solid var(--tg-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--tg-ink); background: #fff; }
.tgv2-nearby img, .tgv2-nearby-ph { width: 100%; height: 120px; object-fit: cover; object-position: center top; display: block; }
.tgv2-nearby-ph { display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: #c5d3e3; background: linear-gradient(135deg, #eef5ff, #e6fbf2); }
.tgv2-nearby strong { display: block; padding: 10px 12px 0; font-size: 15px; }
.tgv2-nearby span { display: block; padding: 2px 12px 12px; font-size: 13px; color: var(--tg-muted); }

/* Directory (/venues) */
.tgv2-dir-head { text-align: left; }
.tgv2-dir-head h1 { font-size: 34px; font-weight: 700; line-height: 1.2; }
.tgv2-dir-head .tgv2-summary { margin-top: 8px; color: var(--tg-muted); }
.tgv2-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 20px; padding: 16px; border: 1px solid var(--tg-line); border-radius: 12px; background: var(--tg-soft); }
.tgv2-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 500; }
.tgv2-field span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tg-muted); font-weight: 600; }
.tgv2-field input, .tgv2-field select { height: 44px; padding: 0 12px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--tg-ink); width: 100%; }
.tgv2-field input:focus, .tgv2-field select:focus { outline: 2px solid var(--tg-blue); outline-offset: 0; border-color: var(--tg-blue); }
.tgv2-filter-actions { display: flex; gap: 8px; }
.tgv2-filter-actions .tgv2-btn { height: 44px; display: inline-flex; align-items: center; }

.tgv2-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tgv2-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--tg-line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--tg-ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.tgv2-card a:hover { box-shadow: 0 6px 20px rgba(11, 35, 56, .10); transform: translateY(-2px); }
/* Card image box is always square, so every card in a row is the same height.
   The image fills the box (most venue images are square); taller or wider
   images are trimmed from the bottom / sides instead of stretching the card. */
.tgv2-card-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tg-soft); flex: none; }
.tgv2-card-media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center top; display: block; }
.tgv2-card-ph { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: #c5d3e3; background: linear-gradient(135deg, #eef5ff, #e6fbf2); }
.tgv2-card-count { z-index: 1; position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .95); color: var(--tg-blue-dark); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tgv2-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.tgv2-card-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tgv2-card-meta { font-size: 13px; color: var(--tg-muted); }
.tgv2-card-next { font-size: 13px; color: var(--tg-ink); }

.tgv2-cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tgv2-cities a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--tg-line); border-radius: 999px; text-decoration: none; color: var(--tg-ink); font-size: 14px; background: #fff; }
.tgv2-cities a:hover { border-color: var(--tg-blue); color: var(--tg-blue-dark); }
.tgv2-cities a span { background: var(--tg-soft); color: var(--tg-muted); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }

@media (max-width: 991px) {
  .tgv2-filters { grid-template-columns: 1fr 1fr; }
  .tgv2-field-q { grid-column: 1 / -1; }
  .tgv2-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .tgv2-dir-head h1 { font-size: 26px; }
  .tgv2-filters { grid-template-columns: 1fr; padding: 12px; }
  .tgv2-filter-actions .tgv2-btn { flex: 1; justify-content: center; }
  .tgv2-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* 404 */
.tgv2-notfound { text-align: center; padding: 64px 16px; }
.tgv2-notfound h1 { font-size: 30px; margin-bottom: 12px; }
.tgv2-notfound p { color: var(--tg-muted); margin: 0 0 16px; }
.tgv2-notfound .tgv2-btn { margin: 4px; }

/* Mobile */
@media (max-width: 767px) {
  .tgv2-venue { padding-top: 12px; }
  .tgv2-hero-media { aspect-ratio: 16 / 9; }
  .tgv2-hero-body { padding: 16px; }
  .tgv2-hero h1 { font-size: 24px; }
  /* Event row on phones: flyer thumbnail (with the date badge on its corner)
     beside the title/details, then price + button on a full-width row. */
  .tgv2-event { grid-template-columns: 96px 1fr; grid-template-areas: "img body" "cta cta"; gap: 10px 12px; padding: 10px; align-items: start; }
  .tgv2-event-img { display: block; grid-area: img; }
  .tgv2-event-img img { width: 96px; height: 120px; object-fit: cover; object-position: center top; border-radius: 8px; }
  .tgv2-event-date { grid-area: img; justify-self: start; align-self: start; z-index: 1; margin: 6px; padding: 4px 6px; background: rgba(255, 255, 255, .95); border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); pointer-events: none; }
  .tgv2-event-date .m { font-size: 10px; }
  .tgv2-event-date .d { font-size: 18px; }
  .tgv2-event-body { grid-area: body; align-self: center; }
  .tgv2-event-body h4 { font-size: 15px; }
  .tgv2-event-cta { grid-area: cta; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--tg-line); padding-top: 10px; }
  .tgv2-section > h2, .tgv2-past summary h2 { font-size: 19px; }

  /* Comfortable tap targets (>= 32px tall) on touch screens */
  .tgv2-crumbs a { display: inline-block; padding: 8px 0; }
  .tgv2-jump { gap: 8px; padding: 4px 0; }
  .tgv2-jump a { display: inline-block; padding: 10px 8px; }
  .tgv2-jump a:first-child { padding-left: 0; }
  .tgv2-event-body h4 a { display: inline-block; padding: 4px 0; }
  .tgv2-btn { padding: 11px 18px; }
  .tgv2-btn-outline { padding: 10px 16px; }
  .tgv2-past li a { display: inline-block; padding: 6px 0; }
  .tgv2-faq summary, .tgv2-past summary { display: block; padding: 6px 0; }
}
