/**
 * PSP 250th Anniversary — Styles
 *
 * Theme tokens (from Push10 theme):
 * Fonts: "Open Sans", serif | "Playfair Display", serif
 * Colors: #000034 (designBlack), #0F265D (darkBlue), #14327C (mediumBlue),
 *         #F3F6FF (lightBlue), #F36A39 (orange), #28788B (tealdark),
 *         #57B9D1 (tealmid), #FFD163 (yellowmid), #CE9918 (yellowdark)
 * Container: max-width 1420px with 30px gutters
 */

/* ==========================================================================
   Container
   ========================================================================== */

.psp-250th-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.psp-250th-single-hero .psp-250th-container {
  margin-left: 20px;
}

@media (max-width: 767px) {
  .psp-250th-container {
    padding: 0 15px;
  }
}

/* ==========================================================================
   Section Headlines
   ========================================================================== */

.psp-250th-section-headline {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: #000034;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .psp-250th-section-headline {
    font-size: 28px;
    letter-spacing: -0.56px;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.psp-250th-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #14327c;
  padding: 180px 0 100px;
  overflow: hidden;
}

.psp-250th-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 38, 93, 0.85) 0%,
    rgba(20, 50, 124, 0.7) 100%
  );
  z-index: 1;
}

.psp-250th-hero .psp-250th-container {
  position: relative;
  z-index: 2;
}

.psp-250th-hero-headline {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.12px;
  color: #fff;
  max-width: 900px;
  margin: 0 0 30px;
}

.psp-250th-hero-intro {
  max-width: 800px;
}

.psp-250th-hero-intro p {
  font-family: "Open Sans", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 16px;
}

@media (max-width: 991px) {
  .psp-250th-hero {
    padding: 150px 0 80px;
  }
  .psp-250th-hero-headline {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .psp-250th-hero {
    padding: 130px 0 60px;
  }
  .psp-250th-hero-headline {
    font-size: 32px;
    letter-spacing: -0.64px;
  }
  .psp-250th-hero-intro p {
    font-size: 16px;
  }
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.psp-250th-map {
  padding: 80px 0;
  background: #f3f6ff;
}

#psp-250th-map-canvas {
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 52, 0.1);
  z-index: 1;
}

@media (max-width: 991px) {
  #psp-250th-map-canvas {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .psp-250th-map {
    padding: 50px 0;
  }
  #psp-250th-map-canvas {
    height: 300px;
  }
}

/* Leaflet popup overrides */
.psp-250th-popup h4 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #000034;
  margin: 0 0 4px;
}

.psp-250th-popup .popup-denomination {
  font-family: "Open Sans", serif;
  font-size: 13px;
  font-weight: 600;
  color: #28788b;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.psp-250th-popup .popup-address {
  font-family: "Open Sans", serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000034;
  margin: 0 0 10px;
}

.psp-250th-popup .popup-website,
.psp-250th-popup .popup-details {
  display: inline-block;
  font-family: "Open Sans", serif;
  font-size: 14px;
  font-weight: 600;
  color: #14327c;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-right: 12px;
}

.psp-250th-popup .popup-details {
  color: #f36a39;
}

.psp-250th-popup .popup-website:hover,
.psp-250th-popup .popup-details:hover {
  color: #28788b;
}

/* Custom marker */
.psp-250th-marker {
  background: none;
  border: none;
}

/* Map congregation list (below map) */
.psp-250th-map-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.psp-250th-map-list-item h4 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 4px;
}

.psp-250th-map-list-item h4 a {
  color: #14327c;
  text-decoration: none;
}

.psp-250th-map-list-item h4 a:hover {
  color: #f36a39;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.psp-250th-map-list-item p {
  font-family: "Open Sans", serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000034;
  margin: 0;
}

@media (max-width: 991px) {
  .psp-250th-map-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .psp-250th-map-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
}

/* ==========================================================================
   Congregations Accordion
   ========================================================================== */

.psp-250th-congregations {
  padding: 80px 0;
}

@media (max-width: 767px) {
  .psp-250th-congregations {
    padding: 50px 0;
  }
}

.psp-250th-accordion-item {
  border-bottom: 1px solid rgba(0, 0, 52, 0.1);
}

.psp-250th-accordion-item:first-child {
  border-top: 1px solid rgba(0, 0, 52, 0.1);
}

/* Header / button */
.psp-250th-accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: #000034;
  position: relative;
  gap: 12px;
}

.psp-250th-accordion-header:hover {
  color: #14327c;
}

.psp-250th-accordion-header:focus-visible {
  outline: 2px solid #f36a39;
  outline-offset: 2px;
}

.psp-250th-accordion-title {
  flex: 1;
}

