/* ============================================================
   Communities Plugin — Front-end Styles v3.2
   Pixel-perfect match to design reference image
   ============================================================ */

/* ── Base wrapper ─────────────────────────────────────────── */
.chub-wrapper {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  max-width: 100%;
}

/* =====================================================
   TOP BAR  (Rent | For Sale)  ·  (Sort By ▾)
   Two items flush to opposite ends, single line
   ===================================================== */
.chub-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

/* Rent | For Sale */
.chub-rent-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chub-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.chub-toggle-btn.chub-toggle--active {
  color: #6c5ce7;
  font-weight: 700;
}

.chub-toggle-btn:hover {
  color: #6c5ce7;
}

.chub-rent-divider {
  color: #ccc;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* Sort By */
.chub-sort-by {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chub-sort-by label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.chub-sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.chub-sort-select {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0 20px 0 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  outline: none;
  line-height: 1;
}

.chub-sort-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #888;
  pointer-events: none;
}

/* =====================================================
   FILTER BAR
   Single white card, labels row then inputs row
   ===================================================== */
.chub-filters {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  /* Use a table-like layout: label row + input row in columns */
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* The single row that holds all filter columns */
.chub-filter-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

/* Each column = label + input stacked */
.chub-filter-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 12px;
  border-right: 1px solid #e5e7eb;
  /* sizing */
  min-width: 0;
}

/* Remove right border on last real col (before button) */
.chub-filter-col:last-of-type,
.chub-filter-col.chub-col-btn {
  border-right: none;
}

/* Column flex sizing to match image proportions */
.chub-col-search {
  flex: 2.2 1 180px;
}
.chub-col-community {
  flex: 1.6 1 150px;
  padding-left: 12px;
}
.chub-col-model {
  flex: 1 1 100px;
  padding-left: 12px;
}
.chub-col-beds {
  flex: 0.8 1 80px;
  padding-left: 12px;
}
.chub-col-baths {
  flex: 0.8 1 80px;
  padding-left: 12px;
}
.chub-col-filter {
  flex: 1.2 1 120px;
  padding-left: 12px;
}
.chub-col-btn {
  flex: 0 0 auto;
  padding-left: 16px;
  justify-content: flex-end;
  align-self: flex-end;
}

/* Label above each input */
.chub-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  line-height: 1;
  padding-top: 2px;
}

/* The input/select itself — no visible border, just text */
.chub-field-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  min-width: 0;
}

.chub-field-input,
.chub-field-select {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #666;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  padding: 0;
  line-height: 1.3;
}

.chub-field-input {
  cursor: text;
}

.chub-field-input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}

/* Dropdown arrow icon sitting right of select text */
.chub-field-arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #9ca3af;
  pointer-events: none;
}

/* Location target icon after search input */
.chub-field-suffix {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #9ca3af;
  pointer-events: none;
}

/* Advanced filter icon (sliders) */
.chub-field-icon-right {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

/* Select needs right padding so text doesn't go under arrow */
.chub-field-select {
  padding-right: 2px;
}

/* ── Search button ──────────────────────────────────────── */
.chub-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 24px;
  background: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.1s;
}

.chub-search-btn svg {
  width: 15px;
  height: 15px;
}
.chub-search-btn:hover {
  background: #5a4bd1;
}
.chub-search-btn:active {
  transform: scale(0.97);
}

/* ── Results count ────────────────────────────────────── */
.chub-results-meta {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
}
.chub-results-meta strong {
  color: #111;
}

/* =====================================================
   GRID
   ===================================================== */
.chub-grid {
  display: grid;
  gap: 28px;
}

.chub-grid--cols-1 {
  grid-template-columns: 1fr;
}
.chub-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.chub-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.chub-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =====================================================
   CARD
   ===================================================== */
.chub-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s,
    transform 0.25s,
    border-color 0.25s,
    background-color 0.25s;
  display: flex;
  flex-direction: column;
  animation: chubFadeUp 0.4s ease both;
}

