body {
    padding: 0px;
    margin: 0px;
}

.content-map {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.app-map {
    width: 100%;
    height: 100% !important;
    display: inline-block;
    vertical-align: top;
}

.header-map {
}

.header-map._active {
    position: fixed;
    z-index: 10;
    top: 0px;
    left: 0px;
}
.header-map-block {
}
.header-map-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}
.header-map-logo > a > div {
    width: 40px;
    height: 40px;
}
.header-map._active .header-map-block {
    padding: 20px;
}

.header-map-filter {
    display: none;
    padding-left: 20px;
}

.header-map._active .header-map-filter {
    display: block;
}

.header-map._active .header-map-logo {
    display: block;
    width: auto;
    height: auto;
}

.header-map-filter .main-filter-content {
    padding: 0px !important;
}

.load-item-map {
    position: fixed;
    top: 0px;
    right: 0px;
    overflow: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 360px;
    z-index: 1000;
    flex-wrap: wrap;
    justify-content: flex-start;
    animation: fade-in-map 0.3s ease-in-out forwards;
    background-color: transparent;
    pointer-events: none;
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.2);
    border-radius: 20px 0px 0px 20px;
}

.clinic-map-content {
    display: flex;
    overflow: hidden;
    width: 360px;
    height: 100%;
    flex-direction: column;
    /* animation: fade-in-sdsDrawer__p138vcdl 0.3s ease-in-out forwards; */
    border-radius: 20px 0px 0px 20px;
    overscroll-behavior: contain;
    pointer-events: auto;
}

.clinic-map-content > ._content {
    display: flex;
    overflow: auto;
    height: 100%;
    flex-direction: column;
    background: #fff;
}

.load-item-map.map {
    animation: fade-out-map 0.3s ease-in-out forwards;
}

