:root {
    --gold: #C8A24A;
    --gold-light: #E5D08A;
    --gold-dark: #A68934;
    --surface: #F8F9FA;
    --surface-card: #FFFFFF;
    --text: #2D3748;
    --text-light: #718096;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 14px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--surface);
    color: var(--text);
    line-height: 1.6;
    padding-top: 70px; /* Account for fixed navbar */
}

/* Navbar Styles */
.navbar {
    background-color: var(--surface-card);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo img {
    height: 50px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0.8;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--surface-card);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-card);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--surface);
    color: var(--gold);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.call-btn {
    background: var(--gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.call-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

/* Page Header */
.page-hero {
    background: var(--surface-card);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 1rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.breadcrumbs a {
    color: var(--gold);
    text-decoration: none;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-search {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-search input,
.hero-search select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    min-width: 150px;
}

.hero-search button {
    background: var(--gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    background: var(--gold);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
}

.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface-card);
    z-index: 1600;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-filter-sidebar.active {
    left: 0;
}

.mobile-filter-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Main Layout */
.results-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Panel */
.filters-panel {
    background: var(--surface-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filters-card {
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
}

.filter-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.1);
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.amenities-list {
    display: grid;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.btn-apply {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: white;
}

.btn-reset,
.btn-apply {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
}

/* Results Column */
.results-column {
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.sort-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: var(--surface-card);
    cursor: pointer;
}

.view-btn.active {
    background: var(--gold);
    color: white;
}

/* Properties Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.property-card,
.property-sale-card {
    background: var(--surface-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover,
.property-sale-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface-card);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.pagination button:hover {
    background: var(--surface);
}

.pagination .active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-animation svg {
    width: 100%;
    height: 100%;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-clear-filters {
    background: var(--gold);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

/* Mobile adjustments for empty state */
@media (max-width: 768px) {
    .empty-animation {
        width: 150px;
        height: 150px;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state h3 {
        font-size: 1.25rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .results-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .filters-panel {
        display: none;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search input,
    .hero-search select {
        min-width: auto;
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-row {
        flex-wrap: wrap;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 60vw;
        height: calc(100vh - 70px);
        background: var(--surface-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
        margin-top: 0.7rem;
        padding-top: 0rem;
        padding-bottom: 1rem;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        width: 100%;
        text-align: center;
    }

    .navbar-link {
        padding: 1rem;
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--surface);
        margin-top: 0.5rem;
    }

    .navbar-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-container,
    .results-shell {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .filter-buttons {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pagination button,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .results-shell {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* List View Styles */
.property-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-grid.list-view .property-sale-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    max-width: none;
}

.property-grid.list-view .property-image-wrapper {
    flex: 0 0 200px;
    height: 150px;
    margin-right: 1.5rem;
    position: relative;
}

.property-grid.list-view .property-sale-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-grid.list-view .property-labels {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
}

.property-grid.list-view .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 0;
}

.property-grid.list-view .property-sale-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.property-grid.list-view .property-sale-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.property-grid.list-view .property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-grid.list-view .property-spec-item {
    background: var(--surface);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.property-grid.list-view .property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-top: auto;
    color: var(--text-light);
    font-size: 0.875rem;
}

.property-grid.list-view .property-contact-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.property-grid.list-view .property-contact-buttons button {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-card);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-grid.list-view .property-contact-buttons button:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-1px);
}

.property-grid.list-view .property-contact-buttons svg {
    width: 16px;
    height: 16px;
}

/* Mobile List View Adjustments */
@media (max-width: 768px) {
    .property-grid.list-view .property-sale-card {
        flex-direction: column;
        align-items: stretch;
    }

    .property-grid.list-view .property-image-wrapper {
        flex: none;
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .property-grid.list-view .property-content {
        min-height: auto;
    }

    .property-grid.list-view .property-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .property-grid.list-view .property-contact-buttons {
        margin-left: 0;
        justify-content: center;
    }
    
}

/* Range Slider Styles */
.range-slider-container {
    margin-top: 0.5rem;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.range-slider-wrapper {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    appearance: none;
    pointer-events: none;
    border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--gold);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.range-slider::-webkit-slider-track {
    background: transparent;
}

.range-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.range-slider:focus {
    outline: none;
}

.range-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.3);
}

.range-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.3);
}

