#community {
  background: linear-gradient(145deg, #f8f9fc 0%, #eef2e6 54%, #f0f2f9 100%);
}

.community-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  gap: 48px;
  margin-bottom: 36px;
}

.community-badge,
.community-card-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.community-badge {
  padding: 7px 12px;
  margin-bottom: 18px;
}

.community-heading-wrap {
  position: relative;
  display: inline-block;
  padding-top: 20px;
}

.community-heading-wrap h2 { margin: 0; }
.community-heading-wrap .community-title-ribbon {
  top: -4px;
  left: 3px;
}

.community-copy h2 {
  max-width: 560px;
}

.community-lead {
  max-width: 530px;
  margin-top: 18px;
  color: #4b5368;
  font-size: 17px;
  line-height: 1.7;
}

.community-context {
  max-width: 530px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.community-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background-color: #f5f8ef;
  background-image: linear-gradient(#dfe9d6 1px, transparent 1px), linear-gradient(90deg, #dfe9d6 1px, transparent 1px);
  background-size: 42px 42px;
  box-shadow: 0 14px 34px rgba(26, 31, 54, .08);
}

.community-map::before {
  content: '';
  position: absolute;
  inset: -55px auto auto -55px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(168, 204, 96, .18);
}

.community-map::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -105px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgb(38 175 218 / 13%);
}

.community-map-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.community-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 5px solid #fff;
  border-radius: 22px;
  background: #e8f1d8;
  box-shadow: 0 9px 24px rgba(26, 31, 54, .16);
}

.community-marker-one { left: 13%; top: 18%; }
.community-marker-two { right: 15%; top: 12%; background: var(--sky-soft); }
.community-marker-three { right: 23%; bottom: 14%; background: var(--orange-soft); }
.community-dog { font-size: 32px; line-height: 1; }

.community-owner {
  position: absolute;
  right: -12px;
  bottom: -9px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #5b8ac0;
  color: #fff;
}

.community-marker-two .community-owner { background: var(--orange); color: #20291f; }
.community-marker-three .community-owner { background: #6b9422; }

.community-pin {
  position: absolute;
  z-index: 2;
  left: 45%;
  top: 42%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: 0 5px 18px rgba(26, 31, 54, .12);
}

.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.community-card .feature-icon { margin-bottom: 14px; }
.community-card .feature-title { font-size: 18px; }
.community-card .feature-desc { font-size: 14px; }
.community-card-status { align-self: flex-start; padding: 5px 9px; margin-top: auto; margin-bottom: 0; }
.community-card .feature-desc + .community-card-status { margin-top: 18px; }
.community-icon-green { background: #6b9422; }
.community-icon-blue { background: #5b8ac0; }
.community-icon-orange { background: #c07a3c; }

.community-closing {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #d9e3d3;
}

.community-closing h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.community-closing p {
  max-width: 760px;
  margin-top: 8px;
  color: #4b5368;
  font-size: 14px;
  line-height: 1.7;
}

.community-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.community-journey li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 100px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(26, 31, 54, .07);
}

.community-journey li:first-child {
  border-color: #d5e5bd;
  background: #f7faef;
}

.community-journey li:not(:last-child)::after {
  content: '→';
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -27px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 2px 9px rgba(26, 31, 54, .1);
}

.community-journey-number {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  height: 46px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 900;
}

.community-journey li:nth-child(2) .community-journey-number {
  background: #e8eff8;
  color: #3d6c9e;
}

.community-journey li:nth-child(3) .community-journey-number {
  background: #f8ebdc;
  color: #9d612e;
}

.community-journey-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.community-journey-copy strong {
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.15;
}

.community-journey-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.community-journey-copy small b { color: var(--green-deep); font-weight: 900; }

@media (max-width: 900px) {
  .community-intro { grid-template-columns: 1fr; gap: 28px; }
  .community-map { max-width: 620px; width: 100%; }
}

@media (max-width: 640px) {
  .community-lead { font-size: 15px; }
  .community-map { min-height: 260px; }
  .community-marker { width: 58px; height: 58px; border-radius: 18px; }
  .community-dog { font-size: 27px; }
  .community-closing h3 { font-size: 19px; }
  .community-journey { grid-template-columns: 1fr; gap: 16px; }
  .community-journey li { min-height: 84px; padding: 15px 18px; }
  .community-journey li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -27px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
}

/* Landing page version of the original neighborhood illustration. */
.community-section {
  padding-block: 84px 88px;
  background:
    radial-gradient(ellipse at 7% 9%, rgb(33 169 220 / 12%), transparent 29%),
    radial-gradient(ellipse at 93% 86%, rgb(255 132 43 / 13%), transparent 27%),
    linear-gradient(145deg, #f8f9fc 0%, #eef2e6 54%, #f0f2f9 100%);
}
.community-section .community-badge,
.community-section .community-card-status {
  background: #edf4e3;
  color: #355900;
}
.community-section .community-intro { margin-bottom: 34px; }
.community-section .community-map { min-height: 300px; border: 1px solid var(--line); }
.community-owner { font-size: 0; }
.community-owner svg { width: 18px; height: 18px; }
.community-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.community-card {
  min-width: 0;
  min-height: 220px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e2e8dc;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(36 48 33 / 6%);
}
.community-card .feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ffffffc7;
  color: var(--green-deep);
}
.community-card .feature-icon svg { width: 23px; height: 23px; stroke-linecap: round; stroke-linejoin: round; }
.community-card h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.2; }
.community-card p { margin: 0 0 17px; color: #536151; font-size: 15px; line-height: 1.55; }
.community-card-status { min-height: 28px; margin-top: auto; padding: 5px 10px; font-size: 12px; }
.community-card .feature-icon.community-icon-green { background: #e6efd9; color: #355900; }
.community-card .feature-icon.community-icon-blue { background: var(--sky-bright); color: var(--ink); }
.community-card .feature-icon.community-icon-orange { background: var(--orange); color: var(--ink); }
@media (max-width: 900px) {
  .community-section .community-intro { grid-template-columns: 1fr; }
  .community-section .community-map { max-width: none; width: 100%; }
  .community-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .community-section { padding-block: 62px; }
  .community-section .community-intro { gap: 22px; }
  .community-section .community-map { min-height: 260px; }
  .community-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .community-card { min-height: 0; padding: 20px; }
  .community-card:last-child { grid-column: auto; }
  .community-card p { margin-bottom: 14px; }
}
