/*  Fonts  */
@font-face {
    font-family: 'lato-bold';
    src: url('../fonts/lato-bold.eot');
    src: url('../fonts/lato-bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/lato-bold.woff') format('woff'),
         url('../fonts/lato-bold.ttf') format('truetype'),
         url('../fonts/lato-bold.svg#LatoBold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lato-regular';
    src: url('../fonts/lato-regular.eot');
    src: url('../fonts/lato-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/lato-regular.woff') format('woff'),
         url('../fonts/lato-regular.ttf') format('truetype'),
         url('../fonts/lato-regular.svg#LatRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'p22_corinthia';
    src: url('../fonts/p22_corinthia.eot');
    src: url('../fonts/p22_corinthia.eot?#iefix') format('embedded-opentype'),
         url('../fonts/p22_corinthia.woff') format('woff'),
         url('../fonts/p22_corinthia.ttf') format('truetype'),
         url('../fonts/p22_corinthia.svg#P22Corinthia') format('svg');
    font-weight: normal;
    font-style: normal;
}





/*  General CSS  */
body{
    background: #fff;
    overflow-x: hidden;
}

.wrapper{
    width: 100%;
    margin: 0 auto;
    position: relative;

}

h1, h2, h3, h4, h5 ,h6{
    color: #626262;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    letter-spacing: 1px;
}

h1              { font-size: 2em; margin: .67em 0 }
h2              { font-size: 1.5em; margin: .75em 0 }
h3              { font-size: 1.17em; margin: .83em 0 }
h5              { font-size: .83em; margin: 1.5em 0 }
h6              { font-size: .75em; margin: 1.67em 0 }
h1, h2, h3, h4,
h5, h6          { font-weight: bolder }

.clearfix:before,  
.clearfix:after {  
    content: " ";  
    display: table;  
}  
.clearfix:after {  
    clear: both;  
}  
 
.clearfix {  
    *zoom: 1;  
}


/* Ограничение ширины для мобильных устройств */
@media (max-width: 500px) { /* Применяется для экранов шириной до 768px */
    body{
        max-width: 500px; /* Максимальная ширина 500px */
        margin: 0 auto; /* Центрируем контент */
        box-sizing: border-box; /* Учитываем padding в ширине */
    }
    .wrapper{
        max-width: 500px; /* Максимальная ширина 500px */
        margin: 0 auto; /* Центрируем контент */
        padding: 0 15px; /* Добавляем небольшие отступы с боков */
        box-sizing: border-box; /* Учитываем padding в ширине */

    }

    /* Для внутренних контейнеров (если они есть) */
    .container {
        max-width: 100%; /* Контейнер занимает всю доступную ширину */
        width: 100%; /* Ширина равна ширине родителя */
        box-sizing: border-box; /* Учитываем padding */
    }

    /* Изображения и другие блоки */
    img, iframe, video {
        max-width: 100%; /* Изображения не будут шире контейнера */
        height: auto; /* Сохраняем пропорции */
    }
}


/*  header Section  */
header{
    width: 100%;
    height: 100px;
    background: rgba(28, 54, 85, .2);
}

header .logo{
    margin-top: 40px;
    float: left;
    top: -30px;
    position: absolute;
}

.logo {
 
   position: relative; /* Относительное позиционирование */
    top: 0px; /* Сдвигаем логотип на 5 пикселей вверх */
    height: auto; /* Сохраняем пропорции */
    
    max-height: 80px;
    left: 50px;
}

header a.hamburger{
    text-decoration: none;
    display: none;
    float: right;
    margin-top: 41px;
    width: 24px;
    height: 19px;
    background: url('../img/hamburger_icon.png') no-repeat;
}

header nav{
    float: right;
}

header nav ul{
    margin-top: 40px;
    list-style: none;
    overflow: hidden;
    float: left;
}

header nav ul li{
    float: left;
    margin-left: 50px;
}

header nav ul li a,
header nav .login_btn{
    text-decoration: none;
    color: #fff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;

}

header nav .login_btn{
    float: right;
    margin: 30px 0 0 50px;
    padding: 10px 30px 11px 30px;
    border: 2px solid #ffffff;
    background: transparent;

    transition: all .1s linear;
    -webkit-transition: all .1s linear;
    -moz-transition: all .1s linear;
    -o-transition: all .1s linear;
}

header nav .login_btn:hover{
    background: #ffffff;
    color: #1c3655;
}





/*  Hero Section  */

.hero{
    width: 100%;
   /*  height: 800px;*/
    height: 100%;
    position: relative;
    background: url('../img/hero.jpg') no-repeat bottom center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.hero .caption{
    width: 100%;
    position: absolute;
    text-align: center;
    top: 50%;
    margin-top: -105px;
}

.hero .caption h2{
    color: #fff;
    font-family: "P22 Corinthia";
    font-size: 100px;
    font-weight: lighter;
    margin: 0;
    position: relative;
    display: block;
}

.hero .caption h3{
    color: #fff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: -15px 0 0 25px;
    left: 1px;
}

/* Медиа-запрос для мобильных устройств (до 768px) */
@media (max-width: 400px) {
    .hero {
        height: 400px; /* Уменьшаем высоту секции */
        width: 100%;
    }

    .hero .caption h2 {
        font-size: 40px; /* Уменьшаем размер шрифта */
    }

    .hero .caption h3 {
        font-size: 12px; /* Уменьшаем размер шрифта */
        margin: 5px 0 0; /* Корректируем отступ */
    }
}

/* Медиа-запрос для планшетов (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        height: 600px; /* Средняя высота для планшетов */
    }

    .hero .caption h2 {
        font-size: 60px; /* Средний размер шрифта */
    }

    .hero .caption h3 {
        font-size: 14px; /* Оставляем стандартный размер */
    }
}




.car-button {
    position: relative;
    display: inline-block;
    width: 300px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: #ff4d4d; /* Красный цвет */
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
}

/* Текст на кнопке */
.button-text {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
     font-family: 'Roboto', sans-serif;
}

/* Стиль для кнопки без анимаций */
.car-button {
    position: relative;
    background-color: #d81324; /* Основной цвет кнопки */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center; /* Выравнивание текста по горизонтали */
    width: 250px;
    height: 50px;
    line-height: 50px; /* Высота строки равна высоте кнопки для вертикального центрирования */
    transition: none; /* Убираем все переходные эффекты */
    cursor: pointer; /* Добавляем курсор "пальчик" */
    box-shadow: none; /* Убираем тень */
    transform: none; /* Убираем масштабирование */
}

/* Убираем анимацию при наведении */
.car-button:hover {
    background-color: #d81324; /* Цвет остается неизменным */
    transform: none; /* Нет изменения размера */
    box-shadow: none; /* Нет тени */
}

/* Убираем анимацию при нажатии */
.car-button:active {
    background-color: #d81324; /* Цвет остается неизменным */
    transform: none; /* Нет масштабирования */
    box-shadow: none; /* Нет тени */
}

/* Убираем пульсирующий эффект */
.car-button::after {
    content: none; /* Убираем псевдоэлемент */
}
.container {
display: block;
    width: 100%;
    text-align: center;
    margin: 30px 0 82px 0;
}



/*  Search Section  */

.search{
    width: 100%;
    height: 100px;
    background: #bfd9f2;
    position: relative;
}

.search #search{
    display: block;
    width: 1000px;
    height: 100px;
    float: left;
    border: 0;
    outline: none;
    margin: 0;
    padding: 0;
    background: #bfd9f2;
    color: #ffffff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 22px;
}

