#results {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  color: #1f2937;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-header { margin-bottom: 18px; }
.result-header h3 { margin: 0; font-size: 22px; }
.result-header p { margin: 5px 0 0; color: #6b7280; }

.summary-cards,
.issue-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-cards { grid-template-columns: repeat(3, 1fr); }
.issue-cards { grid-template-columns: repeat(4, 1fr); }

.summary-card,
.issue-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
}

.issue-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.summary-card strong,
.issue-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.summary-card span,
.issue-card span {
  color: #6b7280;
  font-size: 13px;
}

.issue-card .icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.violations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.violation-card {
  padding: 14px;
  border-radius: 10px;
  background: #f9fafb;
  border-left: 5px solid #ef4444;
}

.violation-date {
  font-weight: bold;
  margin-bottom: 5px;
}

.violation-status {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.empty-state {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 18px;
  color: #374151;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

#load-more-btn {
  margin-top: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

#load-more-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 767px) {
  .summary-cards,
  .issue-cards {
    grid-template-columns: 1fr;
  }
}
.review-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.review-section h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.review-summary {
  color: #6b7280;
  margin-bottom: 16px;
}

.review-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
  border-left: 5px solid #2563eb;
  margin-bottom: 12px;
}

.review-rating {
  font-weight: bold;
  margin-bottom: 6px;
}

.review-meta {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.no-reviews {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 16px;
  color: #374151;
}

/* Building page polish */
.result-header {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 14px;
}

.result-header h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.result-header p {
  font-size: 14px;
}

.summary-card strong,
.issue-card strong {
  font-size: 24px;
}

.summary-card,
.issue-card,
.violation-card,
.review-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summary-card:hover,
.issue-card:hover,
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.review-section {
  background: #ffffff;
  border-radius: 14px;
}

.review-summary {
  font-size: 15px;
}

.review-card {
  border-left: none;
  border: 1px solid #e5e7eb;
}

.review-rating {
  font-size: 18px;
  color: #111827;
}

.review-meta {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.building-review-cta {
  text-align: center;
}

.building-review-button {
  cursor: pointer;
}

/* Better mobile polish */
@media (max-width: 767px) {
  #results {
    padding: 16px;
  }

  .result-header h3 {
    font-size: 22px;
  }

  .summary-card strong,
  .issue-card strong {
    font-size: 22px;
  }

  .violation-card,
  .review-card {
    font-size: 14px;
  }
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
}

.review-summary-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
}

.review-summary-box strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.review-summary-box span {
  color: #6b7280;
  font-size: 13px;
}

.review-rent-again {
  margin-bottom: 10px;
  color: #374151;
  background: #f3f4f6;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.data-updated-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .review-summary-grid {
    grid-template-columns: 1fr;
  }
}
.aptreviews-address-autocomplete {
  margin-bottom: 16px;
}

.aptreviews-address-label {
  color: #0b1739;
  display: block;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 11px;
}

@media (max-width: 767px) {
  .aptreviews-address-label {
    font-size: 17px;
    margin-bottom: 9px;
  }
}

/* AptReviews member registration and account UI. */
.aptreviews-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin: 40px auto;
  max-width: 560px;
  padding: clamp(24px, 5vw, 42px);
}

.aptreviews-auth-card h1,
.aptreviews-auth-card h2 {
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 14px;
}

.aptreviews-auth-card p {
  color: #475569;
}

.aptreviews-auth-eyebrow {
  color: #2563eb !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.aptreviews-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.aptreviews-auth-form > label:not(.aptreviews-auth-check) {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 8px;
}

.aptreviews-auth-form input[type="text"],
.aptreviews-auth-form input[type="email"],
.aptreviews-auth-form input[type="password"] {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-size: 1rem;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.aptreviews-auth-form input[type="text"][inputmode="numeric"] {
  font-variant-numeric: tabular-nums;
}

.aptreviews-auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.aptreviews-auth-button {
  align-items: center;
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 10px;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 14px;
  min-height: 48px;
  padding: 11px 20px;
  text-decoration: none !important;
}

.aptreviews-auth-button:hover,
.aptreviews-auth-button:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}

