/* =========================================================
   Together We Grow Events – Plugin Styles (polished)
========================================================= */

.twg-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:28px 16px;
}

/* Head */
.twg-head{
  margin-bottom:18px;
}
.twg-head h1{
  margin:0 0 8px;
  letter-spacing:-0.02em;
}
.twg-head p{
  margin:0;
  color:rgba(0,0,0,.7);
}

/* Sections */
.twg-section{
  margin-top:24px;
}
.twg-section h2{
  margin:0 0 12px;
  letter-spacing:-0.015em;
}

/* Filters */
.twg-filters{
  margin:14px 0 22px;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
}
.twg-filters label{
  font-weight:800;
}
.twg-filters select{
  margin-left:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
}
.twg-clear{
  margin-left:10px;
}

/* Grid + Cards */
.twg-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}
.twg-card{
  display:block;
  padding:16px;
  border:1px solid rgba(0,0,0,.1);
  border-radius:16px;
  text-decoration:none;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.twg-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.16);
}
.twg-card-title{
  font-weight:900;
  margin-bottom:6px;
}
.twg-muted{
  opacity:.78;
  font-size:.95em;
}

/* Badges */
.twg-badges{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.twg-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
  font-weight:800;
  font-size:.85em;
}

/* =========================================================
   Single Event Layout
========================================================= */
.twg-single .twg-meta{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
  margin:18px 0 14px;
}
.twg-meta-box{
  padding:16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
}
.twg-meta-box h2{
  margin:0 0 10px;
  font-size:1.05em;
  letter-spacing:-0.01em;
}
.twg-date-list{
  margin:0;
  padding-left:18px;
}
.twg-link{
  font-weight:800;
}

/* Map */
.twg-map{
  margin-top:12px;
}
.twg-map iframe{
  width:100%;
  height:360px;
  border:0;
  border-radius:16px;
}

/* CTA */
.twg-cta{
  margin-top:22px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.8);
}
.twg-btn{
  display:inline-block;
  margin-top:10px;
  padding:12px 18px;
  border-radius:12px;
  background:#2e7d32;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  transition:filter .12s ease, transform .12s ease;
}
.twg-btn:hover{
  filter:brightness(.96);
  transform:translateY(-1px);
}

/* =========================================================
   Next Event Block
========================================================= */
.twg-next{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.03);
  max-width:760px;
}
.twg-next-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(46,125,50,.12);
  font-weight:900;
  margin-bottom:10px;
}
.twg-next-title{
  font-weight:950;
  font-size:1.25em;
  margin-bottom:6px;
}

/* =========================================================
   Calendar (polished + “real calendar” feel)
========================================================= */
.twg-cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 10px;
}
.twg-cal-month{
  font-weight:950;
  letter-spacing:-0.015em;
}
.twg-cal-nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  text-decoration:none;
  background:#fff;
  font-weight:900;
  transition:background .12s ease, transform .12s ease, border-color .12s ease;
}
.twg-cal-nav:hover{
  background:rgba(46,125,50,.08);
  border-color:rgba(46,125,50,.28);
  transform:translateY(-1px);
}

/* Put the whole grid in a “card” so it doesn’t look like floating text */
.twg-cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  background:#fff;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  width:100%;
}

.twg-cal{
  width:100%;
}

/* Day labels */
.twg-cal-dow{
  font-weight:900;
  opacity:.6;
  text-align:center;
  padding:6px 0;
}

/* Day cells */
.twg-cal-cell{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:10px;
  min-height:120px;
  background:#f9fbfd;
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}
.twg-cal-cell:hover{
  background:#eef6f0;
  border-color:rgba(46,125,50,.22);
  transform:translateY(-1px);
}

.twg-cal-empty{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #f9fbfd;
  min-height: 120px;
  opacity: .55;
}

/* Day number */
.twg-cal-day{
  font-weight:950;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* This class is applied when a day has events (add in PHP render) */
.twg-cal-has-events{
  background:#eef6f0;
  border-color:rgba(46,125,50,.30);
}
.twg-cal-has-events .twg-cal-day{
  color:#2e7d32;
}

/* Count + items */
.twg-cal-count{
  font-size:.85em;
  font-weight:900;
  opacity:.75;
  margin-bottom:6px;
}
.twg-cal-event{
  display:block;
  margin:6px 0;
  font-size:.9em;
  text-decoration:none;
  padding:6px 8px;
  border-radius:10px;
  background:rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.06);
  transition:background .12s ease, border-color .12s ease;
}
.twg-cal-event:hover{
  background:rgba(46,125,50,.10);
  border-color:rgba(46,125,50,.22);
}
.twg-cal-more{
  opacity:.75;
  font-size:.85em;
  font-weight:900;
  margin-top:6px;
}

