* {
    margin: 0;
    padding: 0;
}

body {
    background-image: url("media/category_images/fon5 27kb.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.h-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(32, 43, 53, 0);
    height: auto;
    font-size: 1vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .h-info {
        font-size: 1.7vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .h-info {
        font-size: 1.7vw;
    }
}

.h-header-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(29, 29, 29, 0.206);
    height: 3vw;
    font-size: 1.3vw;
}

.h-header_info1 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(29, 29, 29, 0.206);
    width: 100%;
    height: 2vw;
    font-size: 1.3vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .h-header_info1 {
        height: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .h-header_info1 {
        height: 4vw;
    }
}


/* --------------------------------Banner----------------------------------- */

.banner {
    display: flex;
    flex-direction: row;
    background-color: rgba(255, 0, 132, 0);
    width: 100%;
    height: 26vw;
    align-items: center;
    justify-content: center;
    margin-top: 1%;
}

@media (min-width: 100px) and (max-width: 600px) {
    .banner {
        height: 30vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .banner {
        height: 30vw;
    }
}

.banner div {
    display: flex;
    width: 100%;
    height: 26vw;
    border-radius: 30px;
}

@media (min-width: 100px) and (max-width: 600px) {
    .banner div {
        border-radius: 10px;
        height: 29vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .banner div {
        border-radius: 20px;
        height: 29vw;
    }
}

.banner_first:hover {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.banner_second:hover {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.clickable-link {
    display: block;
    width: 100%;
    margin: 1%;
}

.img_banner {
    display: flex;
    width: 100%;
    border-radius: 30px;
    object-fit: cover;
    object-position: top;
    border: 1.5px solid white;
}

@media (min-width: 100px) and (max-width: 600px) {
    .img_banner {
        border-radius: 10px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .img_banner {
        border-radius: 20px;
    }
}

.banner_p {
    display: flex;
    position: absolute;
    margin: 10px 0 0;
    text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0);
    font-size: 2vw;
    padding-left: 2vw;
    padding-top: 20.5vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .banner_p {
        font-size: 2.5vw;
        padding-top: 19.5vw;
        width: 44%;
        text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 10px #000000, 3px 0px 5px rgb(0, 0, 0), 1px 3px 5px rgb(0, 0, 0);
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .banner_p {
        font-size: 2.5vw;
        padding-top: 19.5vw;
        width: 44%;
        text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 10px #000000, 3px 0px 5px rgb(0, 0, 0), 1px 3px 5px rgb(0, 0, 0);
    }
}

@media (min-width: 801px) and (max-width: 900px) {
    .banner_p {
        font-size: 2.5vw;
        padding-top: 21vw;
        width: 44%;
        text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 10px #000000, 3px 0px 5px rgb(0, 0, 0), 1px 3px 5px rgb(0, 0, 0);
    }
}

.banner_info {
    display: flex;
    position: absolute;
    margin: 10px 0 0;
    font-size: 1.7vw;
    padding-left: 2vw;
    /* padding-top: 18vw; */
    width: 44vw;
    color: black;
    text-align: center;
}

@media (min-width: 100px) and (max-width: 900px) {
    .banner_info {
        font-size: 1.8vw;
        margin: 0;
        padding-top: 1vw;
    }
}


/* ----------------------------------------------End Banner--------------------------------------------- */


/* ----------------------------------------------Body--------------------------------------------- */


/* -------Body Left block-------- */

.body {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    background-color: rgba(29, 29, 29, 0);
    width: 100%;
    height: auto;
}

.body_div_first {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 82%;
    height: auto;
    color: #ffffff;
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_first {
        width: 81%;
    }
}

@media (min-width: 601px) and (max-width: 1000px) {
    .body_div_first {
        width: 68%;
        margin-left: 1%;
        margin-right: 1%;
    }
}

.body_div_filters {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    height: auto;
    color: #ffffff;
    padding-left: 1%;
    margin-bottom: 2%;
    font-size: 3vw;
}

.form_filters {
    display: flex;
    flex-direction: column;
    font-size: 3vw;
    width: 100%;
}

.form_filters select {
    display: flex;
    flex-direction: column;
    font-size: 1vw;
    background: linear-gradient(45deg, rgb(16, 137, 211) 0%, rgb(18, 177, 209) 100%);
    color: white;
    border: none;
}

@media (min-width: 100px) and (max-width: 600px) {
    .form_filters select {
        font-size: 2.5vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .form_filters select {
        font-size: 1.5vw;
    }
}

.form_filters button {
    font-size: 1vw;
    font-size: 0.4em;
}

.body_div_first div {
    display: flex;
    justify-content: space-around;
    border-radius: 20px;
    width: 100%;
    place-items: center;
    align-self: start;
    place-content: center;
}

.clickable_link_body_first {
    width: 10%;
}

.first_card {
    flex-direction: row;
    flex-wrap: wrap;
}

.card {
    flex-direction: column;
    overflow: hidden;
    background-color: white;
    position: relative;
    margin: 1%;
    padding: 1%;
    align-items: center;
    text-align: center;
}

.approved-badge {
    display: flex;
}

.img_body_first {
    width: 100%;
    height: 19vw;
    object-fit: cover;
    border-radius: 20px;
}

@media (min-width: 100px) and (max-width: 600px) {
    .img_body_first {
        height: 33vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .img_body_first {
        height: 21vw;
    }
}

.category_text_body_first {
    position: relative;
    margin: 10px 0 0;
}

.ads_input_p_price1 {
    display: flex;
    color: #000000;
    flex-direction: row;
    font-size: 1.2vw;
    justify-content: center;
    height: 1.5vw;
    height: 2vw;
}

.ads_input_p_price2 {
    display: block;
    color: #000000;
    flex-direction: row;
    font-size: 1.2vw;
    justify-content: center;
    height: 1.5vw;
    height: 2vw;
}

.ads_input_p_price3 {
    display: flex;
    color: #000000;
    flex-direction: row;
    font-size: 1.2vw;
    justify-content: center;
    height: 1.5vw;
    height: 2vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .ads_input_p_price {
        font-size: 3.5vw;
        min-height: 5vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .ads_input_p_price {
        font-size: 1.5vw;
        min-height: 2vw;
    }
}

.ads_input_p {
    display: flex;
    color: #000000;
    flex-direction: row;
    font-size: 1.2vw;
    justify-content: center;
    height: 1.6vw;
}

@media (min-width: 100px) and (max-width: 600px) {
    .ads_input_p {
        font-size: 3.5vw;
        min-height: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .ads_input_p {
        font-size: 1.5vw;
        min-height: 2vw;
    }
}

.ads_input_p_desc {
    display: flex;
    color: #000000;
    font-size: 1em;
    flex-direction: column;
}

.ads_input_p_desc p {
    text-align: justify
}

.ads_input {
    display: flex;
    flex-direction: column;
}

.ads_img {
    display: flex;
}

.desc_h1 {
    display: flex;
    color: #000000;
    padding-top: 1%;
    justify-content: center;
}

.desc_h1 h1 {
    display: flex;
    color: #ffffff;
    font-size: 2vw;
}

.card_price {
    display: flex;
    color: #000000;
}

.card_name {
    display: flex;
    color: #000000;
    flex-direction: column;
}

.card_name p {
    display: flex;
    color: #376289;
    flex-direction: row;
    justify-content: center;
    margin: 0;
    font-size: 1.5vw;
    padding: 1%;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 100px) and (max-width: 600px) {
    .card_name p {
        font-size: 3.7vw;
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .card_name p {
        font-size: 2vw;
    }
}

@media (min-width: 801px) and (max-width: 900px) {
    .card_name p {
        font-size: 2vw;
    }
}

.ads_input_p_name {
    display: flex;
    color: #000000;
    flex-direction: row;
    font-size: 1.2vw;
    justify-content: center;
    height: 5vw;
}

@media (min-width: 100px) and (max-width: 500px) {
    .ads_input_p_name {
        font-size: 3.5vw;
        height: 13vw;
    }
    .ads_input_p_price1 {
        height: 4vw;
    }

    .ads_input_p_price2 {
        height: 4vw;
    }

    .ads_input_p_price3 {
        height: 4vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .ads_input_p_name {
        font-size: 3.5vw;
        height: 13vw;
    }

    .ads_input_p_price1 {
        height: 4vw;
    }

    .ads_input_p_price2 {
        height: 4vw;
    }

    .ads_input_p_price3 {
        height: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .ads_input_p_name {
        font-size: 1.5vw;
        height: 7vw;
    }

    .ads_input_p_price1 {
        height: 2vw;
    }

    .ads_input_p_price2 {
        height: 2vw;
    }

    .ads_input_p_price3 {
        height: 2vw;
    }
}

.card_desc {
    display: flex;
    color: #000000;
    flex-direction: column;
}

.card_desc p {
    display: flex;
    color: #000000;
    flex-direction: column;
    margin: 0;
    padding: 1%;
    font-size: 1vw;
}

.clickable-card {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 15%;
    justify-content: center;
    text-align: center;

}

@media (min-width: 100px) and (max-width: 700px) {
    .clickable-card {
        width: 44%;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .clickable-card {
        width: 23%;
    }
}

.div_button {
    display: flex;
    justify-content: center;
}

.name_p {
    font-size: 1.2vw;
}

.name_a {
    display: flex;
    color: rgb(255 255 255);
    line-height: 1.4em;
    text-decoration: none;
    background-color: rgb(11 99 246);
    border-radius: 10px;
    padding-top: 1.5%;
    padding-left: 5%;
    padding-right: 5%;
    box-shadow: 0 5px 15px 0 rgba(11, 99, 246, 1);
    transition: 0.5s;
    margin-left: 1em;
    margin-right: 1em;
    width: 15vw;
    justify-content: center;
}

.name_a:hover {
    transform: translate(0, -3px);
    box-shadow: 0 20px 40px 0 rgba(11, 99, 246, 1);
}

@media (min-width: 100px) and (max-width: 600px) {
    .name_a {
        font-size: 2.6vw;
        height: auto;
        flex-wrap: nowrap;
        padding-left: 0.5em;
        padding-right: 0.5em;
        margin-right: 0em;
        width: auto;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .name_a {
        font-size: 2.4vw;
        height: auto;
        flex-wrap: nowrap;
        padding-left: 0.5em;
        padding-right: 0.5em;
        margin-right: 0em;
        width: auto;
    }
}


/* -END------Body Left block-------- */


/* -------Body Right block-------- */



.body_div_second {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    flex-wrap: wrap;
    width: 17%;
    /* margin-top: 2%; */
    /* margin-bottom: 5%; */
    margin-right: 1.5%;
    margin-left: 1%;
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_second {
        width: 15%;
        margin-left: 0.5%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_second {
        width: 15%;
        margin-right: 2%;
    }
}

.body_div_second div {
    display: flex;
    justify-content: center;
    background-color: #0000008c;
    width: 100%;
    height: 18vw;
    border-radius: 10px;
    border: 0.3em solid white;
    margin-bottom: 15%;
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_second div {
        height: 20vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_second div {
        height: 19vw;
    }
}

.body .body_div_second p {
    color: #ffffff;
    padding: 100% 0% 0% 0%;
    font-size: 1.7vw;
    position: relative;
    z-index: 7;
}

@media (min-width: 100px) and (max-width: 500px) {
    .body .body_div_second p {
        font-size: 2.5vw;
        padding-top: 10vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .body .body_div_second p {
        font-size: 2.5vw;
        padding-top: 11vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body .body_div_second p {
        font-size: 2.2vw;
        padding-top: 12vw;
    }
}

.right_category-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.right_category-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.right_div1 {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.right_category-text {
    position: relative;
    margin: 10px 0 0;
    /* text-shadow: -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0), -1px -3px 21px #000000, 3px 0px 15px rgb(0, 0, 0), 1px 3px 16px rgb(0, 0, 0); */
}

.body_div_second div .other_p {
    display: flex;
    height: 9vw;
    margin-top: 14vw;
    z-index: 5;
    position: absolute;
}

@media (min-width: 100px) and (max-width: 500px) {
    .body_div_second div .other_p {
        height: 7vw;
        margin-top: 11vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .body_div_second div .other_p {
        height: 7vw;
        margin-top: 11vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .body_div_second div .other_p {
        height: 7vw;
        margin-top: 11vw;
    }
}


/* ----------------------------------------------End Body--------------------------------------------- */


/* --------------------------------------Pagination-------------------------------------------------------------- */

.header_plus {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
    margin-top: 2em;
}

@media (min-width: 100px) and (max-width: 600px) {
    .header_plus {
        margin-top: 1em;
        margin-right: 2vw;
        margin-bottom: 2vw;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2vw;
    margin-bottom: 5vw;
    width: 100%;
    margin-left: 0vw;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #e0e0e0;
}

.pagination .current {
    margin: 0 5px;
    padding: 7px 18px;
    background-color: #ddd;
    color: #000;
    font-weight: bold;
    font-size: 1vw;
}

.step-links {
    font-size: 1vw;
    padding: 0;
}

@media (min-width: 100px) and (max-width: 600px) {
    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 8vw;
        margin-bottom: 10vw;
        width: 100%;
        margin-left: 0vw;
    }
}

@media (min-width: 100px) and (max-width: 600px) {
    .pagination a {
        margin: 0 5px;
        padding: 5px 10px;
        background-color: #f5f5f5;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #333;
        padding: 1vw;
    }
}

@media (min-width: 100px) and (max-width: 600px) {
    .pagination .current {
        margin: 0 5px;
        padding: 5px 10px;
        background-color: #ddd;
        color: #000;
        font-weight: bold;
        font-size: 1.8vw;
    }
}

@media (min-width: 100px) and (max-width: 600px) {
    .step-links {
        font-size: 1.8vw;
        padding: 0;
    }
}


/* --------------------------------------End Pagination-------------------------------------------------------------- */

.language-selector {
    display: inline-block;
    align-content: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #00ff0a00;
    color: white;
    padding: 3px;
    font-size: 1.2vw;
    border: 1.5px solid white;
    cursor: pointer;
    width: 12vw;
}

.dropbtn:hover {
    background-color: #00ff0a00;
    color: white;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropbtn {
        font-size: 1.5vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropbtn {
        font-size: 1.5vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropbtn {
        font-size: 1.5vw;
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(29, 29, 29, 0.638);
    min-width: 247px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0%;
    justify-items: center;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropdown-content {
        min-width: 152px;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropdown-content {
        min-width: 201px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropdown-content {
        min-width: 288px;
    }
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: white;
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: rgba(29, 29, 29, 0);
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

@media (min-width: 100px) and (max-width: 500px) {
    .dropdown-content a {
        font-size: 4vw;
    }
}

@media (min-width: 501px) and (max-width: 600px) {
    .dropdown-content a {
        font-size: 4vw;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dropdown-content a {
        font-size: 3vw;
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Изменение цвета кнопки при наведении на dropdown */

.dropdown:hover .dropbtn {
    background-color: rgba(29, 29, 29, 0);
}

option {
    background-color: rgba(29, 29, 29, 0);
    color: black;
}


.ad-type-badge {
    position: static;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.lost-badge {
    background-color: #ff4757;
}

.found-badge {
    background-color: #2ed573;
}

.no-image {
    width: 100%;
    height: 200px;
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #747d8c;
}

.no-ads {
    text-align: center;
    padding: 40px;
    color: #747d8c;
}

.btn-clear {
    padding: 8px 16px;
    background-color: #a4b0be;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}

.btn-clear:hover {
    background-color: #747d8c;
}

.ads_input_p_category {
    color: #57606f;
    font-size: 14px;
    margin: 5px 0;
}

.ads_input_p_city {
    color: #747d8c;
    font-size: 13px;
    margin: 3px 0;
}

.ads_input_p_date {
    color: #a4b0be;
    font-size: 12px;
    margin: 3px 0;
}

/* Стили для фильтров */
.body_div_filters {
    display: flex;
}

.filters-container {
    background: #F8F9FD;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(244, 247, 251) 100%);
    border-radius: 20px;
    border: 4px solid rgb(255, 255, 255);
    box-shadow: rgba(133, 189, 215, 0.878) 0px 20px 20px -15px;
}

.filters-heading {
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    color: rgb(16, 137, 211);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
    position: relative;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-align: left;
}

.filter-select {
    width: 100%;
    background: white;
    border: none;
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: #cff0ff 0px 8px 8px -5px;
    border: 2px solid transparent;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

.filter-select:focus {
    outline: none;
    border-color: #12B1D1;
    box-shadow: #cff0ff 0px 12px 12px -8px;
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 12px 15px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.apply-button {
    background: linear-gradient(45deg, rgb(16, 137, 211) 0%, rgb(18, 177, 209) 100%);
    color: white;
    box-shadow: rgba(133, 189, 215, 0.878) 0px 10px 10px -8px;
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: rgba(133, 189, 215, 0.878) 0px 15px 15px -10px;
}

.clear-button {
    background: linear-gradient(45deg, #a4b0be 0%, #747d8c 100%);
    color: white;
    box-shadow: rgba(165, 177, 189, 0.878) 0px 10px 10px -8px;
}

.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: rgba(165, 177, 189, 0.878) 0px 15px 15px -10px;
    color: white;
}

.button-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.filter-button:hover .button-icon {
    transform: scale(1.1);
}

/* Адаптивность для фильтров */
@media (min-width: 100px) and (max-width: 600px) {
    .body_div_filters {
        width: 25%;
        padding: 0 2%;
    }

    .filters-container {
        padding: 15px;
    }

    .filters-heading {
        font-size: 16px;
    }

    .filter-select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .filter-button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_filters {
        width: 100%;
        order: -1;
        margin-bottom: 20px;
        padding: 0 5%;
    }

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

    .filter-group {
        margin-bottom: 15px;
    }

    .filter-buttons {
        grid-column: 1 / -1;
        flex-direction: row;
        margin-top: 15px;
    }
}

@media (min-width: 100px) and (max-width: 600px) {
    .body_div_filters {
        padding: 0;
    }

    .filters-container {
        padding: 1vw;
        flex-direction: column;
        width: 80%;
    }

    .filters-heading {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .filter-label {
        font-size: 12px;
    }

    .filter-select {
        padding: 8px 10px;
        font-size: 12px;
        background-size: 12px;
        background-position: right 10px center;
    }

    .filter-button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .button-icon {
        font-size: 14px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-container {
    animation: fadeIn 0.5s ease-out;
    display: flex;
}

.filter-group {
    animation: fadeIn 0.6s ease-out;
}

.filter-group:nth-child(2) { animation-delay: 0.1s; }
.filter-group:nth-child(3) { animation-delay: 0.2s; }
.filter-buttons { animation-delay: 0.3s; }


.first_card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;

}

.clickable-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ad-card {
    background: #F8F9FD;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(244, 247, 251) 100%);
    border-radius: 25px;
    padding: 2px;
    border: 4px solid rgb(255, 255, 255);
    box-shadow: rgba(133, 189, 215, 0.878) 0px 20px 20px -15px;
    transition: all 0.3s ease;
    height: 100%;
    flex-flow: column;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(133, 189, 215, 0.95) 0px 25px 25px -15px;
}

.ad-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-card:hover .ad-img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f1f2f6 0%, #e4e6eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #747d8c;
    font-size: 14px;
}

.ad-type-badge {
    position: static;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
}

.wd {
    width: 5vw;
}

.lost-badge {
    background: linear-gradient(45deg, #ff4757 0%, #ff6b81 100%);
}

.found-badge {
    background: linear-gradient(45deg, #2ed573 0%, #7bed9f 100%);
}

.ad-content {
    text-align: center;
    flex-flow: column;
}

.ad-title {
    margin-bottom: 12px;
}

.ad-name {
    font-size: 1.3vw;
    font-weight: 800;
    color: rgb(16, 137, 211);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 5vw;
}

.ad-category {
    font-size: 1vw;
    color: #57606f;
    margin: 8px 0;
    font-weight: 600;
}

.ad-city {
    font-size: 1vw;
    color: #747d8c;
    margin: 5px 0;
}

.ad-date {
    font-size: 1vw;
    color: #a4b0be;
    margin: 5px 0 0 0;
}

.no-ads-container {
    background: #F8F9FD;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(244, 247, 251) 100%);
    border-radius: 25px;
    padding: 40px 35px;
    border: 4px solid rgb(255, 255, 255);
    box-shadow: rgba(133, 189, 215, 0.878) 0px 20px 20px -15px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.no-ads-text {
    font-size: 18px;
    font-weight: 600;
    color: rgb(16, 137, 211);
    margin-bottom: 20px;
}

.no-ads-action {
    margin: 15px 0 0 0;
}

.auth-link, .create-link {
    color: #0099ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover, .create-link:hover {
    color: #0077cc;
    text-decoration: underline;
}

/* Адаптивность */
@media (min-width: 100px) and (max-width: 600px) {
    .first_card {
        gap: 20px;
    }

    .clickable-card {
        justify-items: center;
    }

    .ad-image {
        height: 180px;
    }

    .ad-name {
        font-size: 16px;
    }
}

@media (min-width: 100px) and (max-width: 600px) {
    .first_card {
        gap: 15px;
    }

    .ad-card {
        border-radius: 20px;
        padding: 0px;
    }

    .ad-city {
        font-size: 3vw;
        margin: 0;
    }

    .ad-date {
        font-size: 3vw;
    }

    .ad-image {
        height: 160px;
        border-radius: 12px;
    }

    .ad-name {
        font-size: 15px;
    }

    .no-ads-container {
        padding: 30px 25px;
    }

    .no-ads-text {
        font-size: 16px;
    }
}






/* Стили для горизонтальных фильтров в строках */
.form_filters_horizontal {
    width: 100%;
    display: flex;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group-horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.filter-label {
    min-width: 100px;
    text-align: right;
    font-weight: 500;
}

.filter-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.filter-buttons-horizontal {
    display: flex;
    gap: 10px;
    margin-left: 110px; /* Выравнивание с labels */
}

/* Адаптивность для мобильных устройств */
@media (min-width: 100px) and (max-width: 600px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ad-category {
        font-size: 3vw;
        margin: 0;
    }

    .filter-group-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .filter-label {
        min-width: auto;
        text-align: left;
    }

    .filter-buttons-horizontal {
        margin-left: 0;
        justify-content: center;
    }

    .form_filters_horizontal {
        flex-direction: column;
        gap: 2vw;
    }

    .filters-toggle-btn {
        margin: 2vw auto;
    }
}

/* Мобильные фильтры - исправленная версия */
.mobile-filters-toggle {
    display: none;
}

.filters-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, rgb(16, 137, 211) 0%, rgb(18, 177, 209) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin: 15px auto;
    box-shadow: rgba(133, 189, 215, 0.878) 0px 10px 10px -8px;
    transition: all 0.3s ease;
}

.filters-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(133, 189, 215, 0.878) 0px 15px 15px -10px;
}

.filter-icon {
    width: 18px;
    height: 18px;
}



.my-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(45deg, rgb(16, 137, 211) 0%, rgb(18, 177, 209) 100%);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.2vw;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: rgba(133, 189, 215, 0.878) 0px 10px 20px -10px;
    margin-top: 1vw;
    width: auto;
    align-self: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
    .mobile-filters-toggle {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Показываем фильтры на мобильных только когда открыты */
    .mobile-filters-container {
        display: none;
        position: relative;
        width: 100%;
        background: white;
        z-index: 1000;
        padding: 20px;
        border-radius: 20px;
        padding-top: 0;
    }

    .mobile-filters-container.filters-open {
        display: block !important;
        animation: slideDown 0.3s ease-out;
        width: auto;
        background-color: #f0f8ff00;
        justify-items: center;
    }

    .form_filters_horizontal {
        flex-direction: column;
        gap: 15px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-group-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .filter-label {
        min-width: auto;
        text-align: left;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 5px;
    }

    .filter-buttons-horizontal {
        margin-left: 0;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .filter-select {
        width: 100%;
        padding: 12px 15px;
        border-radius: 15px;
        border: 2px solid #e8f4fd;
        background: white;
        text-align: center;
    }

    .my-btn {
        font-size: 14px;
    }

    .p-m {
        padding: 2vw;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    /* На мобильных скрываем обычные стили фильтров */
    .body_div_filters {
        display: none !important;
    }

    /* Но показываем когда это мобильный контейнер и он открыт */
    .mobile-filters-container.filters-open {
        display: block !important;
    }
}

/* Для десктопной версии */
@media (min-width: 901px) {
    .mobile-filters-toggle {
        display: none !important;
    }

    .mobile-filters-container {
        display: none !important;
    }

    /* Показываем обычные фильтры на десктопе */
    .body_div_filters {
        display: flex !important;
    }
}

/* Анимация появления фильтров */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

