:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #10B981;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #94A3B8;
    --gray-light: #E2E8F0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F1F5F9;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ultra Modern Header */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.glass-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 200;
    color: var(--primary);
}

.logo h1 span {
    color: var(--dark);
    font-weight: 700;
}

.logo a {
    text-decoration: none;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--dark);
}

.ghost-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Search Section */
.search-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    
}

.search-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    
}

.search-filters select {
    flex: 1;
    padding: 0.8rem 2rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); 
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.filter-btn {
    background-color: white;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: #f8fafc;
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.property-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-price {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.property-details {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-meta {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--dark);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Filter Modal */
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--dark);
}

/* Make sure modal appears above everything */
.modal-overlay {
    z-index: 9999;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
}

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

/* Property Badges */
.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.completeness-ready {
    background-color: #10B981;
}

.completeness-under_construction {
    background-color: #F59E0B;
}

.completeness-new_launch {
    background-color: #3B82F6;
}

.property-id {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.tentative-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.price-period {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Property Status */
.property-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-available {
    background-color: #10B981;
}

.status-booked {
    background-color: #F59E0B;
}

.status-sold {
    background-color: #EF4444;
}



/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}

.no-results-img {
    width: 200px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.no-results p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}





/* Add these to your existing CSS */

/* Price Disclaimer */
.price-disclaimer {
    background-color: #FFF3E0;
    color: #E65100;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.price-disclaimer i {
    font-size: 1.1rem;
}

/* Property Specs */
.property-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.spec-item {
    text-align: center;
}

.spec-value {
    font-weight: 500;
    color: var(--dark);
}

/* Property Meta */
.property-meta {
    display: flex;
    gap: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.property-type, .property-class {
    color: var(--gray);
}

/* Remove underlines from all links */
a {
    text-decoration: none;
}

/* Property Badges */
.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.completeness-ready {
    background-color: #10B981;
}

.completeness-under_construction {
    background-color: #F59E0B;
}

.completeness-new_launch {
    background-color: #3B82F6;
}

.property-id {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-period {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Property Footer */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-light);
}

.property-location {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modal Filter Adjustments */
.filter-group {
    margin-bottom: 1.25rem;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: white;
}

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



/* Add to your existing CSS */
.property-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.property-card .primary-btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
}

/* Make entire card clickable except buttons */
.property-card {
    position: relative;
}

.property-image {
    cursor: pointer;
}

.property-actions * {
    position: relative;
    z-index: 2;
}

.property-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px; /* Adjust based on your button height */
    cursor: pointer;
    z-index: 1;
}

.property-card:hover::after {
    background-color: rgba(0,0,0,0.01);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .property-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-disclaimer {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }


    .search-filters {
        flex-direction: column;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
}
