/*!
Theme Name: hcn
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: hcn
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

hcn is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* @media (min-width:767px) { */
@media (min-width:1200px) {

	.card {
		max-width: 305px;
	}

	.content-box .list {
		grid-template-columns: repeat(auto-fit, 305px);
	}

}
  
@media (max-width:767px) {
	.search-bar__filter .options__list{
		max-height: 180px;
		overflow-y: scroll;
	}

	.search-bar.active .search-bar__filter {
		height: 100vh!important;
	}
	/* .search-bar__filter{
		position: relative;
	} */
	.card-page__content > .card-slider__slide{
		width: 100% !important;
	}
	.filter.showMobile{
		height: 100vh!important;
	}


}

@media (max-width:578px) {
	#wpadminbar {
        position: fixed;
    }
}

.filter-item.hidden{
	display: none;
}
.description__text p{
	font-size: 15px;
    color: var(--txtColorBlack);
    margin-bottom: 40px;
}
.description__text p:not(:last-child) {
    margin-bottom: 15px;
}
.select2-container{
    width: 100%!important;
    height: auto!important;
	border: none!important;
    
    outline: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    border-radius: 0;
}

.select2-container--default .select2-selection--multiple{
	border-radius: 0!important;
	min-height: 50px!important;
	height: 100%;
	border: .5px solid #acacac!important;
}

.card__content-name {
    height: 60px;
}




