/* ==========================================================================
   ECR Park guides — single-ecr_park.php
   ========================================================================== */

.ecr-pk {
  --pk-forest: #243526;
  --pk-forest-2: #2c3e2d;
  --pk-gold: #b08d2e;
  --pk-gold-soft: #c7a76c;
  --pk-gold-text: #7f6418; /* gold for small text on light backgrounds (AA) */
  --pk-cream: #f7f2ea;
  --pk-ink: #1f2a21;
  --pk-slate: #4a5568;
  --pk-line: rgba(44, 62, 45, 0.12);
  background: var(--pk-cream);
  color: var(--pk-ink);
  font-family: 'Manrope', Arial, sans-serif;
}

.ecr-pk *,
.ecr-pk *::before,
.ecr-pk *::after { box-sizing: border-box; }

.ecr-pk-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.ecr-pk-label,
.ecr-pk-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--pk-gold-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ecr-pk-label--gold { color: var(--pk-gold-soft); }

.ecr-pk .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  flex: none;
}

/* Buttons ----------------------------------------------------------------- */
.ecr-pk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ecr-pk-btn:hover { transform: translateY(-1px); }

.ecr-pk-btn--light { background: #fff; color: var(--pk-forest); }
.ecr-pk-btn--light:hover { background: var(--pk-cream); }

.ecr-pk-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.ecr-pk-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.ecr-pk-btn--forest { background: var(--pk-forest-2); color: #fff; }
.ecr-pk-btn--forest:hover { background: var(--pk-forest); }

.ecr-pk-btn--gold { background: var(--pk-gold); color: #fff; }
.ecr-pk-btn--gold:hover { background: #9a7b27; }

/* Hero -------------------------------------------------------------------- */
.ecr-pk-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 72vh, 680px);
  overflow: hidden;
  background: var(--pk-forest);
  color: #fff;
}

.ecr-pk-hero--plain { min-height: 360px; }

.ecr-pk-hero__media {
  position: absolute;
  inset: 0;
}

.ecr-pk-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecr-pk-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 31, 22, 0.15) 0%, rgba(20, 31, 22, 0) 30%),
    linear-gradient(0deg, rgba(20, 31, 22, 0.88) 0%, rgba(20, 31, 22, 0.55) 38%, rgba(20, 31, 22, 0) 70%);
}

.ecr-pk-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px clamp(16px, 4vw, 32px) clamp(36px, 6vw, 64px);
}

.ecr-pk-hero .ecr-pk-eyebrow { color: var(--pk-gold-soft); }

.ecr-pk-hero__title {
  margin: 0 0 16px;
  max-width: 900px;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.ecr-pk-hero__intro {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
}

.ecr-pk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Overview ---------------------------------------------------------------- */
.ecr-pk-overview { padding: clamp(48px, 7vw, 88px) 0; }

.ecr-pk-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.ecr-pk-story__body p {
  margin: 0 0 1.15em;
  color: #34403a;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.ecr-pk-story__body p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  color: var(--pk-forest-2);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.6em;
  line-height: 0.8;
}

.ecr-pk-glance {
  position: sticky;
  top: 110px;
  padding: 28px;
  border: 1px solid var(--pk-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(44, 62, 45, 0.08);
}

.ecr-pk-features {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ecr-pk-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #2f3a33;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ecr-pk-features .material-symbols-outlined {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(125, 154, 114, 0.16);
  color: var(--pk-forest-2);
  font-size: 19px;
}

.ecr-pk-features li span:last-child { padding-top: 7px; }

.ecr-pk-facts {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--pk-line);
}

.ecr-pk-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pk-line);
  font-size: 0.86rem;
}

.ecr-pk-facts dt { color: var(--pk-slate); }
.ecr-pk-facts dd { margin: 0; font-weight: 700; text-align: right; }

.ecr-pk-glance__map { width: 100%; justify-content: center; }

.ecr-pk-source {
  margin: 16px 0 0;
  color: var(--pk-slate);
  font-size: 0.74rem;
  line-height: 1.5;
}

.ecr-pk-source a { color: var(--pk-gold-text); font-weight: 700; }

/* Section heads ----------------------------------------------------------- */
.ecr-pk-section-head { margin: 0 0 28px; }

.ecr-pk-section-head h2,
.ecr-pk-cta h2 {
  margin: 0;
  color: var(--pk-forest-2);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
}

.ecr-pk-section-head__note {
  margin: 10px 0 0;
  color: var(--pk-slate);
  font-size: 0.88rem;
}

/* Photos + video ---------------------------------------------------------- */
.ecr-pk-media {
  padding: clamp(48px, 7vw, 88px) 0;
  background: #fff;
}

.ecr-pk-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 16vw, 210px);
  gap: 10px;
}

.ecr-pk-mosaic__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pk-cream);
}

.ecr-pk-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ecr-pk-mosaic__item:hover img { transform: scale(1.04); }

/* Lead photo spans 2x2; up to four more fill the remaining cells evenly. */
.ecr-pk-mosaic .ecr-pk-mosaic__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.ecr-pk-mosaic--1 { grid-template-columns: 1fr; grid-auto-rows: clamp(240px, 40vw, 520px); }
.ecr-pk-mosaic--1 .ecr-pk-mosaic__item:first-child { grid-column: auto; grid-row: auto; }
.ecr-pk-mosaic--2 .ecr-pk-mosaic__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.ecr-pk-mosaic--3 .ecr-pk-mosaic__item:nth-child(n+2) { grid-column: span 2; }
.ecr-pk-mosaic--4 .ecr-pk-mosaic__item:nth-child(2) { grid-column: span 2; }

