.map-container {
    display: flex;
    justify-self: flex-end;
    max-width: calc(100% - 400px);
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 144px);
    margin-bottom: -12px;
    position: relative;
}

#sidebar {
    max-width: 340px;
    width: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 10px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    border-left: 1px solid #E1E7F3;
}

.map-sidebar {
    height: 100%;
    overflow-y: auto;
}

#map {
    flex: 1;
    /*height: 90vh;*/
}

.city-item {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.map-infobox {
    position: absolute;
    top: 40px;
    right: 355px;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    z-index: 7;
    padding: 0 0 24px 0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
    border-width: 0 0 1px 1px;
    border-style: solid;
    border-color: #E1E7F3;
    border-radius: 8px;
}

.map-infobox__close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.map-infobox__close:hover {
    color: #000;
}

.map-infobox__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-infobox__title {
    padding: 24px 24px 0 24px;
    font-size: 16px;
    font-weight: 700;
    color: #0C3058;
}

.map-infobox__subtitle {
    padding: 0 24px 0 24px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.map-infobox__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.map-infobox__details li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 0 24px 0 24px;
    font-size: 16px;
    color: #0C3058;
    word-break: break-word;
}

.map-infobox__details li:hover {
    background: #F2F7FE;
}

.map-infobox__details li span {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #8596AF;
}

.map-infobox__actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.map-infobox__actions button {
    padding: 6px 12px;
    background: #f2f6fb;
    border: 1px solid #cdd6e2;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    color: #0C3058;
    transition: background 0.2s;
}

.map-infobox__actions button:hover {
    background: #e4edf7;
}

.map-infobox__actions-inner {
    position: relative;
}

.map-infobox__overlay {
    position: absolute;
    top: auto;
    bottom: -24px;
    right: 355px;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    z-index: 1000;
    padding: 24px 0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

.map-infobox__back {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    align-self: flex-start;
    color: #0C3058;
    position: absolute;
    top: 10px;
    left: 10px;
}

.map-infobox__back svg {
    width: 24px;
    height: 24px;
}

.map-infobox__overlay-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-infobox__overlay-content span {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    text-align: right;
    color: #8596AF;
}

.map-sidebar {
    padding: 10px 0 0;
}

.map-sidebar__item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 24px;
    background: #FFFFFF;
    border-width: 0 0 2px 0;
    border-style: solid;
    border-color: #E1E7F3;
}

.map-sidebar__item.active {
    background: #F2F7FE;
}

.map-sidebar__item:hover {
    background: #F2F7FE;
}

.map-sidebar__item-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.map-sidebar__item-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.map-sidebar__item-heading h4 {
    font-size: 16px;
    line-height: 150%;
    font-weight: 700;
}

.map-sidebar__item-heading p {
    font-size: 16px;
    line-height: 150%;
    font-weight: 500;
}

.map-sidebar__item-address {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #0C3058;
}

.map-sidebar__item-address span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #8596AF;
}

.map-sidebar__item-phone {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #0C3058;
}

.map-sidebar__item-phone span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #8596AF;
}

.map-sidebar__item-arrows {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    min-width: 101px;
}

.map-sidebar__item-arrows > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-sidebar__item-arrows > div > svg {
    width: 24px;
    height: 24px;
}

.map-search {
    padding: 48px 24px 24px;
    border-width: 0 0 2px 0;
    border-style: solid;
    border-color: #E1E7F3;
    position: relative;
}

.map-search svg {
    position: absolute;
    top: 50%;
    left: 40px;
}

.map-search input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px 8px 45px;
    max-width: 292px;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    mix-blend-mode: normal;
    border: 1px solid #BBBBCB;
    border-radius: 30px;
    font-size: 18px;
    line-height: 24px;
}


/*showSubInfo*/
.map-infobox__actions-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0 24px;
}

.map-infobox__actions-item:hover {
    background: #F2F7FE;
}

.map-infobox__actions-item-content {
    display: flex;
    flex-direction: column;
}

.map-infobox__actions-item-content span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #8596AF;
}

.map-infobox__details-content {
    display: flex;
    flex-direction: column;
}

.map-infobox__details-content span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #8596AF;
}

.map-infobox__details-btn {
    display: flex;
    flex-direction: row;
    gap: 8px;
    position: relative;
    padding: 0 24px 0 24px;
}

.map-infobox__details-btn:hover {
    background: #F2F7FE;
}

.map-infobox__details-btn.activebtn {
    background: #F2F7FE;
}

.map-infobox__details-arrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}

.map-sidebar__item-arrows-info {
    cursor: pointer;
}

.map-sidebar__item-arrows-map {
    cursor: pointer;
}

.map-sidebar__item-heading {
    cursor: pointer;
}

.map-sidebar-mobile .map-infobox {
    display: none;
}

.map-mobile-close {
    display: none;
}

#sidebar h1 {
    display: none;
}

.custom-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

.custom-marker .marker-icon {
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 24 24" fill="%230068f5" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C8.1 2 5 5.1 5 9c0 5.3 7 13 7 13s7-7.7 7-13c0-3.9-3.1-7-7-7zm0 9.5c-1.4 0-2.5-1.1-2.5-2.5S10.6 6.5 12 6.5s2.5 1.1 2.5 2.5S13.4 11.5 12 11.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.custom-marker .marker-label {
    font-size: 14px;
    font-weight: bold;
    color: #0C3058;
    margin-top: 4px;
    direction: rtl;
}

.map-infobox__details-btn .map-infobox__details-arrow svg {
    transform: rotate(0);
    transition: all 0.3s;
}
.map-infobox__details-btn.activebtn .map-infobox__details-arrow svg {
    transform: rotate(180deg);
    transition: all 0.3s;
}

