/* =================================================================
   SALM — Shared Map & List Styles
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Squada+One&family=Montserrat:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'SquadaOne';
  src: url('../fonts/SquadaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Container ────────────────────────────────────────────────── */

.salm-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  line-height: 1.5;
  max-width: 1400px;
  margin: 0 auto;
}

.salm-container *,
.salm-container *::before,
.salm-container *::after {
  box-sizing: border-box;
}

/* ─── View Toggle ──────────────────────────────────────────────── */

.salm-view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.salm-toggle-btn {
  padding: 10px 24px;
  border: none;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.salm-toggle-btn:hover {
  background: #e2e8f0;
}

.salm-toggle-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* ─── Map Wrapper (map + side panel) ───────────────────────────── */

.salm-map-wrapper {
  display: flex;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  width: 100%;
}

.salm-map-panel {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.salm-map-panel canvas {
  outline: none;
}

/* ─── Side Panel ───────────────────────────────────────────────── */

.salm-map-panel > div {
  width: 100%;
}

.salm-side-panel {
  flex: 0 0 340px;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
  max-height: 700px;
}

.salm-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.salm-panel-header h3 {
  margin: 0;
  font-family: 'SquadaOne', sans-serif;
  font-size: 26px;
  color: #0f172a;
  text-transform: uppercase;
}

.salm-panel-back {
  background: #F04A51;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Squada One', 'SquadaOne', sans-serif;
  font-size: 24px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.salm-panel-back:hover {
  background: #d93d44;
}

.salm-panel-content {
  padding: 16px 20px;
  flex: 1;
  font-family: 'Squada One', 'SquadaOne', sans-serif;
}

.salm-panel-placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* ─── Organizer Cards (side panel) ─────────────────────────────── */

.salm-org-section {
  margin-bottom: 20px;
}

.salm-org-section h4 {
  font-family: 'Squada One', 'SquadaOne', sans-serif;
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F4CD55;
}

.salm-org-card {
  padding: 12px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-family: 'Squada One', 'SquadaOne', sans-serif;
}

.salm-org-card--county {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #1a1a1a;
}

.salm-org-name {
  font-weight: 400;
  font-size: 24px;
  color: #0f172a;
  margin-bottom: 4px;
}

.salm-org-card--county .salm-org-name {
  color: #0f172a;
}

.salm-org-counties {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.salm-org-card--county .salm-org-counties {
  color: #64748b;
}

.salm-org-email a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  font-size: 15px;
}

.salm-org-card--county .salm-org-email a {
  color: #2563eb;
}

.salm-org-email a:hover {
  text-decoration: underline;
}

.salm-org-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
}

.salm-org-card--county .salm-org-phone {
  color: #64748b;
}

.salm-org-card--county .salm-org-phone a {
  color: #1a1a1a;
}

.salm-org-pending {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.salm-available {
  color: #1a1a1a;
  font-size: 22px;
  font-family: 'Squada One', 'SquadaOne', sans-serif;
}

.salm-available a {
  color: #1a1a1a;
  text-decoration: underline;
}

.salm-available a:hover {
  color: #0f172a;
}

/* ─── Filters Bar ──────────────────────────────────────────────── */

.salm-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.salm-filter-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  min-width: 160px;
}

.salm-filter-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.salm-search {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  min-width: 200px;
  flex: 1;
  max-width: 300px;
}

.salm-search:focus,
.salm-filter-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ─── List View ────────────────────────────────────────────────── */

.salm-list-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  max-height: 800px;
  overflow-y: auto;
}

.salm-list-controls {
  margin-bottom: 16px;
}

.salm-loading {
  color: #94a3b8;
  font-style: italic;
}

.salm-empty {
  color: #94a3b8;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
}

/* ─── List View: Organizer Groups ──────────────────────────────── */

.salm-list-state-group {
  margin-bottom: 24px;
}

.salm-list-state-group h3 {
  font-family: 'SquadaOne', sans-serif;
  font-size: 18px;
  color: #0f172a;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #2563eb;
}

.salm-list-card {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.salm-list-card:last-child {
  border-bottom: none;
}

.salm-list-type {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-right: 6px;
}

.salm-list-card a {
  color: #2563eb;
  text-decoration: none;
}

.salm-list-card a:hover {
  text-decoration: underline;
}

/* ─── List View: Event Cards ───────────────────────────────────── */

.salm-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.salm-event-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: box-shadow 0.2s;
}

.salm-event-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.salm-event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.salm-event-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.salm-event-date {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  white-space: nowrap;
}

.salm-event-location {
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
}

.salm-event-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

.salm-event-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.salm-event-link {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.salm-event-link:hover {
  text-decoration: underline;
}

/* ─── Mapbox Popups ────────────────────────────────────────────── */

.salm-popup {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding-right: 18px;
}

.salm-popup .salm-popup-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
}

.salm-popup .salm-popup-close:hover {
  color: #1a1a1a;
}

.salm-popup strong {
  font-size: 24px;
  color: #0f172a;
  font-weight: 500;
  font-family: 'Squada One', 'SquadaOne', sans-serif;
}

.salm-popup a {
  color: #2563eb;
  text-decoration: none;
}

.salm-popup a:hover {
  text-decoration: underline;
}

/* ─── Event Popup — Red Background with Icons ─────────────────────── */

.salm-evt-popup-container .mapboxgl-popup-content {
  background: #F04A51 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.salm-evt-popup-container.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.salm-evt-popup-container.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.salm-evt-popup-container.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
  border-top-color: #F04A51 !important;
}

.salm-evt-popup-container.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.salm-evt-popup-container.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.salm-evt-popup-container.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
  border-bottom-color: #F04A51 !important;
}

