.map-container {
    height: 420px;
    width: 100%;
}

.lang-switcher .list-inline-item {
    margin-right: 14px;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a8a8a;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.lang-link:hover {
    color: #555;
}

.lang-link .flag {
    width: 18px;
    height: 12px;
    display: inline-flex;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    flex: 0 0 auto;
}

.lang-link .flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 1) Верхняя панель в одну линию */
.rd-navbar-top-panel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* левый блок пусть ужимается, но не ломает языки */
.rd-navbar-top-panel-wrap .top-panel-inner {
    flex: 1 1 auto;
    min-width: 0;
    display: flex; /* чтобы dl не разъезжались */
    align-items: center;
    gap: 18px;
    flex-wrap: wrap; /* при очень узком можно переносить контакты */
}

#map {
    z-index: 1;
}

.thumbnail-3 a:hover {
    color: inherit;
}

.breadcrumb > li a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.page-head {
    position: relative;
    z-index: 20;
    background: #f7f7f7;
}

.section-full,
main.page-content {
    position: relative;
    z-index: 1;
}

.alpha {
    background: rgba(255, 255, 255, 0.5);
}

/* общий вид */
.lang-switcher {
    white-space: nowrap;
}

.lang-switcher .list-inline-item {
    margin-right: 12px;
}

.lang-switcher .list-inline-item:last-child {
    margin-right: 0;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a8a8a;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.lang-link:hover {
    color: #555;
}

.lang-link .flag {
    width: 18px;
    height: 12px;
    display: inline-flex;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    flex: 0 0 auto;
}

.lang-link .flag svg {
    width: 100%;
    height: 100%;
    display: block;
}


.property_listing_details {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap; /* если места мало — перенесёт аккуратно */
    font-size: 14px;
    line-height: 1.2;
}

.property_listing_details > span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.property_listing_details svg {
    width: 16px;
    height: 16px; /* не больше 16px в высоту */
    flex: 0 0 16px;
    display: block;
}

.property_listing_details sup {
    font-size: .7em;
    line-height: 0;
    vertical-align: super;
}

.property_listing_details .unit_details_x {
    margin-left: auto; /* ссылка уедет вправо */
    white-space: nowrap;
    text-decoration: none;
}

.caption {
    display: grid;
    grid-template-rows:
        3.2em   /* заголовок */
        auto    /* цена */
        4.5em   /* описание */
        auto; /* характеристики */
    height: 100%;
}

.caption h4 {
    margin: 0;
}

.thumbnail-price {
    align-self: start;
}

.caption p {
    margin: 0;
    overflow: hidden;
}

.property-card {
    border-top: 1px solid #e7e7e7;
}

.property-card h1 {
    font-size: 40px;
}


/* 12-колоночная сетка как в Bootstrap */
.places-grid {
    display: grid;
    grid-template-columns:repeat(12, 1fr);
    gap: 24px;
    grid-template-rows: 220px 340px 260px; /* <- гарантирует ровный низ */
}

/* Позиционирование плиток */
.tile-nesebar {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.tile-ravda {
    grid-column: 4 / span 3;
    grid-row: 1;
}

.tile-sunny {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
}

.tile-burgas {
    grid-column: 1 / span 6;
    grid-row: 2;
}

.tile-sveti {
    grid-column: 1 / span 6;
    grid-row: 3;
}

.tile-pomorie {
    grid-column: 7 / span 6;
    grid-row: 3;
}

.lang-switcher{
    margin-right: 35px !important;
}

/* Карточка */
.place-card {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
}

.place-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
}

.place-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 22px 18px;
    text-align: center;
}

.place-card__title {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    margin-bottom: 10px;
}

.place-card__badge {
    display: inline-block;
    background: #d11a1a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 6px;
}

.main-slider .price {
    color: #ffffff;
}

.locations-main a:hover {
    color: #ffffff;
    text-decoration: underline !important;
}

.footer-content a {
    color: #ffffff !important;
}

.footer-content a:hover {
    text-decoration: underline;
}

.section-full h1 {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.section-full h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}


.thumbnail-3 .caption h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Адаптив: на мобиле просто в 1 колонку */
@media (max-width: 991.98px) {
    .places-grid {
        grid-template-columns:1fr;
        grid-template-rows:none;
    }

    .places-grid > a {
        grid-column: auto;
        grid-row: auto;
        min-height: 240px;
    }

    .place-card__title {
        font-size: 22px;
    }
}

/* и на мобайле — только флаги, без текста */
@media (max-width: 767.98px) {
    .lang-switcher .lang-text {
        display: none;
    }

    .lang-link {
        gap: 0;
    }
}

.agent-page .img-wrap-mod-1 {
    position: relative;
    z-index: 10;
}
.section-full {
    position: relative;
    z-index: 1;
}

.rd-navbar-brand img {
    width: auto;
    max-width: 180px;
    height: auto;
}