.aptreviews-auth-check {
  align-items: center;
  color: #334155;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.aptreviews-auth-check input {
  height: 18px;
  width: 18px;
}

.aptreviews-auth-message {
  border-radius: 10px;
  margin: 18px 0;
  padding: 12px 14px;
}

.aptreviews-auth-message.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.aptreviews-auth-message.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.aptreviews-auth-links,
.aptreviews-auth-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
}

.aptreviews-auth-nav {
  justify-content: flex-end;
  margin: 0;
}

.aptreviews-auth-nav-primary {
  background: #2563eb;
  border-radius: 9px;
  color: #ffffff !important;
  padding: 8px 14px;
}

.aptreviews-auth-secondary,
.aptreviews-account-email {
  margin-top: 18px;
}

.aptreviews-auth-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.aptreviews-verification-panel {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  margin: 28px 0;
  padding: clamp(22px, 4vw, 36px);
}

.aptreviews-verification-panel h2,
.aptreviews-residency-account h2,
.aptreviews-verification-item h3 {
  color: #0f172a;
  margin-top: 0;
}

.aptreviews-verification-state {
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e3a8a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 0;
  padding: 14px 16px;
}

.aptreviews-verification-state.is-verified {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.aptreviews-form-note {
  color: #64748b !important;
  font-size: 0.88rem;
  margin: 8px 0 0;
}

.aptreviews-verification-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.aptreviews-verification-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.aptreviews-verification-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.aptreviews-verification-item p {
  margin: 6px 0;
}

.review-residency-badge {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 5px 9px;
}

.review-residency-badge.is-verified {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.review-residency-badge.is-unverified {
  background: #f8fafc;
  color: #475569;
}

.review-verification-note {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 7px;
}

@media (max-width: 600px) {
  .aptreviews-auth-card {
    border-radius: 14px;
    margin: 24px 12px;
  }

  .aptreviews-auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

.aptreviews-address-widget,
.aptreviews-address-widget gmp-place-autocomplete {
  display: block;
  width: 100%;
}

.aptreviews-address-message {
  color: #b42318;
  font-size: 14px;
  margin-top: 8px;
}

.aptreviews-legacy-address-field {
  display: none !important;
}

.aptreviews-search-form input[type="submit"],
.aptreviews-search-form button[type="submit"] {
  appearance: none;
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  border-radius: 10px !important;
  box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
  color: #ffffff !important;
  cursor: pointer;
  font: inherit;
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 22px auto 0 !important;
  min-height: 56px;
  min-width: 240px;
  padding: 16px 36px !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aptreviews-search-form .wpcf7-response-output:empty,
#results:empty {
  border: 0 !important;
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.aptreviews-search-form input[type="submit"]:hover,
.aptreviews-search-form button[type="submit"]:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 11px 24px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.aptreviews-search-form input[type="submit"]:focus-visible,
.aptreviews-search-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.aptreviews-search-form input[type="submit"]:disabled,
.aptreviews-search-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

/* Site header polish */
:where(.site-header, header.site-header, .elementor-location-header, .elementor-location-header > .elementor-section, .elementor-location-header > .elementor-container) {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

:where(.site-header, header.site-header, .elementor-location-header) {
  min-height: 0 !important;
}

:where(.site-header, header.site-header) {
  padding-bottom: 10px !important;
  padding-top: 10px !important;
}

.elementor-location-header :where(.elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap) {
  min-height: 0 !important;
}

.elementor-location-header :where(.elementor-container, .elementor-widget-wrap) {
  padding-bottom: 8px !important;
  padding-top: 8px !important;
}

:where(.site-header, header.site-header, .elementor-location-header) :where(a, .elementor-heading-title, .elementor-nav-menu a) {
  color: #0f172a;
}

:where(.site-header, header.site-header, .elementor-location-header) :where(a:hover, .elementor-nav-menu a:hover, .elementor-item-active) {
  color: #2563eb !important;
}

:where(.site-header, header.site-header, .elementor-location-header) img {
  max-height: 44px;
  width: auto;
}

.elementor-location-header :where(.elementor-button, button, input[type="submit"], .elementor-menu-toggle) {
  background: #2563eb !important;
  border-color: #2563eb !important;
  border-radius: 10px;
  color: #ffffff !important;
}

.elementor-location-header :where(.elementor-button:hover, button:hover, input[type="submit"]:hover, .elementor-menu-toggle:hover) {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  :where(.site-header, header.site-header) {
    padding-bottom: 8px !important;
    padding-top: 8px !important;
  }

  .elementor-location-header :where(.elementor-container, .elementor-widget-wrap) {
    padding-bottom: 6px !important;
    padding-top: 6px !important;
  }

  :where(.site-header, header.site-header, .elementor-location-header) img {
    max-height: 38px;
  }

  .elementor-location-header :where(.elementor-menu-toggle) {
    min-height: 40px;
    min-width: 40px;
  }
}

@media (max-width: 767px) {
  .aptreviews-search-form input[type="submit"],
  .aptreviews-search-form button[type="submit"] {
    min-height: 58px;
    min-width: 0;
    width: 100%;
  }
}

.violation-controls {
  align-items: flex-end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 24px 0;
  padding: 14px;
}

.issue-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-filter-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #374151;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
}

.issue-filter-chip:hover,
.issue-filter-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.violation-sort-label {
  color: #4b5563;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 12px;
  gap: 4px;
}

#violation-sort {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  padding: 8px 30px 8px 10px;
}

.violation-group {
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
  padding-top: 20px;
}

.violation-group h3,
.violation-group summary {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.violation-group h3 span,
.violation-group summary span {
  background: #eef2ff;
  border-radius: 999px;
  color: #3730a3;
  font-size: 13px;
  margin-left: 6px;
  padding: 4px 8px;
}

.violation-group summary {
  cursor: pointer;
  list-style-position: outside;
}

.violation-card-header,
.violation-badges,
.violation-categories {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.violation-card-header {
  justify-content: space-between;
  margin-bottom: 10px;
}

.violation-card .violation-date,
.violation-card .violation-status {
  margin: 0;
}

.violation-status,
.violation-class,
.violation-category {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
}

.violation-status {
  background: #fef2f2;
  color: #991b1b;
}

.resolved-violations .violation-status {
  background: #ecfdf3;
  color: #166534;
}

.violation-class {
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
}

.violation-class-c {
  background: #fee2e2;
  color: #991b1b;
}

.violation-class-b {
  background: #ffedd5;
  color: #9a3412;
}

.violation-category {
  background: #eff6ff;
  color: #1d4ed8;
}

.violation-categories,
.violation-description {
  margin-bottom: 10px;
}

.violation-detail-status {
  color: #6b7280;
  font-size: 12px;
}

.load-more-btn {
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  margin-top: 16px;
  padding: 10px 16px;
}

.load-more-btn:hover {
  background: #1d4ed8;
}

.load-more-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 767px) {
  .violation-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .issue-filter-chips {
    flex-wrap: nowrap;
    margin: 0 -14px;
    overflow-x: auto;
    padding: 0 14px 6px;
  }

  .issue-filter-chip {
    flex: 0 0 auto;
  }

  .violation-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* AptReviews Modern Renter building-page system */
.aptreviews-building-page {
  --ar-blue: #2563eb;
  --ar-blue-dark: #1d4ed8;
  --ar-blue-soft: #eef5ff;
  --ar-teal: #0891b2;
  --ar-teal-soft: #ecfeff;
  --ar-ink: #0f172a;
  --ar-muted: #64748b;
  --ar-line: #e2e8f0;
  --ar-surface: #ffffff;
  --ar-canvas: #f8fafc;
  --ar-danger: #dc442f;
  color: var(--ar-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.aptreviews-building-page *,
.aptreviews-building-page *::before,
.aptreviews-building-page *::after {
  box-sizing: border-box;
}

.aptreviews-building-page #building-page-results,
.aptreviews-building-page #results {
  width: 100%;
}

.aptreviews-building-page #results {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--ar-ink);
  margin: 0;
  padding: 32px 0 8px;
}

.aptreviews-building-page .result-header {
  align-items: flex-end;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 0;
}

.aptreviews-building-page .result-header h1 {
  color: var(--ar-ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 12px 0 8px;
}

.aptreviews-building-page .result-header p {
  color: var(--ar-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.aptreviews-building-page .live-data-pill {
  align-items: center;
  background: var(--ar-teal-soft);
  border-radius: 999px;
  color: var(--ar-blue-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  gap: 7px;
  letter-spacing: 0.045em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.aptreviews-building-page .live-data-pill > span {
  background: var(--ar-teal);
  border: 3px solid #c9f3f5;
  border-radius: 50%;
  height: 11px;
  width: 11px;
}

.aptreviews-building-page .data-updated-note {
  flex: 0 0 auto;
  font-size: 12px;
  padding-bottom: 6px;
}

.aptreviews-building-page .summary-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}

.aptreviews-building-page .summary-card {
  background: var(--ar-surface);
  border: 1px solid var(--ar-line);
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(16, 32, 51, 0.06);
  min-height: 112px;
  padding: 22px;
  text-align: center;
}

.aptreviews-building-page .summary-card strong {
  color: var(--ar-ink);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 9px;
}

.aptreviews-building-page .summary-card:first-child strong,
.aptreviews-building-page .summary-card:first-child span {
  color: var(--ar-blue);
}

.aptreviews-building-page .summary-card span {
  color: var(--ar-muted);
  font-size: 13px;
  font-weight: 650;
}

.aptreviews-building-page .issue-history {
  margin: 0 0 24px;
}

.aptreviews-building-page .issue-history-heading {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 20px 0 12px;
}

.aptreviews-building-page .issue-history-heading h2 {
  color: var(--ar-ink);
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 3px 0 0;
}

.aptreviews-building-page .issue-history-heading p {
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-width: 560px;
  text-align: right;
}

.aptreviews-building-page .issue-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.aptreviews-building-page .issue-card {
  align-items: center;
  background: var(--ar-surface);
  border: 1px solid var(--ar-line);
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(16, 32, 51, 0.052);
  display: flex;
  gap: 14px;
  min-height: 92px;
  padding: 17px;
}

.aptreviews-building-page .issue-card .icon {
  align-items: center;
  background: var(--ar-blue-soft);
  border-radius: 12px;
  display: flex;
  flex: 0 0 44px;
  font-size: 24px;
  height: 44px;
  justify-content: center;
  margin: 0;
}

.aptreviews-building-page .issue-card-bedbugs .icon { background: #f3edff; }
.aptreviews-building-page .issue-card-leaks .icon { background: #eaf5ff; }
.aptreviews-building-page .issue-card-rodents .icon { background: #fff2e7; }

.aptreviews-building-page .issue-card-copy {
  min-width: 0;
}

.aptreviews-building-page .issue-card span {
  color: var(--ar-muted);
  display: block;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
}

.aptreviews-building-page .issue-card strong {
  color: var(--ar-blue);
  font-size: 24px;
  line-height: 1;
  margin: 7px 0 0;
}

.aptreviews-building-page .issue-card-roaches strong { color: #059669; }
.aptreviews-building-page .issue-card-bedbugs strong { color: #7c3aed; }
.aptreviews-building-page .issue-card-leaks strong { color: #1473e6; }
.aptreviews-building-page .issue-card-rodents strong { color: #ea7000; }

.aptreviews-building-page .violation-controls {
  align-items: center;
  background: rgba(244, 250, 248, 0.97);
  border: 1px solid var(--ar-line);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 10px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.aptreviews-building-page .issue-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.aptreviews-building-page .issue-filter-chip {
  align-items: center;
  background: var(--ar-surface);
  border: 1px solid var(--ar-line);
  border-radius: 999px;
  color: #34415e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.aptreviews-building-page .issue-filter-chip:hover,
.aptreviews-building-page .issue-filter-chip.is-active {
  background: var(--ar-blue);
  border-color: var(--ar-blue);
  color: #fff;
}

.aptreviews-building-page .violation-sort-label {
  color: var(--ar-muted);
  flex-direction: row;
  font-size: 0;
}

.aptreviews-building-page #violation-sort {
  border-color: var(--ar-line);
  border-radius: 999px;
  color: #25324f;
  font-size: 12px;
  font-weight: 650;
  min-height: 38px;
  padding: 8px 34px 8px 14px;
}

.aptreviews-building-page .violations-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.9fr);
}

.aptreviews-building-page .violation-group,
.aptreviews-building-page .review-section,
.aptreviews-building-page .renter-help-card {
  background: var(--ar-surface);
  border: 1px solid var(--ar-line);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(16, 32, 51, 0.055);
}

.aptreviews-building-page .violation-group {
  margin: 0;
  padding: 20px;
}

.aptreviews-building-page .section-heading-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.aptreviews-building-page .section-eyebrow {
  color: var(--ar-muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.aptreviews-building-page .section-heading-row h2,
.aptreviews-building-page .renter-help-card h3 {
  color: var(--ar-ink);
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.aptreviews-building-page .section-count {
  align-items: center;
  background: var(--ar-blue);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  height: 27px;
  justify-content: center;
  min-width: 27px;
  padding: 0 8px;
}

.aptreviews-building-page .violations-list {
  gap: 9px;
}

.aptreviews-building-page .violation-card {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-left: 3px solid var(--ar-danger);
  border-radius: 11px;
  box-shadow: none;
  padding: 14px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aptreviews-building-page .violation-card:hover {
  border-color: #bdd0ed;
  box-shadow: 0 8px 18px rgba(44, 80, 135, 0.08);
  transform: translateY(-1px);
}

.aptreviews-building-page .violation-card-header {
  align-items: center;
  flex-direction: row;
  margin-bottom: 8px;
}

.aptreviews-building-page .violation-date {
  color: var(--ar-muted);
  font-size: 12px;
  font-weight: 620;
}

.aptreviews-building-page .violation-description {
  color: #17223d;
  font-size: 13px;
  font-weight: 610;
  line-height: 1.55;
  margin: 9px 0;
}

.aptreviews-building-page .violation-status,
.aptreviews-building-page .violation-class,
.aptreviews-building-page .violation-category {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.025em;
  padding: 4px 7px;
}

.aptreviews-building-page .violation-status {
  background: #eaf2ff;
  color: var(--ar-blue-dark);
}

.aptreviews-building-page .violation-class-c {
  background: #fff1e8;
  border: 1px solid #ff9d5c;
  color: #b34800;
}

.aptreviews-building-page .violation-class-b {
  background: #fff7dc;
  border: 1px solid #e5c34a;
  color: #7a5d00;
}

.aptreviews-building-page .violation-category {
  background: var(--ar-blue-soft);
  color: var(--ar-blue-dark);
}

.aptreviews-building-page .violation-detail-status {
  border-top: 1px solid #edf2f8;
  color: var(--ar-muted);
  font-size: 11px;
  margin-top: 10px;
  padding-top: 9px;
}

.aptreviews-building-page .building-sidebar {
  display: grid;
  gap: 16px;
}

.aptreviews-building-page .resolved-violations {
  padding: 0;
}

.aptreviews-building-page .resolved-violations summary {
  align-items: center;
  color: var(--ar-ink);
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  min-height: 64px;
  padding: 18px 20px;
}

.aptreviews-building-page .resolved-violations summary h2 {
  color: var(--ar-ink);
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.aptreviews-building-page .resolved-violations summary .section-eyebrow {
  background: transparent;
  border-radius: 0;
  color: var(--ar-muted);
  margin: 0 0 3px;
  padding: 0;
}

.aptreviews-building-page .resolved-violations summary::-webkit-details-marker {
  display: none;
}

.aptreviews-building-page .resolved-violations summary::after {
  color: var(--ar-blue);
  content: "+";
  font-size: 22px;
  font-weight: 400;
  margin-left: 10px;
}

.aptreviews-building-page .resolved-violations[open] summary::after {
  content: "\2212";
}

.aptreviews-building-page .resolved-violations summary .section-count {
  background: var(--ar-teal);
  color: #fff;
  margin-left: auto;
}

.aptreviews-building-page .resolved-intro,
.aptreviews-building-page .resolved-violations .violations-list,
.aptreviews-building-page .resolved-violations .load-more-btn {
  margin-left: 20px;
  margin-right: 20px;
}

.aptreviews-building-page .resolved-intro {
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  margin-top: -4px;
}

.aptreviews-building-page .resolved-violations .violations-list {
  margin-bottom: 18px;
}

.aptreviews-building-page .resolved-violations .violation-card {
  border-left-color: var(--ar-teal);
}

.aptreviews-building-page .renter-help-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 20px;
}

.aptreviews-building-page .renter-help-icon {
  align-items: center;
  background: var(--ar-teal);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.aptreviews-building-page .renter-help-card p {
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.aptreviews-building-page .sidebar-review-button,
.aptreviews-building-page .building-review-button,
.aptreviews-building-page .load-more-btn {
  background: var(--ar-blue);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 11px 16px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.aptreviews-building-page .sidebar-review-button {
  align-items: center;
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.aptreviews-building-page .sidebar-review-button:hover,
.aptreviews-building-page .building-review-button:hover,
.aptreviews-building-page .load-more-btn:hover {
  background: var(--ar-blue-dark);
  transform: translateY(-1px);
}

.aptreviews-building-page .load-more-btn {
  display: block;
  margin: 16px auto 0;
}

.aptreviews-building-page #reviews-container {
  margin-top: 20px;
}

.aptreviews-building-page .member-feature-note {
  background: #f4f8ff;
  border: 1px solid #cbdcf7;
  border-radius: 12px;
  color: #34415e;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 12px 15px;
}

.aptreviews-building-page .member-feature-note a {
  color: var(--ar-blue-dark);
  font-weight: 750;
  margin-left: 4px;
}

.aptreviews-building-page .member-access-gate {
  background: linear-gradient(145deg, #f4f8ff, #eef9f8);
  border: 1px solid #c6d8ef;
  border-radius: 13px;
  margin-top: 16px;
  padding: 18px;
  text-align: left;
}

.aptreviews-building-page #resolved-member-gate .member-access-gate {
  margin: 0 20px 20px;
}

.aptreviews-building-page .member-access-eyebrow {
  color: var(--ar-blue-dark);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.aptreviews-building-page .member-access-gate h3 {
  color: var(--ar-ink);
  font-size: 17px;
  margin: 0 0 6px;
}

.aptreviews-building-page .member-access-gate p {
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.aptreviews-building-page .member-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.aptreviews-building-page .member-access-actions a {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.aptreviews-building-page .member-access-primary {
  background: var(--ar-blue);
  color: #fff;
}

.aptreviews-building-page .member-access-primary:hover {
  background: var(--ar-blue-dark);
  color: #fff;
}

.aptreviews-building-page .member-access-secondary {
  background: #fff;
  border: 1px solid #b9cae1;
  color: var(--ar-blue-dark);
}

.aptreviews-building-page .review-section {
  margin: 0;
  padding: 22px;
}

.aptreviews-building-page .review-section .section-count {
  background: var(--ar-teal);
}

.aptreviews-building-page .review-summary-grid {
  gap: 10px;
  margin: 0 0 14px;
}

.aptreviews-building-page .review-summary-box {
  background: var(--ar-canvas);
  border: 1px solid var(--ar-line);
  border-radius: 12px;
  padding: 14px;
}

.aptreviews-building-page .review-summary-box strong {
  color: var(--ar-teal);
  font-size: 21px;
}

.aptreviews-building-page .review-summary-box span {
  color: var(--ar-muted);
  font-size: 11px;
}

.aptreviews-building-page .review-list {
  display: grid;
  gap: 10px;
}

.aptreviews-building-page .review-card {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: 12px;
  box-shadow: none;
  margin: 0;
  padding: 16px;
}

.aptreviews-building-page .review-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.aptreviews-building-page .review-rating {
  color: var(--ar-teal);
  font-size: 15px;
}

.aptreviews-building-page .review-date {
  color: var(--ar-muted);
  font-size: 11px;
}

.aptreviews-building-page .review-meta {
  background: #eaf8f8;
  color: #087a84;
  font-size: 11px;
  margin: 0 0 10px;
  padding: 5px 9px;
}

.aptreviews-building-page .review-body {
  color: #34415e;
  font-size: 13px;
  line-height: 1.6;
}

.aptreviews-building-page .review-rent-again {
  background: var(--ar-canvas);
  color: #34415e;
  font-size: 12px;
  margin-bottom: 10px;
}

.aptreviews-building-page .building-review-cta {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid var(--ar-line);
  border-radius: 16px;
  margin: 20px 0;
  padding: 28px;
  text-align: center;
}

/* The sidebar owns the visible review CTA; retain the original button as its
   programmatic form trigger so existing shortcode behavior remains intact. */
.aptreviews-building-page > .building-review-cta {
  display: none;
}

.aptreviews-building-page .building-review-cta h2 {
  color: var(--ar-blue-dark);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.aptreviews-building-page .building-review-cta p {
  color: var(--ar-muted);
  margin: 0 0 16px;
}

.aptreviews-building-page #building-review-form-wrap {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(38, 74, 130, 0.06);
  margin-bottom: 24px;
  padding: 24px;
}

.aptreviews-building-page #building-review-form-wrap input,
.aptreviews-building-page #building-review-form-wrap select,
.aptreviews-building-page #building-review-form-wrap textarea {
  border: 1px solid #cbd7e8;
  border-radius: 9px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.aptreviews-building-page #building-review-form-wrap input:focus,
.aptreviews-building-page #building-review-form-wrap select:focus,
.aptreviews-building-page #building-review-form-wrap textarea:focus {
  border-color: var(--ar-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: 0;
}

.aptreviews-building-page #building-review-form-wrap input[type="submit"] {
  background: var(--ar-blue);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  width: auto;
}

@media (max-width: 980px) {
  .aptreviews-building-page .violations-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .aptreviews-building-page .building-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .aptreviews-building-page {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
    padding-left: 2px;
    padding-right: 2px;
  }

  .aptreviews-building-page #results {
    padding: 20px 0 4px;
  }

  .aptreviews-building-page .result-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .aptreviews-building-page .result-header h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  .aptreviews-building-page .data-updated-note {
    padding: 0;
  }

  .aptreviews-building-page .summary-cards {
    gap: 9px;
    grid-template-columns: repeat(3, minmax(105px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .aptreviews-building-page .summary-card {
    min-height: 94px;
    padding: 16px 10px;
    scroll-snap-align: start;
  }

  .aptreviews-building-page .summary-card strong {
    font-size: 27px;
  }

  .aptreviews-building-page .summary-card span {
    font-size: 11px;
  }

  .aptreviews-building-page .issue-history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
  }

  .aptreviews-building-page .issue-history-heading p {
    text-align: left;
  }

  .aptreviews-building-page .issue-cards {
    display: grid;
    gap: 9px;
    grid-auto-columns: 148px;
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-left: -2px;
    overflow-x: auto;
    padding: 2px 2px 9px;
    scroll-snap-type: x mandatory;
  }

  .aptreviews-building-page .issue-card {
    min-height: 82px;
    padding: 13px;
    scroll-snap-align: start;
  }

  .aptreviews-building-page .issue-card .icon {
    flex-basis: 38px;
    font-size: 21px;
    height: 38px;
  }

  .aptreviews-building-page .violation-controls {
    align-items: stretch;
    border-color: var(--ar-line);
    flex-direction: column;
    box-shadow: 0 8px 18px rgba(16, 32, 51, 0.055);
    top: 8px;
  }

  .aptreviews-building-page .issue-filter-chips {
    flex-wrap: nowrap;
    margin: 0 -10px;
    overflow-x: auto;
    padding: 0 10px 5px;
  }

  .aptreviews-building-page .issue-filter-chip {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .aptreviews-building-page #violation-sort {
    min-height: 42px;
    width: 100%;
  }

  .aptreviews-building-page .sidebar-review-button,
  .aptreviews-building-page .building-review-button,
  .aptreviews-building-page .load-more-btn,
  .aptreviews-building-page #building-review-form-wrap input[type="submit"] {
    min-height: 48px;
    width: 100%;
  }

  .aptreviews-building-page .violation-group,
  .aptreviews-building-page .review-section {
    border-radius: 14px;
    padding: 16px;
  }

  .aptreviews-building-page .building-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .aptreviews-building-page .resolved-violations {
    padding: 0;
  }

  .aptreviews-building-page .violation-card-header {
    align-items: flex-start;
    flex-direction: row;
  }

  .aptreviews-building-page .violation-badges {
    justify-content: flex-end;
  }

  .aptreviews-building-page .review-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aptreviews-building-page .review-summary-box {
    padding: 11px 8px;
  }

  .aptreviews-building-page .review-summary-box strong {
    font-size: 18px;
  }

  .aptreviews-building-page .building-review-cta {
    padding: 22px 16px;
  }

  .aptreviews-building-page .member-access-actions {
    flex-direction: column;
  }

  .aptreviews-building-page .member-access-actions a {
    width: 100%;
  }
}

/* Final Cloud White overrides for Elementor/theme headers.
   Kept at the end of the file so these rules win after the design system. */
body :where(
  .site-header,
  header.site-header,
  header#masthead,
  .elementor-location-header,
  .elementor-location-header .elementor-section,
  .elementor-location-header .elementor-container,
  .elementor-location-header .elementor-widget-wrap,
  .elementor-sticky--effects
) {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045) !important;
}

body :where(
  .site-header,
  header.site-header,
  header#masthead,
  .elementor-location-header
) {
  min-height: 0 !important;
}

body :where(
  .site-header,
  header.site-header,
  header#masthead
) {
  padding-bottom: 10px !important;
  padding-top: 10px !important;
}

body .elementor-location-header :where(.elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap) {
  min-height: 0 !important;
}

body .elementor-location-header :where(.elementor-container, .elementor-widget-wrap) {
  padding-bottom: 8px !important;
  padding-top: 8px !important;
}

body :where(
  .site-header,
  header.site-header,
  header#masthead,
  .elementor-location-header
) :where(a, .elementor-heading-title, .elementor-nav-menu a, .site-title, .site-title a) {
  color: #0f172a !important;
}

body :where(
  .site-header,
  header.site-header,
  header#masthead,
  .elementor-location-header
) :where(a:hover, .elementor-nav-menu a:hover, .elementor-item-active, .current-menu-item > a) {
  color: #2563eb !important;
}

body .elementor-location-header :where(.elementor-button, button, input[type="submit"], .elementor-menu-toggle),
body :where(.site-header, header.site-header, header#masthead) :where(.elementor-button, button, input[type="submit"], .menu-toggle) {
  background: #2563eb !important;
  border-color: #2563eb !important;
  border-radius: 10px !important;
  color: #ffffff !important;
}

body .elementor-location-header :where(.elementor-button:hover, button:hover, input[type="submit"]:hover, .elementor-menu-toggle:hover),
body :where(.site-header, header.site-header, header#masthead) :where(.elementor-button:hover, button:hover, input[type="submit"]:hover, .menu-toggle:hover) {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

body :where(.site-header, header.site-header, header#masthead, .elementor-location-header) img {
  max-height: 44px !important;
  width: auto;
}

@media (max-width: 767px) {
  body :where(.site-header, header.site-header, header#masthead) {
    padding-bottom: 8px !important;
    padding-top: 8px !important;
  }

  body .elementor-location-header :where(.elementor-container, .elementor-widget-wrap) {
    padding-bottom: 6px !important;
    padding-top: 6px !important;
  }

  body :where(.site-header, header.site-header, header#masthead, .elementor-location-header) img {
    max-height: 38px !important;
  }
}
