#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: 100px;
    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%;
    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;
}

@media (min-width: 992px) {
    .sidebar-filter {
        flex: 1;
        position: sticky;
        top: 90px;
        height: fit-content;
    }
}
@media (max-width: 991.98px) {
    .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) {

    .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 (max-width: 550px) {
    .alert-my-center {
        flex-direction: column;
    }
    .alert-my-center button {
        margin-top: 15px;
    }
}
