/* ======================================================================
   Destination BBQ — Single Event (The Events Calendar)
   ----------------------------------------------------------------------
   Mobile-first CSS for the custom event hero:
   - Hero media (centered), H1 + byline
   - “Chips” (When / Where / Admission) + actions, grouped as one module
   - Slim “On this page” (Easy Table of Contents)
   - Venue block: details + big map on desktop
   ====================================================================== */

/* Theme-y variables scoped to single events */
body.single-tribe_events{
  --dbbq-brown:#3f2a1f;
  --dbbq-ink:#2b211c;
  --dbbq-cream:#faf8f3;
  --dbbq-cream-2:#f3eee8;
  --dbbq-line:rgba(0,0,0,.10);
}

/* ===== Hero wrapper ===== */

body.single-tribe_events .dbbq-event-hero{
  margin: 10px 0 16px;
}

/* Hero media: cap height so square logos don’t become skyscrapers */
body.single-tribe_events .dbbq-hero-media{
  height: clamp(220px, 42vh, 460px);
  overflow: hidden;
  border-radius: 18px;
  padding: 0 !important;

  background: var(--dbbq-cream);
  border: 1px solid #e6e0db;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);

  margin: 0 0 12px;
}

body.single-tribe_events img.dbbq-hero-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Desktop: keep the hero media from feeling oversized */
@media (min-width: 1024px){
  body.single-tribe_events .dbbq-hero-media{
    height: 380px;
  }
}

/* Title: strong but not a billboard */
body.single-tribe_events .dbbq-event-title{
  font-size: clamp(28px, 6.2vw, 44px);
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: -.2px;
}

/* Byline: present, but visually quiet */
body.single-tribe_events .dbbq-byline{
  font-size: 13px;
  line-height: 1.4;
  color: #5a534d;
  padding-left: 10px;
  border-left: 3px solid rgba(63,42,31,.35);
  width: 100%;
  margin: 0 0 14px;
}
body.single-tribe_events .dbbq-dot{ padding: 0 6px; }

/* ===== Hero meta module: chips + actions as one unit ===== */

body.single-tribe_events .dbbq-hero-meta{
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 16px;
  background: var(--dbbq-cream-2);
  border: 1px solid var(--dbbq-line);
  width: 100%;
}

body.single-tribe_events .dbbq-hero-meta .dbbq-chiprow{
  margin: 0 0 12px;
}
body.single-tribe_events .dbbq-hero-meta .dbbq-actions{
  margin: 0;
}

/* ===== Chips ===== */

body.single-tribe_events .dbbq-chiprow{
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  width: 100%;
}

/* Mobile-first chip layout: label + value in two columns */
body.single-tribe_events .dbbq-chip{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: start;

  border: 1px solid var(--dbbq-line);
  border-left: 6px solid var(--dbbq-brown);
  background: var(--dbbq-cream);
  border-radius: 14px;
  padding: 10px 12px;

  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* Never let labels break (Wher/e etc.) */
body.single-tribe_events .dbbq-chip-k{
  font-weight: 800;
  white-space: nowrap;
  word-break: keep-all;
}

body.single-tribe_events .dbbq-chip-v{
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Slightly different tints by type */
body.single-tribe_events .dbbq-chip-where{ background:#f7f2ed; }
body.single-tribe_events .dbbq-chip-cost{  background:#f5efe9; }

/* Admission label is longer than “Cost” — widen label column only in 2-col mode */
@media (max-width: 859px){
  body.single-tribe_events .dbbq-chip.dbbq-chip-cost{
    grid-template-columns: 108px 1fr;
  }
}
@media (max-width: 360px){
  body.single-tribe_events .dbbq-chip.dbbq-chip-cost{
    grid-template-columns: 96px 1fr;
  }
}

/* Larger phones: allow a nicer chip layout */
@media (min-width: 520px){
  body.single-tribe_events .dbbq-chiprow{
    grid-template-columns: 1fr 1fr;
  }
  body.single-tribe_events .dbbq-chip-cost{
    grid-column: 1 / -1;
  }
}

/* ===== Actions ===== */

body.single-tribe_events .dbbq-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 10px;
  width: 100%;
}

body.single-tribe_events .dbbq-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0,0,0,.12);
}

body.single-tribe_events .dbbq-btn-primary{
  background: var(--dbbq-brown);
  color: #fff;
  border-color: var(--dbbq-brown);
}

body.single-tribe_events .dbbq-btn-ghost{
  background: var(--dbbq-cream-2);
  border-color: rgba(63,42,31,.22);
  color: var(--dbbq-ink);
}
body.single-tribe_events .dbbq-btn-ghost:hover{
  background: var(--dbbq-cream);
}

/* Larger phones: two-up actions; primary spans full width */
@media (min-width: 520px){
  body.single-tribe_events .dbbq-actions{
    grid-template-columns: 1fr 1fr;
  }
  body.single-tribe_events .dbbq-btn-primary{
    grid-column: 1 / -1;
  }
}

/* ===== Desktop polish ===== */
@media (min-width: 860px){

  /* Center only the hero media; keep title/chips left-aligned */
  body.single-tribe_events .dbbq-hero-media{
    max-width: 980px;
    margin: 0 auto 12px;
  }

  /* Chips: 3-up; cost no longer spans */
  body.single-tribe_events .dbbq-chiprow{
    grid-template-columns: 1.2fr 1.2fr .9fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  body.single-tribe_events .dbbq-chip-cost{
    grid-column: auto;
  }

  body.single-tribe_events .dbbq-chip{
    padding: 12px 14px;
    border-radius: 16px;

    /* Stack label/value on desktop */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
  }

  body.single-tribe_events .dbbq-chip-k{
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
  }

  body.single-tribe_events .dbbq-chip-v{
    font-size: 16px;
    font-weight: 700;
  }

  /* Actions: don’t stretch across the whole row */
  body.single-tribe_events .dbbq-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
  }

  body.single-tribe_events .dbbq-btn{
    width: auto;
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 14px;
  }
}

/* Ensure event content container isn’t constrained */
body.single-tribe_events .dbbq-mv-content{ width: 100%; }

/* Hide the in-body TEC featured image block output (keep the hero image) */
body.single-tribe_events #tribe-events-content .tribe-events-event-image{
  display: none !important;
}