.search #search::-webkit-input-placeholder{
   color: #95badf;
}

.search #search:-moz-placeholder{ 
   color: #95badf;  
}

.search #search::-moz-placeholder{ 
   color: #95badf;  
}

.search #search:-ms-input-placeholder{  
   color: #95badf;  
} 

.search #submit_search{
    display: none;
}

.search .advanced_search_icon{
    display: block;
    width: 26px;
    height: 26px;
    float: right;
    background: url('../img/advanced_search_inactive.png') no-repeat;
    margin-top: 37px;

    transition: all .2s linear;
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
}

.search .advanced_search_icon:hover{
    background: url('../img/advanced_search_hover.png') no-repeat;
}

.search .advanced_search_icon.active{
    background: url('../img/advanced_search_active.png') no-repeat;
}





.search .advanced_search{
    width: 100%;
    position: absolute;
    top: 100px;
    left: 0;
    background: #cbe0f4;
    border-top: 1px solid #aac8e4;
    border-bottom: 1px solid #aac8e4;
    z-index: 9999;
    display: none;
}

.search .advanced_search .arrow{
    display: block;
    width: 14px;
    height: 9px;
    background: url('../img/search_arrow.png') no-repeat;
    position: absolute;
    top: -8px;
    right: 6px;
}

.search .advanced_search #check_in_date,
.search .advanced_search #check_out_date,
.search .advanced_search #min_price,
.search .advanced_search #max_price{
    display: block;
    width: 509px;
    height: 100px;
    border: 0;
    margin: 0;
    padding: 0 20px;
    outline: none;
    background: #cbe0f4;
}