.psp-250th-denomination-tag {
  font-family: "Open Sans", serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #28788b;
  background: #e5faff;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Accordion chevron icon */
.psp-250th-accordion-icon {
  display: block;
  width: 15px;
  height: 9px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='9' viewBox='0 0 15 9' fill='none'%3E%3Cpath d='M7.5 9L0 1.4139L1.39786 0L7.5 6.1722L13.6021 0L15 1.4139L7.5 9Z' fill='%23F36A39'/%3E%3C/svg%3E")
    no-repeat center;
  transition: transform 0.3s ease;
}

.psp-250th-accordion-header.active .psp-250th-accordion-icon {
  transform: rotate(180deg);
}

/* Content */
.psp-250th-accordion-content {
  display: none;
  padding: 0 0 24px;
}

.psp-250th-congregation-description {
  margin-bottom: 24px;
}

.psp-250th-congregation-description p {
  font-family: "Open Sans", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000034;
  margin: 0 0 12px;
}

.psp-250th-congregation-description p:last-child {
  margin-bottom: 0;
}

.psp-250th-congregation-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: #f3f6ff;
  border-radius: 6px;
}

.psp-250th-info-item {
  font-family: "Open Sans", serif;
  font-size: 15px;
  line-height: 1.5;
  color: #000034;
}

.psp-250th-info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #14327c;
  margin-bottom: 4px;
}

.psp-250th-website-link {
  font-weight: 600;
  color: #14327c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.psp-250th-website-link:hover {
  color: #f36a39;
}