.copyright{
	margin-top: 24px;
	display: flex;
	align-items: center;
	display: flex;
    justify-content: space-between;
  }
  .copyright-text{
	color: var(--White, #FFF);
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
  }
  .copyright-box{
	display: flex;
	align-items: center;
	justify-content: end;
  }
  .copyright-copy{
	color: var(--White, #FFF);
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
  }
  .copyright-copy a{
	color: #5FBB3B;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	text-decoration: none;
  }
  .copyright-logo{
	height: 22px;
	margin-right: 8px;
  }

  @media (max-width: 767px) {
    .search-bar.active .search-bar__input {
        max-height: calc(100vh-500px)!important;
        overflow-y: scroll!important;
    }

	.copyright{
		flex-direction: column;
	}

	.copyright-text,
	.copyright-copy,
	.copyright-copy a{
		font-size: 10px;
	}
}

/* Базові стилі .filter-buttons */
.filter-buttons {
    display: flex;
    align-items: center;
    position: relative;
    padding: 30px 0;
}

@media (max-width: 991px) {
    .filter-buttons {
        padding: 21px 0;
    }
}

@media (max-width: 767px) {
    .filter-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        z-index: 10;
        border-bottom: 1px solid #d3d3d3;
        border-top: 0.25px solid #d3d3d3;
        padding: 0;
        box-shadow: 0 -1px 4px 0 rgba(12, 12, 13, 0.05);
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        height: 0;
        overflow: hidden;
        transition: padding 0.3s ease, height 0.3s ease;
    }
}

.filter-buttons.showOnMobile {
    padding: 10px;
    height: 64px;
    transition: padding 0.3s ease, height 0.3s ease;
}

/* Кнопки всередині .filter-buttons */
.filter-buttons button {
    height: 42px;
    border-radius: 25px;
    padding: 0 20px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    font-style: normal;
    justify-content: center;
    font-family: "Roboto", sans-serif;
    background-color: var(--colorBlue);
    border: 1px solid var(--colorBlue);
    color: var(--colorDarkBlue);
    transition: color .3s ease;
}

@media (min-width: 768px) {
    .filter-buttons button {
        background-color: transparent;
        border: none;
        position: relative;
        color: var(--colorWhite);
    }
}

@media (max-width: 767px) {
    .filter-buttons button {
        background: transparent;
        border: none;
        padding: 0 15px;
        font-size: 14px;
        font-weight: 700;
        width: 100%;
    }
}

/* Псевдоелемент :after для кнопок */
@media (min-width: 768px) {
    .filter-buttons button:after {
        position: absolute;
        content: "";
        height: 4px;
        width: 100%;
        left: 0;
        bottom: -30px;
        border-radius: 2px 2px 0 0;
        background-color: transparent;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .filter-buttons button:after {
        bottom: -21px;
    }
}

/* SVG всередині кнопок */
.filter-buttons button svg {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    fill: var(--colorDarkBlue);
}

@media (min-width: 768px) {
    .filter-buttons button svg {
        display: none;
    }
}

@media (max-width: 767px) {
    .filter-buttons button svg {
        margin-right: 4px;
    }
}

/* Ховер та активний стан кнопок */
.filter-buttons button:hover,
.filter-buttons button.active {
    cursor: pointer;
}

@media (min-width: 768px) {
    .filter-buttons button:hover,
    .filter-buttons button.active {
        color: var(--colorOrange);
        transition: color .3s ease;
    }
    .filter-buttons button:hover:after,
    .filter-buttons button.active:after {
        background-color: var(--colorOrange);
    }
}

/* Розділювач */
.filter-buttons .vertical-divider {
    display: none;
}

@media (max-width: 767px) {
    .filter-buttons .vertical-divider {
        width: 1px;
        height: 42px;
        background: #B6B6B6;
        display: block;
    }
}

/* Таби фільтрів */
.filter-tabs {
    display: none;
}

@media (max-width: 767px) {
    .filter-tabs {
        display: flex;
        width: 100%;
        border: 1px solid #BBB;
        border-radius: 4px;
        padding: 4px;
        gap: 8px;
    }
}

.filter-tabs .filter-tab {
    height: 35px;
    border-radius: 4px;
    padding: 0 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    font-style: normal;
    justify-content: center;
    font-family: "Roboto", sans-serif;
    transition: all .3s ease;
    width: 100%;
}

.filter-tabs .filter-tab.active {
    cursor: pointer;
    border: 1px solid var(--colorWhite);
    background-color: var(--colorDarkBlue);
    color: var(--colorWhite);
    transition: all .3s ease;
}

/* Результати фільтрації */
.filter-results {
    position: absolute;
    background: #fff;
    z-index: 20;
    top: 100%;
    border-radius: 6px;
    box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.08), 0 1px 4px 0 rgba(0, 0, 0, 0.08);
    padding: 0 16px;
    max-height: 448px;
    overflow-y: auto;
    display: none;
    min-width: 359px;
}

@media (max-width: 767px) {
    .filter-results {
        display: none;
        position: fixed;
        width: 100vw;
        height: calc(100vh - 84px);
        left: 0;
        top: 90px;
        padding: 20px;
        max-height: 100%;
        box-shadow: none;
    }
}

.filter-results.open {
    display: block;
}

.filter-results.open-sell {
    left: 0;
}

.filter-results.open-rent {
    left: 114px;
}

@media (max-width: 767px) {
    .filter-results.open-rent {
        left: 0;
    }
}

/* Список результатів */
.result-list {
    display: none;
    overflow-y: auto;
}

.result-list.show {
    display: block;
}

.result-list__item {
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid #d3d3d3;
    font-size: 15px;
    color: var(--txtColorDarkBlue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-list__item:hover {
    cursor: pointer;
    color: #5D86A8;
}

.result-list__item-icon {
    width: 24px;
    height: 24px;
}

.result-list__item-icon img {
    width: 100%;
    height: 100%;
}

.result-list__item span {
    display: flex;
    align-items: center;
}

/* Кнопка закриття */
.close-btn {
    display: none;
}

@media (max-width: 767px) {
    .close-btn {
        height: 18px;
        width: 18px;
        margin-bottom: 16px;
        display: block;
    }
}

@media (max-width: 1200px) {
    .search-bar {
        max-width: 100%;
        width: calc(100vw - 670px);
    }
}
.search-bar {
    margin-left: 80px;
    width: calc(100vw - 270px);
    max-width: 500px;
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 6;
}
/* fix */
.page {
    padding-top: 0;
	padding-bottom: 0px;
}
.header {
    padding: 0;
    z-index: 11;
}
.pagination-container .pagination a{
	text-decoration: none;
}

@media (max-width: 767px) {
    .search-bar {
        width: calc(100vw - 120px);
        right: 0;
    }
}



@media (max-width: 767px) {
    .single-building  .footer {
        margin-bottom: 0px;
    }
	
    .building-template-default .filter-buttons.showOnMobile{
        display: none!important;
    }
}

.search-result .mobile-action-btn {
    margin-bottom: 90px;
}
.search-bar__filter {
    top: auto;
}