:root {
  --navy: #0c1222;
  --gold: #f59e0b;
  --green: #10b981;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: rgba(20, 28, 48, 0.9);
  --radius: 18px;
}
.sf45-wrap { 
  font-family: system-ui, sans-serif; 
  background: linear-gradient(180deg, #0c1222, #1a2332); 
  color: var(--text); 
  min-height: 100vh; 
  padding-bottom: 60px; 
  width: 100vw; 
  max-width: 100vw; 
  margin-left: calc(50% - 50vw); 
  margin-right: calc(50% - 50vw); 
  position: relative;
  left: 0;
  right: 0;
}
.sf45-hero { text-align: center; padding: 60px 20px 30px; background: radial-gradient(circle at top, rgba(245,158,11,0.15), transparent 60%); }
.sf45-eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.sf45-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 8px 0 12px; font-weight: 800; }
.sf45-hero p { color: var(--muted); max-width: 680px; margin: 0 auto 20px; }
.sf45-search input { width: 100%; max-width: 480px; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: white; font-size: 1rem; }
.sf45-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; position: sticky; bottom: 0; top: auto; background: transparent;  z-index: 10; }
.sf45-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sf45-chip, .sf45-map-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; }
.sf45-chip.active, .sf45-chip:hover, .sf45-map-btn:hover { background: var(--gold); color: #0c1222; font-weight: 700; }
.sf45-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px; width: 100%; max-width: none; margin: 0; }
.sf45-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); transition: transform 0.2s; display: flex; flex-direction: column; }
.sf45-card:hover { transform: translateY(-4px); }
.sf45-img { height: 180px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #1e293b; }
.sf45-img-fallback { background: linear-gradient(135deg, #1e293b, #334155); }
.sf45-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.sf45-date { color: var(--gold); font-size: 0.8rem; font-weight: 700; }
.sf45-card h3 { margin: 6px 0; font-size: 1.1rem; line-height: 1.3; }
.sf45-loc { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.sf45-card p { color: #cbd5e1; font-size: 0.9rem; flex: 1; margin-bottom: 12px; }
.sf45-actions { display: flex; gap: 8px; }
.sf45-btn { background: var(--gold); color: #0c1222; border: 0; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; cursor: pointer; text-decoration: none; display: inline-block; }
.sf45-maplink { background: var(--green); }
.sf45-map { height: 480px; margin: 10px 20px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.sf45-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 80px 20px 20px; }
.sf45-modal-inner { background: #0f172a; border-radius: 16px; width: 100%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.sf45-modal-header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sf45-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: white; font-size: 2rem; cursor: pointer; }
.sf45-iframe { flex: 1; min-height: 400px; border: 0; background: white; }
.sf45-modal-footer { padding: 12px 20px; display: flex; gap: 10px; justify-content: flex-end; background: #0c1222; }
@media (max-width: 640px) {
  .sf45-grid { grid-template-columns: 1fr; padding: 12px; }
  .sf45-map { height: 360px; }
}

/* v47: Larger mobile modal + easier close */
.sf45-modal-inner {
  width: 96%;
  max-width: 960px;
  height: 92vh;
  max-height: 92vh;
}
.sf45-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}
.sf45-iframe {
  flex: 1;
  min-height: 0;
  height: 100%;
}
@media (max-width: 768px) {
  .sf45-modal {
    padding: 8px;
  }
  .sf45-modal-inner {
    width: 100%;
    height: 96vh;
    max-height: 96vh;
    border-radius: 12px;
  }
  .sf45-modal-close {
    top: 6px;
    right: 8px;
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
  .sf45-modal-header {
    padding: 12px 50px 12px 16px;
  }
  .sf45-modal-header h2 {
    font-size: 1.1rem;
    margin: 0;
  }
}

.sf45-loadmore {
  display: block;
  margin: 30px auto;
  background: var(--gold);
  color: #0c1222;
  border: 0;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.sf45-loadmore:hover { background: #d97706; }

/* Clearer, easier close button */
.sf45-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f59e0b;
  color: #0c1222;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf45-modal-close:hover {
  background: #d97706;
  transform: scale(1.05);
}
.sf45-modal-header {
  padding: 16px 60px 16px 20px;
  position: relative;
}
@media (max-width: 768px) {
  .sf45-modal-close {
    width: 52px;
    height: 52px;
    font-size: 2rem;
    top: 8px;
    right: 8px;
  }
}


/* Mobile collapsible toolbar */
.sf45-filter-toggle {
  display: none;
  background: var(--gold);
  color: #0c1222;
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto 8px;
}
@media (max-width: 768px) {
  .sf45-toolbar {
    bottom: 0; top: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .sf45-filter-toggle {
    display: block;
  }
  .sf45-filters {
    display: none;
    flex-direction: column;
    gap: 6px;
  }
  .sf45-filters.open {
    display: flex;
  }
  .sf45-chip {
    text-align: left;
  }
}


/* Mobile category dropdown */
.sf45-filter-select {
  display: none;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .sf45-filters { display: none !important; }
  .sf45-filter-toggle { display: none !important; }
  .sf45-filter-select { display: block; }
  .sf45-toolbar { bottom: 0; top: auto; }
}


/* White-background modal redesign */
.sf45-modal {
  background: rgba(0,0,0,0.6);
  padding: 70px 16px 16px;
  align-items: flex-start;
}
.sf45-modal-inner {
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 920px;
  width: 100%;
  max-height: 88vh;
}
.sf45-modal-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px 12px;
  position: relative;
}
.sf45-modal-header h2 {
  color: #0f172a;
  font-size: 1.35rem;
  margin: 0 0 4px;
  padding-right: 100px;
}
.sf45-modal-header p {
  color: #64748b;
  margin: 0;
}
.sf45-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color: #0f172a;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sf45-modal-close:hover {
  background: #d97706;
}
.sf45-iframe {
  background: #ffffff;
}
.sf45-modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.sf45-modal-footer .sf45-btn {
  background: #0f172a;
  color: white;
}
@media (max-width: 768px) {
  .sf45-modal {
    padding: 60px 8px 8px;
  }
  .sf45-modal-inner {
    max-height: 92vh;
    border-radius: 12px;
  }
  .sf45-modal-close {
    top: 8px;
    right: 8px;
    padding: 12px 18px;
    font-size: 1rem;
  }
  .sf45-modal-header h2 {
    font-size: 1.15rem;
    padding-right: 110px;
  }
}

/* ===== Light theme for white background ===== */
.sf45-wrap {
  background: #ffffff;
  color: #1e293b;
}
.sf45-hero {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  color: #0f172a;
}
.sf45-eyebrow { color: #d97706; }
.sf45-hero h1 { color: #0f172a; }
.sf45-hero p { color: #475569; }
.sf45-search input {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sf45-search input::placeholder { color: #94a3b8; }
.sf45-toolbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sf45-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.sf45-chip.active,
.sf45-chip:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}
.sf45-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.sf45-card h3 { color: #0f172a; }
.sf45-card h3 a { color: inherit; }
.sf45-loc { color: #64748b; }
.sf45-card p { color: #475569; }
.sf45-date { color: #d97706; }
.sf45-btn { background: #f59e0b; color: #0f172a; }
.sf45-maplink { background: #10b981; color: white; }
.sf45-loadmore { background: #f59e0b; color: #0f172a; }

/* Categories: show chips by default, collapsible */
.sf45-filters { display: flex; }
.sf45-filter-toggle {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .sf45-filters { display: flex; }
  .sf45-filters:not(.open) { display: none; }
  .sf45-filter-toggle { display: block; }
  .sf45-filter-select { display: none; }
}

/* ===== Final category display fix ===== */
.sf45-filter-toggle { display: none !important; }
.sf45-filter-select { display: none !important; }
.sf45-filters { display: flex !important; flex-wrap: wrap; gap: 8px; }

@media (max-width: 768px) {
  .sf45-filter-toggle { display: block !important; margin: 0 auto 10px; }
  .sf45-filters { display: flex !important; }
  .sf45-filters:not(.open) { display: none !important; }
  .sf45-filters.open { display: flex !important; }
}

/* ===== Clean button-style categories ===== */
.sf45-filter-select { display: none !important; }
.sf45-filter-toggle {
  display: none;
  background: #f59e0b;
  color: #0f172a;
  border: 0;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0 auto 12px;
}
.sf45-filters {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.sf45-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.sf45-chip.active,
.sf45-chip:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

@media (max-width: 768px) {
  .sf45-filter-toggle { display: block; }
  .sf45-filters { display: flex !important; }
  .sf45-filters:not(.open) { display: none !important; }
  .sf45-filters.open { display: flex !important; }
  .sf45-toolbar { flex-direction: column; align-items: center; }
}

/* Horizontal category buttons */
.sf45-filters {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  width: 100%;
}
.sf45-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .sf45-filters {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }
  .sf45-filters.open {
    display: flex !important;
    flex-direction: row !important;
  }
}

/* Two rows of category buttons — no horizontal scroll */
.sf45-filters {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px;
  justify-content: center;
  overflow-x: visible !important;
  width: 100%;
  max-height: none;
}
.sf45-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .sf45-filters,
  .sf45-filters.open {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    overflow-x: visible !important;
    justify-content: center;
  }
}

/* Compact mobile categories — single scrolling row */
@media (max-width: 768px) {
  .sf45-filters,
  .sf45-filters.open {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 0 8px;
    max-height: 52px;
  }
  .sf45-chip {
    padding: 6px 12px;
    font-size: 0.8rem;
    flex: 0 0 auto;
  }
  .sf45-filter-toggle {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
}

/* Restore compact grid style like early versions — no horizontal scroll */
.sf45-filters,
.sf45-filters.open {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  overflow: visible !important;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-height: none;
  padding: 4px 0;
}
.sf45-chip {
  flex: 0 1 auto;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .sf45-filters,
  .sf45-filters.open {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    max-height: none;
  }
  .sf45-chip {
    padding: 7px 11px;
    font-size: 0.78rem;
    flex: 0 1 calc(33.33% - 6px);
    max-width: calc(33.33% - 6px);
    text-align: center;
    justify-content: center;
  }
  .sf45-filter-toggle {
    margin-bottom: 8px;
  }
}
@media (min-width: 769px) {
  .sf45-chip {
    flex: 0 1 auto;
    max-width: none;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Clear, high-contrast Categories button */
.sf45-filter-toggle {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 2px solid #0f172a !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.sf45-filter-toggle:hover,
.sf45-filter-toggle:active {
  background: #1e293b !important;
  color: #ffffff !important;
}


/* Bottom sticky category bar — easy for everyone */
.sf45-toolbar {
  position: sticky !important;
  bottom: 0 !important;
  top: auto !important;
  background: #ffffff !important;
  border-top: 2px solid #e2e8f0;
  border-bottom: none;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 50;
  padding: 12px 16px 16px;
}
.sf45-chip {
  padding: 12px 18px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf45-filter-toggle {
  padding: 14px 28px !important;
  font-size: 1.05rem !important;
  min-height: 52px;
}
@media (max-width: 768px) {
  .sf45-toolbar {
    padding-bottom: 20px;
  }
  .sf45-chip {
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    min-height: 50px;
  }
}

/* Minimizable floating category bar */
.sf45-toolbar {
  position: fixed !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 900px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 80;
  padding: 10px 12px;
  transition: all 0.2s ease;
}
.sf45-toolbar.minimized .sf45-filters {
  display: none !important;
}
.sf45-toolbar.minimized {
  width: auto;
  max-width: none;
  padding: 8px;
  border-radius: 999px;
}
.sf45-filter-toggle {
  display: block !important;
  width: 100%;
  background: #0f172a !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 14px 20px !important;
  border-radius: 999px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  min-height: 52px;
  cursor: pointer;
}
.sf45-toolbar.minimized .sf45-filter-toggle {
  width: auto;
  padding: 14px 24px !important;
}
@media (max-width: 768px) {
  .sf45-toolbar {
    bottom: 10px !important;
    width: calc(100% - 16px);
  }
  .sf45-chip {
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    min-height: 46px;
  }
}

/* ===== Final clean rules ===== */
/* Desktop: normal inline bar, not floating/in-your-face */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: sticky !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }
  .sf45-filter-toggle { display: none !important; }
  .sf45-filters { display: flex !important; }
}

/* Mobile: floating button + expandable filters that actually show */
@media (max-width: 768px) {
  .sf45-toolbar {
    position: fixed !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    z-index: 90;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
    padding: 10px !important;
  }
  .sf45-filter-toggle {
    display: block !important;
    width: 100%;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  .sf45-filters {
    display: none !important;
  }
  .sf45-toolbar:not(.minimized) .sf45-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px;
    margin-top: 10px;
    max-height: 40vh;
    overflow-y: auto;
  }
  .sf45-toolbar.minimized {
    width: auto !important;
    left: 12px !important;
    right: auto !important;
    padding: 6px !important;
    border-radius: 999px !important;
  }
  .sf45-toolbar.minimized .sf45-filter-toggle {
    width: auto;
    padding: 12px 20px !important;
  }
}

/* Desktop: static toolbar */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 12px 16px !important;
  }
  .sf45-filter-toggle { display: none !important; }
  .sf45-filters { display: flex !important; }
}

/* Mobile: no black on the button, clean look */
@media (max-width: 768px) {
  .sf45-filter-toggle {
    background: #f59e0b !important;
    color: #0f172a !important;
    border: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  }
  .sf45-toolbar.minimized {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* Desktop: sticky category toolbar */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: sticky !important;
    top: 0 !important;
    bottom: auto !important;
    z-index: 40;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
}

/* Desktop sticky toolbar below alert bar */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: sticky !important;
    top: 80px !important;
    z-index: 40;
  }
}

/* Desktop: clean 2-row category toolbar, easy for elderly */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: sticky !important;
    top: 70px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 10px 16px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  .sf45-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    max-height: 110px;
    overflow: hidden;
  }
  .sf45-chip {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    min-height: 44px;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }
  .sf45-chip.active,
  .sf45-chip:hover {
    background: #f59e0b !important;
    color: #0f172a !important;
    border-color: #f59e0b !important;
  }
}

/* Keep sticky toolbar below alert bar */
@media (min-width: 769px) {
  .sf45-toolbar {
    top: 80px !important;
  }
}

/* Desktop: simple, large, easy navigation like mobile */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: sticky !important;
    top: 70px !important;
    background: #ffffff !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .sf45-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .sf45-chip {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    color: #0f172a !important;
  }
  .sf45-chip.active {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #0f172a !important;
  }
  .sf45-chip:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
  }
}

/* Desktop: floating button instead of full sticky bar */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 520px;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px !important;
    z-index: 90;
  }
  .sf45-toolbar.minimized {
    width: auto !important;
    max-width: none;
    padding: 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  }
  .sf45-filter-toggle {
    display: block !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 14px 22px !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
  }
  .sf45-toolbar.minimized .sf45-filters {
    display: none !important;
  }
  .sf45-toolbar:not(.minimized) .sf45-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px;
    max-height: 120px;
    overflow-y: auto;
    justify-content: center;
  }
  .sf45-chip {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    min-height: 40px;
  }
}

/* Desktop: top position with easy hide */
@media (min-width: 769px) {
  .sf45-toolbar {
    position: sticky !important;
    top: 70px !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 10px 16px !important;
  }
  .sf45-toolbar.minimized {
    padding: 8px 16px !important;
  }
  .sf45-toolbar.minimized .sf45-filters {
    display: none !important;
  }
  .sf45-filter-toggle {
    display: inline-block !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
    cursor: pointer;
  }
  .sf45-toolbar:not(.minimized) .sf45-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center;
  }
}

/* When minimized: transparent bar, only the button shows */
.sf45-toolbar.minimized {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
}
.sf45-toolbar.minimized .sf45-filter-toggle {
  background: #f59e0b !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(245,158,11,0.45) !important;
  border: 2px solid #d97706 !important;
}
.sf45-toolbar.minimized .sf45-filter-toggle:hover {
  background: #d97706 !important;
  transform: scale(1.03);
}

/* Full transparent toolbar background */
.sf45-toolbar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}
.sf45-toolbar:not(.minimized) {
  background: transparent !important;
}

/* Dark toolbar background matching site */
.sf45-toolbar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}
.sf45-toolbar:not(.minimized) {
  background: #0f172a !important;
}
.sf45-chip {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
.sf45-chip.active,
.sf45-chip:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
}

/* Whole events page dark background */
.sf45-wrap {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
.sf45-hero {
  background: transparent !important;
  color: #f1f5f9 !important;
}
.sf45-hero h1 { color: #ffffff !important; }
.sf45-hero p { color: #cbd5e1 !important; }
.sf45-eyebrow { color: #f59e0b !important; }
.sf45-search input {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
.sf45-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
.sf45-card h3 { color: #ffffff !important; }
.sf45-card p { color: #cbd5e1 !important; }
.sf45-loc { color: #94a3b8 !important; }

/* Toolbar transparent again */
.sf45-toolbar,
.sf45-toolbar:not(.minimized) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.sf45-chip {
  background: rgba(255,255,255,0.1) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.sf45-chip.active,
.sf45-chip:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
}

/* Toolbar background that makes buttons pop */
.sf45-toolbar:not(.minimized) {
  background: #1e293b !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin: 8px 12px !important;
}
.sf45-chip {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
  font-weight: 700 !important;
}
.sf45-chip.active,
.sf45-chip:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
}

/* More condensed mobile menu */
@media (max-width: 768px) {
  .sf45-toolbar:not(.minimized) {
    padding: 8px !important;
    margin: 6px 8px !important;
  }
  .sf45-filters {
    gap: 4px !important;
  }
  .sf45-chip {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    min-height: 32px !important;
    border-radius: 999px !important;
  }
  .sf45-filter-toggle {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }
}

/* Show full event image — no cropping */
.sf45-img {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #0f172a !important;
  height: 180px !important;
}

/* Full image, no crop */
.sf45-img {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #0f172a !important;
  height: 200px !important;
  width: 100%;
}

/* Modal iframe fallback */
.sf45-iframe-wrap {
  position: relative;
  flex: 1;
  min-height: 300px;
  background: #f1f5f9;
}
.sf45-iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  background: #fff;
}
.sf45-iframe-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #475569;
  background: #f8fafc;
}
.sf45-iframe-fallback p { margin: 4px 0; }

/* Ensure modal iframe is visible and sized */
.sf45-modal-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 85vh !important;
  max-height: 85vh !important;
  background: #fff !important;
}
.sf45-iframe,
.sf45-iframe-wrap {
  flex: 1 !important;
  min-height: 400px !important;
  width: 100% !important;
  background: #fff !important;
}
.sf45-iframe {
  border: 0 !important;
  display: block !important;
}

/* Force modal and iframe to be visible and usable */
.sf45-modal {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(0,0,0,0.7) !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 60px 12px 12px !important;
}
.sf45-modal[style*="flex"],
.sf45-modal[style*="block"] {
  display: flex !important;
}
.sf45-modal-inner {
  background: #ffffff !important;
  width: 100% !important;
  max-width: 960px !important;
  height: 80vh !important;
  max-height: 80vh !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.sf45-iframe-wrap,
.sf45-iframe {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 350px !important;
  border: 0 !important;
  background: #ffffff !important;
  display: block !important;
}

.sf45-iframe-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fafc;
  padding: 24px;
  z-index: 2;
}
.sf45-iframe-wrap { position: relative; }