.search .advanced_search #check_in_date,
.search .advanced_search #check_out_date{
    width: 429px;
    background: url('../img/calendar_icon.png') no-repeat;
    background-position: 484px 50%;
    padding: 0 100px 0 20px;
}

.search .advanced_search .float{
    float: left;
}

.search .advanced_search .search_fields{
    overflow: hidden;
    border-bottom: 1px solid #aac8e4;
}

.search .advanced_search .field_sep{
    display: inline-block;
    width: 1px;
    height: 60px;
    border: 0;
    background: #aac8e4;
    margin: 20px 0 0 0;
    padding: 0;
}

.search .advanced_search #keywords{
    display: block;
    width: 1060px;
    height: 100px;
    border: 0;
    margin: 0;
    padding: 0 20px;
    outline: none;
    background: #cbe0f4;
}

.search .advanced_search #check_in_date,
.search .advanced_search #check_out_date,
.search .advanced_search #min_price,
.search .advanced_search #max_price,
.search .advanced_search #keywords{    
    color: #ffffff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 22px;
} 


.search .advanced_search #check_in_date::-webkit-input-placeholder,
.search .advanced_search #check_out_date::-webkit-input-placeholder,
.search .advanced_search #min_price::-webkit-input-placeholder,
.search .advanced_search #max_price::-webkit-input-placeholder,
.search .advanced_search #keywords::-webkit-input-placeholder{
   color: #95badf;
}

.search .advanced_search #check_in_date:-moz-placeholder, 
.search .advanced_search #check_out_date:-moz-placeholder, 
.search .advanced_search #min_price:-moz-placeholder, 
.search .advanced_search #max_price:-moz-placeholder, 
.search .advanced_search #keywords:-moz-placeholder{ 
   color: #95badf;  
}

.search .advanced_search #check_in_date::-moz-placeholder, 
.search .advanced_search #check_out_date::-moz-placeholder, 
.search .advanced_search #min_price::-moz-placeholder, 
.search .advanced_search #max_price::-moz-placeholder, 
.search .advanced_search #keywords::-moz-placeholder{ 
   color: #95badf;  
}

.search .advanced_search #check_in_date:-ms-input-placeholder,  
.search .advanced_search #check_out_date:-ms-input-placeholder,  
.search .advanced_search #min_price:-ms-input-placeholder,  
.search .advanced_search #max_price:-ms-input-placeholder,  
.search .advanced_search #keywords:-ms-input-placeholder{  
   color: #95badf;  
} 











/*  listings section  */
.listings{
    padding: 10px 0;
}

.listings ul.properties_list{
    list-style: none;
    overflow: hidden;
}

.listings ul.properties_list li{
    display: block;
    width: 340px;
    height: auto;
    position: relative;
    float: left;
    margin: 0 40px 85px 0;
}

.listings ul.properties_list li img.property_img{
    width: 100%;
    height: auto!important;
    vertical-align: top;
}




/* General Styles */
body {
        margin: 0;
    font-family: "Ubuntu", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #596277;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

}

/* Container and Row Styles */
.container-fluid {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) / -2);
    margin-left: calc(var(--bs-gutter-x) / -2);
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) / 2);
    padding-left: calc(var(--bs-gutter-x) / 2);
    margin-top: var(--bs-gutter-y);
}

.col-lg-7 {
    flex: 0 0 auto;
    width: 50%;
}

.col-lg-5 {
    flex: 0 0 auto;
    width: 36%;
}

.gx-0 {
    --bs-gutter-x: 0;
}

/* Text Alignment */
.text-start {
    text-align: left;
    font-size: 0.9rem;
}

.text-end {
    text-align: right;
    font-size: 0.9rem;
}

/* Background Colors */
.bg-light {
    background-color: #F2F2F2 !important;
}

.bg-white {
    background-color: #fff;
}

/* Padding and Margin Utilities */
.p-0 {
    padding: 0 !important;
}

