.community-pool-page { background: #fbfaf7; color: #171717; }
.community-pool { --pool-pink: #ff4f87; --pool-blue: #3859d8; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 55px 0 90px; }
.community-pool__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 34px; padding: 28px 0 42px; }
.community-pool__hero-copy { max-width: 850px; }
.community-pool__hero-copy > p:first-child,
.community-pool__events-heading > div > p { color: #9b365e; font-size: 13px; font-weight: 800; letter-spacing: .15em; margin: 0 0 9px; text-transform: uppercase; }
.community-pool__hero h1 { font-size: clamp(46px, 9vw, 100px); letter-spacing: -.055em; line-height: .92; margin: 0; }
.community-pool__hero-meta { display: flex; gap: 10px; align-items: center; color: #6d6963; margin-top: 22px; }
.community-pool__hero-meta a { color: #171717; font-weight: 700; }
.community-pool__location { color: #9b365e; font-weight: 750; margin: 17px 0 0; }
.community-pool__description { color: #4f4b46; font-size: 17px; line-height: 1.55; margin-top: 15px; max-width: 700px; }
.community-pool__hero-photo { width: clamp(150px, 20vw, 250px); aspect-ratio: 1; border-radius: 26px; box-shadow: 0 16px 40px rgba(30, 25, 18, .12); object-fit: cover; }

.community-pool__explorer { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); background: #fff; border: 1px solid #e5e1d9; border-radius: 24px; box-shadow: 0 16px 50px rgba(30, 25, 18, .08); overflow: hidden; }
.community-pool__calendar-panel { padding: 26px; }
.community-pool__calendar-heading { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; }
.community-pool__calendar-heading h2 { text-align: center; font-size: 20px; margin: 0; }
.community-pool__calendar-heading button { width: 38px; height: 38px; border: 1px solid #ddd8cf; border-radius: 999px; background: #fff; cursor: pointer; }
.community-pool__calendar-heading button { color: #171717; }
.community-pool__weekdays,
.community-pool__calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.community-pool__weekdays { color: #8a857d; font-size: 11px; font-weight: 700; margin: 20px 0 7px; text-align: center; text-transform: uppercase; }
.community-pool__calendar-grid { gap: 4px; }
.community-pool__calendar-day { aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #24211e; cursor: pointer; font: inherit; }
.community-pool__calendar-day:hover { background: #f3f0eb; }
.community-pool__calendar-day.is-outside-month { color: #c4c0b9; }
.community-pool__calendar-day.is-today > span { font-weight: 800; text-decoration: underline; text-decoration-color: var(--pool-pink); text-underline-offset: 4px; }
.community-pool__calendar-day.is-selected { background: #171717; color: #fff; }
.community-pool__calendar-day small { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 999px; background: var(--pool-pink); color: white; font-size: 9px; font-weight: 800; }
.community-pool__calendar-day.is-selected small { background: white; color: #171717; }
.community-pool__all-events { width: 100%; border: 0; border-top: 1px solid #ebe7df; background: transparent; color: #34312d; cursor: pointer; font-weight: 700; margin-top: 18px; padding: 17px 5px 0; }
.community-pool__map-panel { position: relative; min-height: 485px; background: #e8e6e1; }
.community-pool__map { position: absolute; inset: 0; }
.community-pool__map.is-unavailable { display: grid; place-items: center; color: #6e6962; }
.community-pool__map-status { position: absolute; z-index: 2; bottom: 10px; left: 12px; margin: 0; border-radius: 8px; background: rgba(255, 255, 255, .9); color: #5b5751; font-size: 12px; padding: 5px 8px; }
.maplibregl-popup-content { border-radius: 12px; padding: 13px; }
.maplibregl-popup-content strong,
.maplibregl-popup-content p,
.maplibregl-popup-content a { display: block; }
.maplibregl-popup-content p { color: #67625c; margin: 5px 0; }

.community-pool__events { padding: 70px 0 0; }
.community-pool__events-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dedad3; padding-bottom: 17px; }
.community-pool__events-heading h2 { font-size: clamp(29px, 4vw, 43px); letter-spacing: -.035em; margin: 0; }
.community-pool__events-heading > span { color: #6e6962; white-space: nowrap; }
.community-pool__event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; padding-top: 28px; }
.community-pool__event[hidden] { display: none; }
.community-pool__event > a { display: block; color: inherit; text-decoration: none; }
.community-pool__event-image { aspect-ratio: 4 / 3; border-radius: 16px; background: #ece8e1; overflow: hidden; }
.community-pool__event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.community-pool__event > a:hover img { transform: scale(1.025); }
.community-pool__event-image--external { display: grid; place-content: center; justify-items: center; background: linear-gradient(145deg, #e7e9ff, #ffdce8); color: var(--pool-blue); }
.community-pool__event-image--external span { font-size: 44px; line-height: 1; }
.community-pool__event-image--external small { color: #5e5a78; font-weight: 800; letter-spacing: .08em; margin-top: 8px; text-transform: uppercase; }
.community-pool__event-body { display: grid; gap: 4px; padding: 14px 3px 0; }
.community-pool__event-body p { color: #b33466; font-size: 13px; font-weight: 800; margin: 0; }
.community-pool__event-body h3 { font-size: 20px; line-height: 1.17; margin: 2px 0; }
.community-pool__event-body span,
.community-pool__event-body small { color: #6e6962; }
.community-pool__event-body small { line-height: 1.35; }
.community-pool__empty { grid-column: 1 / -1; border: 1px dashed #cbc5bb; border-radius: 16px; color: #6e6962; padding: 42px; text-align: center; }
.community-pool__empty h3 { color: #25221e; margin-top: 0; }
.community-pool__footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

@media (max-width: 900px) {
  .community-pool__hero { align-items: start; grid-template-columns: 1fr; }
  .community-pool__hero-photo { grid-row: 1; width: 150px; }
  .community-pool__explorer { grid-template-columns: 1fr; }
  .community-pool__map-panel { min-height: 380px; }
  .community-pool__event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .community-pool { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .community-pool__hero { padding-bottom: 28px; }
  .community-pool__hero-meta { align-items: flex-start; flex-wrap: wrap; }
  .community-pool__calendar-panel { padding: 18px 12px; }
  .community-pool__calendar-day { border-radius: 9px; font-size: 13px; }
  .community-pool__calendar-day small { width: 14px; height: 14px; font-size: 8px; }
  .community-pool__map-panel { min-height: 320px; }
  .community-pool__events { padding-top: 45px; }
  .community-pool__event-grid { grid-template-columns: 1fr; }
  .community-pool__event-image { aspect-ratio: 16 / 10; }
  .community-pool__footer { width: min(100% - 24px, 1180px); }
}