/* =========================================================
   Sponsors + Performers
========================================================= */
.twg-logo-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}
.twg-logo{
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
}
.twg-logo img{
  max-height:44px;
  width:auto;
  display:block;
}

.twg-performers{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px;
}
.twg-performer-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:12px;
  background:#fff;
  transition:transform .12s ease, box-shadow .12s ease;
}
.twg-performer-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,.06);
}
.twg-performer-card img{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:10px;
}
.twg-performer-name{
  font-weight:950;
}

.twg-performer-names-section{
  margin-top: 24px;
}

.twg-performer-names-section .twg-card{
  padding: 16px 18px;
}

.twg-performer-list-minimal{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.twg-performer-row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.twg-performer-row:last-child{
  border-bottom: 0;
}

.twg-performer-thumb-wrap{
  flex: 0 0 44px;
}

.twg-performer-thumb{
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.twg-performer-content{
  min-width: 0;
}

.twg-performer-name{
  font-weight: 700;
  margin-bottom: 4px;
}

.twg-performer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.twg-performer-social{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,.08);
  background: #f7faf9;
}

.twg-performer-social:hover{
  text-decoration: underline;
}

.twg-date-card h2{
  margin-bottom: 16px;
}

.twg-date-card-inner{
  display: flex;
  align-items: center;
  gap: 18px;
}

.twg-date-badge{
  min-width: 110px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6f1 100%);
  border: 1px solid rgba(0,0,0,.08);
  text-align: center;
}

.twg-date-day{
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #163047;
  margin-bottom: 8px;
}

.twg-date-month{
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: #4a6174;
}

.twg-date-info{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.twg-date-weekday{
  font-size: 1.08rem;
  font-weight: 700;
  color: #163047;
}

.twg-date-time-pill{
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7faf9;
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 600;
  color: #27485f;
}

.twg-date-note{
  font-size: .92rem;
  color: #6a7c8c;
}

@media (max-width: 640px){
  .twg-date-card-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .twg-date-badge{
    min-width: 0;
    width: 100%;
  }
}

.twg-card-next{
  border-color: rgba(46,125,50,.45);
  box-shadow: 0 10px 26px rgba(46,125,50,.12);
  position: relative;
}

.twg-next-pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:.85em;
  background: rgba(46,125,50,.12);
  margin-bottom:10px;
}

.twg-cal-has-events{
  border-color: rgba(46,125,50,.25);
  background: rgba(46,125,50,.04);
}

.twg-cal-grid .twg-cal-cell.twg-cal-empty{
  border: 1px solid rgba(0,0,0,.08) !important;
  background: #f9fbfd !important;
  border-radius: 16px !important;
  min-height: 120px !important;
  padding: 10px !important;
  opacity: .55 !important;
  transform: none !important;
}

.twg-cal-dow{ text-align:center; }

.twg-section .twg-cal,
.twg-section .twg-cal-grid{
  width: 100% !important;
  max-width: 100% !important;
}

.twg-section .twg-cal{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.twg-section{
  width: 100% !important;
  max-width: none !important;

}

.twg-cal{
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
}

.twg-cal-grid{
  display: grid !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
}


.post-type-archive-twg_event_occurrence .twg-section,
.post-type-archive-twg_event_occurrence .twg-cal,
.post-type-archive-twg_event_occurrence .twg-cal-grid{
  width: 100% !important;
  max-width: none !important;
}

/* If the theme uses flex layouts, force the calendar to stretch */
.post-type-archive-twg_event_occurrence .twg-cal{
  display: block !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
}

/* Ensure the grid fills available width regardless of content */
.post-type-archive-twg_event_occurrence .twg-cal-grid{
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
}

/* Also stretch the header row if it's being shrunk */
.post-type-archive-twg_event_occurrence .twg-cal-head{
  width: 100% !important;
  max-width: none !important;
}

.ast-container main.twg-wrap,
main.twg-wrap,
main.twg-wrap > section.twg-section,
main.twg-wrap > section.twg-section > .twg-cal{
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
  min-width: 0 !important; /* important in flex containers */
}

/* Ensure the calendar grid itself always stretches */
.twg-cal .twg-cal-grid{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}


/* Better spacing between heading + grid */
.twg-section h2{
  margin-bottom: 16px;
}

/* Grid: a bit larger cards, nicer gaps */
.twg-section .twg-grid{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Card: softer + more “event” feel */
.twg-section .twg-card{
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}

/* Accent strip */
.twg-section .twg-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  background: rgba(46,125,50,.35); /* subtle green */
}

/* Hover: lift + stronger shadow */
.twg-section .twg-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.14);
}

