.class-body-front {
    background-color: #d7e0e973 !important;
}
.bg-service-card {
    background-color: #fff !important;
}

#search-type-input, .select2-search__field {
    font-size: 16px !important;
}
#home-icon-search, #home-icon-search-brand {
    width: 55px;
}
#home-icon-search i, .home-icon-search-brand i {
    left: 27px;
}
#home-search-button {
    position: absolute;
    right: 4px;
    top: 4px;
    z-index: 99;
}
.badge-brand {
    margin-right: 10px;
    margin-bottom: 10px;
    opacity: 0.6;
    cursor:pointer;
    transition: .3s;
    background-color: rgba(0, 0, 0, .15);
    color: var(--bs-text-muted) !important;
}
.badge-brand:hover {
    opacity: 1;
}
.first-img-box {
    width: 50%;
}
.first-img-box img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}
.swiper-stories .swiper-wrapper {
    align-items: center;
}
.swiper-wrapper .swiper-slide {
    height: 333px;
}
.box-imgs-hero-address {
    max-height: 333px;
    overflow: hidden;
}
.imgs-hero-address-item {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.slide-all-photos {
    height: 200px !important;
}
#map-address {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}
#kt_modal_map .modal-body, #kt_modal_map .row, #kt_modal_map #map-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
#map {
    width: 100%;
    height: 100%;
}
.header-card-center {
    display: flex;
    align-items: center;
}
@media (max-width: 350px) {
    .header-card-center {
        justify-content: center;
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
.list-center-logo {
    width: 100%;
    max-width: 120px;
}
.dotted-item {
    border-bottom: 1px dotted #aaa;
    text-decoration: none;
}
.center-show-map, .center-all-items {
    cursor: pointer;
    transition: .3s;
}
.center-show-map:hover, .center-all-items:hover {
    color: #1b84ff;
}
.wrapper-hero {
    background-color: #f7f7f7;
}
.first-img-box-center img {
    max-height: 150px;
    border-radius: 6px;
}
#map-center {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}
.center-logo {
    border-radius: 6px;
}
#search-results {
    position: relative;
}
#search-results li a {
    text-align: left;
}
#search-results ul, #search-brand-results ul {
    list-style: none;
    padding: 15px;
    position: absolute;
    width: 100%;
    background: #fff;
    z-index: 999;
    border-radius: 10px;
    max-height: 175px;
    overflow-y: scroll;
    border: 2px solid #dae1e8;
}
#search-results ul li, #search-brand-results ul li {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-size: 14px;
}
.list-phone-box {
    text-align: right;
    white-space: nowrap;
}
.breadcrumb-wrapper {
    justify-content: space-between;
}
.centers-container-wrapper {
    position: relative;
    margin: 0;
}
.map-badge, .company-card-content {
    display: flex;
    gap: 20px;
}
#map-badges-col {
    padding: 20px 10px;
    overflow-y: scroll;
    height: 90vh;
}
.company-card {
    padding: 15px;
    border: 1px solid #dae1e8;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: .3s;
}

.company-card:hover {
    border-color: #1b84ff;
}
.company-card-content img {
    border-radius: 6px;
}
.filter-checkbox {
    cursor: pointer;
    transition: .3s;
}
.filter-checkbox:hover label {
    color: #1b84ff;
}
/* Анимация загрузки */
.loading .card {
    filter: grayscale(1);
    position: relative;
    overflow: hidden;
    opacity: .8;
}

.loading-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

#drawer-content .drawer-hide {
    display: none;
}
.sidebar-post, .post-content-box, .category-posts-box {
    background-color: #fff;
    border-radius: 10px;
}
.post-content img {
    max-width: 100%;
}
.mobile-btns {
    display: flex;
}
.home-blog-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}
.address-loader {
    height: 100vh;
    position: relative;
}
.center-absolute {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.swiper-stories .swiper-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    max-height: 333px;
}
/* test */
.address-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem; /* можно адаптировать под дизайн */
    margin-bottom: 1rem;
}

.address-badge {
    width: 110px;
    flex: 0 0 auto; /* не растягивается */
}

.address-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
    display: flex;
    align-items: center;
    width: 50%;
}

.address-actions {
    width: 155px;
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* test 2 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.photo-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem; /* соответствие card-rounded */
}

.photo-thumb {
    width: 100%;
    height: 100%;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-thumb {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}
.alert-my-center {
    flex-direction: column;
}
.sidebar-mini-card {
    flex: 1;
    position: sticky;
    top: 90px;
    height: fit-content;
}
/* photos card */
/* 1-рядная лента со скроллом */
.photo-scroll-wrapper {
    position: relative;
    border-radius: 6px 6px;
    overflow: hidden;
}
.photo-grid-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;          /* Firefox */
}
.photo-grid-scroll::-webkit-scrollbar { display: none; } /* Chrome */
.photo-grid-scroll.dragging {
    user-select: none;
}
.photo-item {
    flex: 0 0 auto;
    width: 160px;
    position: relative;
}
.photo-thumb {
    padding-top: 66%;               /* соотношение сторон 3:2 */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    background: rgba(0,0,0,.4);
    border-radius: 8px;
}
.photo-item:hover .photo-overlay { opacity: 1; }

