/*** imotipazar.bg – допълнения към шаблона Makaan ***/

/* Heebo няма кирилица – за български текст се ползва Inter */
body {
    font-family: "Heebo", "Inter", sans-serif;
}

/* По-дългото лого и българските етикети да се събират в менюто */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar-light .navbar-brand h1 {
        font-size: 1.5rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 14px;
        font-size: 13px;
    }

    .navbar .btn.btn-primary {
        font-size: 13px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-light .navbar-brand .icon {
        display: none;
    }

    .navbar-light .navbar-brand h1 {
        font-size: 1.35rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 10px;
        font-size: 12.5px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 20px;
        font-size: 14px;
    }
}

.navbar .user-name {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    text-transform: none;
}

/* Карти с различни по размер снимки */
.property-item .position-relative > a > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Страница на обява */
.property-main-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.property-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    cursor: pointer;
    opacity: .75;
    transition: .3s;
    border: 2px solid transparent;
}

.property-thumb:hover,
.property-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.feature-box {
    border: 1px dashed rgba(0, 185, 142, .3);
}

/* Скрито поле против спам */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dashed-box {
    border: 1px dashed rgba(0, 185, 142, .3);
}

/* Компактни категории на началната страница */
.home-cats {
    padding: .8rem 0 .55rem;
}

.home-cats__head {
    max-width: 28rem;
    margin: 0 auto .5rem;
    text-align: center;
}

.home-cats__head h2 {
    margin: 0 0 .15rem;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.home-cats__head p {
    margin: 0;
    color: #6c757d;
    font-size: .72rem;
    line-height: 1.35;
}

.home-cats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
}

.home-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: .38rem .25rem .32rem;
    border: 1px solid rgba(0, 185, 142, .28);
    border-radius: .5rem;
    background: #fff;
    color: var(--dark);
    text-align: center;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.home-cat:hover,
.home-cat:focus-visible {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 185, 142, .16);
    text-decoration: none;
}

.home-cat:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 2px;
}

.home-cat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: .18rem;
    border: 1px dashed var(--primary);
    border-radius: 50%;
    background: #fff;
}

.home-cat__icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.home-cat__name {
    color: var(--dark);
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.15;
}

.home-cat__count {
    margin-top: .05rem;
    color: var(--primary);
    font-size: .58rem;
    line-height: 1.15;
}

.home-cat:hover .home-cat__name,
.home-cat:hover .home-cat__count,
.home-cat:focus-visible .home-cat__name,
.home-cat:focus-visible .home-cat__count {
    color: #fff;
}

@media (min-width: 992px) {
    .home-cats__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: .45rem;
    }
}

.page-heading {
    padding: .7rem 0 .45rem;
}

.page-heading__title {
    margin: 0;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-heading .breadcrumb {
    margin: .2rem 0 0;
    padding: 0;
    background: transparent;
    font-size: .75rem;
}

.page-heading .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.page-heading .breadcrumb-item.active {
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .page-heading {
        padding: .55rem 0 .3rem;
    }

    .page-heading__title {
        font-size: 1.15rem;
    }
}

.blog-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.blog-publish-btn{white-space:nowrap;flex-shrink:0}
.blog-card .card-img-top{height:190px;object-fit:cover}
.blog-article{max-width:760px}
.blog-article__image{max-height:440px;object-fit:cover}
.blog-body h2{font-size:1.35rem;margin:1.5rem 0 .6rem;color:var(--dark)}
.blog-body h3{font-size:1.1rem;margin:1.2rem 0 .5rem;color:var(--dark)}
.blog-body p{line-height:1.75;margin-bottom:1rem}
@media (max-width:575.98px){.blog-heading{flex-direction:column;align-items:stretch}.blog-publish-btn{text-align:center}}

.search-bar{padding:.65rem .75rem;margin-bottom:1.25rem}
.search-bar .row{--bs-gutter-y:.35rem;--bs-gutter-x:.4rem}
.search-bar .form-control,
.search-bar .form-select,
.search-bar .btn{padding:.35rem .7rem;font-size:.875rem;line-height:1.25;border-radius:.45rem}
.search-bar .form-control,
.search-bar .form-select{box-shadow:0 1px 2px rgba(14,46,80,.06)}
.search-bar .form-select{padding-right:1.7rem;background-position:right .55rem center}
.search-bar .btn{box-shadow:0 4px 12px rgba(14,46,80,.16)}
.search-bar .btn:hover{box-shadow:0 6px 16px rgba(14,46,80,.22)}
@media (min-width:992px){.search-bar{padding:.55rem 0}}
