@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

.smw-root {
  --black: #0B0B0B;
  --gold: #C6A75C;
  --tan: #E8DCC4;
  --white: #FFFFFF;

  font-family: 'Source Sans 3', sans-serif;
  color: var(--black);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.smw-shell {
  background: #FFFFFF;
  border: 1px solid rgba(198, 167, 92, 0.2);
  padding: 28px;
}

.smw-panel {
  background: #FFFFFF;
  border: 1px solid rgba(198, 167, 92, 0.2);
  padding: 20px;
}

.smw-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin: 0 0 14px 0;
  color: var(--black);
  border-bottom: 1px solid rgba(11, 11, 11, 0.15);
  padding-bottom: 10px;
}

.smw-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.smw-event {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(11, 11, 11, 0.03);
  border-left: 3px solid var(--gold);
  transition: all 0.25s ease;
  cursor: pointer;
}

.smw-event:hover {
  background: rgba(11, 11, 11, 0.06);
  transform: translateX(4px);
}

.smw-event.smw-highlighted {
  background: rgba(198, 167, 92, 0.15);
  border-left-color: var(--tan);
}

.smw-date {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  min-width: 78px;
}

.smw-location {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--black);
}

.smw-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
}

.smw-map-link-wrap {
  margin-top: 22px;
  text-align: center;
}

.smw-map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.smw-map-link:hover {
  background: var(--tan);
  color: var(--black);
}

/* Full map page (opens in new tab) - black background */
body.smw-map-page-body {
  background: #0B0B0B !important;
}

body.smw-map-page-body .site,
body.smw-map-page-body #content,
body.smw-map-page-body .content-area,
body.smw-map-page-body main {
  background: #0B0B0B !important;
}

body.smw-map-page-body .entry-title,
body.smw-map-page-body h1,
body.smw-map-page-body .page-title {
  color: #FFFFFF !important;
}

.smw-map-page {
  padding: 0;
  max-width: 100%;
  background: #0B0B0B;
}

.smw-map-full {
  width: 100%;
  height: 85vh;
  min-height: 500px;
}

.smw-map-panel {
  margin-top: 22px;
  overflow: hidden;
  height: 620px;
}

.smw-map {
  width: 100%;
  height: calc(100% - 54px);
  min-height: 520px;
}

/* Leaflet popup theming */
.smw-root .leaflet-popup-content-wrapper {
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(198, 167, 92, 0.3);
}

.smw-root .leaflet-popup-content {
  margin: 14px 18px;
  font-size: 0.9rem;
}

.smw-popup-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.smw-popup-events {
  font-size: 0.8rem;
  color: var(--tan);
  line-height: 1.5;
}

.smw-root .leaflet-container {
  background: var(--black);
}
