/* ==========================================================================
   Gynsyng Events Calendar Solution — Minimal Layout & Grid Styles
   Note: All typography, heading colors, card patterns, and buttons (.btn, .btn-primary, .btn-secondary)
   strictly inherit and use native rules from css/bundle.min.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Strict Native Gynsyng Button Enforcement (Neutralize Bootstrap Overrides)
   -------------------------------------------------------------------------- */
#gynsyng-events-root .btn,
#event-detail-root .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 0 !important;
  font-family: 'Bellefair', serif !important;
  text-transform: uppercase !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.04em !important;
  padding: 8px 16px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

#gynsyng-events-root .btn-primary,
#event-detail-root .btn-primary {
  background: #fff !important;
  color: #545049 !important;
  border: 1px solid #545049 !important;
}

#gynsyng-events-root .btn-primary:hover,
#gynsyng-events-root .btn-primary:focus,
#event-detail-root .btn-primary:hover,
#event-detail-root .btn-primary:focus {
  background: #545049 !important;
  color: #fff !important;
  border: 1px solid #545049 !important;
}

#gynsyng-events-root .btn-secondary,
#event-detail-root .btn-secondary {
  background: #545049 !important;
  color: #fff !important;
  border: 1px solid #545049 !important;
}

#gynsyng-events-root .btn-secondary:hover,
#gynsyng-events-root .btn-secondary:focus,
#event-detail-root .btn-secondary:hover,
#event-detail-root .btn-secondary:focus {
  background: #3d3a35 !important;
  color: #fff !important;
  border: 1px solid #3d3a35 !important;
}

/* --------------------------------------------------------------------------
   0.1 Header Banner Dark Overlay
   -------------------------------------------------------------------------- */
nav.navbar,
.navbar {
  position: relative !important;
  z-index: 100 !important;
}

#SecHdr {
  position: relative !important;
  background-size: cover !important;
  background-position: center center !important;
}

#SecHdr::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%) !important;
  z-index: 1 !important;
}

#SecHdr > .container,
#SecHdr > * {
  position: relative !important;
  z-index: 2 !important;
}

/* --------------------------------------------------------------------------
   1. SVG Icon Sizing & Alignment
   -------------------------------------------------------------------------- */
.gyn-svg-icon {
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  margin: 0 !important;
}

.legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* --------------------------------------------------------------------------
   2. Filter Bar & Controls Container
   -------------------------------------------------------------------------- */
.series-legend-bar {
  padding: 20px 0;
  margin-bottom: 25px;
  border-bottom: 1px solid #545049;
}

.legend-grid, .energy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 35px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(84, 80, 73, 0.25);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 450px;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #545049;
  border-radius: 0;
  font-family: 'Nobile', sans-serif;
  font-size: 0.95rem;
  color: #545049;
  background: #fff;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: #17281c;
  box-shadow: 0 0 5px rgba(23, 40, 28, 0.2);
}

.search-icon-pos {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #545049;
  pointer-events: none;
}

.view-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   3. Event Row & Featured Event Structure
   -------------------------------------------------------------------------- */
.featured-box {
  border: 1px solid #545049;
  background: #fff;
  padding: 25px;
  margin-bottom: 45px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.event-row-item {
  border-bottom: 1px solid rgba(84, 80, 73, 0.25);
  padding-bottom: 35px;
  margin-bottom: 35px;
}

.event-meta-line {
  font-family: 'Bellefair', serif;
  text-transform: uppercase;
  color: #545049;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.event-meta-line > span,
.event-row-item p strong,
.featured-box p strong,
.cell-event-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Bellefair', serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 1px solid #545049;
  background: #fff;
  color: #545049;
}

.status-sold-out {
  border-color: #b02a37;
  color: #b02a37;
}

.status-cancelled {
  border-color: #6c757d;
  color: #6c757d;
  text-decoration: line-through;
}

.status-postponed {
  border-color: #fd7e14;
  color: #fd7e14;
}

/* --------------------------------------------------------------------------
   4. Monthly Calendar Grid Layout
   -------------------------------------------------------------------------- */
.calendar-view-container {
  margin-top: 20px;
}

.calendar-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #545049;
  background: #545049;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(115px, 1fr));
  background: #545049;
  color: #fff;
  text-align: center;
  font-family: 'Bellefair', serif;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.calendar-header div {
  padding: 12px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header div:last-child {
  border-right: none;
}

.calendar-grid-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(115px, 1fr));
  background: #545049;
  gap: 1px; /* Crisp 1px grid lines */
}

.calendar-cell {
  min-height: 130px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.calendar-cell.other-month {
  background: #f8f9fa;
  color: #aaa;
}

.calendar-cell.today {
  background: #fffdf5;
  box-shadow: inset 0 0 0 2px #545049;
}

.cell-day-num {
  font-family: 'Bellefair', serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: #545049;
  margin-bottom: 8px;
}

.cell-event-item {
  display: block;
  font-family: 'Nobile', sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: #fff;
  color: #545049;
  border: 1px solid #545049;
  text-decoration: none;
  word-break: break-word;
  white-space: normal;
  transition: background 0.2s, color 0.2s;
}

.cell-event-item:hover {
  background: #545049;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Modal, Agegate Neutralizer & Responsive Helper
   -------------------------------------------------------------------------- */
.popup-backdrop, .popup-modal, [class*="popup-backdrop"], [class*="popup-modal"], #modalAge {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body {
  overflow: auto !important;
}

@media (max-width: 768px) {
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Suppress newsletter / Inner Circle popups */
#newsletter-modal,
.newsletter.klaviyo_form_trigger,
div[class*="klaviyo-form"],
div[id*="klaviyo"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
