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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-image:
        linear-gradient(
            rgba(10, 10, 42, 0.8),
            rgba(26, 26, 64, 0.9)
        ),
        url('modern-office.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Фиксированный фон при прокрутке */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Резервный фон на случай, если изображение не загрузится */
body:not(:background-loaded) {
    background-color: linear-gradient(135deg, #0a0a2a, #1a1a40);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(5, 117, 230, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(0, 242, 96, 0.1) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
}

header {
    background: rgba(26, 26, 64, 0.9);
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(100, 150, 255, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00f260, #0575e6);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00f260, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 96, 0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

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

#authBtn {
    background: rgba(5, 117, 230, 0.2);
    color: white;
    border: 1px solid rgba(5, 117, 230, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#authBtn:hover {
    background: rgba(5, 117, 230, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 117, 230, 0.3);
}

.search-filters {
    padding: 2rem 0;
}

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

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

.filters select,
.filters input,
.filters button {
    padding: 0.75rem;
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Roboto', sans-serif;
    backdrop-filter: blur(10px);
}

.filters button {
    background: linear-gradient(45deg, #00f260, #0575e6);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 96, 0.3);
}

.results {
    padding: 2rem 0;
}

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

.property-card {
    background: rgba(30, 30, 60, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 242, 96, 0.2);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.9);
}

.property-info {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #00f260;
}

.property-details {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.property-price {
    font-weight: bold;
    font-size: 1.4rem;
    color: #ffeb3b;
}