/* Title: bigger and cleaner */
.twg-section .twg-card-title{
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* Date line: turn into a pill */
.twg-section .twg-muted{
  opacity: 1;
  color: rgba(0,0,0,.72);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.06);
}

/* Small calendar icon dot */
.twg-section .twg-muted::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(46,125,50,.55);
  display:inline-block;
}

/* Badges: align nicely */
.twg-section .twg-badges{
  margin-top: 12px;
}

/* Sold out / vendor closed badges look stronger if present */
.twg-section .twg-badge{
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.07);
}

/* =========================================================
   TWG – Cheerful “Market Day” skin (drop-in overrides)
   Put this at the VERY BOTTOM of twg-events.css
========================================================= */

/* Page background + container */
.post-type-archive-twg_event_occurrence .site-content,
.post-type-archive-twg_event .site-content{
  background:
    radial-gradient(900px 480px at 10% 10%, rgba(255,179,71,.20), transparent 55%),
    radial-gradient(900px 480px at 90% 18%, rgba(86,206,222,.18), transparent 55%),
    radial-gradient(900px 480px at 50% 92%, rgba(163,103,255,.12), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #f1f7ff 100%);
}

.twg-wrap{
  max-width: 1150px;
}

/* Headings feel friendlier */
.twg-head h1,
.twg-section h2{
  letter-spacing: -0.02em;
}

/* =========================================================
   Cards (Upcoming list + grids)
========================================================= */
.twg-grid{
  gap: 18px;
}

.twg-card{
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Cheerful top stripe */
.twg-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 6px;
  background: linear-gradient(90deg,
    rgba(255,179,71,.95),
    rgba(86,206,222,.95),
    rgba(163,103,255,.85)
  );
}

/* Subtle confetti dots */
.twg-card::after{
  content:"";
  position:absolute;
  inset:-20px -20px auto auto;
  width:140px;
  height:140px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,179,71,.45) 0 8px, transparent 9px),
    radial-gradient(circle at 70% 40%, rgba(86,206,222,.35) 0 7px, transparent 8px),
    radial-gradient(circle at 35% 75%, rgba(163,103,255,.30) 0 6px, transparent 7px);
  opacity:.55;
  pointer-events:none;
}

.twg-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0,0,0,.09);
  border-color: rgba(0,0,0,.10);
}

.twg-card-title{
  font-size: 1.06rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* Date line becomes a happy pill */
.twg-muted{
  opacity: 1;
  color: rgba(0,0,0,.70);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(86,206,222,.10);
  border: 1px solid rgba(86,206,222,.18);
}

.twg-muted::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,179,71,.95);
  box-shadow: 0 0 0 4px rgba(255,179,71,.18);
  display:inline-block;
}

/* Badges look more fun */
.twg-badge{
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,179,71,.12);
}

/* =========================================================
   Calendar (cheerful)
========================================================= */
.twg-cal-grid{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(0,0,0,.05);
}

.twg-cal-dow{
  opacity: .65;
  font-weight: 900;
}

.twg-cal-cell{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
}

.twg-cal-cell:hover{
  background: rgba(255,179,71,.10);
  border-color: rgba(255,179,71,.18);
}

/* Days with events: brighter but still clean */
.twg-cal-has-events{
  background: rgba(86,206,222,.10) !important;
  border-color: rgba(86,206,222,.22) !important;
}

.twg-cal-has-events .twg-cal-day{
  color: #0b5a66;
}

/* Event chips */
.twg-cal-event{
  background: rgba(163,103,255,.10);
  border: 1px solid rgba(163,103,255,.18);
  border-radius: 12px;
}

.twg-cal-event:hover{
  background: rgba(163,103,255,.14);
  border-color: rgba(163,103,255,.24);
}