.salm-evt-popup-container.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: #F04A51 !important;
}

.salm-evt-popup-container.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: #F04A51 !important;
}

.salm-event-popup {
  font-family: 'Squada One', 'SquadaOne', sans-serif;
  color: #ffffff;
  padding: 16px 18px;
  padding-right: 28px;
  min-width: 220px;
}

.salm-event-popup .salm-popup-close {
  color: rgba(255, 255, 255, 0.7);
  top: 10px;
  right: 10px;
  font-size: 22px;
}

.salm-event-popup .salm-popup-close:hover {
  color: #ffffff;
}

.salm-event-popup h4 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.salm-popup-contact-header {
  font-family: 'Squada One', 'SquadaOne', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 8px;
}

.salm-popup-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.salm-popup-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.salm-popup-row span {
  flex: 1;
}

.salm-event-popup .salm-popup-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0;
  line-height: 1.4;
}

.salm-popup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.salm-popup-actions a {
  color: #ffffff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}

.salm-popup-actions a:hover {
  background: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.salm-event-popup .salm-popup-organizer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 8px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.salm-event-popup .salm-popup-organizer a {
  color: #ffffff;
}

/* ─── Organizer Popup — White Background ───────────────────────── */

.salm-org-popup-container .mapboxgl-popup-content {
  background: #ffffff !important;
  padding: 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
}


.salm-org-popup-container.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-top-color: #ffffff !important;
}

.salm-org-popup-container.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.salm-org-popup-container.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.salm-org-popup-container.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
  border-bottom-color: #ffffff !important;
}

.salm-org-popup-container.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.salm-org-popup-container.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
  border-top-color: #ffffff !important;
}

.salm-org-popup-container.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: #ffffff !important;
}

.salm-org-popup-container.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: #ffffff !important;
}

.salm-org-popup-container .salm-popup {
  font-family: 'Squada One', 'SquadaOne', sans-serif;
  color: #1a1a1a;
}

.salm-org-popup-container .salm-popup strong {
  font-family: 'Squada One', 'SquadaOne', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #1a1a1a;
}

.salm-org-popup-container .salm-popup a {
  color: #2563eb;
  text-decoration: underline;
}

.salm-org-popup-container .salm-popup .salm-popup-close {
  color: #94a3b8;
}

.salm-org-popup-container .salm-popup .salm-popup-close:hover {
  color: #1a1a1a;
}

.salm-popup .salm-popup-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: #f04a51;
  margin: 12px 0 16px;
}

.salm-popup .salm-popup-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.salm-popup .salm-popup-btn {
  display: inline-block;
  padding: 10px;
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.salm-popup-btn--signup {
  background: #F04A51;
  color: #ffffff !important;
}

.salm-popup-btn--signup:hover {
  background: #d93d44;
  text-decoration: none !important;
}

.salm-popup-btn--learn {
  background: #f4f4f4;
  color: #1a1a1a !important;
  border: 1px solid #e2e8f0;
}

.salm-popup-btn--learn:hover {
  background: #e8e8e8;
  text-decoration: none !important;
}

/* ─── Mapbox Overrides ─────────────────────────────────────────── */

.mapboxgl-popup-content {
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Default Mapbox close button is disabled; we use .salm-popup-close instead. */

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .salm-map-wrapper {
    flex-direction: column;
  }

  .salm-side-panel {
    flex: 0 0 auto;
    width: 100%;
    max-height: 300px;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }

  .salm-filters {
    flex-direction: column;
  }

  .salm-filter-select,
  .salm-search {
    width: 100%;
    max-width: none;
  }

  .salm-event-card-header {
    flex-direction: column;
  }

  .salm-evt-filters-row {
    flex-direction: column;
  }
}

/* =================================================================
   Organizer Directory List — Accordion
   ================================================================= */

.salm-org-list {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  max-width: 1400px;
  margin: 0 auto;
}

.salm-org-list-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 24px;
  color: #1e293b;
  line-height: 1.7;
}

.salm-org-list-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Accordion Item ──────────────────────────────────────────────── */

.salm-acc-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.salm-org-list button.salm-acc-header,
.salm-org-list button.salm-acc-header:hover,
.salm-org-list button.salm-acc-header:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: #f4f4f4;
  cursor: pointer;
  text-align: left;
  font-family: "Squada One", 'SquadaOne', sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s;
  outline: none;
}

