/* BusMarket Yandex Map */

.busmarket-yandex-map {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.busmarket-yandex-map__viewport {
    position: relative !important;
    width: 100% !important;
    height: var(--busmarket-map-height) !important;
    overflow: hidden !important;
}

.busmarket-yandex-map__embed {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.busmarket-yandex-map__embed > script {
    display: block !important;
}

.busmarket-yandex-map__activation {
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    font: inherit !important;
    color: inherit !important;
}

.busmarket-yandex-map__activation span {
    position: absolute !important;
    left: 50% !important;
    bottom: 24px !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border-radius: 4px !important;
    background: rgba(20, 20, 20, 0.78) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.15) !important;
    pointer-events: none !important;
    transition: opacity .25s ease !important;
}

.busmarket-yandex-map.is-active .busmarket-yandex-map__activation {
    display: none !important;
}

/* Address card */
.busmarket-yandex-map__card {
    position: absolute !important;
    z-index: 30 !important;
    top: 30px !important;
    left: 50px !important;
    width: 245px !important;
    max-width: 245px !important;
    padding: 26px 28px 28px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.97) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.12) !important;
    font-family: Arial, sans-serif !important;
    color: #222 !important;
}

.busmarket-yandex-map__title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.busmarket-yandex-map__address {
    margin: 0 0 20px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #444 !important;
}

.busmarket-yandex-map__schedule {
    display: flex !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #444 !important;
}

.busmarket-yandex-map__clock {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 17px !important;
    height: 17px !important;
    margin-top: 2px !important;
    border: 2px solid #333 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}

.busmarket-yandex-map__clock::before {
    content: "" !important;
    position: absolute !important;
    width: 1.5px !important;
    height: 5px !important;
    left: 6px !important;
    top: 3px !important;
    background: #333 !important;
}

.busmarket-yandex-map__clock::after {
    content: "" !important;
    position: absolute !important;
    width: 5px !important;
    height: 1.5px !important;
    left: 6px !important;
    top: 8px !important;
    background: #333 !important;
    transform: rotate(30deg) !important;
    transform-origin: left center !important;
}

.busmarket-yandex-map__button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 11px 14px !important;
    box-sizing: border-box !important;
    background: #ed1c24 !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all .25s ease !important;
}

.busmarket-yandex-map__button:hover {
    background: #c9141b !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(237,28,36,.25) !important;
}

@media (max-width: 767px) {
    .busmarket-yandex-map {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .busmarket-yandex-map__viewport {
        height: var(--busmarket-map-mobile-height) !important;
    }

    .busmarket-yandex-map__card {
        top: 20px !important;
        left: 15px !important;
        width: calc(100vw - 30px) !important;
        max-width: none !important;
        padding: 22px !important;
    }

    .busmarket-yandex-map__activation span {
        bottom: 16px !important;
        max-width: calc(100% - 30px) !important;
        white-space: normal !important;
        text-align: center !important;
    }
}