.chub-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* Image */
.chub-card__image-wrap {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.chub-card__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.chub-card:hover .chub-card__image {
  transform: scale(1.03);
}

.chub-card__image--placeholder {
  width: 100%;
  height: 300px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chub-card__image--placeholder svg {
  width: 80px;
  height: 60px;
}

/* Body */
.chub-card__body {
  padding: 24px 26px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title */
.chub-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #6c5ce7;
  margin: 0 0 18px;
  line-height: 1.25;
}

.chub-card__name-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.chub-card__name-link:hover .chub-card__name {
  text-decoration: underline;
}
.chub-card__name-link:hover {
  color: inherit;
}

/* Meta list */
.chub-card__meta {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chub-card__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

.chub-card__meta-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #6c5ce7;
}

/* Description */
.chub-card__desc-wrap {
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
  margin-bottom: 20px;
}

.chub-card__desc-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.chub-card__desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* Footer */
.chub-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* CTA button */
.chub-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6c5ce7;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 25px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  line-height: 1;
}

.chub-btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chub-card__btn svg {
  width: 13px;
  height: 13px;
}
.chub-card__btn:hover {
  background: #5a4bd1;
  color: #fff;
  text-decoration: none;
}
.chub-card__btn:active {
  transform: scale(0.97);
}
.chub-card__btn--phone {
  background: #16a34a;
}
.chub-card__btn--phone:hover {
  background: #15803d;
}
.chub-card__btn[disabled] {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Share icon */
.chub-card__share {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  transition:
    border-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.chub-card__share svg {
  width: 16px;
  height: 16px;
}
.chub-card__share:hover {
  border-color: #6c5ce7;
  color: #6c5ce7;
}

/* ── Empty / loading ─────────────────────────────────── */
.chub-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #9ca3af;
  padding: 48px;
  font-size: 15px;
}

.chub-grid.chub-loading {
  position: relative;
  min-height: 120px;
  opacity: 0.45;
  pointer-events: none;
}

.chub-grid.chub-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%236c5ce7' stroke-width='4' stroke-dasharray='31.4' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='0.8s' from='0 25 25' to='360 25 25' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E")
    center / 40px no-repeat;
  border-radius: inherit;
}

/* ── Pagination ────────────────────────────────────── */
.chub-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.chub-page-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}
.chub-page-btn svg {
  width: 16px;
  height: 16px;
}
.chub-page-btn:hover:not([disabled]) {
  border-color: #6c5ce7;
  color: #6c5ce7;
}
.chub-page-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.chub-page-numbers {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.chub-page-num {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chub-page-num:hover {
  border-color: #6c5ce7;
  color: #6c5ce7;
}
.chub-page-num.chub-active {
  background: #6c5ce7;
  border-color: #6c5ce7;
  color: #fff;
}

.chub-page-dots {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #d1d5db;
  font-size: 14px;
}

/* ── Card animation ──────────────────────────────── */
@keyframes chubFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chub-card:nth-child(1) {
  animation-delay: 0.04s;
}
.chub-card:nth-child(2) {
  animation-delay: 0.08s;
}
.chub-card:nth-child(3) {
  animation-delay: 0.12s;
}
.chub-card:nth-child(4) {
  animation-delay: 0.16s;
}
.chub-card:nth-child(5) {
  animation-delay: 0.2s;
}
.chub-card:nth-child(6) {
  animation-delay: 0.24s;
}
.chub-card:nth-child(7) {
  animation-delay: 0.28s;
}
.chub-card:nth-child(8) {
  animation-delay: 0.32s;
}

/* ── Share toast ─────────────────────────────────── */
.chub-share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #111;
  color: #fff;
  border-radius: 25px;
  padding: 10px 22px;
  font-size: 13px;
  z-index: 9999;
  transition:
    transform 0.3s,
    opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.chub-share-toast.chub-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
  .chub-filter-row {
    flex-wrap: wrap;
  }
  .chub-filter-col {
    flex: 1 1 140px;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    padding-top: 2px;
  }
  .chub-col-btn {
    border-bottom: none;
    padding-top: 8px;
  }
  .chub-field-input,
  .chub-field-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
  }
  .chub-field-select {
    padding-right: 28px;
  }
  .chub-field-inner {
    position: relative;
  }
  .chub-field-arrow {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
  }
  .chub-field-suffix {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .chub-grid--cols-2,
  .chub-grid--cols-3,
  .chub-grid--cols-4 {
    grid-template-columns: 1fr;
  }
  .chub-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .chub-filter-col {
    flex: 1 1 100%;
  }
}

/* ── SEARCH BAR WRAPPER ──────────────────────────────────────────────────── */

.chub-search-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.chub-sb-row1.chub-top-bar {
  margin-bottom: 14px;
}

.chub-sb-row2.chub-filters {
  margin-bottom: 0;
}

.chub-sb-row3 {
  padding-top: 12px;
}
.chub-sb-row3 .chub-results-meta {
  margin-bottom: 0;
  text-align: left;
}

.chub-filter-label--hidden {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.chub-field-inner--btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Clear button */
.chub-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: transparent;
  color: #888;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.chub-clear-btn:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

@media (max-width: 768px) {
  .chub-sb-row1.chub-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .chub-sb-row3 .chub-results-meta {
    text-align: center;
  }
}

/* ── GRID COLUMN OVERRIDE ────────────────────────────────────────────────── */

/* Desktop: 2 columns, 80px gap */
.chub-grid--cols-1,
.chub-grid--cols-2,
.chub-grid--cols-3,
.chub-grid--cols-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
}

/* Tablet: 2 columns, 40px gap */
@media (max-width: 1024px) {
  .chub-grid--cols-1,
  .chub-grid--cols-2,
  .chub-grid--cols-3,
  .chub-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile: 1 column, 40px gap */
@media (max-width: 767px) {
  .chub-grid--cols-1,
  .chub-grid--cols-2,
  .chub-grid--cols-3,
  .chub-grid--cols-4 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── PORTED STYLES FROM FIND A HOME ─────────────────────────────────────── */

.chub-search-bar {
  background: #fff !important;
  box-shadow: 0 12px 19.5px 0 rgba(0, 0, 0, 0.25) !important;
  padding: 4vw 6vw;
}

.chub-search-bar > input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="reset"],
input[type="tel"],
input[type="date"],
select,
textarea,
.chub-field-inner,
.chub-field-input {
  box-shadow: none !important;
  filter: none !important;
  border-radius: 100px !important;
  border: none !important;
  background-color: #f5f5f7 !important;
  padding: 5px 10px !important;
}

.chub-filter-row {
  gap: 20px;
  border: none !important;
}

.chub-filter-col {
  border: none !important;
}

.chub-toggle-btn {
  background-color: transparent !important;
}

.chub-rent-toggle button {
  box-shadow: none !important;
  filter: none !important;
}

.chub-sort-select,
.chub-field-inner--btns {
  background-color: transparent !important;
}

.chub-field-arrow,
.chub-field-suffix,
.chub-field-icon-right {
  display: none !important;
}

.chub-field-inner::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("https://inspirecommunities.bald-staging.dev/wp-content/uploads/2026/04/Sort-Icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.chub-field-inner {
  max-width: 200px;
}

.chub-filters .chub-field-select {
  padding-right: 28px !important;
}

.chub-results-meta {
  justify-self: center !important;
}

.chub-field-inner:has(#chub-search)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("https://inspirecommunities.bald-staging.dev/wp-content/uploads/2026/04/my_location.svg") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.chub-field-inner svg {
  display: none !important;
}

.chub-filters #chub-search {
  padding-right: 30px !important;
}

.chub-sort-select-wrap svg {
  display: none !important;
}

.chub-sort-select-wrap::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("https://inspirecommunities.bald-staging.dev/wp-content/uploads/2026/04/Sort-Icon.svg") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.chub-field-inner:has(#chub-filter-btn) {
  max-width: 400px;
}

.chub-field-inner--btns::after {
  display: none !important;
}

.chub-field-inner--btns button {
  border-radius: 100px !important;
  background: #5f5af2 !important;
  box-shadow:
    0 32px 24px 0 rgba(255, 255, 255, 0.05) inset,
    0 2px 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 0 0 1px rgba(5, 5, 12, 0.15) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.2) inset,
    0 1px 2px 0 rgba(5, 5, 12, 0.05) !important;
  display: flex !important;
  width: 140px !important;
  height: 44px !important;
  padding: 8px 20px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px;
  margin: 0px !important;
}

