/* ===================================
   BROWSE LANDS PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a2818 100%);
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.results-count {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.125rem;
}

.results-count span {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-gold);
}

/* Filters Wrapper */
.filters-wrapper {
    position: sticky;
    top: 100px;
}

.filters-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.filter-title {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 2.5rem;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(10, 26, 47, 0.4);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 0;
}

.form-check-input {
    cursor: pointer;
    border-color: #d1d5db;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-label {
    cursor: pointer;
    color: rgba(10, 26, 47, 0.8);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.form-check-label .count {
    color: rgba(10, 26, 47, 0.5);
    font-size: 0.85rem;
}

/* Price Range */
.range-values {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--color-primary);
}

.form-range::-moz-range-thumb {
    background-color: var(--color-primary);
}

.form-range::-webkit-slider-runnable-track {
    background-color: #e5e7eb;
}

.form-range::-moz-range-track {
    background-color: #e5e7eb;
}

/* Toolbar */
.toolbar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    color: var(--color-dark);
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 0;
}

.sort-options select {
    max-width: 200px;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.view-toggle .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle .btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Properties Grid */
#propertiesContainer.list-view {
    display: flex;
    flex-direction: column;
}

#propertiesContainer.list-view .property-card {
    display: flex;
    flex-direction: row;
}

#propertiesContainer.list-view .property-image {
    width: 300px;
    flex-shrink: 0;
}

#propertiesContainer.list-view .property-image img {
    height: 100%;
    object-fit: cover;
}

#propertiesContainer.list-view .property-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
}

#propertiesContainer.list-view .property-title {
    width: 100%;
    margin-bottom: 0.5rem;
}

#propertiesContainer.list-view .property-location {
    width: 100%;
    margin-bottom: 1rem;
}

#propertiesContainer.list-view .property-details {
    flex: 1;
}

#propertiesContainer.list-view .property-price {
    text-align: right;
}

#propertiesContainer.list-view .btn {
    margin-top: 1rem;
    width: auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.no-results i {
    font-size: 4rem;
    color: rgba(10, 26, 47, 0.2);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: rgba(10, 26, 47, 0.6);
    margin-bottom: 1.5rem;
}

/* Load More */
#loadMoreContainer {
    display: none;
}

#loadMoreContainer.show {
    display: block;
}

/* Property Card Animations */
.property-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

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

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.properties-loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .page-header {
        padding: 100px 0 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .results-count {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .filters-wrapper {
        position: static;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options select {
        max-width: 100%;
        width: 100%;
    }
    
    .view-toggle {
        justify-content: flex-start;
    }
    
    #propertiesContainer.list-view .property-card {
        flex-direction: column;
    }
    
    #propertiesContainer.list-view .property-image {
        width: 100%;
    }
    
    #propertiesContainer.list-view .property-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #propertiesContainer.list-view .property-price {
        text-align: left;
        width: 100%;
    }
    
    #propertiesContainer.list-view .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .toolbar {
        padding: 1rem;
    }
}

/* Active Filter Indicator */
.filter-section.has-active-filters .filter-title::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Custom Scrollbar for Filters */
.filters-container {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.filters-container::-webkit-scrollbar {
    width: 6px;
}

.filters-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filters-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.filters-container::-webkit-scrollbar-thumb:hover {
    background: #0a2818;
}
