/* =======================================================
   Community Guide shared stylesheet
   Scoped to .community-guide-wrapper (cg-prefixed classes)
   Applies to all cg-* community guide pages.
   ======================================================= */

.community-guide-wrapper {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
}

/* Hero ---------------------------------------------------- */
.community-guide-wrapper .cg-hero {
  padding: 100px 20px 80px;
  text-align: center;
  border-bottom: 3px solid #EA002A;
  position: relative;
}
.community-guide-wrapper .cg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.30) 0%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.community-guide-wrapper .cg-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.community-guide-wrapper .cg-hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -1px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.community-guide-wrapper .cg-hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ffffff;
  font-weight: 300;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Container + sections ------------------------------------ */
.community-guide-wrapper .cg-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.community-guide-wrapper .cg-section {
  padding: 50px 0;
}
.community-guide-wrapper .cg-section-alt {
  background-color: #111;
}
.community-guide-wrapper .cg-section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #EA002A;
}

/* Body text ----------------------------------------------- */
.community-guide-wrapper .cg-body-text {
  line-height: 1.8;
  margin: 0 0 16px 0;
  color: #d0d0d0;
  font-size: 1rem;
  font-weight: 300;
}

/* Quick facts grid ---------------------------------------- */
.community-guide-wrapper .cg-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.community-guide-wrapper .cg-fact {
  background: #141414;
  border: 1px solid #222;
  border-top: 3px solid #EA002A;
  border-radius: 6px;
  padding: 18px 16px;
}
.community-guide-wrapper .cg-fact-label {
  color: #EA002A;
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.community-guide-wrapper .cg-fact-value {
  color: #ffffff;
  font-weight: 400;
  margin-top: 6px;
  font-size: 1.05rem;
}

/* Amenities list ------------------------------------------ */
.community-guide-wrapper .cg-amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.community-guide-wrapper .cg-amenity {
  background: #141414;
  border: 1px solid #222;
  border-top: 3px solid #EA002A;
  border-radius: 6px;
  padding: 20px;
}
.community-guide-wrapper .cg-amenity-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #EA002A;
  margin: 0 0 8px 0;
}
.community-guide-wrapper .cg-amenity-text {
  margin: 0;
  font-size: 0.95rem;
  color: #cfcfcf;
  line-height: 1.6;
  font-weight: 300;
}

/* Reasons list -------------------------------------------- */
.community-guide-wrapper .cg-reasons-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}
.community-guide-wrapper .cg-reason {
  position: relative;
  padding: 10px 0 10px 28px;
  color: #d0d0d0;
  font-weight: 300;
  line-height: 1.6;
  border-bottom: 1px solid #1d1d1d;
}
.community-guide-wrapper .cg-reason:last-child { border-bottom: 0; }
.community-guide-wrapper .cg-reason::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: #EA002A;
  font-weight: bold;
}

/* Market snapshot (inline styled, leave alone) ------------ */

/* CTA section --------------------------------------------- */
.community-guide-wrapper .cg-cta-section {
  padding: 60px 20px;
  margin: 40px 0 0 0;
  border-top: 3px solid #EA002A;
  text-align: center;
  position: relative;
}
.community-guide-wrapper .cg-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.65) 100%);
  pointer-events: none;
}
.community-guide-wrapper .cg-cta-section > * { position: relative; z-index: 1; }
.community-guide-wrapper .cg-cta-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.community-guide-wrapper .cg-cta-text {
  color: #e6e6e6;
  margin: 0 0 22px 0;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.community-guide-wrapper .cg-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Buttons ------------------------------------------------- */
.community-guide-wrapper .cg-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.community-guide-wrapper .cg-btn-primary {
  background-color: #EA002A;
  color: #ffffff;
  border-color: #EA002A;
}
.community-guide-wrapper .cg-btn-primary:hover {
  background-color: #c20020;
  border-color: #c20020;
}
.community-guide-wrapper .cg-btn-secondary {
  background-color: rgba(0,0,0,0.35);
  color: #ffffff;
  border-color: #ffffff;
}
.community-guide-wrapper .cg-btn-secondary:hover {
  background-color: #ffffff;
  color: #EA002A;
  border-color: #ffffff;
}

/* Responsive ---------------------------------------------- */
@media (max-width: 640px) {
  .community-guide-wrapper .cg-section { padding: 36px 0; }
  .community-guide-wrapper .cg-hero { padding: 70px 20px 50px; }
}
