/* Hero Section with Gradient */
.property-hero {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 50%,
        var(--secondary) 100%
    );
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.property-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23fff" /><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23fff" /><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23fff" /></svg>')
        no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Premium Search Bar */
.search-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-tab,
.add-property-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.search-tab:hover,
.add-property-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.search-tab.active {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto;
    gap: 1rem;
    align-items: end;
}

.search-input-group {
    position: relative;
}

.search-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    padding-left: 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select.search-input {
    padding-left: 1.2rem;
}

/* Per-page select sizing (used by pagination) */
.per-page-select {
    width: 110px;
    padding: 0.45rem;
}
.per-page-label {
    font-weight: 700;
    color: #4a5568;
}

.featured-empty {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    bottom: 3rem;
    color: #a0aec0;
    font-size: 1.1rem;
}

.search-btn {
    padding: 0.9rem 2.5rem;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
    text-align: center;
    margin-top: 1rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: var(--primary-dark);
}

/* Featured Properties Section */
.featured-section {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Carousel */
.featured-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}

.featured-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
}

.featured-scroll::-webkit-scrollbar {
    height: 8px;
}

.featured-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.featured-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.featured-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Featured Property Card */
.featured-card {
    min-width: 300px;
    max-width: 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.featured-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.placeholder-image {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-image.featured {
    height: 240px;
}

.placeholder-image.property {
    height: 220px;
}

/* Advanced Filters Panel */
.advanced-filters-panel {
    display: none;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.advanced-filters-panel.active {
    display: block;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.filter-group input,
.filter-group select {
    padding: 0.7rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.filter-btn.primary {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
}

.filter-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 2;
}

.featured-badge i {
    margin-right: 0.3rem;
}

.featured-price {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 208, 0, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.featured-content {
    padding: 1rem;
}

.featured-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.featured-location {
    color: #718096;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-meta {
    display: flex;
    gap: 0.8rem;
    padding-top: 0.8rem;
    border-top: 2px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.85rem;
}

.meta-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.meta-item {
    font-size: 0.85rem;
}

/* Main Properties Grid */
.properties-section {
    padding: 4rem 0;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-info {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
}

/* Sort Toggle */
.sort-toggle {
    display: flex;
    align-items: center;
}

.sort-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
}

.sort-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sort-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 34px;
}

.sort-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.sort-switch input:checked + .sort-slider {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.sort-switch input:checked + .sort-slider:before {
    transform: translateX(24px);
}

.sort-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.sort-switch input:checked ~ .sort-label {
    color: #ee5a24;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f7fafc;
    padding: 0.4rem;
    border-radius: 12px;
}

.view-btn {
    padding: 0.6rem 1.2rem;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718096;
    font-weight: 600;
}

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

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    transition: opacity 0.3s ease;
}

/* List View */
.property-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.property-grid.list-view .property-card {
    display: flex;
    flex-direction: row;
    max-width: 100%;
}

.property-grid.list-view .property-image-container {
    width: 320px;
    min-width: 320px;
    height: auto;
}

.property-grid.list-view .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-grid.list-view .property-features {
    display: flex;
    flex-wrap: wrap;
}

/* Property Card */
.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.property-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image {
    transform: scale(1.08);
}

.property-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.property-actions {
    position: absolute;
    top: 1rem;
    right: 4.5rem; /* moved left to make room for the status badge at the true top-right */
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

/* Status badge for Sold/Rented/Inactive etc. Placed near top-right */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem; /* anchor to the true top-right of the card */
    background: linear-gradient(135deg, #f84d4dff 0%, #ee4624ff 100%);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 18px rgba(238, 90, 36, 0.18);
    z-index: 4;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: #4a5568;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.property-price-tag {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(
        135deg,
        rgba(225, 225, 225, 0.21) 0%,
        rgba(63, 63, 63, 0.21) 100%
    );
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 800;
}

.price-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.price-arrow {
    text-align: right;
}

.price-arrow i {
    font-size: 1.5rem;
}

.property-content {
    padding: 1.2rem;
}

.property-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.property-location {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-features {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.85rem;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-date {
    color: #a0aec0;
    font-size: 0.8rem;
}

.view-details-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-details-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    color: var(--primary);
    border-color: #e2e8f0;
    border-radius: 8px;
    margin: 0 0.2rem;
    font-weight: 600;
}

.page-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Popular Properties Section */
.popular-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 3rem 0;
    border-radius: 20px;
    margin-top: 3rem;
}

.popular-grid {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
}

.popular-grid::-webkit-scrollbar {
    height: 8px;
}

.popular-grid::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.popular-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.popular-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.popular-card {
    min-width: 200px;
    max-width: 200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.popular-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.popular-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-card:hover .popular-image {
    transform: scale(1.1);
}

.popular-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.popular-price-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
}

.popular-content {
    padding: 0.8rem;
}

.popular-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.popular-location {
    color: #718096;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.popular-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #4a5568;
    font-weight: 600;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.popular-meta span {
    display: flex;
    align-items: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #a0aec0;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-title {
    font-size: 1.8rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .featured-card {
        min-width: 250px;
        max-width: 250px;
    }

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

    .property-grid.list-view {
        grid-template-columns: 1fr;
    }

    .property-grid.list-view .property-card {
        flex-direction: column;
    }

    .property-grid.list-view .property-image-container {
        width: 100%;
        height: 220px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .view-toggle {
        flex-wrap: wrap;
    }

    .properties-header {
        flex-direction: column;
        gap: 1rem;
    }

    .properties-header .d-flex {
        flex-direction: column;
        width: 100%;
    }

    .sort-toggle {
        justify-content: center;
    }

    .popular-grid {
        gap: 1rem;
    }

    .popular-card {
        min-width: 180px;
        max-width: 180px;
    }

    .popular-image-container {
        height: 120px;
    }

    .popular-title {
        font-size: 0.85rem;
    }
}
