@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');
@import "style-setting.css";

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
    --active-mark-main: #FFFFFF;
    --active-mark-inner: var(--basic);
}

.map-booking,
.map-booking * {
    box-sizing: border-box;
}

.map-booking {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: end;
    max-width: 1440px;
    margin: 0 auto;
}

.accordion-map {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 170px;
    height: 38px;
    padding: 10px 45px 10px 15px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    background: var(--button-background);
    border: none;
    cursor: pointer;
}

.accordion-map:hover,
.accordion-map:focus {
    opacity: 0.8;
}

.accordion-map::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 7px;
    width: 24px;
    height: 24px;
    transition: background 0.5s ease;
    background: rgba(255, 255, 255, 0) url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDI0KSIgZmlsbD0iI0Y5RjVGMSIvPgo8cGF0aCBkPSJNMTEuNDE0MyAxNi44NTA2TDUuNSAxMC44NzIzQzUuMTggMTAuNTUyMyA1LjE4IDEwLjA0MDMgNS41IDkuNjg4MjlMNi4xMDggOS4xNDQyOUM2LjQyOCA4LjgyNDI5IDYuOTQgOC44MjQyOSA3LjI2IDkuMTQ0MjlMMTEuOTkwMyAxMy45Mzg2TDE2LjcyMDYgOS4xNDQyOUMxNy4wNDA2IDguODI0MjkgMTcuNTUyNiA4LjgyNDI5IDE3Ljg3MjYgOS4xNDQyOUwxOC40NDg2IDkuNzIwMjlDMTguNzY4NiAxMC4wNDAzIDE4Ljc2ODYgMTAuNTUyMyAxOC40NDg2IDEwLjkwNDNMMTIuNTY2MyAxNi44ODI2QzEyLjI0NjMgMTcuMTcwNiAxMS43MzQzIDE3LjE3MDYgMTEuNDE0MyAxNi44NTA2WiIgZmlsbD0iIzdGNzE2NSIvPgo8L3N2Zz4K") no-repeat ;
}

.map-booking.map-show .accordion-map::before {
    transform: rotate(180deg)
}

.map__wrapper {
    position: relative;
    order: -1;
    width: 100%;
    margin-bottom: 10px;
}

.map__mobile-text {
    position: absolute;
    z-index: 900;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    line-height: normal;
    text-align: center;
    color: #FFFFFF;
    background: rgba(0,0,0,0.5);
}

@media (max-width: 419px) {
    .map-booking.map-show .map__mobile-text {
        display: flex;
    }
}

.map__wrapper .map {
    position: absolute;
    width: 100%;
    max-width: 1440px;
    transition: height 0.5s ease;
    cursor: grab;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.map__wrapper .map:active {
    cursor: grabbing;
}

.map-booking.map-show .map {
    position: relative;
    height: 500px;
    opacity: 1;
    visibility: visible;
}

.map__wrapper .custom-marker {
    width: auto !important;
    height: auto !important;
    margin-left: -14px !important;
    margin-top: -13px !important;
}

.map__hint {
    display: flex;
    align-items: center;
    padding: 3px 10px 3px 3px;
    color: var(--textBallun);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.map__hint.active {
    background: var(--basic);
}

.map__hint.active-check .map__hint-price {
    color: rgba(0, 0, 0, 0.5);
}

.map__hint-icon {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background: var(--basic);
    border-radius: 50px;
}

.map__hint-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border: 3px solid #FFFFFF;
    border-radius: 50px;
}

.map__hint.active .map__hint-icon {
    background: var(--active-mark-main);
}

.map__hint.active .map__hint-icon::after {
    border-color: var(--active-mark-inner);
}

.map__hint-data {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.hint-block:not(:last-child) {
    margin-bottom: 5px;
}

.map__hint-price {
    color: var(--text);
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.map__hint.active .map__hint-price {
    color: var(--text-active);
}

.map__hint-price .loader {
    width: 15px;
    height: 15px;
    border: 3px solid var(--loader-two);
    border-top: 3px solid var(--loader);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.map__balloon {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--text);
}

.map__balloon-room {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.map__balloon-room:hover .map__balloon-room-name {
    color: var(--title-ballun-color);
    text-decoration-color: var(--title-ballun-color);
    cursor: pointer;
}

.map__balloon-address {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--title-ballun-color);
}

.map__balloon-room-name {
    margin-right: 5px;
    margin-bottom: 10px;
    text-decoration-line: underline;
    text-decoration-color: var(--title-ballun-color);
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.map__balloon-room-status {
    font-weight: 600;
    white-space: nowrap;
    color: var(--title-ballun-color);
}

.map__balloon-room-status.false {
    color: var(--title-ballun-color);
}

.balloon-room-status {
    color: var(--basic);
    font-weight: 600;
    white-space: nowrap;
}

.balloon-hotel {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration-line: underline;
    text-decoration-color: var(--title-ballun-color);
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    color: var(--title-ballun-color);
}

.balloon-address {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
}

.balloon-price {
    font-weight: 700;
    color: var(--price-ballun);
}

.balloon-button {
    display: inline-block;
    padding: 8px 15px;
    margin-top: 10px;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    color: var(--text-marker) !important;
    background-color: var(--basic);
    border-radius: 15px;
}

.balloon-button:hover {
    background-color: var(--basic-lighter);
}

.map__wrapper .marker-cluster {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px !important;
    height: 30px !important;
    padding: 3px;
    margin-left: -20px !important;
    margin-top: -20px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 0 0 5px var(--basic);
}

.marker-cluster.marker-cluster--primary {

}

.map__wrapper .leaflet-attribution-flag {
    display: none !important;
}

.leaflet-popup-content {
    min-width: 240px;
}
