/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fbfd;
    color: #333;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo span {
    color: #3498db;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

.btn-contact {
    background: #3498db;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Hero секция */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.search-bar {
    margin-top: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    display: flex;
}

.search-bar input {
    border: none;
    padding: 15px 25px;
    width: 400px;
    outline: none;
    font-size: 16px;
    border-radius: 50px;
}

.search-bar button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* Сетка объектов */
.properties {
    padding: 60px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

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

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    margin-bottom: 5px;
}

.location {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.details-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.details-btn:hover {
    background: #3498db;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .search-bar input { width: 100%; }
    .hero-content h1 { font-size: 32px; }
}