.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.location-suggestions .list-group-item {
    cursor: pointer;
    padding: 8px 12px;
}

.location-suggestions .list-group-item:hover {
    background-color: #f8f9fa;
}

.location-suggestions .district-list {
    padding-left: 20px;
    font-size: 0.9em;
    color: #666;
}

.suggestion-highlight {
    font-weight: bold;
    color: #0d6efd;
}

.location-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.location-tag {
    display: inline-block;
    padding: 2px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-tag:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #0d6efd;
}

.location-tag.active {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

/* Add or update these styles in your existing <style> tag */
.room-listings {
    transition: all 0.3s ease;
}

.horizontal-view .room-card.horizontal,
.vertical-view .room-card.vertical {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.horizontal-view .room-card.vertical,
.vertical-view .room-card.horizontal {
    display: none;
    opacity: 0;
}

.vertical-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.view-btn {
    transition: all 0.2s ease;
}

.view-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vertical-view {
        grid-template-columns: 1fr;
    }
}

/* Animation for cards */
.room-card {
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.location-building-info {
    padding: 8px 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.location-building-info .building {
    color: #2c3e50;
}

.location-building-info i {
    width: 16px;
    margin-right: 4px;
    color: #6c757d;
}

.building-details {
    margin-left: 20px;
    font-size: 0.85em;
}

/*  breadcrumb >*/
.breadcrumb-nav {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #0d6efd;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline !important;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Sticky sidebar styles */
.sticky-sidebar {
    position: sticky;
    top: 20px; /* Distance from top when sticky */
    max-height: calc(100vh - 40px); /* Full viewport height minus margins */
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
}

/* Custom scrollbar for webkit browsers */
.sticky-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.sticky-sidebar:hover::-webkit-scrollbar-thumb {
    background: #adb5bd;
}

/* Hide scrollbar for Firefox */
.sticky-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f8f9fa;
}

/* Smooth shadow transition */
.sticky-sidebar.is-sticky {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Form control focus states */
.sticky-sidebar .form-control:focus,
.sticky-sidebar .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.15);
    border-color: #86b7fe;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}

.bedroom-chips {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 4px;
}

.bedroom-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    min-width: 100px;
    text-align: center;
}

.bedroom-chip:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.bedroom-chip.active {
    background-color: #3b82f6;
    border-color: #2563eb;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.bedroom-chip.active:hover {
    background-color: #2563eb;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Animation for click feedback */
.bedroom-chip:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bedroom-chips {
        gap: 6px;
        padding: 2px;
    }

    .bedroom-chip {
        padding: 6px 12px;
        font-size: 0.813rem;
        min-width: 90px;
    }
}

/* Optional: Add a subtle loading state animation */
.bedroom-chip.loading {
    position: relative;
    overflow: hidden;
}

.bedroom-chip.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.horizontal-view .room-card.vertical {
    display: none !important;
}

.vertical-view .room-card.horizontal {
    display: none !important;
}

.vertical-view .room-card.vertical {
    display: block !important;
}

.vertical-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.view-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

@media (max-width: 768px) {
    .vertical-view {
        grid-template-columns: 1fr;
    }
}

.room-card {
    transition: transform 0.2s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.card {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-title {
    color: #333;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #555;
}

.price-slider {
    padding: 10px 0;
}

.price-labels {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
}

.form-check {
    margin-bottom: 8px;
}

.form-check-label {
    color: #666;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 10px 20px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-outline-primary {
    padding: 10px 20px;
}

/* Make datetime-local inputs more consistent across browsers */
input[type="datetime-local"] {
    padding: 0.375rem 0.75rem;
}

/* Custom range slider styling */
.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

.form-range::-ms-thumb {
    background: #0d6efd;
}