# Properties Section
--------------------------------------------------------------*/
.properties .properties-header .view-toggle .view-btn {
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.properties .properties-header .view-toggle .view-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.properties .properties-header .view-toggle .view-btn:hover:not(.active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.properties .properties-header .sort-dropdown .form-select {
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  color: var(--default-color);
  font-size: 14px;
  background-color: transparent;
}

.properties .properties-header .sort-dropdown .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 85%);
}

.properties .properties-grid {
  display: none;
}

.properties .properties-grid.active {
  display: block;
}

.properties .properties-list {
  display: none;
}

.properties .properties-list.active {
  display: block;
}

.properties .property-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
}

.properties .property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 80%);
}

.properties .property-card .property-image {
  position: relative;
  overflow: hidden;
}

.properties .property-card .property-image img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.properties .property-card .property-image:hover img {
  transform: scale(1.05);
}

.properties .property-card .property-image .property-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.properties .property-card .property-image .property-badges .badge {
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.properties .property-card .property-image .property-badges .badge.featured {
  background-color: #ff6b35;
  color: white;
}

.properties .property-card .property-image .property-badges .badge.new {
  background-color: #10b981;
  color: white;
}

.properties .property-card .property-image .property-badges .badge.for-sale {
  background-color: var(--accent-color);
  color: white;
}

.properties .property-card .property-image .property-badges .badge.for-rent {
  background-color: #8b5cf6;
  color: white;
}

.properties .property-card .property-image .property-badges .badge.open-house {
  background-color: #f59e0b;
  color: white;
}

.properties .property-card .property-image .property-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.properties .property-card .property-image .property-overlay button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background-color: white;
  color: var(--default-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--default-color), transparent 85%);
  transition: all 0.3s ease;
}

.properties .property-card .property-image .property-overlay button:hover {
  background-color: var(--accent-color);
  color: white;
}

.properties .property-card .property-image .property-overlay button.favorite-btn:hover {
  background-color: #ef4444;
  color: white;
}

.properties .property-card .property-image:hover .property-overlay {
  opacity: 1;
}

.properties .property-card .property-content {
  padding: 20px;
}

.properties .property-card .property-content .property-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.properties .property-card .property-content .property-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--default-color);
}

.properties .property-card .property-content .property-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.properties .property-card .property-content .property-location {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 15px;
}

.properties .property-card .property-content .property-location i {
  margin-right: 5px;
  color: var(--accent-color);
}

.properties .property-card .property-content .property-features {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.properties .property-card .property-content .property-features span {
  font-size: 13px;
  color: var(--default-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.properties .property-card .property-content .property-features span i {
  color: var(--accent-color);
  font-size: 14px;
}

.properties .property-card .property-content .property-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 15px;
  background-color: color-mix(in srgb, var(--surface-color), var(--default-color) 3%);
  border-radius: 8px;
}

.properties .property-card .property-content .property-agent .agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.properties .property-card .property-content .property-agent .agent-info {
  flex: 1;
}

.properties .property-card .property-content .property-agent .agent-info strong {
  font-size: 14px;
  color: var(--heading-color);
  display: block;
}

.properties .property-card .property-content .property-agent .agent-info .agent-contact small {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 12px;
}

.properties .property-card .property-content .property-agent .agent-info .agent-contact small i {
  margin-right: 3px;
}

.properties .property-card .property-content .btn {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transition: all 0.3s ease;
}

.properties .property-list-item {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
}

.properties .property-list-item:hover {
  box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 80%);
}

.properties .property-list-item .property-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.properties .property-list-item .property-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.properties .property-list-item .property-image:hover img {
  transform: scale(1.05);
}

.properties .property-list-item .property-image .property-badges {
  position: absolute;
  top: 10px;
  left: 10px;
}

.properties .property-list-item .property-image .property-badges .badge {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 15px;
}

.properties .property-list-item .property-image .property-badges .badge.featured {
  background-color: #ff6b35;
  color: white;
}

.properties .property-list-item .property-image .property-badges .badge.new {
  background-color: #10b981;
  color: white;
}

.properties .property-list-item .property-image .property-badges .badge.for-rent {
  background-color: #8b5cf6;
  color: white;
}

.properties .property-list-item .property-image .property-badges .badge.open-house {
  background-color: #f59e0b;
  color: white;
}

.properties .property-list-item .property-content .property-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
}

.properties .property-list-item .property-content .property-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--default-color);
}

.properties .property-list-item .property-content .property-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.3;
}

.properties .property-list-item .property-content .property-location {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
}

.properties .property-list-item .property-content .property-location i {
  margin-right: 5px;
  color: var(--accent-color);
}

.properties .property-list-item .property-content .property-features {
  display: flex;
  gap: 15px;
}

