/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #c5a059; /* Gold accent */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Decoration */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Header & Navigation */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.8);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Controls (Filters & Search) */
.controls {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.filter-select {
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn {
    padding: 1rem 1.5rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* View Switcher */
.view-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto 2rem;
    max-width: 1200px;
}

.view-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--card-bg);
    color: #fff;
    border-color: var(--accent-color);
}

/* Sales Table */
.sales-table-container {
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.sales-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    text-align: left;
    padding: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sales-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    color: #fff;
}

.sales-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.sales-table td a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.sales-table td a:hover {
    color: var(--accent-color);
}

/* Sales Grid */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sale-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sale-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.sale-image-container {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.sale-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sale-house-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
}

.sale-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sale-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.sale-category-tag {
    color: var(--accent-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sale-date-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.sale-title-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    flex: 1;
}

.sale-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.sale-price-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.sale-button {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sale-button:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .sales-grid {
        grid-template-columns: 1fr;
    }
}
