/* Communities hub (/communities/) and the shared community template
   (communities/_community.php). Section rhythm and hero live in page.css.
*/

/* —— Hub: area cards —— */
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .area-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1040px) {
  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.area-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.area-region {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.area-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.area-card h3 a {
  color: var(--navy);
}

.area-card h3 a:hover {
  color: var(--blue-deep);
}

.area-tagline {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--blue);
}

.area-copy {
  font-size: 0.9rem;
  color: var(--muted);
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: auto;
}

.area-links .area-link {
  margin-top: 1rem;
}

/* —— Community page —— */
.community-grid-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .community-grid-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
  }
}

.community-copy p {
  color: var(--charcoal);
}

.community-copy .gold-rule {
  margin-bottom: 1.5rem;
}

.community-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.community-panel h3 {
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--charcoal);
}

/* Gold marker — small accent, per the brand rules. */
.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.panel-cta {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.panel-cta a {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--blue);
}

/* —— Map embed —— */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 30rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--ivory-dim);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  margin-top: 1.5rem;
}

/* —— Nearby communities —— */
.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.community-links a {
  padding: 0.65rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.community-links a:hover {
  color: var(--blue-deep);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