.salm-org-list button.salm-acc-header:hover,
.salm-org-list button.salm-acc-header:focus {
  background: #e8e8e8;
}

.salm-acc-icon {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #6b7280;
  flex-shrink: 0;
}

.salm-acc-body {
  padding: 24px 28px;
  border-top: 1px solid #e2e8f0;
}

/* ─── Section Headings ────────────────────────────────────────────── */

.salm-acc-section-title {
  font-family: "Squada One", 'SquadaOne', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.salm-acc-section-state {
  color: #E84855;
}

.salm-acc-section-county {
  color: #E84855;
  margin-top: 28px;
}

/* ─── Tables ──────────────────────────────────────────────────────── */

.salm-acc-table-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.salm-acc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.salm-acc-table th {
  text-align: left;
  padding: 10px 16px;
  font-family: "Squada One", 'SquadaOne', sans-serif;
  font-weight: 500;
  font-size: 22px;
}

.salm-acc-table td {
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
}

.salm-acc-table-state thead th {
  background: #E84855;
  color: #ffffff;
}

.salm-acc-table-county thead th {
  background: #E84855;
  color: #ffffff;
}

.salm-acc-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.salm-acc-table a {
  color: #1a1a1a;
  text-decoration: none;
}

.salm-acc-table a:hover {
  text-decoration: underline;
}

.salm-acc-none {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
  margin: 0 0 8px;
}

/* =================================================================
   Event Directory List — Accordion
   ================================================================= */

.salm-evt-list {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  max-width: 1400px;
  margin: 0 auto;
}

.salm-evt-list-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 24px;
  color: #1e293b;
  line-height: 1.7;
}

/* Event list accordion header — same pattern as organizer but scoped to .salm-evt-list */
.salm-evt-list button.salm-acc-header,
.salm-evt-list button.salm-acc-header:hover,
.salm-evt-list button.salm-acc-header:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: #f4f4f4;
  cursor: pointer;
  text-align: left;
  font-family: "Squada One", 'SquadaOne', sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s;
  outline: none;
}

.salm-evt-list button.salm-acc-header:hover,
.salm-evt-list button.salm-acc-header:focus {
  background: #e8e8e8;
}

/* Event table inherits shared .salm-acc-table styles (Montserrat, red header) */

/* Event count badge on accordion header */
.salm-evt-list .salm-acc-count {
  margin-left: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: #F04A51;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* Organizer list badge — same as event list badge */
.salm-org-list .salm-acc-count {
  margin-left: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: #F04A51;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* Fallback for generic badge */
.salm-acc-count {
  margin-left: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: #F04A51;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* ─── Event Map — Back Button Overlay ─────────────────────────────── */

.salm-event-container .salm-map-wrapper {
  position: relative;
}

.salm-evt-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #F04A51;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-family: "Squada One", 'SquadaOne', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.15s;
}

.salm-evt-back:hover {
  background: #d93d44;
}

/* ─── Event Map Loading Overlay ──────────────────────────────────── */

.salm-evt-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Squada One", 'SquadaOne', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.salm-evt-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e2e8f0;
  border-top-color: #F04A51;
  border-radius: 50%;
  animation: salm-spin 0.7s linear infinite;
}

@keyframes salm-spin {
  to { transform: rotate(360deg); }
}

/* ─── Event Map Filters ──────────────────────────────────────────── */

.salm-evt-filters {
  margin-bottom: 16px;
}

.salm-evt-filters-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.salm-evt-filters-row .salm-filter-select {
  flex: 1;
  min-width: 0;
}

.salm-filter-date-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.salm-filter-date-label {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.salm-filter-date {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
}

.salm-filter-date:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.salm-evt-search-wrap {
  position: relative;
}

.salm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.salm-evt-search-wrap .salm-search {
  width: 100%;
  max-width: none;
}

.salm-search--icon {
  padding-left: 38px !important;
  font-size: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.salm-search--icon:focus {
  border-color: #F04A51;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(240, 74, 81, 0.12);
}

.salm-search--icon::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.salm-evt-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.salm-evt-suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.4;
}

.salm-evt-suggestion-item:last-child {
  border-bottom: none;
}

.salm-evt-suggestion-item:hover {
  background: #f8fafc;
}

.salm-evt-suggestion-item strong {
  color: #0f172a;
  font-size: 14px;
}

.salm-evt-suggestion-item small {
  color: #64748b;
  font-size: 12px;
}

.salm-evt-suggestion-empty {
  padding: 10px 12px;
  color: #94a3b8;
  font-style: italic;
  font-size: 14px;
}

/* ─── Accordion Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
  .salm-acc-body {
    padding: 16px;
  }

  .salm-acc-table th,
  .salm-acc-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .salm-acc-header {
    padding: 12px 16px;
    font-size: 15px;
  }
}
