/* ===== layout-fixed version ===== */

.uk-premium-map{
    position: relative;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.uk-premium-map__viewport{
    position: relative;
    width: 100%;
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.uk-premium-map__bg-orb,
.uk-premium-map__grid,
.uk-premium-map__sea-glow,
.uk-premium-map__header,
.uk-premium-map-wrap{
    display: none !important;
}

/* This shell now matches the real map size so it no longer pushes the left title upward */
.uk-premium-map__map-shell{
    position: relative;
    width: min(360px, 100%);
	max-height:200px;
    max-width: 360px;
    margin: 0 auto;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.uk-premium-map__svg{
    display: block;
    width: 80%;
	max-height:400px;
    max-width: none !important;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    filter: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.uk-premium-map__points{
    position: absolute;
    inset: 0;
    z-index: 5;
}

.uk-map-point{
    position: absolute;
    z-index: 6;
    transform: translate(-50%, -50%);
    transition: transform .24s ease, opacity .24s ease, box-shadow .24s ease;
}

.uk-map-point.video_btn.small{
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    line-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(197,138,43,0.18) !important;
    border: 1px solid rgba(197,138,43,0.60) !important;
    box-shadow:
        0 0 0 6px rgba(197,138,43,0.08),
        0 0 18px rgba(197,138,43,0.30),
        inset 0 1px 0 rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.uk-map-point.video_btn.small i{
    color: #f6e2ba !important;
    font-size: 11px;
    position: relative;
    left: 1px;
}

.uk-map-point:hover,
.uk-map-point:focus{
    transform: translate(-50%, -50%) scale(1.08);
}

.uk-map-point:hover.video_btn.small,
.uk-map-point:focus.video_btn.small{
    box-shadow:
        0 0 0 8px rgba(197,138,43,0.12),
        0 0 24px rgba(197,138,43,0.40),
        inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

.uk-map-point--inactive{
    opacity: 0.42;
    cursor: default;
}

.uk-map-point--inactive.video_btn.small{
    background: rgba(197,138,43,0.10) !important;
    border: 1px solid rgba(197,138,43,0.28) !important;
    box-shadow:
        0 0 0 4px rgba(197,138,43,0.04),
        0 0 10px rgba(197,138,43,0.10) !important;
}

.uk-map-point--inactive i{
    opacity: 0.72;
}

/* Tooltip is absolutely positioned relative to the real map shell.
   It may overflow visually to the right, but it no longer changes layout height/width. */
.uk-premium-map__tooltip{
    position: absolute;
    z-index: 20;
    width: 270px;
    max-width: 270px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    transition: opacity .24s ease, transform .24s ease;
    visibility: hidden;
}

.uk-premium-map__tooltip[hidden]{
    display: block !important;
}

.uk-premium-map__tooltip.is-visible{
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.uk-premium-map__tooltip-inner{
    position: relative;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(22,16,9,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197,138,43,0.34);
    box-shadow:
        0 12px 34px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.10),
        inset 0 -1px 0 rgba(197,138,43,0.08);
    overflow: hidden;
    color: #fff;
}

.uk-premium-map__tooltip-inner::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 35%, rgba(255,255,255,0.00));
    pointer-events: none;
}

.uk-premium-map__tooltip-title{
    position: relative;
    z-index: 2;
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff7ea;
}

.uk-premium-map__tooltip-meta{
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,239,214,0.72);
}

.uk-premium-map__tooltip-summary{
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.62;
    color: rgba(255,247,234,0.88);
}

/* SVG triangle arrow */
.uk-premium-map__tooltip-arrow{
    position: absolute;
    left: -12px;
    width: 12px;
    height: 18px;
    z-index: 21;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uk-premium-map__tooltip-arrow svg{
    display: block;
    width: 12px;
    height: 18px;
    overflow: visible;
}

.uk-premium-map__tooltip-arrow path.fill{
    fill: rgba(22,16,9,0.82);
}

.uk-premium-map__tooltip-arrow path.stroke{
    fill: none;
    stroke: rgba(197,138,43,0.34);
    stroke-width: 1.1;
    stroke-linejoin: round;
}

.uk-premium-map,
.uk-premium-map__viewport,
.uk-premium-map__map-shell,
.uk-premium-map__svg{
    outline: none !important;
}

/* Banner-specific safety: keep the map from affecting headline flow */
.story-video{
    overflow: visible;
}

.story-video .display-table-cell{
    vertical-align: middle !important;
}

@media (max-width: 991px){
    .uk-premium-map__map-shell{
        width: min(500px, 100%);
        max-width: 500px;
    }
}

@media (max-width: 767px){
    .uk-premium-map__map-shell{
        width: min(420px, 100%);
        max-width: 420px;
    }

    .uk-map-point.video_btn.small{
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        line-height: 30px;
    }

    .uk-map-point.video_btn.small i{
        font-size: 10px;
    }

    .uk-premium-map__tooltip{
        width: 220px;
        max-width: 220px;
    }

    .uk-premium-map__tooltip-inner{
        padding: 12px 13px;
        border-radius: 14px;
    }

    .uk-premium-map__tooltip-arrow{
        left: -11px;
        width: 11px;
        height: 16px;
    }

    .uk-premium-map__tooltip-arrow svg{
        width: 11px;
        height: 16px;
    }
}

/* 默认：电脑端 显示地图 */
.hero-desktop-map {
    display: block;
}

.hero-mobile-video {
    display: none;
}

/* 手机端切换  只显示按钮 */
@media (max-width: 767px) {

    .hero-desktop-map {
        display: none !important;
    }

    .hero-mobile-video {
        display: block;
        text-align: center;
    }

    .hero-mobile-video .hero-video-label {
        margin-left: 0 !important;
        margin-top: 15px;
    }
}