.properties .property-list-item .property-content .property-features span {
  font-size: 13px;
  color: var(--default-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.properties .property-list-item .property-content .property-features span i {
  color: var(--accent-color);
  font-size: 14px;
}

.properties .property-list-item .property-content .property-agent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.properties .property-list-item .property-content .property-agent .agent-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.properties .property-list-item .property-content .property-agent span {
  font-size: 14px;
  color: var(--heading-color);
  font-weight: 500;
}

.properties .property-list-item .property-content .property-actions {
  display: flex;
  gap: 10px;
}

.properties .property-list-item .property-content .property-actions .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.properties .property-list-item .property-content .property-actions .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  color: var(--default-color);
}

.properties .property-list-item .property-content .property-actions .btn-outline-secondary:hover {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

.properties .properties-sidebar .filter-widget {
  background-color: var(--surface-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 90%);
}

.properties .properties-sidebar .filter-widget .filter-title {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.properties .properties-sidebar .filter-widget .filter-section {
  margin-bottom: 20px;
}

.properties .properties-sidebar .filter-widget .filter-section .form-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  font-size: 14px;
}

.properties .properties-sidebar .filter-widget .filter-section .form-select,
.properties .properties-sidebar .filter-widget .filter-section .form-control {
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  background-color: transparent;
  color: var(--default-color);
}

.properties .properties-sidebar .filter-widget .filter-section .form-select:focus,
.properties .properties-sidebar .filter-widget .filter-section .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 85%);
}

.properties .properties-sidebar .filter-widget .filter-section .form-select::placeholder,
.properties .properties-sidebar .filter-widget .filter-section .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.properties .properties-sidebar .filter-widget .filter-section .bedroom-filter,
.properties .properties-sidebar .filter-widget .filter-section .bathroom-filter {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.properties .properties-sidebar .filter-widget .filter-section .bedroom-filter .filter-btn,
.properties .properties-sidebar .filter-widget .filter-section .bathroom-filter .filter-btn {
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  color: var(--default-color);
  font-size: 13px;
  padding: 5px 12px;
}

.properties .properties-sidebar .filter-widget .filter-section .bedroom-filter .filter-btn.active,
.properties .properties-sidebar .filter-widget .filter-section .bathroom-filter .filter-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.properties .properties-sidebar .filter-widget .filter-section .bedroom-filter .filter-btn:hover:not(.active),
.properties .properties-sidebar .filter-widget .filter-section .bathroom-filter .filter-btn:hover:not(.active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.properties .properties-sidebar .filter-widget .filter-section .features-filter .form-check {
  margin-bottom: 8px;
}

.properties .properties-sidebar .filter-widget .filter-section .features-filter .form-check .form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.properties .properties-sidebar .filter-widget .filter-section .features-filter .form-check .form-check-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 85%);
}

.properties .properties-sidebar .filter-widget .filter-section .features-filter .form-check .form-check-label {
  font-size: 14px;
  color: var(--default-color);
}

.properties .properties-sidebar .filter-widget .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 12px 20px;
  font-weight: 600;
}

.properties .properties-sidebar .filter-widget .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.properties .properties-sidebar .featured-properties {
  background-color: var(--surface-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 90%);
}

.properties .properties-sidebar .featured-properties h5 {
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.properties .properties-sidebar .featured-properties .featured-item {
  padding: 15px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.properties .properties-sidebar .featured-properties .featured-item:last-child {
  border-bottom: none;
}

.properties .properties-sidebar .featured-properties .featured-item img {
  border-radius: 6px;
  height: 60px;
  object-fit: cover;
}

.properties .properties-sidebar .featured-properties .featured-item h6 {
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 600;
}

.properties .properties-sidebar .featured-properties .featured-item .text-muted {
  color: color-mix(in srgb, var(--default-color), transparent 50%) !important;
}

.properties .properties-sidebar .featured-properties .featured-item .text-primary {
  color: var(--accent-color) !important;
  font-weight: 600;
  font-size: 14px;
}

.properties .pagination .page-link {
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 10px 15px;
  background-color: transparent;
}

.properties .pagination .page-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.properties .pagination .page-item.active .page-link {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.properties .pagination .page-item.disabled .page-link {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

@media (max-width: 992px) {
  .properties .properties-sidebar {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .properties .properties-header .d-flex {
    flex-direction: column;
    gap: 15px;
    align-items: stretch !important;
  }

  .properties .properties-header .view-toggle {
    justify-content: center;
  }

  .properties .property-card .property-content {
    padding: 15px;
  }

  .properties .property-card .property-content .property-features {
    gap: 10px;
    flex-wrap: wrap;
  }

  .properties .property-list-item .row {
    flex-direction: column;
  }

  .properties .property-list-item .property-content {
    margin-top: 15px;
  }

  .properties .property-list-item .property-content .d-flex:first-child {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .properties .property-list-item .property-content .property-actions {
    margin-top: 15px;
  }
}


/*--------------------------------------------------------------
# Local adjustments
# The image overlay control is a link (it opens the property
# detail page) rather than the template's inert <button>, so it
# needs the same circular-button treatment.
--------------------------------------------------------------*/
.properties .property-card .property-image .property-overlay a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background-color: white;
  color: var(--default-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--default-color), transparent 85%);
  transition: all 0.3s ease;
  text-decoration: none;
}

.properties .property-card .property-image .property-overlay a:hover {
  background-color: var(--accent-color);
  color: white;
}
