/* ============================================================
   GLOBAL
   ============================================================ */
#globoevent-wrapper,
#globoevent-wrapper * {
    box-sizing: border-box;
    font-family: inherit;
}
body {
    font-family: 'Poppins', sans-serif;
}


/* ============================================================
   WRAPPER
   ============================================================ */
#globoevent-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px;
    overflow-x: hidden; /* âœ… HARD STOP horizontal overflow */
}
/* ============================================================
   ROW 1 - CATEGORY ROW
   FIX: true centering when wrapping
   ============================================================ */
.ge-category-row {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;     /* center items per line */
    align-content: center;       /* âœ… center wrapped lines */
    align-items: flex-start;

    gap: 4px;
    margin: 0 auto 10px auto;    /* âœ… center container itself */
    overflow: visible;
    max-width: 100%;
}

.ge-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 auto;
    max-width: 100%;

    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.25;

    background: #f7f7f7;
    border: 1px solid #d7d7d7;
    color: #0c74d5;

    white-space: nowrap;

    overflow: hidden;              /* âœ… HARD CLIP */
    text-overflow: ellipsis;
    text-align: center;

    contain: content;              /* âœ… KEY: clips glyph overhang */
    isolation: isolate;            /* âœ… prevents paint overflow */

    cursor: pointer;
}

.ge-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-transform: capitalize; /* ✅ works with flex */
    isolation: isolate;          /* prevents paint overflow */

    cursor: pointer;
}
.ge-cat-btn {
    text-transform: uppercase;
    letter-spacing: 0.3px; /* optional – improves readability */
}


.ge-cat-btn:hover {
    background: #e6e6e6;
}


.ge-cat-btn.active {
    background: #d4e5ff;
    border-color: #7fb4ff;
}

/* ============================================================
   ROW 2 - SEARCH BAR
   ============================================================ */
.ge-search-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ge-search-bar input,
.ge-search-bar select,
.ge-search-bar button {
    height: auto;
    min-height: 28px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    font-size: 10px;
    line-height: 1.2;
}

#ge-search-btn {
    background: #0c74d5;
    color: #fff;
    cursor: pointer;
}

/* ============================================================
   ROW 3 - QUICK FILTERS + LANGUAGE
   ============================================================ */
.ge-filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Buttons */
.ge-filter-row .ge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 6px;
    font-size: 10px;
    line-height: 1.2;

    background: #f7f7f7;
    border: 1px solid #ccc;
    cursor: pointer;

    min-height: 26px;
    white-space: nowrap;
}

.ge-filter-row .ge-btn:hover {
    background: #e6e6e6;
}

/* Language selector */
.ge-filter-row .ge-language-select {
    width: auto;
    min-width: 140px;
    max-width: 180px;
    padding: 3px 6px;
    font-size: 10px;
    min-height: 26px;
    flex: 0 0 auto;
    margin-left: 0;
}

/* ============================================================
   RESET + ADVANCED ROW
   ============================================================ */
.ge-reset-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.ge-reset-row .ge-btn {
    padding: 3px 6px;
    font-size: 10px;
    line-height: 1.2;
    background: #f7f7f7;
    border: 1px solid #ccc;
    cursor: pointer;
    min-height: 26px;
}

/* ============================================================
   ADVANCED PANEL
   ============================================================ */
#ge-advanced-panel {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fafafa;
}

#ge-advanced-panel.hidden {
    display: none;
}

#ge-advanced-panel h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.ge-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   CHECKBOXES
   ============================================================ */
.ge-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.ge-checkbox input[type="checkbox"] {
    margin: 0;
}

/* ============================================================
   MODAL
   ============================================================ */
.ge-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ge-modal.hidden {
    display: none;
}

.ge-modal-content {
    background: #fff;
    padding: 20px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.ge-subcategory-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ge-subcategory-group[hidden] {
    display: none !important;
}

/* ============================================================
   MODAL ACTIONS
   ============================================================ */
.ge-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.ge-modal-actions .ge-btn {
    flex: 1;
    padding: 4px 6px;
    font-size: 10px;
    min-height: 28px;
}

/* ============================================================
   RESULTS
   ============================================================ */
#ge-results {
    max-width: 1100px;
    margin: 40px auto;
}

/* ============================================================
   DATE PICKER
   ============================================================ */
#ge-date-input {
    width: 0;
    padding: 0;
    border: none;
    opacity: 0;
}

/* ============================================================
   FLATPICKR - CENTERED
   ============================================================ */
.flatpickr-calendar {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10001;
}
#globoevent-wrapper {
    max-width: min(1300px, 100vw);
    width: 100%;
    overflow-x: hidden;
}

