/* ===== Trang bản đồ: theo prototype (sidebar nổi, chip lớp, bảng nổi bên phải) ===== */
.mp-shell{--off:392px;position:relative;height:calc(100vh - 62px);min-height:520px;overflow:hidden;background:#cfe0e6;font-size:13px;color:#17354c}
.mp-shell.collapsed{--off:68px}
.mp-stage{position:absolute;inset:0}
#main-map{position:absolute;inset:0}
.mp-shell .icon{width:16px;height:16px;flex:0 0 16px}

/* Sidebar nổi */
.mp-side{overflow-y:auto!important;position:absolute;z-index:6;left:12px;top:12px;bottom:12px;width:368px;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 10px 34px #0a2a3a40;overflow:hidden;transition:transform .25s,opacity .25s}
.mp-shell.collapsed .mp-side{transform:translateX(-120%);opacity:0;pointer-events:none}
.mp-side-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:16px 16px 14px 20px;color:#fff;background:linear-gradient(120deg,#0b5d3c,#0d7a4e 70%,#0b8a5c)}
.mp-side-head h1{margin:0 0 4px;font-size:21px;line-height:1.2;font-weight:700}
.mp-side-head p{margin:0;font-size:12px;line-height:1.45;opacity:.92}
.mp-collapse{flex:0 0 28px;width:28px;height:28px;border-radius:8px;border:1px solid #ffffff55;background:#ffffff1f;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mp-collapse:hover{background:#ffffff40}
.mp-expand{position:absolute;z-index:7;left:12px;top:12px;width:40px;height:40px;border-radius:10px;border:0;background:#fff;color:#0b7a4e;box-shadow:0 4px 14px #0a2a3a40;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mp-expand[hidden]{display:none}
.mp-filter{padding:12px 14px 4px;display:grid;gap:9px}
.mp-filter label,.mp-filter select,.mp-filter input{margin:0}
.mp-search{display:flex;align-items:center;border:1.5px solid #3b8cff;border-radius:10px;padding:0 12px;background:#fff}
.mp-search input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:none!important;padding:9px 0!important;margin:0!important;font-size:13px;border-radius:0}
.mp-search .icon{color:#33566b}
.mp-search:focus-within{box-shadow:0 0 0 3px #3b8cff30}
.mp-tabs{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:4px;padding:3px;background:#eef3f1;border-radius:999px}
.mp-tabs button{border:0;background:none;border-radius:999px;padding:7px 6px;font-size:12.5px;font-weight:600;color:#17354c;cursor:pointer}
.mp-tabs button.on{background:#0b8a5c;color:#fff;box-shadow:0 1px 4px #0b8a5c55}
.mp-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.mp-selects label{display:grid;gap:3px;margin:0!important;font-size:12px;font-weight:700;color:#17354c;line-height:1.3}
.mp-selects label[hidden]{display:none}
.mp-selects select{width:100%;margin:0;appearance:none;-webkit-appearance:none;border:1px solid #d3e0dc;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2333566b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;padding:6px 26px 6px 10px;font-size:12.5px;color:#47606d;font-weight:400;min-height:32px;text-overflow:ellipsis}
.mp-btns{display:grid;grid-template-columns:1.2fr 1fr;gap:10px}
.mp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1.5px solid #12935f;background:#fff;color:#067a52;border-radius:8px;padding:8px 12px;font-size:12.5px;font-weight:600;cursor:pointer;text-decoration:none;white-space:nowrap}
.mp-btn.primary{background:linear-gradient(180deg,#0a9362,#067a52);color:#fff;border-color:#067a52}
.mp-btn.soft{background:#e7f1ff;border-color:#bcd6ff;color:#1c5fb5}
.mp-btn.icon{padding:8px 10px;border-color:#d3e0dc;color:#33566b}
.mp-btn:hover{filter:brightness(.97)}
.mp-results-wrap{flex:1 0 auto;min-height:250px;display:flex;flex-direction:column;padding:6px 14px 10px}
.mp-result-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0}
.mp-result-head strong{font-size:13px;white-space:nowrap}
.mp-result-head select{width:auto!important;flex:0 0 auto;margin:0;border:1px solid #d3e0dc;border-radius:7px;padding:4px 8px;font-size:12px;background:#fff;color:#17354c;min-height:0}
.mp-results{flex:1;min-height:156px;overflow:hidden}
.mp-row{display:flex;gap:10px;align-items:center;width:100%;height:78px;padding:7px 4px;border:0;border-bottom:1px solid #e9f0ed;background:none;text-align:left;cursor:pointer;color:inherit}
.mp-row:hover{background:#f1f8f4}
.mp-row img,.mp-row .ph{width:62px;height:62px;border-radius:9px;object-fit:cover;flex:0 0 62px;background:#e8f1ec}
.mp-row .ph,.mp-pop .ph{display:flex;align-items:center;justify-content:center;color:#7aa391}
.mp-rb{flex:1;min-width:0;display:grid;gap:1px}
.mp-rb strong{font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-rb small{font-size:11.5px;color:#5c7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:#47606d;min-width:0}
.mp-loc{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-loc .icon,.mp-dist .icon{width:12px;height:12px;flex-basis:12px;color:#0b8a5c}
.mp-star{display:inline-flex;align-items:center;gap:3px;background:#f6a91a;color:#fff;border-radius:6px;padding:1px 7px 1px 5px;font-size:11px;font-weight:700;font-style:normal;line-height:1.5}
.mp-star .icon{width:11px;height:11px;flex-basis:11px;fill:#fff;stroke:#fff}
.mp-dist{display:inline-flex;align-items:center;gap:2px;font-size:11px;color:#47606d;white-space:nowrap;align-self:flex-end;padding-bottom:6px}
.mp-empty{color:#5c7280;padding:14px 4px;font-size:12.5px}
.mp-pager{display:flex;justify-content:center;gap:5px;padding-top:6px;min-height:34px}
.mp-pager button,.mp-pager span{min-width:28px;height:28px;border-radius:7px;border:1px solid #d3e0dc;background:#fff;color:#17354c;font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.mp-pager button{cursor:pointer}
.mp-pager span{border:0;background:none}
.mp-pager button.on{background:#0b8a5c;border-color:#0b8a5c;color:#fff}
.mp-pager button:disabled{opacity:.4;cursor:default}
@media(max-height:860px){.mp-side-head p{display:none}.mp-side-head{padding:12px 14px 12px 20px}.mp-filter{gap:8px}}
@media(min-height:1100px){.mp-selects{grid-template-columns:1fr}}

/* Thanh lớp dữ liệu: một thanh trắng, chip sát nhau; chip của tab đang xem được tô xanh */
.mp-chips{position:absolute;z-index:4;left:var(--off);right:170px;top:12px;display:flex;align-items:center;gap:2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;background:#fff;border-radius:12px;box-shadow:0 2px 10px #0a2a3a30;padding:4px;transition:left .25s}
.mp-chips::-webkit-scrollbar{display:none}
.mp-chip{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#17354c;border-radius:9px;padding:7px 11px 7px 9px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;flex:0 0 auto}
.mp-ci{display:inline-flex;color:var(--c)}
.mp-chip .mp-ci .icon{width:18px;height:18px;flex-basis:18px}
.mp-chip:hover{background:#eef6f2}
.mp-chip.primary{background:#0b8a5c;color:#fff}
.mp-chip.primary .mp-ci{color:#fff}
.mp-chip:not(.on){color:#8a9aa4}
.mp-chip:not(.on) .mp-ci{color:#b0bcc3}
.mp-chip.empty{color:#9aa8b0;cursor:help}
.mp-chip.empty .mp-ci{color:#b3bec5}
.mp-layermenu{position:absolute;z-index:5;right:16px;top:12px}
.mp-layerbtn{display:inline-flex;align-items:center;gap:8px;border:0;background:#fff;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:700;color:#17354c;box-shadow:0 2px 8px #0a2a3a30;cursor:pointer}
.mp-menu{position:absolute;right:0;top:calc(100% + 8px);width:330px;max-height:calc(100vh - 150px);overflow:auto;background:#fff;border-radius:16px;box-shadow:0 16px 40px #0a2a3a4d;padding:6px 14px 12px}
.mp-menu[hidden]{display:none}
.mp-menu section{padding:10px 0;border-bottom:1px solid #edf2f0}
.mp-menu section:last-child{border-bottom:0;padding-bottom:0}
.mp-menu h4{margin:0 0 8px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6a8177;font-weight:700}
.mp-sw{display:flex;align-items:center;gap:10px;padding:7px 4px;border-radius:9px;cursor:pointer;font-size:13px;margin:0!important;position:relative}
.mp-sw:hover{background:#f1f8f4}
.mp-sw em{flex:1;font-style:normal;font-weight:500}
.mp-sw input{position:absolute;opacity:0;pointer-events:none}
.mp-sw i{position:relative;width:34px;height:20px;border-radius:999px;background:#cdd8d5;flex:0 0 34px;transition:background .15s}
.mp-sw i:after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:transform .15s}
.mp-sw input:checked+i{background:#0b8a5c}
.mp-sw input:checked+i:after{transform:translateX(14px)}
.mp-sw input:focus-visible+i{outline:2px solid #3b8cff;outline-offset:2px}
.mp-sw .mp-sq{margin:0 2px}
.mp-sq.lbl{width:20px;height:20px;border:0;font-size:12px;font-weight:700;color:#17354c;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.mp-ico{width:24px;height:24px;border-radius:7px;background:#eaf6ef;color:#0b8a5c;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px}
.mp-ico .icon{width:15px;height:15px}
.mp-menu .mp-bgrid{grid-template-columns:repeat(4,1fr);gap:6px}
.mp-menu .mp-thumb{height:46px}
.mp-menu .mp-bgrid em{font-size:10.5px}
.mp-menu-acts{display:grid;gap:4px}
.mp-menu-acts button,.mp-menu-acts a{display:flex;align-items:center;gap:9px;padding:9px 8px;border-radius:9px;border:0;background:#f4f8f6;font-size:12.5px;font-weight:600;cursor:pointer;color:#17354c;text-align:left;text-decoration:none}
.mp-menu-acts button:hover,.mp-menu-acts a:hover{background:#e6f3ec}
.mp-menu-acts .icon{color:#0b8a5c}

/* Công cụ bên trái bản đồ */
.mp-tools{position:absolute;z-index:4;left:var(--off);top:66px;display:grid;gap:10px;transition:left .25s}
.mp-tg{display:grid;background:#fff;border-radius:10px;box-shadow:0 2px 8px #0a2a3a30;overflow:hidden}
.mp-tg[hidden]{display:none}
.mp-tg button{width:40px;height:40px;border:0;background:none;color:#17354c;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mp-tg button+button{border-top:1px solid #e6eeeb}
.mp-tg button:hover,.mp-tg button.on{background:#e8f5ee;color:#067a52}
.mp-tg .icon{width:19px;height:19px}

/* Bảng nổi */
.mp-panel{background:#fff;border-radius:14px;box-shadow:0 8px 26px #0a2a3a38;padding:12px 14px;pointer-events:auto}
.mp-panel[hidden]{display:none}
.mp-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.mp-panel h3{margin:0;font-size:14px;display:flex;align-items:center;gap:7px;font-weight:700}
.mp-panel h3 .icon{color:#1f9d55}
.mp-x{border:0;background:none;font-size:22px;line-height:1;color:#33566b;cursor:pointer;padding:0 4px}
.mp-rightcol{position:absolute;z-index:3;right:16px;top:62px;width:min(300px,28vw);bottom:16px;display:flex;flex-direction:column;justify-content:flex-start;pointer-events:none}
.mp-legend{max-height:100%;overflow:auto;pointer-events:auto}
.mp-legend ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.mp-legend li{display:flex;align-items:center;gap:10px;font-size:12.5px}
.mp-li{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.mp-li .icon{width:19px;height:19px}
.mp-li.dot{border-radius:50%;color:#fff}
.mp-li.dot .icon{width:12px;height:12px;fill:#fff}
.mp-sq{width:18px;height:18px;border-radius:4px;flex:0 0 18px;margin:0 1px}
.mp-sq.prov{border:2.5px solid #3b8cff}
.mp-sq.com{border:1.5px solid #9fb0aa}
.mp-legend small{display:block;margin-top:8px;font-size:10.5px;line-height:1.45;color:#6d8290}
.mp-bgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mp-bgrid button{border:2px solid transparent;border-radius:10px;background:#fff;padding:0;cursor:pointer;overflow:hidden;display:grid;text-align:center}
.mp-bgrid button.on{border-color:#1f9d55}
.mp-thumb{display:block;height:58px;background:#9bb3a8 center/cover}
.t-satellite{background-color:#2f4a36}.t-outdoors{background-color:#cfe0c3}.t-streets{background-color:#e7e4dc}.t-dark{background-color:#25282c}
.mp-bgrid em{font-style:normal;font-size:11.5px;font-weight:600;padding:3px 0;color:#17354c}
.mp-bgrid .on em{background:#e8f5ee;color:#067a52}
.mp-stats{flex:1 1 52%;min-width:0}
.mp-sgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.mp-sgrid>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center}
.mp-sgrid span{grid-row:1/3;display:inline-flex}
.mp-sgrid span .icon{width:36px;height:36px;flex-basis:36px}
.mp-sgrid b{font-size:24px;line-height:1.1;color:#17354c}
.mp-sgrid small{font-size:10.5px;color:#5c7280;line-height:1.25}
.mp-stats p{margin:8px 0 0;font-size:10.5px;color:#7a8d98}
.mp-bottom{position:absolute;z-index:3;left:var(--off);right:16px;bottom:22px;display:flex;gap:16px;align-items:stretch;pointer-events:none;transition:left .25s}
.mp-bottom .mp-panel{padding:14px 18px 16px}
.mp-shell .mapboxgl-ctrl-bottom-left{left:calc(var(--off) - 8px);bottom:12px;transition:left .25s}
.mp-shell .mapboxgl-ctrl-bottom-right{bottom:0}
.mp-gnav.prev{left:-9px}.mp-status{position:absolute;z-index:2;left:var(--off);bottom:6px;max-width:60%;font-size:11px;background:#ffffffd9;border-radius:8px;padding:2px 10px;color:#33566b;transition:left .25s}

/* Popup */
.mp-popup .mapboxgl-popup-content{padding:0;border-radius:14px;box-shadow:0 12px 34px #0a2a3a50}
.mp-pop{width:320px;padding:14px;position:relative}
.mp-pop-x{position:absolute;right:10px;top:8px;border:0;background:none;font-size:22px;color:#33566b;cursor:pointer;line-height:1}
.mp-pop-top{display:flex;gap:12px;align-items:flex-start;padding-right:20px}
.mp-pop-top img,.mp-pop .ph{width:110px;height:84px;border-radius:10px;object-fit:cover;flex:0 0 110px;background:#e8f1ec}
.mp-pop h3{margin:0 0 6px;font-size:15px;line-height:1.25}
.mp-pop ul{list-style:none;margin:10px 0 12px;padding:0;display:grid;gap:7px}
.mp-pop li{display:flex;align-items:center;gap:8px;font-size:12.5px}
.mp-pop li .icon{color:var(--c);width:15px;height:15px}
.mp-pop-acts{display:flex;gap:8px}
.mp-pop-acts .mp-btn:first-child{flex:1}
.mp-pop-acts .mp-btn.soft{flex:1}

/* Màn hình hẹp */
@media(max-width:1180px){.mp-shell{--off:372px}.mp-side{width:348px}.mp-chips{right:160px}.mp-rightcol{width:240px}.mp-sgrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){
 .mp-shell{height:auto;min-height:0;overflow:visible;display:flex;flex-direction:column}
 .mp-side{position:relative;inset:auto;width:auto;margin:10px;border-radius:14px;order:1;max-height:none}
 .mp-results{min-height:380px}
 .mp-shell.collapsed .mp-side{display:none}
 .mp-stage{position:relative;inset:auto;height:78vh;min-height:520px;order:2}
 .mp-chips{left:10px;right:10px;top:56px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
 .mp-layermenu{right:10px}.mp-tools{left:10px;top:108px}
 .mp-rightcol,.mp-stats{flex:1 1 52%;min-width:0}
 .mp-expand{display:none}
}


/* Chỉnh sau rà soát: thanh chip vừa nội dung, trạng thái không đè bảng đáy, danh sách lấp đầy khung */
.mp-chips{right:auto;max-width:calc(100% - var(--off) - 180px)}
.mp-status{top:70px;bottom:auto;left:calc(var(--off) + 56px);max-width:min(460px,calc(100% - var(--off) - 260px));box-shadow:0 2px 8px #0a2a3a30;padding:4px 12px;font-size:11.5px}
.mp-status:empty{display:none}
.mp-results{display:flex;flex-direction:column}
.mp-row{height:var(--rowh,78px);flex:0 0 auto}
.mp-row img,.mp-row .ph{width:calc(var(--rowh,78px) - 16px);height:calc(var(--rowh,78px) - 16px);max-width:84px;max-height:84px;flex:0 0 auto}
.mp-stats{display:flex;flex-direction:column}
.mp-stats #map-stats-body{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.mp-sgrid{flex:1;align-items:center}
.mp-stats p{margin:0}

/* Danh sách kết quả: các dòng tự giãn đều để lấp kín khung, không để trống phía trên phân trang */
.mp-row{height:auto!important;flex:1 1 0!important;min-height:72px;max-height:112px}
.mp-row img,.mp-row .ph{width:64px!important;height:64px!important;flex:0 0 64px!important;max-width:none!important;max-height:none!important}

/* Panel trái: các nhóm điều khiển giãn đều, dễ nhìn */
.mp-filter{padding:16px 18px 6px!important;gap:16px!important}
.mp-tabs{padding:4px!important}
.mp-tabs button{padding:9px 6px!important}
.mp-selects{gap:16px 14px!important}
.mp-selects label{gap:7px!important}
.mp-selects select{min-height:38px!important;padding:8px 28px 8px 12px!important}
.mp-btns{gap:12px!important;margin-top:2px}
.mp-btn{padding:11px 14px!important}
.mp-results-wrap{padding:8px 18px 12px!important}
.mp-result-head{padding:8px 0 10px!important}
@media(max-height:860px){.mp-filter{gap:11px!important;padding:12px 16px 4px!important}.mp-selects{gap:11px 12px!important}.mp-selects label{gap:5px!important}.mp-selects select{min-height:34px!important;padding:6px 26px 6px 10px!important}.mp-btn{padding:9px 12px!important}}
/* Panel phải: giãn đều, icon chú giải đồng bộ với marker */
.mp-legend{padding:16px 18px!important}
.mp-legend header{margin-bottom:12px!important}
.mp-legend ul{gap:11px!important}
.mp-legend li{gap:12px!important;font-size:13px!important;min-height:26px}
.mp-mk{width:26px;height:26px;flex:0 0 26px}
.mp-sq{width:26px!important;height:26px!important;flex:0 0 26px!important;margin:0!important;border-radius:7px}
.mp-legend small{margin-top:14px!important;padding-top:12px;border-top:1px solid #edf2f0}
.mp-sgrid{gap:18px 12px!important}

/* Thích ứng cửa sổ thấp: chú giải gọn hơn, không đè lên bảng thống kê */
@media(max-height:780px){.mp-legend{padding:12px 16px!important}.mp-legend header{margin-bottom:8px!important}.mp-legend ul{gap:6px!important}.mp-legend li{min-height:22px;font-size:12.5px!important}.mp-legend small{display:none}.mp-sgrid{gap:10px 10px!important}.mp-sgrid b{font-size:20px}.mp-sgrid span .icon{width:30px;height:30px;flex-basis:30px}}

.mp-n{display:inline-block;min-width:20px;margin-left:6px;padding:1px 6px;border-radius:999px;background:#e8f1ee;color:#17354c;font-size:11px;font-weight:700;line-height:16px;text-align:center}.mp-n:empty{display:none}.mp-chip.on .mp-n{background:var(--c,#1f9d55);color:#fff}
@media(max-width:1500px){.mp-chips .mp-chip{padding-left:7px!important;padding-right:7px!important;font-size:12.5px!important;gap:5px!important}.mp-chips .mp-ci{margin-right:0!important}.mp-n{margin-left:3px;min-width:18px;padding:0 5px}}

.mp-rightcol{gap:10px}.mp-weather{pointer-events:auto;padding:12px 16px!important;flex:0 0 auto}.mp-weather header{margin-bottom:6px!important}.mp-weather header h3{display:flex;align-items:center;gap:6px;font-size:13.5px}.mp-weather header .icon{width:16px;height:16px;color:#f08a24}
.mp-wxb{font-size:12.5px;color:#5c7280}.mp-wxt{display:flex;align-items:baseline;gap:10px}.mp-wxt b{font-size:26px;color:#17354c;line-height:1}.mp-wxt span{text-transform:none}.mp-wxs{display:flex;gap:16px;margin-top:6px}.mp-wxs b{color:#17354c}
@media(max-height:780px){.mp-legend{flex:1 1 auto;min-height:0}}
.mp-rightcol .mp-legend{flex:0 1 auto!important;min-height:0}.mp-rightcol{justify-content:flex-start}

.mp-fc{display:grid;gap:0;margin-top:10px;padding-top:4px;border-top:1px solid #edf2f0}
.mp-fc div{display:grid;grid-template-columns:50px minmax(0,1fr) 58px 40px;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #f1f5f3;font-size:12px}
.mp-fc div:last-child{border-bottom:0}
.mp-fc em{font-style:normal;font-weight:700;color:#17354c;font-size:11.5px;white-space:nowrap}
.mp-fc span{color:#5c7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-fc span::first-letter,.mp-wxt span::first-letter{text-transform:uppercase}
.mp-fc b{color:#17354c;text-align:right;white-space:nowrap}.mp-fc small{color:#7a8d98;font-weight:600;font-size:11px}
.mp-fc i{font-style:normal;color:#2b7de0;font-weight:700;text-align:right}
@media(max-height:820px){.mp-fc div{padding:3px 0}}
.mp-fc i{min-width:36px}
@media(max-height:900px){.mp-rightcol .mp-legend small{display:none}.mp-rightcol .mp-legend ul{gap:7px!important}.mp-rightcol .mp-legend li{min-height:22px}}

/* Cột phải (chú giải + thời tiết) co giãn theo chiều cao cửa sổ */
.mp-rightcol{overflow:hidden;max-height:calc(100% - 78px)}
.mp-rightcol .mp-legend{flex:1 1 auto!important;min-height:150px;overflow:auto}
.mp-rightcol .mp-weather{flex:0 0 auto}
@media(max-height:760px){.mp-fc{display:none}.mp-weather{padding:10px 14px!important}.mp-wxt b{font-size:22px}}
@media(max-width:1180px){.mp-rightcol{width:230px}}

/* Bộ lọc bản đồ tự áp dụng khi chọn */
#map-apply{display:none}
.mp-pub-pop{font-size:13px;max-height:240px;overflow:auto}
.mp-pub-pop strong{display:block;margin-bottom:6px}
.mp-pub-pop th{text-align:left;font-weight:600;padding:2px 8px 2px 0;color:#587468;vertical-align:top}
.mp-pub-pop td{padding:2px 0;overflow-wrap:anywhere}
/* Bảng chú giải chỉ cao theo nội dung, không giãn khi tắt bảng thời tiết */
.mp-rightcol .mp-legend{flex:0 1 auto!important;height:auto!important;min-height:0;overflow:auto}