@media (max-width: 767px) {
    .rd-mobile-extra {
        padding: 14px 0 18px;
        border-top: 1px solid #dcdcdc;
    }

    .rd-mobile-extra > * {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lang-switcher-mobile {
        margin: 0 0 14px;
        padding: 0;
        list-style: none;
    }

    .lang-switcher-mobile li {
        margin: 0;
        padding: 0;
    }

    .lang-switcher-mobile li + li {
        margin-top: 4px;
    }

    .lang-switcher-mobile .lang-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 4px;
        text-decoration: none;
        color: #46474a;
        transition: .2s;
    }

    .lang-switcher-mobile .lang-link:hover,
    .lang-switcher-mobile .lang-link:focus,
    .lang-switcher-mobile .lang-link.active {
        background: #352B6A;
        color: #fff;
    }

    .lang-switcher-mobile .lang-link:hover .lang-text-mobile,
    .lang-switcher-mobile .lang-link:focus .lang-text-mobile,
    .lang-switcher-mobile .lang-link.active .lang-text-mobile {
        color: #fff;
    }

    .lang-switcher-mobile .flag {
        width: 18px;
        min-width: 18px;
        display: inline-flex;
        align-items: center;
    }

    .lang-switcher-mobile .flag svg {
        display: block;
        width: 18px;
        height: auto;
    }

    .lang-switcher-mobile .lang-text-mobile {
        font-size: 14px;
        line-height: 1.2;
        color: #46474a;
    }

}

@media (max-width: 767px) {
    .rd-mobile-extra {
        padding: 20px 15px;
        border-top: 1px solid #dcdcdc;
    }

    .rd-mobile-extra .dl-horizontal-mod-1,
    .rd-mobile-extra address {
        margin-bottom: 12px;
    }

    .rd-mobile-extra .dl-horizontal-mod-1 dt,
    .rd-mobile-extra .dl-horizontal-mod-1 dd {
        display: inline-block;
        vertical-align: top;
    }

    .lang-switcher-mobile {
        margin: 18px 0 0;
        padding: 0;
        list-style: none;
    }

    .lang-switcher-mobile li + li {
        margin-top: 10px;
    }

    .lang-switcher-mobile .lang-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .lang-switcher-mobile .flag {
        width: 18px;
        min-width: 18px;
        display: inline-flex;
    }

    .lang-switcher-mobile .lang-text-mobile {
        font-size: 14px;
        line-height: 1.2;
        color: #46474a;
    }
}
@media (max-width: 767px) {
    .form-variant-1 {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .form-variant-1 .form-wrap.width-2 {
        width: calc(50% - 5px) !important;
    }

    .form-variant-1 .form-wrap.width-2 .btn {
        width: 100%;
        height: 100%;
        min-height: 48px;
    }
}

@media (max-width: 767px) {
    .search-form-mobile {
        position: relative;
    }

    .search-form-mobile__inner {
        position: relative;
        max-height: 100px;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .search-form-mobile__inner::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60px;
        background: linear-gradient(to bottom, rgba(247,247,247,0), rgba(247,247,247,1));
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .search-form-mobile.is-open .search-form-mobile__inner {
        max-height: 2000px;
    }

    .search-form-mobile.is-open .search-form-mobile__inner::after {
        opacity: 0;
    }

    .search-form-mobile__toggle {
        display: block;
        width: calc(100% - 30px);
        margin: 12px 15px 16px;
        padding: 12px 16px;
        border: 0;
        border-radius: 4px;
        background: #352B6A;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .search-form-mobile.is-open .search-form-mobile__toggle {
        display: none;
    }
}

@media (min-width: 768px) {
    .search-form-mobile__toggle {
        display: none !important;
    }

    .search-form-mobile__inner {
        max-height: none !important;
        overflow: visible !important;
    }

    .search-form-mobile__inner::after {
        display: none !important;
    }
}

.breadcrumbs-white .breadcrumb{
    color: var(--bs-heading-color) !important;
}

.breadcrumbs-white .breadcrumb > li a {
    color: var(--bs-heading-color) !important;
}

.breadcrumbs-white .breadcrumb > .active{
    color: #aaaaaa;
}

.thumbnail-3 .caption p.text-abbey{
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    margin-bottom: 10px;
}

.fab::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}
.social-icons li{
    font-size: 20px;
}
.social-icons a:hover{
    text-decoration: none !important;
}

.card-item__image {
    position: relative;
    display: block;
    overflow: hidden;
}

.card-item__image img {
    display: block;
    width: 100%;
    height: auto;
}

.prop-badge {
    position: absolute;
    top: 12px;
    z-index: 5;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
}

.prop-badge--left {
    left: 12px;
}

.prop-badge--right {
    right: 12px;
}

.prop-badge--sold {
    background: #1f4f8f;
}

.prop-badge--deposit {
    background: #1f4f8f;
}

.prop-badge--recommended {
    background: #d83a2e;
}
.prop-badge--promotion {
    background: #d83a2e;
}

.prop-badge--reserved{
    background: #1f4f8f;
}

@media (max-width: 575px) {
    .search-form-mobile .form-variant-1 {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-form-mobile .form-wrap.width-2 {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .search-form-mobile .form-wrap.width-2 .btn {
        min-width: 0;
        width: 100%;
        height: 60px;
    }
}

@media (max-width: 991.98px) {
    .property-price-mobile {
        text-align: center;
    }

    .property-price-mobile h2,
    .property-price-mobile h3,
    .property-price-mobile h5 {
        text-align: center;
    }

    .property-price-mobile .icon.fa-map-marker {
        display: block;
        margin: 0 auto 8px;
    }

    .property-price-mobile hr {
        width: 70px;
    }
}
