/* Общие стили для шапки */
.navbar {
    background: #0092ec;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 97%;
    height: 50px;
}

/* Контейнер */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

/* Логотип */
.logo img {
    width: 50px;
    height: auto;
    border-radius: 5px;
}

/* Меню */
.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #ff6800;
    transition: background 0.3s, transform 0.2s;
}

.nav-links a:hover {
    background: #000000;
    transform: scale(1.1);
}


.posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.post-card {
    display: flex;
    flex-direction: row;
    align-items: start;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 3px;
    width: 90%;
    max-width: 800px;
    transition: transform 0.4s, box-shadow 0.4s, outline 0.4s;
}


.post-left {
    min-width: 180px; /* фиксированная ширина */
    flex-shrink: 0;   /* не сжимать */
}

.post-region {
    background: #ffffff;

    border-radius: 6px;
    font-size: 14px;
    margin-left: 6px;
}

.post-price {
    margin-left: 6px;
}

.post-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
    outline: 2px solid red;
}

/* Картинка объявления */
.post-image img {
    width: 300px;
    max-width: 220px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Контент объявления */
.post-content {
    text-align: left;
    margin-top: -20px;

}

p.post-description {
    text-align: justify;
    margin-left: 5px;
}


.post-date {
     align-self: end;
     margin-left: auto;
    margin-bottom: 2px;
}


/* Стили для select, чтобы выглядел как кнопка */
#region-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;

    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .post-card {
        flex-direction: column;
        align-items: center;
    }

    .post-image {
        margin-bottom: 15px;
    }

    .post-content {
        text-align: left;

    }
}


/* Контейнер для фильтра */
.filter-form {
    display: inline-block;
    margin-bottom: 20px;
}









