/* ===== Property Listings Page ===== */
.properties-page .page-hero {
    height: 70vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-top: 80px;
}

.properties-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 90, 120, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
}

.properties-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.properties-page .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.properties-page .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.properties-page .hero-search {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.properties-page .hero-search input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    color: #333;
}

.properties-page .hero-search button {
    border-radius: 0 50px 50px 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.properties-page .hero-search button:hover {
    background-color: var(--secondary-color);
    color: #333;
}

/* Property Types Section */
.properties-page .property-types {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.properties-page .types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.properties-page .type-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.properties-page .type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.properties-page .type-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.properties-page .type-card:hover .type-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e4c15c 100%);
}

.properties-page .type-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.properties-page .type-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Search Filters */
.properties-page .search-filters {
    padding: 3rem 0;
    background-color: var(--card-bg);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

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

.properties-page .filter-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.properties-page .filter-reset {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.properties-page .filter-reset:hover {
    color: var(--primary-light);
}

.properties-page .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.properties-page .filter-group {
    margin-bottom: 1rem;
}

.properties-page .filter-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.properties-page .select-wrapper {
    position: relative;
}

.properties-page .select-wrapper select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    appearance: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.properties-page .select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 90, 120, 0.2);
}

.properties-page .select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
}

.properties-page .range-slider {
    padding: 15px 0;
}

.properties-page .range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    appearance: none;
}

.properties-page .range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.properties-page .range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-light);
}

.properties-page .range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.properties-page .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.properties-page .button-group button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.properties-page .button-group button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.properties-page .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.properties-page .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.properties-page .checkbox-group label:hover {
    color: var(--primary-color);
}

.properties-page .checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.properties-page .checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.properties-page .checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.properties-page .filter-apply {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.properties-page .filter-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 90, 120, 0.2);
}

/* Property Listings */
.properties-page .property-listings {
    padding: 5rem 0;
}

.properties-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.properties-page .section-header h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 15px;
}

.properties-page .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.properties-page .results-count {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.properties-page .view-options {
    display: flex;
    gap: 10px;
}

.properties-page .view-options button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.properties-page .view-options button.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.properties-page .view-options button:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Custom Property Grid Layout */
.properties-page .properties-grid.custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on desktop */
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) { /* Medium screens */
    .properties-page .properties-grid.custom-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
}

@media (max-width: 576px) { /* Mobile */
    .properties-page .properties-grid.custom-grid {
        grid-template-columns: 1fr; /* 1 card per row */
    }
}

/* Property Card (Enhanced) */
.properties-page .property-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.properties-page .property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.properties-page .property-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.properties-page .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.properties-page .property-card:hover .property-image img {
    transform: scale(1.05);
}

.properties-page .property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: #333;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

.properties-page .property-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.properties-page .property-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.properties-page .property-actions button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.properties-page .property-info {
    padding: 1.5rem;
}

.properties-page .property-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.properties-page .property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.properties-page .property-address {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.properties-page .property-address i {
    color: var(--primary-color);
}

.properties-page .property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.properties-page .property-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
    gap: 5px;
}

.properties-page .property-feature i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Pagination */
.properties-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 3rem;
}

.properties-page .pagination button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.properties-page .pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.properties-page .pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.properties-page .pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Featured Neighborhoods */
.properties-page .featured-neighborhoods {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.properties-page .neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.properties-page .neighborhood-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 300px;
    transition: all 0.4s ease;
}

.properties-page .neighborhood-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.properties-page .neighborhood-image {
    width: 100%;
    height: 100%;
}

.properties-page .neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.properties-page .neighborhood-card:hover .neighborhood-image img {
    transform: scale(1.1);
}

.properties-page .neighborhood-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.properties-page .neighborhood-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.properties-page .neighborhood-overlay p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Testimonials */
.properties-page .testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.properties-page .testimonials h2 {
    color: white;
}

.properties-page .testimonials p {
    color: rgba(255, 255, 255, 0.9);
}

.properties-page .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.properties-page .testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.properties-page .testimonial-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.properties-page .rating {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.properties-page .testimonial-card p {
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.properties-page .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.properties-page .testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.properties-page .testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.properties-page .testimonial-author p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* CTA Section */
.properties-page .cta-section {
    padding: 5rem 0;
}

.properties-page .cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    color: white;
    box-shadow: 0 15px 40px rgba(42, 90, 120, 0.3);
}

.properties-page .cta-content {
    flex: 1;
    padding: 4rem;
}

.properties-page .cta-image {
    flex: 1;
}

.properties-page .cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.properties-page .cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.properties-page .cta-content p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.properties-page .cta-buttons {
    display: flex;
    gap: 1rem;
}

.properties-page .btn-outline {
    border-color: white;
    color: white;
}

.properties-page .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

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

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .properties-page .cta-card {
        flex-direction: column;
    }
    
    .properties-page .cta-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .properties-page .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .properties-page .hero-search {
        flex-direction: column;
        gap: 10px;
    }
    
    .properties-page .hero-search input,
    .properties-page .hero-search button {
        border-radius: 50px;
        width: 100%;
    }
    
    .properties-page .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .properties-page .cta-content {
        padding: 3rem;
    }
    
    .properties-page .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .properties-page .page-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .properties-page .hero-content h1 {
        font-size: 2rem;
    }
    
    .properties-page .filter-grid {
        grid-template-columns: 1fr;
    }
}