/* Nav buttons: playful */
.twg-cal-nav{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

.twg-cal-nav:hover{
  background: rgba(255,179,71,.12);
  border-color: rgba(255,179,71,.22);
}

/* Mobile: keep comfy spacing */
@media (max-width: 760px){
  .twg-card{ border-radius: 20px; }
  .twg-cal-grid{ border-radius: 22px; }
}


/* =========================================================
   Mobile Improvements
========================================================= */
@media (max-width: 760px){
  .twg-wrap{padding:22px 14px}

  .twg-filters select{
    margin:10px 0 0;
    width:100%;
  }

  .twg-cal-grid{
    gap:6px;
    padding:10px;
  }

  .twg-cal-cell{
    min-height:92px;
    padding:8px;
    border-radius:14px;
  }

  .twg-map iframe{
    height:300px;
  }
}

/* Mobile: slightly tighter */
@media (max-width: 760px){
  .twg-section .twg-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}



/* =========================================================
   On The Day
========================================================= */
.twg-view-switch{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.twg-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  text-decoration:none;
  font-weight:800;
}
.twg-pill.is-active{
  background:#2e7d32;
  color:#fff;
  border-color:#2e7d32;
}
.twg-single-day .twg-head{
  margin-bottom:24px;
}
.twg-on-day-hero .twg-meta-box,
.twg-map-image-card,
.twg-vendor-card,
.twg-join-in{
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}
.twg-on-day-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.twg-btn-secondary{
  background:#fff;
  color:#1f2937;
  border:1px solid rgba(0,0,0,.12);
}
.twg-on-day-grid{
  margin-top:16px;
}
.twg-map-image-card{
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:#fff;
}
.twg-map-image{
  display:block;
  width:100%;
  height:auto;
  border-radius:14px;
}
.twg-vendor-directory{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
}
.twg-vendor-card{
  padding:16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:#fff;
}
.twg-vendor-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.twg-vendor-card h3{
  margin:0;
  font-size:1.05rem;
}
.twg-vendor-category{
  margin-bottom:10px;
  font-weight:700;
}
.twg-rule-list{
  margin:0;
  padding-left:18px;
}
.twg-rule-list li + li{
  margin-top:8px;
}
.twg-embed-block{
  margin-top:16px;
}
.twg-on-day-cta-preview{
  background:linear-gradient(135deg, rgba(46,125,50,.08), rgba(255,255,255,.95));
}
@media (max-width: 640px){
  .twg-view-switch,
  .twg-on-day-actions{
    flex-direction:column;
  }
  .twg-pill,
  .twg-btn,
  .twg-btn-secondary{
    width:100%;
    text-align:center;
  }
}

.twg-on-day-header{
  background-size:cover;
  background-position:center;
  border-radius:24px;
  padding:28px;
  color:var(--twg-on-day-text, #102034);
  box-shadow:0 18px 40px rgba(0,0,0,.06);
}
.twg-eyebrow{
  display:inline-block;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.8rem;
  font-weight:800;
  color:var(--twg-on-day-primary, #2e7d32);
}
.twg-on-day-intro{
  max-width:840px;
  font-size:1.05rem;
}
.twg-flash{
  margin:18px 0;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.twg-flash-success{ border-color:rgba(46,125,50,.25); background:rgba(46,125,50,.08); }
.twg-flash-error{ border-color:rgba(185,28,28,.25); background:rgba(185,28,28,.08); }
.twg-rules-box{
  padding:20px;
}
.twg-rule-heading{
  margin:0 0 8px;
  font-size:1rem;
}
.twg-rule-heading + .twg-rule-list,
.twg-rule-list + .twg-rule-heading{
  margin-top:10px;
}
.twg-toggle-panel{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.twg-inline-form input[type="text"],
.twg-inline-form input[type="email"],
.twg-inline-form input[type="file"],
.twg-inline-form textarea{
  width:100%;
  margin-top:6px;
}
.twg-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.twg-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.twg-gallery-card{
  margin:0;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}
.twg-gallery-card img{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
}
.twg-gallery-card figcaption{
  padding:12px 14px 14px;
}
@media (max-width: 800px){
  .twg-form-grid{ grid-template-columns:1fr; }
}


.twg-ticket-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:12px}
.twg-ticket-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:18px;box-shadow:0 8px 30px rgba(16,32,52,.06)}
.twg-ticket-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.twg-ticket-card-head h3{margin:0;font-size:1.1rem}
.twg-ticket-price{font-weight:700;white-space:nowrap;color:var(--twg-on-day-primary,#2e7d32)}

.twg-upcoming-list{
  display:grid;
  gap:20px;
}

.twg-upcoming-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:24px;
  border:1px solid rgba(16,32,52,.12);
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.twg-upcoming-content{
  flex:1;
  min-width:0;
}

.twg-upcoming-title{
  margin:0 0 12px;
  font-size:28px;
  line-height:1.2;
}

.twg-upcoming-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}

.twg-upcoming-pill{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:#eef8fb;
  border:1px solid #cde7ef;
  font-size:15px;
}

.twg-upcoming-actions{
  flex-shrink:0;
}

.twg-upcoming-footer{
  margin-top:24px;
}

@media (max-width: 768px){
  .twg-upcoming-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .twg-upcoming-actions{
    width:100%;
  }

  .twg-upcoming-actions .twg-btn{
    width:100%;
    text-align:center;
  }

  .twg-upcoming-title{
    font-size:22px;
  }
}

/* Subscribe forms */
.twg-subscribe-card{background:rgba(255,255,255,.96);border:1px solid rgba(16,32,52,.12);box-shadow:0 18px 40px rgba(0,0,0,.10);border-radius:20px;padding:24px;color:#102034}
.twg-subscribe-title{margin:0 0 8px;font-size:clamp(1.4rem,2vw,2rem);line-height:1.1}
.twg-subscribe-subtitle{margin:0 0 16px;color:rgba(16,32,52,.76)}
.twg-subscribe-form label{display:block;font-weight:600;font-size:.95rem;margin:0 0 6px}
.twg-subscribe-form input[type="text"],.twg-subscribe-form input[type="email"]{width:100%;padding:13px 14px;border-radius:12px;border:1px solid rgba(16,32,52,.16);background:#fff;font:inherit}
.twg-subscribe-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:14px}.twg-subscribe-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.twg-subscribe-check{display:flex !important;gap:10px;align-items:flex-start;margin:14px 0 18px;font-weight:400 !important}.twg-subscribe-check input{margin-top:3px}
.twg-subscribe-alert{border-radius:12px;padding:12px 14px;margin:0 0 14px}.twg-subscribe-alert.success{background:#ecfdf5;color:#065f46}.twg-subscribe-alert.error{background:#fef2f2;color:#991b1b}
.twg-subscribe-modal{position:fixed;inset:0;z-index:99999}.twg-subscribe-modal[hidden]{display:none !important}
.twg-subscribe-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.twg-subscribe-modal__dialog{position:relative;z-index:2;max-width:640px;margin:6vh auto 24px;padding:14px}.twg-subscribe-popup-inner .twg-subscribe-card{padding:28px}
.twg-subscribe-modal__close{position:absolute;top:22px;right:24px;z-index:4;border:0;background:transparent;font-size:34px;line-height:1;cursor:pointer;color:#102034}
@media (max-width: 700px){.twg-subscribe-grid.two{grid-template-columns:1fr}.twg-subscribe-modal__dialog{margin:3vh auto 18px;padding:12px}.twg-subscribe-popup-inner .twg-subscribe-card{padding:22px}}


.twg-vendor-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 18px}
.twg-vendor-search-wrap{flex:1 1 280px}
.twg-vendor-filter-wrap{flex:0 1 220px}
.twg-vendor-search,.twg-vendor-filter{width:100%;padding:12px 14px;border:1px solid rgba(0,0,0,.12);border-radius:12px;background:#fff;box-sizing:border-box}
.twg-vendor-logo-wrap{display:flex;align-items:center;justify-content:flex-start;margin-bottom:12px}
.twg-vendor-logo{width:88px;height:88px;object-fit:cover;border-radius:16px;border:1px solid rgba(0,0,0,.08);background:#fff}
.twg-vendor-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.twg-vendor-gallery a{display:block}
.twg-vendor-gallery img{width:100%;height:96px;object-fit:cover;border-radius:12px;border:1px solid rgba(0,0,0,.08);display:block}
.twg-vendor-empty{margin-top:12px;color:#666}
@media (max-width: 640px){.twg-vendor-toolbar{flex-direction:column;align-items:stretch}.twg-vendor-gallery img{height:82px}}