.ecr-pk-mosaic--more {
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ecr-pk-mosaic--more .ecr-pk-mosaic__item:first-child { grid-column: auto; grid-row: auto; }

.ecr-pk-clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.ecr-pk-clip .ecr-video__frame { border-radius: 8px; }
.ecr-video.ecr-pk-clip { background: transparent; }

/* Map --------------------------------------------------------------------- */
.ecr-pk-map { padding: 0 0 clamp(48px, 7vw, 88px); }
.ecr-pk-map__embed iframe { width: 100%; min-height: 360px; border: 0; border-radius: 12px; }

/* Nearby streets ---------------------------------------------------------- */
.ecr-pk-streets { padding: clamp(48px, 7vw, 88px) 0; }

.ecr-pk-street-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecr-pk-street {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--pk-line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ecr-pk-street:hover {
  border-color: rgba(176, 141, 46, 0.5);
  box-shadow: 0 12px 30px rgba(44, 62, 45, 0.08);
  transform: translateY(-2px);
}

.ecr-pk-street__name {
  color: var(--pk-forest-2);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
}

.ecr-pk-street__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pk-slate);
  font-size: 0.85rem;
}

.ecr-pk-street__meta .material-symbols-outlined { font-size: 17px; color: var(--pk-gold); }

.ecr-pk-street__tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(125, 154, 114, 0.16);
  color: var(--pk-forest-2);
  font-size: 0.7rem;
  font-weight: 700;
}

.ecr-pk-street__cta {
  margin-top: 4px;
  color: var(--pk-gold-text);
  font-size: 0.82rem;
  font-weight: 700;
}

/* More parks -------------------------------------------------------------- */
.ecr-pk-more {
  padding: clamp(48px, 7vw, 88px) 0;
  background: #efe8dc;
}

.ecr-pk-more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.ecr-pk-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(44, 62, 45, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecr-pk-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(44, 62, 45, 0.12); }

.ecr-pk-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pk-forest);
}

.ecr-pk-card__media img { width: 100%; height: 100%; object-fit: cover; }

.ecr-pk-card__body { padding: 20px 22px 24px; }

.ecr-pk-card__body h3 {
  margin: 0 0 8px;
  color: var(--pk-forest-2);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.ecr-pk-card__body p {
  margin: 0 0 12px;
  color: var(--pk-slate);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ecr-pk-card__cta { color: var(--pk-gold); font-size: 0.84rem; font-weight: 700; }

.ecr-pk-more__all { margin: 24px 0 0; }
.ecr-pk-more__all a { color: var(--pk-forest-2); font-weight: 700; }

/* CTA --------------------------------------------------------------------- */
.ecr-pk-cta {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--pk-forest);
  color: #fff;
}

.ecr-pk-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.ecr-pk-cta h2 { color: #fff; margin-bottom: 12px; }

.ecr-pk-cta p:not(.ecr-pk-label) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.ecr-pk-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .ecr-pk-overview__grid { grid-template-columns: 1fr; }
  .ecr-pk-glance { position: static; }
  .ecr-pk-street-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecr-pk-cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ecr-pk-hero { min-height: 520px; }
  .ecr-pk-hero__inner { padding-top: 96px; }
  .ecr-pk-hero__actions .ecr-pk-btn { flex: 1 1 auto; justify-content: center; }

  .ecr-pk-mosaic,
  .ecr-pk-mosaic--more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
    gap: 8px;
  }
  .ecr-pk-mosaic .ecr-pk-mosaic__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .ecr-pk-mosaic .ecr-pk-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
  .ecr-pk-mosaic--1 { grid-template-columns: 1fr; grid-auto-rows: 240px; }

  .ecr-pk-street-grid { grid-template-columns: 1fr; }
  .ecr-pk-glance { padding: 22px; }
  .ecr-pk-cta__actions .ecr-pk-btn { flex: 1 1 auto; justify-content: center; }
}

/* Oct 2026 UX pass --------------------------------------------------------- */

/* Gold button + card link text at AA contrast */
.ecr-pk-btn--gold { background: var(--pk-gold-soft); color: #18231f; }
.ecr-pk-btn--gold:hover { background: #d4b87a; }
.ecr-pk-card__cta { color: var(--pk-gold-text); }

/* Hero text stays legible over bright parts of a photo */
.ecr-pk-hero__media + .ecr-pk-hero__inner .ecr-pk-eyebrow,
.ecr-pk-hero__media + .ecr-pk-hero__inner .ecr-pk-hero__intro {
  text-shadow: 0 1px 12px rgba(10, 18, 12, 0.65);
}

/* Guides without photography: no empty hero band */
.ecr-pk-hero--plain { min-height: 0; }
.ecr-pk-hero--plain .ecr-pk-hero__inner { padding-top: clamp(56px, 8vw, 96px); }

/* Cards for green spaces without photography: compact, no empty media box */
.ecr-pk-card--plain .ecr-pk-card__body { padding-top: 22px; }
.ecr-pk-card__icon {
  align-items: center;
  background: #efe8dc;
  border-radius: 999px;
  color: var(--pk-forest-2);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  margin-bottom: 12px;
  width: 40px;
}

/* City data block lines up with the park guide's content width */
.ecr-pk .ecr-od__inner { max-width: 1116px; }

@media (max-width: 640px) {
  .ecr-pk-hero--plain { min-height: 0; }
  .ecr-pk-hero--plain .ecr-pk-hero__inner { padding-top: 48px; }
}

/* The Material Symbols class resets display/line-height; keep the glyph centred. */
.ecr-pk .ecr-pk-card__icon.material-symbols-outlined {
  display: inline-flex;
  line-height: 40px;
  text-align: center;
}