@keyframes fade-in-map {
    0% {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out-map {
    0% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.clinic-map-img ._picture {
    position: relative;
    display: flex;
    height: 200px;
    box-sizing: border-box;
    flex-direction: column;
    flex-shrink: 0;
    background-image: var(--l1sbmleq-0);
    background-position: 50%;
    background-size: cover;
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: 20px;
    padding-bottom: 20px;
}

.clinic-map-top {
    display: flex;
    flex-direction: column;
    z-index: 10;
    gap: 20px;
}

.clinic-close-btn {
    cursor: pointer;
    position: absolute;
    top: 6px;
    left: 13px;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    background: #fff;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.clinic-close-btn::after {
    content: "×";
    display: block;
}

.clinic-avatar-img {
    width: 72px;
    height: 72px;
    box-sizing: border-box;
    padding: 4px;
    border-radius: 14px;
    background-color: #fff;
    outline: 1px solid #e7ebef;
}

.clinic-avatar-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.clinic-bl-pa {
    padding: 0 16px 0px 16px;
}

.clinic-map-name {
    z-index: 10;
    background-color: inherit;
    display: flex;
    flex-direction: column;
    color: #171717;
    gap: 16px;
}

.clinic-map-name .h1 {
    font-size: 20px;
    letter-spacing: 0px;
    padding-right: 24px;
}

.clinic-map-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.clinic-map-rating ._reviews {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
}

.clinic-map-address .clinic-street {
    font-size: 15px;
}

.clinic-map-address .metro-list {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.clinic-map-address .metro-item {
    font-size: 13px;
}

.clinic-map-schedule .h2 {
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 10px;
}

.clinic-map-schedule .clinic-schedule ._days {
    font-weight: 400;
    font-size: 14px;
}

.clinic-map-address .clinic-metro {
    padding-bottom: 0px !important;
}

.clinic-map-note {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.clinic-map-schedule .schedule-card {
    padding-bottom: 0px !important;
}

.clinic-map-note .phone-clinic-card {
    padding-bottom: 0px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clinic-map-note .phone-number {
    background: none;
    padding: 0px;
    border-radius: 0px;
    border: none;
}

.clinic-map-note .phone-view .phone-number {
    font-size: 15px;
}

.clinic-map-note .phone-view .phone-number a {
    color: var(--text-dark);
}

.clinic-map-note .phone-view .phone-number a:hover {
    background: none;
}

.clinic-map-img ._picture ._cx-img {
    position: absolute;
    left: 12px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 5px;
    background: #00000059;
    border-radius: 4px;
    padding: 4px 7px;
}

.clinic-map-img ._picture ._cx-img ._photos {
}

.clinic-map-img ._picture ._cx-img ._photos img {
}

.clinic-map-img ._picture ._cx-img ._cx {
    font-weight: bold;
    font-size: 14px;
}

.clinic-map-img ._picture ._cx-img ._photos div {
    width: 16px;
    height: 16px;
    background-color: currentcolor;
}

.load-element {
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-bg-light);
    border-left-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Карточка клиники на карте */
.load-item-map { width: min(420px, 100vw); overflow: hidden; flex-wrap: nowrap; }
.clinic-map-content { width: 100%; }
.clinic-map-content > ._content { min-height: 0; overscroll-behavior: contain; }
.map-panel { color: #253c38; }
.map-panel__close { position: sticky; z-index: 20; top: 12px; align-self: flex-end; flex: none; width: 38px; height: 38px; margin: 12px 12px -50px 0; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 14px #17343030; color: #36534d; font-size: 27px; line-height: 1; cursor: pointer; }
.map-panel__close:hover { background: #eef8f4; }
.map-panel__close:focus-visible, .map-panel a:focus-visible, .map-panel button:focus-visible { outline: 3px solid #168c78; outline-offset: 2px; }
.map-panel__cover { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 155px; overflow: hidden; padding: 18px; background: linear-gradient(130deg, #d4eee4, #edf8f4); }
.map-panel__cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-panel__cover-label { position: relative; padding: 6px 10px; border-radius: 8px; background: #ffffffed; color: #247868; font-size: 12px; font-weight: 700; }
.map-panel__logo { position: relative; width: 70px; height: 70px; padding: 5px; border-radius: 13px; background: white; object-fit: contain; box-shadow: 0 3px 12px #1734301f; }
.map-panel__body { padding: 20px 20px 26px; }
.map-panel__intro h2 { margin: 0 0 10px; color: #19332d; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.map-panel__intro h2 a, .map-panel__doctor a { color: inherit; text-decoration: none; }
.map-panel__intro h2 a:hover, .map-panel__doctor a:hover { color: #008b76; }
.map-panel__rating a { color: #688179; text-decoration: none; }
.map-panel__rating a:hover { color: #168673; }
.map-panel__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #688179; font-size: 13px; }
.map-panel__address { margin: 16px 0 7px; color: #405e57; line-height: 1.5; }
.map-panel__metro { margin: 8px 0; }
.map-panel__primary { display: block; width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 12px; background: #268d79; color: #fff; font-weight: 700; cursor: pointer; }
.map-panel__primary:hover { background: #167764; }
.map-panel__phone { margin-top: 12px; text-align: center; }
.map-panel__section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e6efeb; }
.map-panel__section h3 { margin: 0 0 14px; color: #19332d; font-size: 17px; line-height: 1.3; }
.map-panel__section-heading { display: flex; align-items: baseline; justify-content: space-between; color: #799089; font-size: 13px; }
.map-panel__schedule { display: grid; gap: 7px; padding: 14px; border-radius: 12px; background: #f3f8f5; font-size: 13px; }
.map-panel__schedule div { display: flex; justify-content: space-between; gap: 12px; }
.map-panel__description { color: #536e66; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.map-panel__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.map-panel__tags span { padding: 5px 9px; border-radius: 8px; background: #eff8f4; color: #337466; font-size: 12px; }
.map-panel__doctors { display: grid; gap: 10px; }
.map-panel__doctor { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #e6efeb; border-radius: 12px; }
.map-panel__doctor img { flex: none; width: 56px; height: 56px; border-radius: 10px; background: #f3f8f5; object-fit: cover; }
.map-panel__doctor strong { display: block; color: #25443b; font-size: 14px; line-height: 1.4; }
.map-panel__doctor p { margin: 4px 0 0; color: #71867e; font-size: 12px; line-height: 1.4; }
.map-panel__services > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef3f0; font-size: 13px; line-height: 1.4; }
.map-panel__services > div strong { flex: none; white-space: nowrap; color: #245549; }
.map-panel__more { display: inline-block; margin-top: 14px; color: #168673; font-size: 13px; font-weight: 700; text-decoration: none; }
.map-panel__detail { display: block; margin-top: 24px; padding: 12px; border: 1px solid #b6d9ce; border-radius: 12px; color: #177c68; text-align: center; font-weight: 700; text-decoration: none; }
.map-panel__detail:hover { background: #eff8f4; }
.map-panel__error { margin: 20px; padding: 20px; border-radius: 14px; background: #fff; color: #405e57; pointer-events: auto; }
@media (max-width: 600px) {
 .load-item-map { top: auto; bottom: 0; width: 100%; height: min(82vh, 720px); border-radius: 20px 20px 0 0; }
 .clinic-map-content { border-radius: 20px 20px 0 0; }
 .map-panel__cover { min-height: 125px; }
 .map-panel__body { padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
}

.map-panel__logo[hidden], .map-panel__cover-image[hidden], .map-panel__doctor img[hidden] { display: none !important; }
