:root {
  --green: #6F8F72;
  --green-dark: #58765B;
  --blue: #5E8FAF;
  --warm-bg: #F7F5F2;
  --card: #FFFFFF;
  --ink: #2F3437;
  --muted: #66736F;
  --line: #E6E8EB;
  --cream-weekend: #FBF7EF;
  --shadow: 0 8px 24px rgba(33, 39, 36, .08);
  --shadow-soft: 0 4px 14px rgba(33, 39, 36, .06);
  --radius: 18px;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Poppins, Inter, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--warm-bg); color: var(--ink); font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.material-symbols-rounded { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.site-nav { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(247,245,242,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230,232,235,.85); }
.brand-button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--ink); padding: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: var(--green); color: white; font-family: var(--font-heading); font-size: 28px; }
.brand-text { font-family: var(--font-heading); font-size: 21px; font-weight: 800; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-link { border: 0; background: transparent; color: var(--muted); padding: 10px 12px; border-radius: 999px; font-weight: 700; }
.nav-link:hover, .nav-link.active { background: rgba(111,143,114,.14); color: var(--green-dark); }
.nav-link.subtle { opacity: .75; }
.hero { position: relative; padding: 2rem 1rem 1.5rem; min-height: auto; display: grid; place-items: center; background: linear-gradient(135deg, rgba(111,143,114,.16), rgba(94,143,175,.14)); overflow: hidden; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--ink); padding: 24px 16px; width: 100%; max-width: 1200px; margin: 0 auto; }
.hero-logo { width: min(100%, 1000px); max-width: 100%; height: auto; display: block; margin: 0 auto; object-fit: contain; }
.hero-tagline { margin: 12px auto 0; font-size: clamp(16px, 2.4vw, 22px); font-weight: 600; max-width: 620px; color: var(--ink); }
main { width: min(1280px, calc(100% - 32px)); margin: 24px auto 56px; }
.page { display: none; }
.active-page { display: block; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 18px; }
.today-panel { display: grid; grid-template-columns: 260px 1fr; gap: 18px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--green-dark); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
h2 { margin: 0; font-family: var(--font-heading); letter-spacing: -.02em; }
.today-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: stretch; }
.today-events .event-pill { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; width: 100%; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 12px; text-align: left; }
.today-events .event-pill::after { display: none !important; content: none !important; }
.today-events .event-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; margin-top: 1px; }
.today-events .event-title { font-size: 14px; line-height: 1.25; }
.today-events .event-time, .today-events .event-place { font-size: 12px; }
.toolbar { display: grid; gap: 16px; margin-bottom: 16px; }
.month-controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.circle-button { display: grid; place-items: center; border: 1px solid var(--line); background: white; color: var(--green-dark); width: 42px; height: 42px; border-radius: 999px; }
.month-select, .filter-grid select, .search-row input, .narrow-card input, .narrow-card textarea { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.month-select { font-weight: 800; font-size: 18px; min-width: 210px; text-align: center; }
.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(135px, 1fr)); gap: 12px; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
select.has-value { border-color: rgba(111,143,114,.75); background: rgba(111,143,114,.08); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 800; padding: 11px 16px; }
.primary-button { border: 0; background: var(--green); color: white; }
.secondary-button { border: 1px solid var(--green); background: white; color: var(--green-dark); }
.hidden { display: none !important; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.calendar-card { overflow: hidden; padding: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day-name { padding: 10px 8px; background: rgba(111,143,114,.11); color: var(--green-dark); text-align: center; font-weight: 900; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day-cell { min-height: 146px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; background: white; }
.day-cell.weekend { background: var(--cream-weekend); }
.day-cell.empty { background: #F0EFEC; }
.date-number { display: inline-grid; place-items: center; min-width: 28px; height: 28px; font-weight: 900; color: var(--muted); margin-bottom: 6px; }
.date-number.today { border-radius: 999px; background: var(--green); color: white; }
.day-events { display: grid; gap: 0; }
.event-pill { border: 0; width: 100%; display: grid; grid-template-columns: 22px 1fr; gap: 5px; text-align: left; background: transparent; color: inherit; padding: 6px 2px; border-radius: 10px; }
.event-pill:hover { background: rgba(111,143,114,.12); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(33,39,36,.08); }
.event-pill:not(:last-child)::after { content: ""; grid-column: 2; width: 78%; height: 1px; background: rgba(47,52,55,.14); margin: 7px 0 0; }
.event-icon { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 16px; justify-self: center; align-self: start; margin-top: 2px; }
.event-main { display: block; min-width: 0; }
.event-title { display: block; font-size: 12px; line-height: 1.25; font-weight: 800; }
.event-time { display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.event-place { display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; color: var(--muted); font-weight: 600; }
.explore-anytime { max-height: 75vh; overflow-y: auto; }
.helper { color: var(--muted); margin-top: 6px; }
.anytime-item { padding: 10px 12px; }
.anytime-item strong { display: block; }
.anytime-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.anytime-button { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.anytime-button:hover { background: rgba(111,143,114,.08); border-radius: 12px; }
.page-intro { margin-bottom: 16px; }
.search-row { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; margin: 16px 0; }
.search-row input { border: 0; outline: 0; flex: 1; padding: 14px 0; background: transparent; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.activity-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: white; box-shadow: 0 2px 10px rgba(33,39,36,.04); }
.activity-hours { margin: 8px 0; color: var(--ink); font-weight: 800; }
.activity-card h3 { margin: 0 0 8px; font-family: var(--font-heading); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgba(111,143,114,.11); color: var(--green-dark); padding: 5px 8px; font-size: 12px; font-weight: 800; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.text-button { border: 0; background: transparent; color: var(--green-dark); font-weight: 900; padding: 0; }
.count-pill { background: rgba(94,143,175,.14); color: #315C78; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.narrow-card { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(28,34,31,.48); display: grid; place-items: center; padding: 20px; animation: fadeIn .16s ease both; }
.modal-card { position: relative; width: min(640px, 100%); max-height: min(86vh, 760px); overflow: auto; background: white; border-radius: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.24); padding: 24px; animation: modalIn .18s ease both; }
.modal-close { position: sticky; top: 0; float: right; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(47,52,55,.08); color: var(--ink); margin: -8px -8px 8px 8px; }
.empty-day-note { width: 100%; border: 1px dashed rgba(111,143,114,.35); background: rgba(111,143,114,.06); color: var(--green-dark); border-radius: 12px; padding: 8px 6px; font-size: 11px; font-weight: 800; text-align: center; }
.empty-day-note:hover { background: rgba(111,143,114,.12); }
.modal-title { font-family: var(--font-heading); font-size: 28px; margin: 4px 0 6px; line-height: 1.05; }
.modal-section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.modal-section h4 { margin: 0 0 8px; font-family: var(--font-heading); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 900px) { .site-nav { align-items: flex-start; flex-direction: column; padding: 10px 16px; } .nav-links { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; } .nav-link { white-space: nowrap; } main { width: min(100% - 24px, 1280px); margin-top: 14px; } .today-panel { grid-template-columns: 1fr; } .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calendar-layout { grid-template-columns: 1fr; } .explore-anytime { position: static; max-height: none; } .day-cell { min-height: 118px; padding: 6px; } .event-title { font-size: 11px; } .event-place { font-size: 10.5px; } .section-header { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .brand-text { font-size: 18px; } .hero p { font-size: 15px; } .filter-grid { grid-template-columns: 1fr; } .calendar-grid { font-size: 12px; } .day-name { padding: 7px 2px; } .day-cell { min-height: 96px; padding: 5px; } .date-number { min-width: 24px; height: 24px; font-size: 12px; } .event-pill { grid-template-columns: 18px 1fr; gap: 4px; padding: 4px 1px; } .event-icon { width: 18px; height: 18px; font-size: 13px; border-radius: 6px; } .event-title { font-size: 10px; } .event-place { font-size: 9.5px; } .today-events { grid-template-columns: 1fr; } .today-events .event-pill { grid-template-columns: 30px 1fr; padding: 10px; } .modal-card { padding: 18px; border-radius: 20px; } }
@media print { .site-nav, .hero, .toolbar, .today-panel, .explore-anytime, .primary-button, .modal-backdrop { display: none !important; } body { background: white; } main { width: 100%; margin: 0; } .calendar-layout { display: block; } .calendar-card { width: 100%; box-shadow: none; border: none; } .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); } .day-cell { min-height: 160px; page-break-inside: avoid; break-inside: avoid; } .event-title { font-size: 11px; } .event-place, .event-time { font-size: 10px; } .section-header { border-bottom: 1px solid #999; } }

/* Weather card on homepage */
.weather-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(94,143,175,.10);
  border: 1px solid rgba(94,143,175,.18);
}

.weather-main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.weather-main .material-symbols-rounded {
  font-size: 34px;
  color: var(--blue);
}

.weather-main strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-family: var(--font-heading);
}

.weather-main span:not(.material-symbols-rounded),
.weather-details {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.weather-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.weather-card p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink);
  font-weight: 650;
}

/* Map page */
.map-card {
  padding: 0;
  overflow: hidden;
}

.activity-map {
  display: block;
  position: relative;
  height: min(70vh, 650px);
  min-height: 460px;
  width: 100%;
  z-index: 1;
  background: #d8ebe8;
}

.map-popup strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 4px;
}

.map-popup span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.map-popup p {
  margin: 8px 0;
}

.map-popup .primary-button {
  padding: 8px 12px;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 560px) {
  .activity-map {
    height: 62vh;
    min-height: 380px;
  }
}


.map-empty {
  padding: 18px;
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.map-empty strong {
  color: var(--ink);
  font-family: var(--font-heading);
}

.activity-map.has-no-map-items {
  min-height: 220px;
}

.leaflet-container {
  font-family: var(--font-body);
}


.map-card .section-header {
  position: relative;
  z-index: 2;
  background: white;
}

.leaflet-container {
  height: 100%;
  width: 100%;
  font-family: var(--font-body);
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  max-width: none !important;
}

@media (max-width: 560px) {
  .activity-map {
    min-height: 380px;
    height: 70vh;
  }
}


/* Leaflet local layout fix.
   This protects the map if the external Leaflet CSS fails to load. */
.leaflet-container {
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
  outline-style: none;
  background: #ddd;
  font-family: var(--font-body);
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-zoom {
  border: 2px solid rgba(0,0,0,.2);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px;
}

.leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  color: #000;
  background: #fff;
  border-bottom: 1px solid #ccc;
  font: bold 18px Arial, Helvetica, sans-serif;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.leaflet-control-attribution {
  background: rgba(255,255,255,.8);
  margin: 0;
  padding: 0 5px;
  font-size: 11px;
}

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
  background: #fff;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,.4);
  padding: 1px;
  text-align: left;
}

.leaflet-popup-content {
  margin: 13px 19px;
  line-height: 1.4;
}

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  transform: rotate(45deg);
  background: white;
  box-shadow: 0 3px 14px rgba(0,0,0,.4);
}