/* Card image radius */
.chub-card__image-wrap .chub-card__image {
  border-radius: 33px 33px 0 0 !important;
}

/* Card body */
.chub-card__body {
  border-radius: 0 0 30px 30px !important;
  border: 2px solid #e1e5e5 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Grid padding */
.chub-grid {
  padding: 4vw 6vw;
}

/* Card button (primary — communities only has one button) */
.chub-card__btn svg {
  display: none !important;
}

.chub-card__btn {
  border-radius: 100px !important;
  background: #5f5af2 !important;
  box-shadow:
    0 32px 24px 0 rgba(255, 255, 255, 0.05) inset,
    0 2px 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 0 0 1px rgba(5, 5, 12, 0.15) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.2) inset,
    0 1px 2px 0 rgba(5, 5, 12, 0.05) !important;
  display: inline-flex !important;
  height: 44px !important;
  padding: 8px 20px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 16px !important;
  border: none !important;
  max-width: 200px;
}

.chub-clear-btn:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 767px) {
  .chub-field-inner {
    max-width: 100% !important;
  }

  .chub-field-inner--btns {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 0px !important;
    margin: 0px !important;
  }

  #chub-filter-btn,
  #chub-clear-btn {
    width: 100% !important;
  }

  .chub-sb-row1 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px;
  }

  .chub-toggle-btn {
    padding: 0px !important;
  }

  .chub-sb-row2 {
    padding: 30px 0px !important;
  }
}