.psp-250th-view-profile {
  display: inline-block;
  font-family: "Open Sans", serif;
  font-size: 15px;
  font-weight: 600;
  color: #f36a39;
  text-decoration: none;
  border: 1px solid #f36a39;
  border-radius: 25px;
  padding: 10px 24px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.psp-250th-view-profile:hover {
  background: #f36a39;
  color: #000034;
}

@media (max-width: 767px) {
  .psp-250th-accordion-header {
    font-size: 20px;
    flex-wrap: wrap;
  }
  .psp-250th-congregation-info {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Calendar Section
   ========================================================================== */

.psp-250th-calendar {
  padding: 80px 0;
  background: #fff;
}

@media (max-width: 767px) {
  .psp-250th-calendar {
    padding: 50px 0;
  }
}

/* Navigation */
.psp-250th-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.psp-250th-calendar-month-label {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
  color: #000034;
  margin: 0;
}

.psp-250th-calendar-prev,
.psp-250th-calendar-next {
  font-family: "Open Sans", serif;
  font-size: 15px;
  font-weight: 600;
  color: #14327c;
  background: none;
  border: 1px solid #14327c;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.psp-250th-calendar-prev:hover,
.psp-250th-calendar-next:hover {
  background: #14327c;
  color: #fff;
}

.psp-250th-calendar-prev:disabled,
.psp-250th-calendar-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.psp-250th-calendar-prev:disabled:hover,
.psp-250th-calendar-next:disabled:hover {
  background: none;
  color: #14327c;
}

@media (max-width: 767px) {
  .psp-250th-calendar-month-label {
    font-size: 22px;
  }
  .psp-250th-calendar-prev,
  .psp-250th-calendar-next {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* Month container */
.psp-250th-calendar-month {
  display: none;
}

.psp-250th-calendar-month.active {
  display: block;
}

/* Grid */
.psp-250th-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Day headers */
.psp-250th-calendar-day-header {
  font-family: "Open Sans", serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #14327c;
  text-align: center;
  padding: 12px 4px;
  background: #f3f6ff;
}

/* Day cells */
.psp-250th-calendar-day {
  position: relative;
  min-height: 80px;
  padding: 10px;
  background: #fff;
  border: 1px solid #f3f6ff;
  text-align: center;
}

.psp-250th-calendar-day.empty {
  background: transparent;
  border-color: transparent;
}

.psp-250th-day-number {
  font-family: "Open Sans", serif;
  font-size: 16px;
  font-weight: 400;
  color: #000034;
}

/* Event dot */
.psp-250th-event-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f36a39;
  margin: 6px auto 0;
}

/* Clickable days */
.psp-250th-calendar-day.has-events {
  cursor: pointer;
  transition: background-color 0.2s;
}

.psp-250th-calendar-day.has-events:hover {
  background: #f3f6ff;
}

.psp-250th-calendar-day.has-events:focus-visible {
  outline: 2px solid #f36a39;
  outline-offset: -2px;
}

.psp-250th-calendar-day.selected {
  background: #14327c;
}

.psp-250th-calendar-day.selected .psp-250th-day-number {
  color: #fff;
  font-weight: 700;
}

.psp-250th-calendar-day.selected .psp-250th-event-dot {
  background: #ffd163;
}

@media (max-width: 767px) {
  .psp-250th-calendar-day {
    min-height: 50px;
    padding: 6px 2px;
  }
  .psp-250th-day-number {
    font-size: 14px;
  }
  .psp-250th-event-dot {
    width: 6px;
    height: 6px;
    margin-top: 4px;
  }
}

/* Events panel */
.psp-250th-events-panel {
  margin-top: 24px;
  padding: 30px;
  background: #f3f6ff;
  border-radius: 8px;
}

.psp-250th-events-date {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  color: #14327c;
  margin: 0 0 20px;
}

/* Event cards */
.psp-250th-event-card {
  padding: 20px;
  background: #fff;
  border-left: 4px solid #f36a39;
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px;
}

.psp-250th-event-card:last-child {
  margin-bottom: 0;
}

.psp-250th-event-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 400;
  color: #000034;
  margin: 0 0 6px;
}

.psp-250th-event-congregation {
  font-family: "Open Sans", serif;
  font-size: 14px;
  font-weight: 700;
  color: #28788b;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.psp-250th-event-congregation a {
  color: #28788b;
  text-decoration: none;
}

.psp-250th-event-congregation a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.psp-250th-event-time {
  font-family: "Open Sans", serif;
  font-size: 15px;
  font-weight: 600;
  color: #000034;
  margin: 0 0 10px;
}

.psp-250th-event-description {
  font-family: "Open Sans", serif;
  font-size: 15px;
  line-height: 1.6;
  color: #000034;
  margin: 0 0 12px;
}

.psp-250th-event-description p {
  margin: 0 0 8px;
}

.psp-250th-event-tickets {
  font-family: "Open Sans", serif;
  font-size: 15px;
  color: #000034;
  margin: 0 0 10px;
}

.psp-250th-event-link {
  display: inline-block;
  font-family: "Open Sans", serif;
  font-size: 15px;
  font-weight: 600;
  color: #f36a39;
  text-decoration: none;
  border: 1px solid #f36a39;
  border-radius: 25px;
  padding: 8px 20px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.psp-250th-event-link:hover {
  background: #f36a39;
  color: #000034;
}

.psp-250th-no-events {
  font-family: "Open Sans", serif;
  font-size: 18px;
  color: #000034;
  text-align: center;
  padding: 60px 0;
}

@media (max-width: 767px) {
  .psp-250th-events-panel {
    padding: 20px;
  }
  .psp-250th-event-card {
    padding: 16px;
  }
  .psp-250th-event-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   Single Congregation Page
   ========================================================================== */

.psp-250th-single {
  padding-top: 80px;
}

.psp-250th-single-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-color: #14327c;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.psp-250th-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 52, 0.7) 0%, transparent 60%);
}

.psp-250th-single-hero .psp-250th-container {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.psp-250th-single-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin: 0;
}

.psp-250th-single-hero .psp-250th-denomination-tag {
  margin-top: 12px;
  display: inline-block;
}

@media (max-width: 991px) {
  .psp-250th-single-hero {
    height: 320px;
  }
  .psp-250th-single-hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .psp-250th-single {
    padding-top: 100px;
  }
  .psp-250th-single-hero {
    height: 250px;
  }
  .psp-250th-single-hero h1 {
    font-size: 28px;
  }
}

/* Single page content */
.psp-250th-single-content {
  padding: 60px 0;
}

.psp-250th-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 991px) {
  .psp-250th-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Main column */
.psp-250th-single-main {
  font-family: "Open Sans", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000034;
}

.psp-250th-single-main p {
  margin: 0 0 16px;
}

/* Sidebar */
.psp-250th-single-sidebar {
  background: #f3f6ff;
  border-radius: 8px;
  padding: 30px;
}

.psp-250th-single-sidebar .psp-250th-info-item {
  margin-bottom: 20px;
}

.psp-250th-single-sidebar .psp-250th-info-item:last-child {
  margin-bottom: 0;
}

/* Single page map */
.psp-250th-single-map {
  height: 250px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Photo gallery */
.psp-250th-gallery {
  margin-top: 40px;
}

.psp-250th-gallery h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 400;
  color: #000034;
  margin: 0 0 20px;
}

.psp-250th-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.psp-250th-gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 991px) {
  .psp-250th-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .psp-250th-gallery-grid {
    grid-template-columns: 1fr;
  }
  .psp-250th-gallery-grid img {
    height: 200px;
  }
}

/* Single page events */
.psp-250th-single-events {
  margin-top: 40px;
}

.psp-250th-single-events h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 400;
  color: #000034;
  margin: 0 0 20px;
}

/* Back link */
.psp-250th-back-link {
  display: inline-block;
  font-family: "Open Sans", serif;
  font-size: 15px;
  font-weight: 600;
  color: #14327c;
  text-decoration: none;
  margin-bottom: 20px;
}

.psp-250th-back-link:hover {
  color: #f36a39;
}
