/* Property Listings Filter Sidebar Styles */
/* Note: These styles are similar to admin module's properties_listing.css */
/* but kept separate for website module independence and customization */


.properties-filter-sidebar {
  height: 100%;
  width: 280px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  flex-shrink: 0;
  overflow-y: auto;
  position: sticky;
  top: 6rem;
}

.filter-header {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header h4 {
  color: #333;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.filter-header .btn {
  padding: 0;
  font-size: 12px;
  text-decoration: none;
}

.filter-content {
  padding: 15px;
}

.filter-section {
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-label-toggle {
  font-weight: 600;
  font-size: 13px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-label-toggle:hover {
  color: #2563eb;
}

.filter-label-toggle i,
.filter-label-toggle svg {
  font-size: 11px;
  width: 11px;
  height: 11px;
  transition: transform 0.3s ease;
  color: #999;
  display: inline-block;
}

.filter-label-toggle[aria-expanded="true"] i,
.filter-label-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg) !important;
}

.filter-label-toggle span {
  flex: 1;
}

.filter-options {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.filter-options.in {
  padding: 10px 0 15px 0;
  max-height: 400px;
  overflow-y: auto;
}

/* Scrollbar for filter options */
.filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.filter-options .checkbox {
  margin-bottom: 8px;
  margin-top: 0;
}

.filter-options .checkbox label {
  font-weight: normal;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 0;
}

.filter-options .checkbox input[type="checkbox"] {
  margin: 0;
  margin-right: 8px;
  cursor: pointer;
}

.filter-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range-inputs input {
  flex: 1;
  min-width: 0;
}

.range-separator {
  color: #999;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn-link {
  background: transparent;
  border: none;
  cursor: pointer;
}

.text-danger {
  color: #dc3545;
}

.no-margin {
  margin: 0;
}

.font-bold {
  font-weight: 600;
}

/* Property Listings Page Styles */

.active {
  background-color: #2563eb;
  color: white;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

@keyframes skeleton-loading {
  0% {
    background-color: #e2e8f0;
  }
  50% {
    background-color: #cbd5e0;
  }
  100% {
    background-color: #e2e8f0;
  }
}