.map-infobox__actions.activebtn > div:nth-child(2) > div.map-infobox__details-arrow.map-infobox__details-certBtn > svg {
    transform: rotate(180deg);
    transition: all 0.3s;
}

.map-sidebar__item .map-sidebar__item-arrows-info svg {
    transform: rotate(0);
    transition: all 0.3s;
}

.map-sidebar__item.active .map-sidebar__item-arrows-info svg {
    transform: rotate(180deg);
    transition: all 0.3s;
}

@media (max-width: 1480px) {
    #sidebar {
        max-width: 222px;
    }
    .map-infobox {
        width: 222px;
        right: 227px;
    }
    .map-infobox__overlay {
        width: max-content;
        min-width: 181px;
        right: 230px;
    }
    .map-sidebar__item-arrows .map-sidebar__item-arrows-map {
        display: none;
    }
}

@media (max-width: 1280px) {
    .map-container {
        max-width: calc(100% - 24vw);
    }
    .map-container {
        max-width: 100%;
    }
    .map-search {
        background: #fff;
    }
    #map {
        width: 100%;
        height: 100%;
        position: absolute!important;
        top: 0;
        left: 0;
        z-index: 0;
    }
    #sidebar {
        max-width: 460px;
        height: 100%;
        padding: 0;
        background: transparent;
        z-index: 1;
        overflow: visible;
        box-shadow: none;
        border: none;
    }
    .map-sidebar-mobile {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        height: 100%;
        min-height: 600px;
        position: relative;
    }
    .map-infobox {
        top: 0;
        right: auto;
    }
    .map-sidebar-mobile .map-infobox {
        top: 16px;
        right: auto;
        left: 0;
    }
    .cardItemsInner {
        height: 100%;
        padding-bottom: 115px;
        background: #fff;
        overflow-y: scroll;
    }
    .map-sidebar__item {
        max-width: 222px;
        padding: 16px;
    }
    .map-infobox__actions.activebtn > div:nth-child(2) > div.map-infobox__details-arrow.map-infobox__details-certBtn > svg {
        transform: rotate(180deg);
        transition: all 0.3s;
    }
    .map-search {
        padding: 62px 32px 24px;
        border-width: 0 0 2px 0;
        border-style: solid;
        border-color: #E1E7F3;
        position: relative;
    }
    .map-search input {
        max-width: 100%;
    }
    .map-search svg {
        top: auto;
        left: 48px;
        bottom: 35px;
    }
    .map-sidebar__item-heading h4 {
        font-size: 14px;
        line-height: 145%;
        font-weight: 700;
    }
    .map-sidebar__item-heading p {
        font-size: 14px;
        line-height: 145%;
        font-weight: 700;
    }
    .map-infobox__title {
        font-size: 14px;
        line-height: 145%;
    }
    .map-infobox__subtitle {
        margin-bottom: 26px;
        font-size: 14px;
        line-height: 145%;
    }
    .map-infobox__details-content a {
        font-size: 14px;
        line-height: 145%;
    }
    .map-infobox__actions-item-content a {
        font-size: 14px;
        line-height: 145%;
    }
    .map-sidebar__item-address {
        gap: 4px;
    }
    .map-infobox__details li {
        align-items: center;
    }
    .map-infobox__overlay {
        padding: 16px 0;
    }
    .map-sidebar__item-arrows {
        min-width: auto;
    }
}


@media (max-width: 768px) {
    .map-container {
        min-height: 100%;
        margin-top: 40px;
    }
    #map {
        display: none;
    }
    #map.activeMap {
        display: flex;
        z-index: 2;
    }
    #sidebar {
        max-width: 100%;
        width: 100%;
    }
    #sidebar h1 {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 24px 0 16px;
        background: #fff;
        text-align: center;
    }
    .map-search {
        padding: 0 0 24px;
    }
    .map-search input {
        max-width: 90%;
        margin: 0 auto;
    }
    .map-sidebar__item {
        max-width: 100%;
        width: 100%;
        padding: 15px 16px;
    }
    .map-search svg {
        top: auto;
        left: 40px;
        bottom: 35px;
    }
    .map-search svg path {
        fill: #0068F5;
    }
    .cardItemsInner {
        max-width: 100%;
        width: 100%;
        height: 100%;
        padding-bottom: 20px;
    }
    .map-sidebar-mobile .map-infobox {
        max-width: 95%;
        width: 100%;
        top: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 8px;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.12);
    }
    .map-sidebar__item-arrows .map-sidebar__item-arrows-map {
        display: flex;
        gap: 4px;
        font-size: 14px;
        color: #0068F5;
    }
    .map-infobox {
        right: 10px;
        left: 10px;
        width: auto;
    }
    .map-infobox__actions {
        gap: 0;
    }
    .map-infobox__overlay {
        display: none;
        max-width: 100%;
        width: 100%;
        margin: 0 0 10px;
        padding: 10px 0;
        background: #F2F7FE;
        top: 0;
        right: 0;
        transform: none;
        position: relative;
        box-shadow: none;
    }
    .map-mobile-close.activeMap {
        display: flex;
        position: absolute;
        top: 50px;
        right: 16px;
        z-index: 25;
    }
    .map-infobox__back {
        display: none;
    }
    .map-infobox__details-arrow {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%) rotate(-90deg);
    }
    #sidebar.map-sidebar {
        overflow: scroll;
    }
    .map-search input {
        font-size: 16px;
    }
    .map-sidebar__item-arrows > div > svg {
        width: 16px;
        height: 16px;
    }
    .map-sidebar__item-arrows .map-sidebar__item-arrows-info svg {
        width: 32px;
        height: 32px;
    }
    .map-sidebar__item-address {
        margin-bottom: 4px;
    }
}