.ge-category-row,
.ge-filter-row,
.ge-search-bar {
    max-width: 100%;
    overflow-x: hidden;
}

.ge-cat-btn {
    max-width: 100%;
}
/* ============================================================
   RESULTS GRID
   ============================================================ */
.ge-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ============================================================
   EVENT CARD
   ============================================================ */
.ge-event-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.ge-event-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* ============================================================
   EVENT IMAGE
   ============================================================ */
.ge-event-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    overflow: hidden;
}

.ge-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ge-image-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}

/* ============================================================
   EVENT BODY
   ============================================================ */
.ge-event-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ge-event-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   META
   ============================================================ */
.ge-event-meta {
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ge-event-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ge-event-price {
    font-weight: 600;
    color: #0c74d5;
}

.ge-event-btn {
    background: #0c74d5;
    color: #ffffff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
}

.ge-event-btn:hover {
    background: #095fb0;
}
/* ============================================================
   TEMPORARILY DISABLE CATEGORIES (SAFE, REVERSIBLE)
   ============================================================ */

/* Hide category row */
.ge-category-row {
    display: none !important;
}

/* Hide category buttons */
.ge-cat-btn {
    display: none !important;
}

/* Hide subcategory modal & groups */
.ge-modal,
.ge-subcategory-group {
    display: none !important;
}
/* TEMP: Hide Advanced filter button */
#ge-advanced-btn,
.ge-advanced-btn,
[data-action="advanced"] {
    display: none !important;
}
/* =========================================
   SAVED SEARCH CLICKABLE STYLE
========================================= */

.ge-saved-item {
    cursor: pointer;
    color: #1e73be;              /* WordPress blue */
    font-weight: 500;
    transition: all 0.2s ease;
}

.ge-saved-item:hover {
    text-decoration: underline;
    color: #135e96;
}

/* If using new row layout */
.ge-saved-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.ge-saved-item-row:hover {
    background: rgba(30,115,190,0.05);
    border-radius: 4px;
}
/* =========================================
   OVERRIDE ASTRA LOWERCASE HEADINGS
========================================= */

.ge-title,
.ge-event-title,
.single-ge_event h1,
.single-ge_event .entry-title {
    text-transform: capitalize !important;
}
/* =========================================
   CENTER SINGLE EVENT IMAGE
========================================= */
.ge-single-event .ge-image img {
    display: block;
    margin: 0 auto;
    max-width: 800px;   /* adjust as you like */
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.ge-back-wrapper {
    margin-bottom: 20px;
}

.ge-back-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #0c74d5;
    color: #0c74d5;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.ge-back-btn:hover {
    background: #0c74d5;
    color: #fff;
}

.ge-pin-btn {
    background: #f4f4f4;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.ge-pin-btn.is-pinned {
    background: #0c74d5;
    color: #fff;
    border-color: #0c74d5;
}
/* ==========================================
   SINGLE EVENT TITLE
========================================== */
.ge-single-event .ge-title {
    font-size: 28px;   /* adjust as needed */
    line-height: 1.3;
}
.ge-single-event .ge-title {
    width: fit-content;
    margin: 0 auto 20px auto;
    text-align: center;
}
/* ==========================================
   SINGLE EVENT SPACING
========================================== */

.ge-single-event {
    max-width: 900px;
    margin: 0 auto 60px auto;   /* bottom space from footer */
    padding: 20px;
}

.ge-single-event .ge-title {
    margin: 40px auto 30px auto;  /* space above & below title */
}

.ge-single-event .ge-image {
    margin: 30px auto;
}

.ge-single-event .ge-meta {
    margin-top: 25px;
    margin-bottom: 25px;
}

.ge-single-event .ge-content {
    margin-top: 20px;
    line-height: 1.7;
}

.ge-single-event .ge-ticket,
.ge-single-event .ge-pin-wrapper {
    margin-top: 30px;
}
.ge-map-actions {
    margin-top: 15px;
    text-align: center;
}

.ge-map-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1e73be;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ge-map-btn:hover {
    background: #155d94;
    transform: translateY(-1px);
}
/* ---- FORCE SHOW: Audience UI ---- */
#ge-advanced-panel.hidden { display: block !important; }
#ge-advanced-panel { display: block !important; }

.ge-audience,
.ge-audience-row,
.ge-audience-wrap,
#ge-audience,
#ge-audience-row,
#ge-audience-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
}
/* ============================================================
   MOBILE FIX PACK (ADD AT VERY BOTTOM)
   ============================================================ */