.py-3 {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;

}

.me-4 {
    margin-right: 1rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.p-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.p-lg-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Display Utilities */
.d-none {
    display: none !important;
}

.d-lg-flex {
    display: flex !important;
}

/* Flex Utilities */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Inline Flex */
.d-inline-flex {
    display: inline-flex !important;
}

/* Align Items */
.align-items-center {
    align-items: center !important;
}

/* Font Awesome Icon Colors */
.text-primary {
    color: #D81324 !important;
}

/* Navbar Styles */
/* Navbar Styles */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.navbar-expand-lg .navbar-nav {
    flex-direction: row;
}

.navbar-light {
    color: rgba(0,0,0,0.9);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--bs-navbar-color);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--bs-navbar-hover-color);
}

.navbar-light .navbar-nav .nav-link.disabled {
    color: var(--bs-navbar-disabled-color);
}

.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-navbar-active-color);
}

.navbar-light .navbar-toggler {
    color: var(--bs-navbar-toggler-border-color);
    border-color: var(--bs-navbar-toggler-border-color);
}

.navbar-light .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
}

.navbar-brand {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    white-space: nowrap;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-lg-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0px;
    transition: box-shadow 0.15s ease-in-out;
    margin-left: auto; /* Перемещаем тогглер вправо */
}

.navbar-toggler:hover {
    text-decoration: none;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 .25rem;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    display: none; /* Скрываем меню по умолчанию */
}

.navbar-collapse.show {
    display: flex; /* Отображаем меню при активном состоянии */
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
    padding: 20px 0px;
    font-size: 15px;
    margin-right: 1px;
}

.navbar-nav .nav-link.active {
    color: var(--bs-navbar-active-color);
}

.navbar-nav-scroll {
    max-height: var(--bs-scroll-height, 75vh);
    overflow-y: auto;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
    color: #596277;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #D81324;
    border-color: #D81324;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.d-lg-block {
    display: block !important;
}

.fa-arrow-right {
    /* FontAwesome styles */
}

/* Additional Custom Styles */
.topbar {
    background-color: #f8f9fa;
    padding: 10px 0;
}

.navbar-nav-scroll {
    overflow: visible;
}

.navbar-collapse {
    display: flex !important;
}

.navbar-toggler {
    display: none;
}

.navbar-nav .nav-link {
    padding: 10px 10px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none; /* Убираем подчеркивание */
    color: #333; /* Цвет текста по умолчанию */
}

.navbar-light .navbar-nav .nav-link:hover, 
.navbar-light .navbar-nav .nav-link.active {
    color: red;
}

.btn-primary {
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none; /* Убираем подчеркивание */
    background-color: #D81324; /* Оригинальный цвет фона */
    transition: background-color 0.3s ease; /* Плавный переход цвета фона */
}

.btn-primary:hover {
    background-color: #b8101f; /* Затемненный цвет фона при наведении */
}

.btn-primary i {
    margin-left: 5px;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
    }

    .btn-primary {
        padding: 10px 20px;
        margin-left: 20px;
    }
}

