/* Properties Page Specific Styles */
.properties-hero .rp-hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.properties-hero .rp-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--white) 0%, color-mix(in srgb, var(--white) 80%, transparent) 25%, transparent 60%);
}

/* Global button & dropdown resets for properties-page to eliminate browser 3D beveled black borders */
.properties-page button,
.properties-page select,
.properties-page input {
  border: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.properties-page .purpose-tab {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.properties-page .cp-custom-dropdown {
  position: relative;
  width: 100%;
}

.properties-page .cp-dropdown-trigger {
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s ease;
}

.properties-page .cp-dropdown-trigger:focus,
.properties-page .cp-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--brand-green) !important;
}

.properties-page .cp-dropdown-menu {
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  background-color: #ffffff !important;
}

.properties-page .cp-dropdown-menu button {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
}

.properties-page form#properties-filter-form button[type="submit"] {
  border: none !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(121, 180, 69, 0.3) !important;
}

.properties-page #view-grid-btn,
.properties-page #view-list-btn {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.properties-page #sidebar-bed-pills button {
  outline: none !important;
  box-shadow: none !important;
}

/* List view toggle modifier */
#properties-grid-container.view-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

#properties-grid-container.view-list .property-card-item {
  flex-direction: row !important;
}

#properties-grid-container.view-list .property-card-item > div:first-child {
  width: 300px !important;
  height: auto !important;
  min-height: 180px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  #properties-grid-container.view-list .property-card-item {
    flex-direction: column !important;
  }
  #properties-grid-container.view-list .property-card-item > div:first-child {
    width: 100% !important;
    height: 180px !important;
  }
}

/* Favorite button active */
.favorite-toggle-btn.is-favorited {
  color: #ef4444 !important;
  background-color: #fee2e2 !important;
}

.favorite-toggle-btn.is-favorited svg {
  fill: currentColor !important;
}

/* Map pin pulse */
.city-pin-btn:hover .relative span:last-child {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

/* FAQ active state */
.faq-accordion-item.is-open {
  background-color: #fbfdfa !important;
}

.faq-accordion-item.is-open .faq-toggle-btn {
  color: var(--brand-green) !important;
}

.faq-accordion-item .faq-toggle-btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Custom Green Checkboxes with crisp white tick */
.custom-check-box {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 4px !important;
  border: 1.5px solid #d1d5db !important;
  background-color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease-in-out !important;
  vertical-align: middle;
}

.custom-check-box .check-svg {
  width: 12px !important;
  height: 12px !important;
  display: none;
  stroke: #ffffff !important;
}

.custom-check-box.is-checked,
.custom-checkbox-wrap input[type="checkbox"]:checked ~ .custom-check-box,
.custom-checkbox-wrap input[type="checkbox"]:checked + .custom-check-box {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

.custom-check-box.is-checked .check-svg,
.custom-checkbox-wrap input[type="checkbox"]:checked ~ .custom-check-box .check-svg,
.custom-checkbox-wrap input[type="checkbox"]:checked + .custom-check-box .check-svg {
  display: block !important;
}

/* Pagination bar styles */
#properties-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
}

#properties-pagination-bar button {
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff;
  color: #334155;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

#properties-pagination-bar button:hover:not(:disabled):not(.is-active) {
  border-color: var(--brand-green) !important;
  color: var(--brand-green) !important;
}

#properties-pagination-bar button.is-active {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: #ffffff !important;
}

#properties-pagination-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Map chips active state */
.map-chip-btn.is-active {
  background-color: var(--brand-green) !important;
  color: #ffffff !important;
}
