/* =============================================
   Cribz Communities — Frontend Styles
   - Cards Grid + Cards
   - Single Community Page
   - Responsive Media Wrapper
   - Utility / Buttons
   ============================================= */


/* Map container – give it a visible height */
#cribz-comm-map {
  height: 420px;        
  width: 100vw;
  /*border-radius: 8px;*/
  background: none /*#f3f4f6*/;   /* fallback grey while Maps initializes */
  margin: 12px 0 20px;
  border: 1px solid rgba(0,0,0,.06);
}

/* keep the search + reset row tidy */
#cribz-comm-where {
  max-width: 420px;
  margin-right: 8px;
}
#cribz-comm-reset {
  vertical-align: middle;
}


/* ===== Cards Grid & Card ===== */

#cribz-comm-cards {
padding: 20px;
}


.cribz-comm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cribz-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  transition: box-shadow .18s ease;
}

.cribz-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.cribz-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.cribz-card__meta {
  color: #64748b;
  margin-bottom: 10px;
}

.cribz-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cribz-card__stats dt {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cribz-card__stats dd {
  margin: 0;
  font-weight: 600;
}

/* ===== Single Community Page ===== */
.cribz-community-page {
  /*max-width: 1400px;*/
  margin: 20px auto;
}

.cribz-community-info-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 0 20px;
}

.cribz-community-page .container{
  max-width: 100%!important;
}

.cribz-community-page .q-map-section {
  width: 100%;
} 

.cribz-community-page .q-search-section {
  display: none!important;
}

.cribz-community-page .wpl_property_listing_container {
  max-width: 1320px;
  margin: 0 auto;
}

/*.cribz-stats {

}
*/
.cribz-community-title {
  font-size: 32px;
  margin: .2em 0;
}

.cribz-community-loc {
  color: #475569;
  margin: 0 0 10px;
}

/* ===== Community Detail Layout Polish ===== */

.cribz-community-page {
}

.cribz-community-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.cribz-community-loc {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 18px;
}

/* Summary body */
.cribz-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
}

.cribz-summary h2,
.cribz-summary h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-weight: 700;
  color: #111827;
}

.cribz-summary p {
  margin: 0 0 0.9em;
}

.cribz-summary ul,
.cribz-summary ol {
  padding: 12px 18px 12px 22px;
  margin: 0 0 1.1em;
  background: #f8fafc;
  border-left: 4px solid #007bff; /* Cribz blue */
  border-radius: 8px;
}

.cribz-summary li {
  margin-bottom: 0.25em;
}

/* "See current listings" CTA as button */
.cribz-summary-cta {
  margin-top: 20px;
}

.cribz-summary-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #ff4500;
  background: #ffffff;
  border: 2px solid #ff4500;
  box-shadow: none;
}

.cribz-summary-cta a:hover {
  background: #ff4500;
  color: #ffffff;
}

/* Small downward arrow tweak if you keep the "↓" character */
.cribz-summary-cta a span {
  font-size: 16px;
}

/* unified media wrapper (merged duplicate rules) */
.cribz-media {
  position: relative;
  margin: 18px 0;
  border-radius: 12px;
  overflow: hidden;
}

.cribz-media img {
  width: 100%;
  height: auto;
  display: block;
}

.cribz-stats dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
}

.cribz-stats dt {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cribz-stats dd {
  margin: 0;
  font-weight: 600;
}

.cribz-aliases {
  color: #475569;
}

/* ===== Responsive Media Aspect (16:9) ===== */
.cribz-media-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.cribz-media-aspect > iframe,
.cribz-media-aspect > img,
.cribz-media-aspect > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Utilities / Buttons ===== */
.cribz-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 2px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: transparent;      /* outline only */
  border: 2px solid #007bff;          /* Cribz blue */
  color: #007bff;                     /* text matches border */
  cursor: pointer;
}

.cribz-copy-link::before {
  content: "🔗";
  font-size: 14px;
}

/* optional hover tweak */
.cribz-copy-link:hover {
  background-color: rgba(0, 123, 255, 0.06);
}

.cribz-copy-link.copied {
  background-color: transparent;  /* still outline only */
  border-color: #28a745;
  color: #28a745;
}

/* =============================================
   Community Card Styles
   ============================================= */

.cribz-comm-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
  cursor: pointer;
}

.cribz-comm-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* Media area (hero image / thumbnail) */
.cribz-comm-card .card-media {
  background: none;
  padding: 10px;
}

.cribz-comm-card .card-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Card body content */
.cribz-comm-card .card-body {
  padding: 14px 16px 16px;
  /*margin-top: 8px;*/
}

/* Title + city/state */
.cribz-comm-card .title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 4px 0 2px;
}

.cribz-comm-card .meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px; /* pull it closer to the title */
}

/* Price range – Cribz orange like listing cards */
.cribz-comm-card .comm-price-range {
  font-size: 18px;
  font-weight: 700;
  color: #ff4500;
  margin: 4px 0 8px;
}

/* Stats row: sqft, beds/baths, $/sq ft */
.cribz-comm-card .comm-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: #111827;
}

.cribz-comm-card .comm-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cribz-comm-card .comm-stat i {
  font-size: 1.05em;
  color: #64748b;
}

.cribz-comm-card .comm-stat span {
  font-size: 14px;
}

/* Slight emphasis on the $/sq ft range */
.cribz-comm-card .comm-stat-ppsf span {
  font-weight: 500;
}