@media (max-width: 991px) {
    .container-fluid 
    {
        display: none;
    }

.container{
    margin: 82px 0 82px 0;
}


     .navbar-toggler {
        display: none !important;
    }
    .navbar-brand {
        margin-right: 0; /* Убираем правый отступ */
        flex-grow: 1; /* Занимает всю доступную ширину */
        display: flex; /* Делаем его флекс-контейнером */
        justify-content: center; /* Выравниваем содержимое по горизонтали */
        align-items: center; /* Выравниваем содержимое по вертикали */
        text-align: center; /* Центрируем текст внутри */
        margin-left: -100px;
    }
    .navbar {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-expand-lg {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: auto;
    }

    .navbar-toggler {
        display: block;
        margin-left: auto; /* Перемещаем тогглер вправо */
    }


    .navbar-collapse {
        align-items: center;
       
    }

    .navbar-collapse.show {
        display: flex; /* Отображаем меню при активном состоянии */
    }

    .navbar-nav .nav-link {
        padding: 10px 10px;
        font-size: 16px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .navbar-brand {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .px-4, .px-lg-5 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .btn-primary {
        padding: 10px 20px;
        font-weight: bold;
        text-transform: uppercase;
        text-decoration: none;
        background-color: #D81324;
        transition: background-color 0.3s ease;
    }

    .btn-primary:hover {
        background-color: #b8101f;
    }

    .d-lg-block {
        display: none !important;
    }

    .topbar {
        padding: 5px 0;
    }
}

/* Контейнер для изображения */
.listings ul.properties_list li .property_image_container {
    display: flex; /* Используем Flexbox для центрирования */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    width: 99.5%; /* Ширина контейнера равна ширине карточки */
    height: 254px; /* Фиксированная высота контейнера (можно изменить) */
    background-color: #f2f2f2; /* Фоновый цвет для контейнера (по желанию) */
    overflow: hidden; /* Скрываем лишнее, если изображение больше */
    border-top: 1px solid #f2f1f1;
    border-left: 1px solid #f2f1f1;
    border-right: 1px solid #f2f1f1;
}

/*.listings ul.properties_list li .property_image_container:hover {
    border-top: 1px solid #95badf; 
    border-left: 1px solid #95badf; 
    border-right: 1px solid #95badf; 
}
*/
/* Изображение */
.listings ul.properties_list li img.property_img {
    max-width: 100%; /* Максимальная ширина равна ширине контейнера */
    max-height: 100%; /* Максимальная высота равна высоте контейнера */
    object-fit: contain; /* Сохраняем пропорции изображения */
    display: block;
}






/*.vodka:hover{
    border-bottom: 0.5px solid #95badf;
    border-left: 0.5px solid #95badf;
    border-right: 0.5px solid #95badf;
    border-top: 0.5px solid #95badf;
}*/









/* Общий стиль для .price */
.listings ul.properties_list li .price {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0px 0px 0px 10px;
    background: #ffffff;
    color: #514d4d;
    font-family: "lato-bold", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 2px;
    display: inline-flex; /* Делаем элемент гибким для правильного расположения */
    align-items: center; /* Центрируем содержимое по вертикали */
}

/* Стиль для "+ ПОДАРОК" */
.listings ul.properties_list li .price .gift {
    margin-left: 10px; /* Отступ между ценой и "+ ПОДАРОК" */
    padding: 8px 12px; /* Внутренние отступы для "+ ПОДАРОК" */
    background-color: #e74c3c; /* Красный фон */
    color: #ffffff; /* Белый текст */
    font-size: 14px; /* Размер шрифта */
    font-weight: bold; /* Жирный шрифт */
    border-radius: 2px; /* Скругленные углы */
    white-space: nowrap; /* Запрещаем перенос текста */
}


.listings ul.properties_list li:nth-child(3n+0){
    margin-right: 0;
}

.listings ul li .property_details{
    width: 298px;
    height: 220px;
    padding: 10px 20px 50px 20px;
    border-bottom: 1px solid #f2f1f1;
    border-left: 1px solid #f2f1f1;
    border-right: 1px solid #f2f1f1;

    transition: all .2s linear;
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
}

.listings ul li:hover .property_details{
    border-bottom: 0.2px solid #95badf;
    border-left: 0.2px solid #95badf;
    border-right: 0.2px solid #95badf;

}

.listings ul li .property_details h1{
    color: #666464;
    font-family: "lato-bold", Helvetica, Arial, sans-serif;
    font-size: 16px!important;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 28px;
}

.listings ul li .property_details h1 a{
    text-decoration: none;
    color: black;
}

.listings ul li .property_details h2{
    color: black;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 26px;
}

.listings ul li .property_details .property_size{
    color: black;
}

.listings .more_listing{
    display: block;
    width: 100%;
    text-align: center;
    margin: 84px 0 22px 0;
}

/* Стили для общей кнопки */
.combined_btn {
    width: 100%; /* Занимает всю ширину родительского контейнера */
    padding: 12px 0; /* Отступы внутри кнопки */
    background-color: #d81324; /* Голубоватый цвет */
    color: #ffffff; /* Белый текст */
    border: none; /* Без границы */
    font-size: 16px; /* Размер шрифта */
    
    font-family: 'Roboto', sans-serif; /* Красивый шрифт */
    cursor: pointer; /* Изменение курсора на "указатель" */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease; /* Плавные переходы */
    border-radius: 5px; /* Небольшой скругленный край (опционально) */
    text-align: center; /* Центрирование текста */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
}

/* Стили при наведении */
.combined_btn:hover {
    background-color: #f7f7f7; /* Светло-серый фон */
    color: #333; /* Темный текст */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Более выраженная тень */
}

/* Состояние при нажатии */
.combined_btn:active {
    transform: translateY(1px); /* Небольшое "утончение" при нажатии */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Уменьшение тени */
}



.section-title {
    font-size: 28px; /* Размер шрифта */
    font-weight: bold; /* Жирный шрифт */
    margin-bottom: 20px; /* Отступ снизу до списка карточек */
    color: #333; /* Цвет текста */
    text-align: left; /* Выравнивание по левому краю */
    border-bottom: 2px solid #007acc; /* Линия под заголовком */
    padding-bottom: 10px; /* Пространство под текстом */
}


.section-title {
    text-align: center;
    border-bottom: none;  
}

/* General button container styling */
.buttons_container {
    display: flex;
    gap: 10px; /* Пространство между кнопками */
    margin-top: 7px; /* Отступ сверху */
}

/* General button styling */
.btn {
    padding: 12px 24px; /* Равномерный паддинг для квадратной формы */
    border: 1px solid #d1d1d1; /* Четкая граница */
    
    font-weight: bold; /* Жирный шрифт для акцента */
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.2s ease; /* Плавные переходы */
    border-radius: 0; /* Убираем закругления */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Небольшая тень */
    text-transform: uppercase; /* Верхний регистр для текста */
    letter-spacing: 0.5px; /* Межбуквенное расстояние для читаемости */
}

/* Specific button styles */
.download_btn {
    background-color: #689f38; /* Более мягкий зеленый цвет */
    color: white;
    border-color: #689f38; /* Цвет границы соответствует фону */
}

.consult_btn {
    background-color: #1e88e5; /* Более мягкий синий цвет */
    color: white;
    border-color: #1e88e5; /* Цвет границы соответствует фону */
}

/* Hover effects */
.download_btn:hover,
.consult_btn:hover {
    background-color: #43a047; /* Темный вариант основного цвета */
    border-color: #43a047; /* Соответствующая граница */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Немного увеличиваем тень */
}

.consult_btn:hover {
    background-color: #1565c0; /* Темный вариант основного цвета */
    border-color: #1565c0; /* Соответствующая граница */
}

/* Active state (при клике) */
.btn:active {
    transform: translateY(1px); /* Небольшое "утончение" при нажатии */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Уменьшаем тень */
}
/* Медиа-запрос для мобильных устройств (до 768px) */
@media (max-width: 500px) {
    /* Карточки машин */
    .listings ul.properties_list li {
        width: 100%; /* Карточки занимают всю доступную ширину */
        margin: 0 0 20px 0; /* Убираем горизонтальные отступы */
        float: none; /* Отключаем float */
        box-sizing: border-box; /* Включаем внутренние отступы в ширину */
    }

    .section-title {
    text-align: center;
    width: 100%;  
}
















    /* Изображение в карточке */
    .listings ul.properties_list li img.property_img {
        max-width: 100%; /* Изображение не будет шире родительского блока */
        height: auto; /* Сохраняем пропорции */
    }

    /* Детали свойств автомобиля */
    .listings ul li .property_details {
        width: auto; /* Ширина становится автоматической */
        height: 150px;
        padding: 10px; /* Сокращаем внутренние отступы */
        font-size: 12px; /* Уменьшаем размер шрифта */
    }

    /* Заголовок (модель авто) */
    .listings ul li .property_details h1 {
        font-size: 14px; /* Уменьшаем размер заголовка */
        line-height: 1.2; /* Оптимизируем высоту строки */
    }

    /* Подзаголовок (характеристики авто) */
    .listings ul li .property_details h2 {
        font-size: 10px; /* Уменьшаем размер подзаголовка */
        line-height: 1.4; /* Оптимизируем высоту строки */
    }

    /* Цена */
    .listings ul li .price {
        font-size: 12px; /* Уменьшаем размер цены */
        padding: 8px 12px; /* Уменьшаем внутренние отступы */
        border-radius: 4px; /* Сlightly smaller rounded corners */
    }

    /* Кнопки */
    .buttons_container {
        display: flex;
        flex-direction: column; /* Располагаем кнопки вертикально */
        gap: 10px; /* Отступ между кнопками */
    }

    .btn {
        width: 100%; /* Кнопки занимают всю ширину */
        padding: 10px; /* Уменьшаем паддинг */
        font-size: 12px; /* Уменьшаем размер шрифта */
        border-radius: 20px; /* Закругляем углы */
    }

    /* Кнопка "Больше машин" */
    .listings .more_listing_btn {
        padding: 12px 20px; /* Уменьшаем размер кнопки */
        font-size: 12px; /* Уменьшаем размер шрифта */
        border-radius: 25px; /* Закругляем углы */
    }
}

/* Медиа-запрос для планшетов (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Карточки машин */
    .listings ul.properties_list li {
        width: calc(50% - 20px); /* Две карточки в ряд */
        margin: 0 10px 20px 10px; /* Корректируем отступы */
        box-sizing: border-box; /* Включаем внутренние отступы в ширину */
    }

    /* Кнопки */
    .buttons_container {
        flex-direction: row; /* Располагаем кнопки горизонтально */
        justify-content: space-between; /* Размещаем их по краям */
    }

    .btn {
        width: 48%; /* Каждая кнопка занимает половину ширины */
    }
}




/*  footer  */
footer{
    padding-top: 100px;
    background: #95badf;
}

footer .footer > ul{
    overflow: hidden;
}

footer .footer > ul > li{
    display: block;
    float: left;
    list-style: none;
    margin-right: 60px;
}

footer .footer > ul > li:last-child{
    margin-right: 0;
}


footer .footer > ul > li.links{
    width: 197px;
}

footer ul li.links > ul > li{
    display: block;
    width: 100%;
    list-style: none;
    margin-bottom: 27px;
}

footer ul li.links > ul > li:last-child{
    margin-bottom: 0;
}

footer .footer > ul > li.links li a{
    text-decoration: none;
    display: block;
    color: #fff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: .5px;
    text-align: left;
}

footer .footer > ul > li.about{
    width: 327px;
}

footer ul li.about p{
    color: #fff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: .5px;
    line-height: 34px;
    margin-top: -9px;
}

footer ul li.about > ul > li{
    display: inline-block;
    margin-right: 20px;
    margin-top: 30px;
}

footer ul li.about > ul > li:last-child{
    margin-right: 0;
}

footer ul li.about > ul > li a{
    background: url('../img/social_media.png') no-repeat;
}

footer ul li.about > ul > li a.facebook{
    display: block;
    width: 10px;
    height: 18px;
    background-position: 0 0;
}
footer ul li.about > ul > li a.twitter{
    display: block;
    width: 19px;
    height: 18px;
    background-position: -11px 0px;
}
footer ul li.about > ul > li a.google{
    display: block;
    width: 10px;
    height: 18px;
    background-position: -31px 0px;
}
footer ul li.about > ul > li a.skype{
    display: block;
    width: 17px;
    height: 18px;
    background-position: -43px 0px;
}

footer .copyrights{
    display: block;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    color: #fff;
    font-family: "lato-regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: .5px;
    border-top: 1px solid #82abd4;
}

footer .copyrights a.ph_link{
    font-family: "Lato-bold", Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
}

/* Медиа-запрос для мобильных устройств (до 768px) */
@media (max-width: 500px) {
    footer {
        padding-top: 50px;
        width: 100%;




}









/* Стили для оверлея попапа */
.popup-overlay {
    display: none; /* По умолчанию скрыт */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Стили для контента попапа */
.popup-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

/* Кнопка закрытия попапа */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #ff5c5c;
}

/* Карусель фото */
.popup-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-bottom: 20px;
}

.popup-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 10px;
    scroll-snap-align: start;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-image.active {
    opacity: 1;
}

.popup-image:last-child {
    margin-right: 0;
}

/* Информация о машине */
.popup-info {
    margin-bottom: 20px;
}

.popup-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.popup-info p {
    font-size: 16px;
    margin-bottom: 5px;
    color: #666;
}

/* Кнопки внизу попапа */
.popup-buttons {
    display: flex;
    gap: 10px;
}

.popup-btn {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-download {
    background: linear-gradient(135deg, #81c784, #4caf50);
    color: white;
}

.popup-download:hover {
    background: linear-gradient(135deg, #388e3c, #45a049);
    transform: translateY(-2px);
}

.popup-consult {
    background: linear-gradient(135deg, #64b5f6, #2196f3);
    color: white;
}

.popup-consult:hover {
    background: linear-gradient(135deg, #1e88e5, #1976d2);
    transform: translateY(-2px);
}