/* ===== Easy Table of Contents: slim “On this page” bar ===== */

body.single-tribe_events #ez-toc-container{
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 14px 0 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

/* Title row becomes a slim bar */
body.single-tribe_events #ez-toc-container .ez-toc-title-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
}

/* Replace “Contents” with “On this page” */
body.single-tribe_events #ez-toc-container .ez-toc-title{
  font-size: 0;
  margin: 0;
  line-height: 1;
}
body.single-tribe_events #ez-toc-container .ez-toc-title::before{
  content: "On this page";
  font-size: 16px;
  font-weight: 800;
  color: #2b211c;
  letter-spacing: .01em;
}

/* Toggle looks like a modern control */
body.single-tribe_events #ez-toc-container .ez-toc-btn,
body.single-tribe_events #ez-toc-container .ez-toc-toggle{
  border: 1px solid rgba(63,42,31,.20);
  background: var(--dbbq-cream-2);
  border-radius: 12px;
  padding: 8px 10px;
  line-height: 1;
}

/* When expanded, the list reads like a clean section */
body.single-tribe_events #ez-toc-container nav{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
}

body.single-tribe_events #ez-toc-container ul{
  margin: 0;
  padding-left: 18px;
}
body.single-tribe_events #ez-toc-container li{
  margin: 6px 0;
}
body.single-tribe_events #ez-toc-container a{
  text-decoration: none;
}
body.single-tribe_events #ez-toc-container a:hover{
  text-decoration: underline;
}

/* Desktop: tidy columns */
@media (min-width: 860px){
  body.single-tribe_events #ez-toc-container nav ul{
    columns: 2;
    column-gap: 28px;
  }
  body.single-tribe_events #ez-toc-container nav li{
    break-inside: avoid;
  }
}

/* ===== TEC Venue block: details left, big map right (desktop) ===== */

/* Kill internal max-width that can make the venue section “contained” */
body.single-tribe_events .tribe-block__venue,
body.single-tribe_events .wp-block-tribe-venue,
body.single-tribe_events .wp-block-tribe-event-venue,
body.single-tribe_events .tribe-events-venue{
  width: 100% !important;
  max-width: none !important;
}

body.single-tribe_events .tribe-block__venue__content,
body.single-tribe_events .tribe-block__venue__inner,
body.single-tribe_events .tribe-events-venue__content{
  width: 100% !important;
  max-width: none !important;
}

/* Map: give it a sensible height on mobile */
body.single-tribe_events .tribe-block__venue__map iframe,
body.single-tribe_events .tribe-events-venue-map iframe,
body.single-tribe_events iframe[src*="google.com/maps"]{
  width: 100% !important;
  max-width: none !important;
  height: 320px !important;
  display: block !important;
  border-radius: 16px;
  border: 0 !important;
}

@media (min-width: 980px){
  body.single-tribe_events .tribe-block__venue__content,
  body.single-tribe_events .tribe-block__venue__inner,
  body.single-tribe_events .tribe-events-venue__content{
    display: grid !important;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body.single-tribe_events .tribe-block__venue__details,
  body.single-tribe_events .tribe-events-venue-details{
    text-align: left !important;
    justify-self: start !important;
    max-width: none !important;
  }

  body.single-tribe_events .tribe-block__venue__map,
  body.single-tribe_events .tribe-events-venue-map,
  body.single-tribe_events .tribe-events-venue-map-wrapper,
  body.single-tribe_events .tribe-events-venue-map-container{
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  body.single-tribe_events .tribe-block__venue__map iframe,
  body.single-tribe_events .tribe-events-venue-map iframe,
  body.single-tribe_events iframe[src*="google.com/maps"]{
    height: 460px !important;
  }
}