/* Кнопка «+N» */
.all-photos-btn .photo-thumb {
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.all-photos-count {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}
.all-types-btn {
    cursor: pointer;
}
/* Вертикальная плашка «еще фото» */
.more-photos-indicator {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 100%);
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    pointer-events: none;
    transition: opacity .3s;
    border-radius: 6px 6px;
}
/* подпись внутри последней карточки */
.end-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,.45);
    border-radius: 8px;
    opacity: 0;                   /* по умолчанию скрыто */
    transition: opacity .25s;
    pointer-events: none;
}

/* будет активироваться JS-классом .at-end */
.photo-scroll-wrapper.at-end .end-indicator   { opacity: 1; }
.photo-scroll-wrapper.at-end .more-photos-indicator { opacity: 0; pointer-events:none; }
.end-scroll-label {
    padding: 2px 6px;
    color: #fff;
    font-size: .85rem;
    border-radius: 4px;
    pointer-events: none;
}

/* photos card end */
#description-box {
    max-height: 140px;
    overflow: hidden;
    position: relative;
}

#description-box.expanded {
    max-height: 2000px; /* Достаточно большое значение */
}

.fade-overlay {
    content: "";
    position: absolute;
    bottom: 40px; /* высота + отступ кнопки */
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgb(255 255 255 / 47%), rgba(255, 255, 255, 1));
    pointer-events: none;
}

#description-box.expanded + #description-overlay {
    opacity: 0;
}
.mini-card-menu-item {
    border-top: 1px dashed var(--bs-border-dashed-color);
}
.center-page .card .card-body {
    padding: 1rem 1.25rem;
}
.center-page .card {
    border: none;
    box-shadow: none;
}
/* клон фиксируется под шапкой */
.sidebar-mini-card-menu--clone {
    position: fixed;
    top: var(--landing-header-h, 0px);
    left: 0;
    right: 0;
    z-index: 22;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    display: none;
}
.brand-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.brand-logo-box img {
    max-width: 150px;
}
/* шторка */
.route-drawer {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 50;
}
.route-drawer.shown { transform: translateX(0); }

/* чтобы позиционирование работало */
.address-row { position: relative; overflow: hidden; }


@media (min-width: 992px) {
    .sidebar-filter {
        flex: 1;
        position: sticky;
        top: 90px;
        height: fit-content;
    }
    .close-mobile-menu {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .fade-overlay {
        bottom: 35px;
    }
    .sidebar-filter {
        display: none;
    }
    #get-mobile-filter, #get-mobile-map {
        display: flex !important;
    }
}
.mobile-btns button {
    align-items: center;
    justify-content: center;
}
@media (max-width: 992px) {
    .address-actions,
    .address-actions div,
    .address-actions button {
        width: 100%;
    }
    .mobile-btns button {
        margin-right: 0 !important;
    }
    .breadcrumb-wrapper {
        padding: 0 15px;
    }
    .mobile-btns {
        gap: 15px;
    }
    .address-action-btns {
        display: flex;
        margin: 0 !important;
        width: 100%;
        column-gap: 10px;
    }
    .address-action-btns div,
    .address-action-btns button {
        width: 48%;
    }
}
@media (max-width: 768px) {
    .page-status-box-left {
        order: 2;
    }
    .page-status-box-right {
        order: 1;
    }
    .list-phone-box {
        text-align: center;
    }
    .header-card-name {
        margin-bottom: 20px;
    }
    .header-card-name-default {
        text-align: center;
    }
    .map-badges-col-wrapper {
        height: 100vh;
        display: none;
    }
    .breadcrumb-wrapper {
        flex-direction: column;
    }
    .mobile-btns button {
        gap: 15px;
        width: 50%;
    }
    .mobile-btns {
        margin-top: 20px;
    }
}
@media (min-width: 568px) {
  .sidebar-mini-card-menu--clone { display: none !important; }
}
@media (max-width: 568px) {
    .first-img-box-center img {
        display: none;
    }
    .center-main-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .center-main-info h1,
    .center-slogan {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: left;
    }
    .sidebar-mini-card-menu {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }

    .sidebar-mini-card-menu::-webkit-scrollbar {
        display: none;
    }

    .mini-card-menu-item {
        flex: 0 0 auto;
        min-width: max-content;
    }
    .mini-card-menu-item {
        background: #1b84ff30;
        border-radius: 10px;
    }
    .address-row {
        position: relative;
        min-height: 60px;
    }
    .address-badge {
        order: 2;
        position: relative;
        top: -3px;
    }
    .address-text {
        width: 100%;
        order: 1;
        max-height: 15px;
        align-items: start;
    }
    .address-actions {
        position: absolute;
        right: 0px;
        top: 27px;
    }
    .address-actions, .address-actions div, .address-actions button {
        width: 155px;
        overflow: hidden;
    }
    .route-drawer {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .route-drawer-inner {
        max-height: 40px;
        width: 100%;
    }
    #map {
        height: 300px !important;
        border-radius: 10px;
        overflow: hidden;
    }
    .main-search-box {
        min-height: 0px !important;
    }
    .main-search-box-inner {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .main-cats-box {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .main-help-box {
        padding-top: 1px !important;
        padding-bottom: 2rem !important;
    }
}