@media (max-width: 768px) {

  /* Give wrapper breathing room */
  #globoevent-wrapper {
    padding: 12px;
    max-width: 100%;
  }

  /* Stack the top controls */
  .ge-search-bar,
  .ge-filter-row,
  .ge-reset-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Full-width inputs/buttons/select */
  .ge-search-bar input,
  .ge-search-bar select,
  .ge-search-bar button,
  .ge-filter-row .ge-btn,
  .ge-filter-row .ge-language-select,
  .ge-reset-row .ge-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;          /* better tap target */
    font-size: 14px;           /* readable */
    padding: 10px 12px;
  }

  /* Force 1-column results grid on phones */
  .ge-results-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Card spacing + readable text */
  .ge-event-body { padding: 14px; }
  .ge-event-title { font-size: 16px; line-height: 1.3; }
  .ge-event-meta  { font-size: 13px; }

  /* Make the "View details" button bigger */
  .ge-event-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    width: 100%;
  }
}
/* Keep the UI in exactly 3 rows on desktop (Chrome + Edge) */
@media (min-width: 1024px) {

/* Desktop: force row-2 controls to equal height in all browsers */
#globoevent-wrapper .ge-search-bar input,
#globoevent-wrapper .ge-search-bar select,
#globoevent-wrapper .ge-search-bar button,
#globoevent-wrapper .ge-search-bar #ge-date-btn {
  height: 28px !important;
  min-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

/* Ensure Dates trigger centers text like a real button */
#globoevent-wrapper .ge-search-bar #ge-date-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
  /* Row 2 and Row 3 should not wrap */
  #globoevent-wrapper .ge-search-bar,
  #globoevent-wrapper .ge-filter-row {
    flex-wrap: nowrap;
  }

  /* Important: let items shrink in Edge (selects have weird intrinsic min-widths) */
  #globoevent-wrapper .ge-search-bar > *,
  #globoevent-wrapper .ge-filter-row > * {
    min-width: 0;
  }

  /* Row 2: give each control a stable width */
  #globoevent-wrapper .ge-search-bar #ge-keyword { flex: 0 0 220px; }
  #globoevent-wrapper .ge-search-bar #ge-city    { flex: 0 0 180px; }
  #globoevent-wrapper .ge-search-bar #ge-country { flex: 0 0 180px; }
  #globoevent-wrapper .ge-search-bar #ge-zip     { flex: 0 0 110px; }
  #globoevent-wrapper .ge-search-bar #ge-date-btn{ flex: 0 0 120px; }
  #globoevent-wrapper .ge-search-bar #ge-search-btn{ flex: 0 0 70px; }

  /* Row 3: keep the language select from expanding differently per browser */
  #globoevent-wrapper .ge-filter-row .ge-language-select {
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
  }
}
/* ============================================================
   MOBILE COLLAPSIBLE FILTERS (mobile only, desktop unchanged)
   ============================================================ */
.ge-mobile-filters-toggle{ display:none; }

@media (max-width: 768px){
  #globoevent-wrapper .ge-mobile-filters-toggle{
    display:block;
    width:100%;
    margin: 10px 0;
    min-height:44px;
  }

  #globoevent-wrapper .ge-mobile-collapsible{
    display:none;
    margin-top: 8px;
  }
  #globoevent-wrapper .ge-mobile-collapsible.is-open{
    display:block;
  }
}

@media (min-width: 769px){
  #globoevent-wrapper .ge-mobile-collapsible{
    display:block !important;
  }
  #globoevent-wrapper .ge-mobile-filters-toggle{
    display:none !important;
  }
}
.ge-event-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.ge-event-badge-past {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
}
/* ============================================================
   SPONSORED EVENTS
   ============================================================ */

.ge-sponsored-section {
  margin-bottom: 28px;
}

.ge-sponsored-heading {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ge-sponsored-grid {
  margin-bottom: 10px;
}

.ge-sponsored-card {
  position: relative;
  border: 1px solid #cfe2ff;
  box-shadow: 0 4px 14px rgba(12, 116, 213, 0.08);
}

.ge-sponsored-card:hover {
  box-shadow: 0 8px 22px rgba(12, 116, 213, 0.14);
}

.ge-event-badge-sponsored {
  background: #e8f1ff;
  border: 1px solid #bcd3ff;
  color: #0c74d5;
}
.ge-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
}

.ge-load-more-btn.is-loading,
.ge-load-more-btn:disabled {
    cursor: wait;
    opacity: 0.8;
}

.ge-load-more-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ge-load-more-spin 0.7s linear infinite;
    flex: 0 0 14px;
}

.ge-load-more-error {
    margin: 8px 0 0;
    font-size: 13px;
}

@keyframes ge-load-more-spin {
    to {
        transform: rotate(360deg);
    }
}
.ge-pagination-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.ge-back-to-search-btn {
  white-space: nowrap;
}