.jm-main {
    position: relative;
    padding: 0;
    min-height: calc(100vh - var(--yh-header-h));
}

.jm-map {
    position: absolute;
    inset: 0;
    background: #0b0b0b;
}

.jm-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.72);
    color: #f2c200;
    font-size: 13px;
}

.yh-flag {
    background: #f2c200;
    color: #111;
    font-weight: 800;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 6px 6px 6px 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    white-space: nowrap;
}

.yh-flag::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    border: 7px solid transparent;
    border-left-color: #f2c200;
    border-top: 0;
}

.yh-you {
    width: 18px;
    height: 18px;
    background: #f2c200;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(242,194,0,0.2);
}

.jm-card {
    position: absolute;
    top: 18px;
    right: 18px;
    width: min(340px, calc(100% - 36px));
    z-index: 600;
    background: rgba(10,10,10,0.94);
    border: 1px solid rgba(242,194,0,0.35);
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.jm-card[hidden] { display: none; }

.jm-card-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

.jm-card-rate {
    margin: 0 0 8px;
    color: #f2c200;
    font-weight: 800;
}

.jm-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #fff;
}

.jm-card-company {
    margin: 0 0 10px;
    color: #cfcfcf;
}

.jm-card-desc {
    margin: 0 0 16px;
    color: #aaa;
    line-height: 1.45;
}

.jm-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: #f2c200;
    color: #111;
    font-weight: 800;
    text-decoration: none;
    border-radius: 10px;
}

.leaflet-control-zoom a {
    background: #111 !important;
    color: #f2c200 !important;
    border: 1px solid #333 !important;
}

@media (max-width: 900px) {
    .jm-card {
        top: auto;
        bottom: 78px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .jm-status { bottom: 78px; }
}
.yh-side {
    z-index: 700;
}

@media (max-width: 900px) {
    .jm-main {
        position: relative;
        min-height: calc(100vh - var(--yh-header-h) - var(--yh-bottom-h));
    }

    .jm-map {
        top: 0;
        right: 0;
        bottom: var(--yh-bottom-h);
        left: 0;
    }

    .jm-status {
        bottom: calc(var(--yh-bottom-h) + 12px);
    }

    .jm-card {
        bottom: calc(var(--yh-bottom-h) + 12px);
    }
}
@media (max-width: 900px) {
    .yh-main.jm-main {
        margin-left: 0;
        margin-bottom: 0;
        min-height: 0;
        padding: 0;
    }

    .jm-map {
        position: fixed;
        top: var(--yh-header-h);
        left: 0;
        right: 0;
        bottom: var(--yh-bottom-h);
    }

    .jm-status {
        bottom: calc(var(--yh-bottom-h) + 10px);
    }

    .jm-card {
        bottom: calc(var(--yh-bottom-h) + 10px);
    }
}
@media (max-width: 900px) {
    .jm-card {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 76px;
        top: auto;
        z-index: 250;
        width: auto;
        max-height: 46vh;
        overflow: auto;
    }
    .jm-card[hidden] {
        display: none !important;
    }
}