/* Mobile Dropdown Styling */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.dropdown-overlay.active {
    display: block;
}

.dropdown-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 100;
    overflow-y: auto;
    padding: 20px;
}

.dropdown-panel.active {
    transform: translateY(0);
}

.dropdown-content {
    max-height: calc(70vh - 150px);
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.panel-close {
    color: #6b7280;
    cursor: pointer;
}

.apply-btn {
    background: #fa3c00;
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    transition: background 0.2s;
}

.apply-btn:hover {
    background: #c2410c;
}

/* Desktop Dropdown Styling */
.dropdown-trigger {
    cursor: pointer;
}

.desktop-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 80%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 50;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.desktop-dropdown:not(.hidden) {
    display: block;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}


/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #fa3c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Brand logo styling */
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 4px;
    transition: all 0.2s;
}

.brand-logo.selected {
    border: 2px solid #fa3c00;
    transform: scale(1.1);
}

/* Responsive behavior */
@media (max-width: 768px) {
    .desktop-dropdown {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .dropdown-panel {
        display: none !important;
    }
}


/* Style for filter trigger divs */
.filter-trigger {
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.filter-trigger:hover {
  background: #e5e7eb;
}

.filter-trigger span {
  font-weight: 500;
}

/* Add a caret/down arrow if you want */
.filter-trigger::after {
  content: "▼";
  font-size: 10px;
  margin-left: 8px;
  opacity: 0.6;
}


/* Smooth transition for text */
label span {
  transition: color 0.2s ease-in-out;
}
.sale-rent-btn {
  transition: color 0.2s ease;
}
.sale-rent-btn.active {
  font-weight: 600;
    color: #ffffff; /* Change to any color */
}

#slider {
  background-color: #fa3c00; /* Change to any color */
}

#slider {
  transition-duration: 0.3s; /* Faster or slower */
}

#slider {
  border-radius: 0.375rem; /* Adjust corner rounding */
}