/* ── CAROUSEL STYLING (matches community-type-grid) ──────────────────────── */

.chub-wrapper {
  background: rgb(26, 26, 50);
  padding: 64px 120px;
  width: 100%;
  box-sizing: border-box;
}

/* Grid — single column, no gap, no inner padding */
.chub-grid--cols-1,
.chub-grid--cols-2,
.chub-grid--cols-3,
.chub-grid--cols-4 {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.chub-grid {
  padding: 0 !important;
}

.chub-grid.chub-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Card — full-bleed background image */
.chub-card {
  position: relative !important;
  min-height: 560px !important;
  background-color: rgb(26, 26, 50) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  transition: none !important;
  animation: none !important;
}

.chub-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Image fills the card as a background */
.chub-card__image-wrap {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  display: block !important;
  overflow: hidden;
}

.chub-card__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: none !important;
}

.chub-card:hover .chub-card__image {
  transform: none !important;
}

/* Card body — floating white panel */
.chub-card__body {
  background: rgb(247, 255, 255) !important;
  border-radius: 24px !important;
  border: none !important;
  padding: 32px !important;
  max-width: 800px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex: unset !important;
  position: relative !important;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box;
}

/* Card name */
.chub-card__name {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.3;
  color: rgb(26, 26, 50) !important;
}

.chub-card__name-link {
  color: rgb(26, 26, 50) !important;
  text-decoration: none;
}
.chub-card__name-link:hover {
  color: rgb(95, 90, 242) !important;
  text-decoration: underline;
}

/* Meta */
.chub-card__meta {
  margin: 0 !important;
  gap: 6px;
}

.chub-card__meta-item {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
  gap: 6px;
}

/* Description */
.chub-card__desc-wrap {
  border-top: none !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

.chub-card__desc-label {
  display: none;
}

.chub-card__desc {
  font-size: 14px !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
}

/* Button */
.chub-card__btn {
  background: rgb(95, 90, 242) !important;
  border-radius: 100px !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  height: auto !important;
  box-shadow: none !important;
  align-self: flex-start !important;
  margin-top: 8px;
  max-width: unset !important;
}
.chub-card__btn:hover {
  background: rgb(76, 72, 193) !important;
  transform: none;
}

/* No results */
.chub-no-results {
  color: #fff;
  text-align: center;
  padding: 40px;
  font-size: 15px;
}

/* ── Pagination — arrows + dots ─────────────────────────────────────────── */
.chub-pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 16px auto 0;
  flex-wrap: nowrap !important;
  max-width: 800px;
  width: 100%;
}

.chub-page-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  border-radius: 30px !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition:
    opacity 0.2s,
    background 0.2s;
  flex-shrink: 0;
}
.chub-page-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.chub-page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.chub-prev {
  background: rgb(217, 217, 218) !important;
}
.chub-prev svg {
  stroke: rgb(26, 26, 50);
}
.chub-prev:hover:not([disabled]) {
  background: rgb(196, 196, 198) !important;
}

.chub-next {
  background: rgb(95, 90, 242) !important;
}
.chub-next svg {
  stroke: #fff;
}
.chub-next:hover:not([disabled]) {
  background: rgb(76, 72, 193) !important;
}

/* Page numbers styled as dots */
.chub-page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 120px;
  min-width: 120px;
}

.chub-page-num {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  border-radius: 100px !important;
  background: rgb(143, 139, 245) !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition:
    background 0.2s,
    width 0.2s;
  flex-shrink: 0;
  font-size: 0 !important;
  overflow: hidden;
  color: transparent !important;
}
.chub-page-num.chub-active {
  width: 20px !important;
  height: 8px !important;
  border-radius: 100px !important;
  background: rgb(76, 72, 193) !important;
  color: transparent !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chub-wrapper {
    padding: 48px 40px;
  }
}

@media (max-width: 768px) {
  .chub-wrapper {
    padding: 240px 20px 64px;
  }
  .chub-card {
    min-height: 440px !important;
  }
  .chub-card__body {
    max-width: 335px !important;
    padding: 32px 11px !important;
  }
}
