.property_filter {
  background-color: var(--light-gray);
}

#property-filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 32px;
}

#property-filter-form *:focus,
#property-filter-form *:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Prevent mobile tap highlight */
#property-filter-form,
#property-filter-form * {
  -webkit-tap-highlight-color: transparent;
}

.property-category-filter,
.property-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.category-option,
.type-option {
  padding: 8px 16px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.category-option input,
.type-option input {
  display: none;
}

.category-option input,
.type-option input,
.switch input {
  outline: none;
  box-shadow: none;
}

.category-option.active,
.type-option.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Prevent label focus style */
.category-option,
.type-option,
.switch {
  outline: none;
}

/* Optional: disable text selection on buttons */
.category-option,
.type-option,
.switch,
.property-onsale-toggle span {
  user-select: none;
}

.disabled {
  color: var(--light-gray);
}

.property-onsale-toggle {
  display: flex;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  margin-right: 10px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: var(--gray);
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--brand);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.switch input:focus + .slider,
.switch input:focus-visible + .slider {
  box-shadow: none;
  outline: none;
}

.property__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Card */
.property-sales-card {
  background: var(--white);
  flex: 1 1 calc(33.33% - 30px);
  max-width: calc(33.33% - 30px);
  scroll-snap-align: start;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* =========================
   Pagination (AJAX)
========================= */

.pagination-san {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item {
  display: inline-flex;
}

/* base link */
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.pagination .page-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

/* active page */
.pagination .page-item.active .page-link,
.pagination .page-item.active span.page-link {
  background-color: #222;
  border-color: #222;
  color: #fff;
  cursor: default;
}

/* disabled (dots) */
.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span.page-link {
  border: none;
  background: transparent;
  color: #999;
  cursor: default;
  pointer-events: none;
}

/* dots */
.pagination .page-link.dots {
  min-width: auto;
  padding: 0 6px;
  font-size: 16px;
}

/* arrows */
.pagination .page-link i {
  font-size: 14px;
}

/* remove hover for active / disabled */
.pagination .page-item.active .page-link:hover,
.pagination .page-item.disabled .page-link:hover {
  background: inherit;
}

/* =========================
   Responsive (mobile)
========================= */
@media (max-width: 900px) {
  .property-sales-card {
    background: var(--white);
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
    scroll-snap-align: start;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 768px) {
  .property-sales-card {
    background: var(--white);
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
    scroll-snap-align: start;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .pagination {
    gap: 4px;
  }

  .pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .pagination .page-link i {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  #property-filter-form {
    padding: 10px 10px;
  }
  .property-onsale-toggle {
    margin-top: 10px;
  }
  .property-sales-card {
    background: var(--white);
    flex: auto;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    scroll-snap-align: start;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
}

.cb-property-container * {
  box-sizing: border-box;
}
.n2-ss-slider-1 {
  min-height: clamp(300px, 48vw, 500px) !important;
}

.n2-ss-slider-wrapper-inside {
  max-height: clamp(300px, 48vw, 500px);
}

/* Layout */
.cb-property-container {
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 24px;
  background: var(--white);
  color: var(--text-color);
}

/* Gallery */
.cb-property-gallery img {
  width: 100%;
  display: block;
}

.property__image {
  max-height: clamp(300px, 45vw, 500px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Info */
.cb-property-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb-property-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 8px;
}

.cb-property-price-value {
  color: var(--red);
  font-size: clamp(24px, 8vw, 30px);
  font-weight: bold;
}

.cb-property-price-value span {
  font-size: 16px;
}

/* Rows */
.cb-property-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 8px;
}
.cb-property-row span {
  color: var(--text-color);
}

.cb-property-label {
  min-width: 56px;
  color: var(--black);
}

/* Map */
.cb-property-map {
  margin-left: auto;
  color: var(--brand);
  font-size: 16px;
  text-decoration: none;
}

/* Reform */
.cb-property-reform-box {
  background: var(--light-green);
  padding: 16px;
}

/* CTA */
.cb-property-cta {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  padding: 16px;
  gap: 10px;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.cb-property-cta .san-btn {
  border: 2px solid;
  padding: 14px 0px;
  max-width: 350px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 882px) {
  .cb-property-container {
    grid-template-columns: 1fr;
  }

  .property__image {
    max-height: clamp(300px, 60vw, 600px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.cb-property-spec {
  margin: 0 auto;
  color: var(--black);
}

.cb-property-spec * {
  box-sizing: border-box;
}

/* Title */
.cb-property-spec-title {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 14px 10px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 24px;
}

/* List layout */
.cb-property-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray);
}

/* Item */
.cb-property-spec-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--gray);
}

.cb-property-spec-label {
  background: var(--light-green);
  padding: 14px 12px;
  font-weight: bold;
  border-right: 1px solid var(--light-green);
}

.cb-property-spec-value {
  padding: 14px 12px;
}
@media (max-width: 992px) {
  .cb-property-spec-item {
    grid-template-columns: 150px 1fr;
  }
  .cb-property-spec-label {
    padding: 7px 10px;
    font-size: 15px;
  }
  .cb-property-spec-value {
    padding: 7px 10px;
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cb-property-spec-list {
    grid-template-columns: 1fr;
  }

  .cb-property-spec-item {
    grid-template-columns: 1fr;
  }

  .cb-property-spec-label {
    padding: 7px 10px;
    font-size: 15px;
    border-right: none;
    border-bottom: 1px solid var(--light-green);
  }
  .cb-property-spec-value {
    padding: 7px 10px;
    font-size: 15px;
  }
}

.cb-p-surround-contain {
  background-color: var(--light-green);
  padding: 10px;
  font-size: 16px;
}

/* Unique wrapper */
.cb-p-media {
  padding: 40px 0;
}

/* Grid wrapper */
.cb-p-media-grid {
  display: grid;
  gap: 32px;
}

.cb-p-block,
.cb-p-floor {
  text-align: center;
  max-height: clamp(300px, 48vw, 550px);
  overflow: hidden;
}

.cb-p-block img,
.cb-p-floor img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .cb-p-media-grid {
    grid-template-columns: 1fr !important;
  }
}
