body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.header {
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    padding: 20px 0;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('odessa-skyline.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 20px;
}

.header p {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.search-filter {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-filter select {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.3s ease;
}

.search-filter select:hover {
    border-color: #5cb85c;
}

.search-filter select:focus {
    border-color: #4caf50;
    outline: none;
}

/* Стили для информационных панелей */
.info-panel {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    background-color: #fff;
}

.info-item {
    text-align: center;
    width: 30%;
}

.info-item i {
    font-size: 70px !important; /* Увеличиваем размер иконок */
    color: #28a745 !important; /* Зеленый цвет */
    margin-bottom: 10px;
    transition: transform 0.3s, color 0.3s; /* Плавный эффект на hover */
}

.info-item i:hover {
    transform: scale(1.2); /* Увеличиваем значки при наведении */
    color: #4CAF50 !important; /* Немного светлее зеленый при наведении */
}

.info-item h3 {
    font-size: 1.5em;
}

.info-item p {
    font-size: 1em;
    color: #777;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.social-icon {
    font-size: 2em; /* Размер иконок */
    color: white;
    margin: 10px 0;  /* Отступы между иконками */
    text-decoration: none;
}

.social-icon:hover {
    color: #5cb85c;
}

.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Это выравнивает элементы по горизонтали */
    justify-content: center;  /* Это выравнивает элементы по вертикали */
    padding: 10px;
    background-color: #333;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 50px; /* Уменьшаем ширину */
    height: auto; /* Убираем фиксированную высоту, чтобы панели хватало на все элементы */
}

/* Стили для мобильных устройств */
@media screen and (max-width: 768px) {
    .info-panel {
        flex-direction: column; /* Переводим блоки в колонку */
        align-items: center; /* Центрируем элементы */
        padding: 20px 10px; /* Уменьшаем внутренние отступы */
    }

    .info-item {
        width: 80%; /* Делаем каждый блок шире на мобильных устройствах */
        margin-bottom: 20px; /* Добавляем отступы между блоками */
    }

    .info-item i {
        font-size: 60px !important; /* Немного уменьшаем размер иконок для мобильных устройств */
    }
}

.exclusive-properties {
    padding: 40px 10%;
    background-color: #f5f5f5; /* Более серый фон для блока */
}

.exclusive-properties h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.property-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 420px;
    transition: all 0.3s ease;
}

.property-card:hover {
    border-color: #5cb85c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.property-card img {
    width: 100%;
    height: 160px; /* Уменьшаем высоту обложки */
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.property-card p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

.property-card a {
    font-size: 1.2em;
    color: #5cb85c;
    text-decoration: none;
    margin-top: auto; /* Это выровняет кнопку внизу */
    padding: 10px;
    display: inline-block;
    border: 2px solid #5cb85c;
    border-radius: 5px;
}

.property-card a:hover {
    background-color: #5cb85c;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.about-us, .contacts {
    text-align: center;
    padding: 40px;
}

.about-us {
    padding: 20px;
    background-color: #f9f9f9;  /* Легкий фон для выделения блока */
    border-radius: 8px;  /* Скругленные углы */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Тень для легкого поднятия блока */
}
.about-us h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.about-us p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-us p:last-child {
    margin-bottom: 0;
}

.contacts {
    background-color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    padding-top: 60px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    position: relative;
    border-radius: 10px;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

.modal iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

.video-details {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
}

.video-details p {
    margin-bottom: 10px;
}

.video-details span {
    font-weight: bold;
}

.social-sidebar i {
    font-size: 2.5em;
    color: white;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-sidebar i:hover {
    color: #5cb85c;
    transform: scale(1.2);
}

.hidden-seo-img {
    width: 1px; !important;
    height: 1px; !important;
    position: absolute;
    left: -9999px;
    overflow: hidden;
    visibility: hidden;
	z-index: -1;
}

/*  Pagination  */
/*.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
}*/
.pagination {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    /*flex-direction: column;*/
    justify-content: space-between;
    /*height: 420px;*/
    transition: all 0.3s ease;
}

.pagination a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px 18px;
    background-color: #fafafa;
    border-radius: 30px;
    border: 1px solid #ccc;
    position: relative;
    transition: all 0.3s ease;
}

.pagination a:hover {
    /*background-color: #007bff;*/
    background-color: green;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.pagination .active {
    /*background-color: #007bff;*/
    background-color: green;
    color: white;
    font-weight: bold;
}

.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
}