:root{--sm-ink:#162741;--sm-muted:#64738a;--sm-line:#e1e7ef;--sm-bg:#f3f6fa;--sm-blue:#204cd3;--sm-navy:#102440;--sm-amber:#a96017}
body.sm-standalone{margin:0;background:var(--sm-bg);color:var(--sm-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.sm-app [hidden],.sm-standalone [hidden]{display:none!important}.sm-app *,.sm-login *,.sm-top *{box-sizing:border-box}.sm-app{color:var(--sm-ink);font-family:Inter,ui-sans-serif,system-ui,sans-serif;max-width:1800px;margin:auto;padding:28px 30px 36px}.sm-app button,.sm-app input,.sm-app select,.sm-login input,.sm-login button{font:inherit;font-size:13px}.sm-app button,.sm-login button{cursor:pointer;border:1px solid var(--sm-line);border-radius:8px;background:white;color:var(--sm-ink);min-height:38px;padding:8px 12px;font-weight:650}.sm-app button:hover:not(:disabled){border-color:#809ad9;background:#f7faff}.sm-app button:disabled,.sm-login button:disabled{opacity:.5;cursor:not-allowed}.sm-app :focus-visible,.sm-login :focus-visible{outline:3px solid #8ba6fa;outline-offset:2px}.sm-app .sm-primary,.sm-login button{background:var(--sm-blue);color:white;border-color:var(--sm-blue)}.sm-app .sm-primary:hover{background:#193fae;color:white}.sm-top{height:72px;background:white;border-bottom:1px solid var(--sm-line);display:flex;align-items:center;justify-content:space-between;padding:0 30px}.sm-top a{font-size:12px;color:var(--sm-muted);text-decoration:none}.sm-top .sm-brand{color:var(--sm-navy);font-size:23px;font-weight:900;letter-spacing:.12em;display:flex;align-items:center;gap:18px}.sm-brand span{font-size:10px;font-weight:650;letter-spacing:.22em;border-left:1px solid #cdd6e3;padding-left:18px}.sm-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:20px}.sm-overline{font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--sm-blue)}.sm-heading h1{font-size:30px;font-weight:750;letter-spacing:-.04em;margin:5px 0 6px}.sm-heading p{margin:0;color:var(--sm-muted);font-size:13px;line-height:1.6}.sm-note{font-size:11px;line-height:1.8;text-align:right;color:var(--sm-muted)}.sm-note b{font-weight:650;color:#367464}.sm-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:white;border:1px solid var(--sm-line);padding:16px 18px;border-radius:12px}.sm-controls label,.sm-controls .sm-field{display:flex;flex-direction:column;gap:7px;color:var(--sm-muted);font-size:11px;font-weight:650}.sm-controls input,.sm-controls select,.sm-search input,.sm-editor input,.sm-login input{height:39px;border:1px solid #dbe2ec;border-radius:8px;padding:8px 10px;background:white;color:var(--sm-ink);min-width:0}.sm-controls [data-compset]{max-width:190px}.sm-date{display:flex;align-items:center;gap:4px}.sm-date input{width:139px}.sm-date button{font-size:20px;padding:3px 9px;min-height:39px}.sm-segment{display:flex;padding:3px;border-radius:8px;background:#eff3f8;min-height:39px;gap:3px}.sm-segment button{border:0;min-height:32px;padding:5px 13px;background:none;font-size:12px}.sm-segment button[aria-pressed="true"]{background:var(--sm-navy);color:white;box-shadow:0 2px 5px #10244020}.sm-controls [data-refresh]{margin-left:auto}.sm-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--sm-muted);padding:15px 2px}.sm-legend{display:flex;align-items:center;gap:8px}.sm-legend i{width:7px;height:7px;background:var(--sm-blue);border-radius:99px;display:inline-block}.sm-legend i.old{background:var(--sm-amber);margin-left:10px}.sm-message{margin-bottom:14px;border:1px solid #d4e0f7;background:#eef4ff;padding:12px 16px;border-radius:9px;font-size:13px;line-height:1.6}.sm-message[data-kind=error]{background:#fff3f0;border-color:#f1cdc4;color:#933a29}.sm-workspace{height:min(740px,75vh);min-height:500px;display:grid;grid-template-columns:340px 1fr;background:white;border:1px solid var(--sm-line);border-radius:14px;box-shadow:0 8px 28px #10244014;overflow:hidden}.sm-sidebar{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--sm-line)}.sm-search{padding:18px 16px 12px;display:grid;gap:7px;font-size:11px;color:var(--sm-muted);font-weight:650}.sm-search input{width:100%;font-size:12px}.sm-list-tools{padding:0 16px 12px;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10px;border-bottom:1px solid var(--sm-line);color:var(--sm-muted)}.sm-list-tools label{display:flex;gap:5px;align-items:center}.sm-list-tools input{accent-color:var(--sm-blue);margin:0}.sm-list-tools button{font-size:10px;padding:5px 7px;min-height:30px;white-space:nowrap}.sm-list{flex:1;overflow:auto;min-height:0;padding:0 16px}.sm-empty{color:var(--sm-muted);font-size:13px;line-height:1.7;padding:18px 0}.sm-hotel{padding:18px 0;border-bottom:1px solid #edf1f6}.sm-hotel:last-child{border:0}.sm-card-top{display:flex;justify-content:space-between;font-size:10px;color:var(--sm-muted);gap:10px}.sm-card-top span:last-child{color:#117269;font-weight:700}.sm-hotel h3{margin:8px 0 5px;font-size:15px;line-height:1.4;font-weight:750}.sm-address{font-size:11px;line-height:1.6;color:var(--sm-muted);margin:0 0 10px}.sm-price{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.sm-price strong{font-size:23px;font-weight:780;letter-spacing:-.03em}.sm-price>span{font-size:11px;color:var(--sm-muted)}.sm-snapshot{color:var(--sm-blue);font-size:12px;margin:5px 0 3px;font-weight:700}.sm-snapshot.old{color:var(--sm-amber)}.sm-stay{font-size:10px;color:var(--sm-muted);margin:0 0 8px}.sm-flags{display:flex;flex-wrap:wrap;gap:5px}.sm-flags>span{font-size:9px;line-height:1.5;border-radius:4px;padding:3px 5px;background:#f1f4f9;color:#4d607b}.sm-detail{font-size:11px;line-height:1.6;margin:8px 0 0;color:var(--sm-muted)}.sm-card-actions{display:flex;gap:7px;align-items:center;margin-top:10px;flex-wrap:wrap}.sm-card-actions button{font-size:10px;min-height:30px;padding:5px 7px}.sm-card-actions>span{font-size:10px;color:var(--sm-amber)}.sm-sources{display:flex;gap:12px;font-size:11px;margin-top:12px}.sm-sources a{color:var(--sm-blue)}.sm-map-pane{position:relative;min-width:0}.sm-map{height:100%;width:100%;background:#e9f0ef;z-index:0}.sm-map-pane .sm-home{position:absolute;top:14px;right:14px;z-index:500;background:white;box-shadow:0 2px 14px #18364b20;font-size:11px}.sm-map-error{position:absolute;bottom:35px;left:12px;right:12px;z-index:500;font-size:12px;color:#8b3d20;background:#fff5dc;padding:12px;border-radius:6px}.sm-marker{background:none;border:0}.sm-pin{min-width:148px;max-width:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:white;border:1.5px solid var(--sm-blue);border-radius:9px;box-shadow:0 3px 12px #12284930;padding:7px 9px;position:relative;color:var(--sm-navy);white-space:nowrap}.sm-pin:after{content:"";position:absolute;width:8px;height:8px;bottom:-6px;left:50%;background:white;border-bottom:1.5px solid var(--sm-blue);border-right:1.5px solid var(--sm-blue);transform:translateX(-50%) rotate(45deg)}.sm-pin strong{font:750 14px/1.3 Inter,system-ui,sans-serif}.sm-pin small{font:650 10px/1.5 Inter,system-ui,sans-serif;color:var(--sm-blue);margin-top:2px}.sm-pin em{font:600 9px/1.3 system-ui;color:var(--sm-muted)}.sm-pin.stale,.sm-pin.stale:after{border-color:var(--sm-amber)}.sm-pin.stale small{color:var(--sm-amber)}.sm-pin.unpriced,.sm-pin.unpriced:after{border-color:#8996ab}.sm-pin.unpriced small{color:#596d88}.sm-cluster{width:60px;height:58px;background:var(--sm-navy);color:white;border:3px solid white;box-shadow:0 3px 12px #12284940;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:15px}.sm-cluster strong{font:750 19px/1.2 system-ui}.sm-cluster small{font:500 10px/1.2 system-ui;color:#d2dfed}.sm-app .leaflet-popup-content{margin:14px 18px;width:290px!important}.sm-app .leaflet-popup-content .sm-hotel{padding:0;border:0}.sm-app .leaflet-popup-content p{margin:5px 0}.sm-app .leaflet-container{font-family:inherit}.sm-app .leaflet-control-attribution{font-size:10px}.sm-footer{display:flex;flex-direction:column;gap:5px;font-size:10px;line-height:1.5;color:var(--sm-muted);padding:16px 2px}.sm-backlog{border:1px solid var(--sm-line);border-radius:9px;background:white;padding:15px 18px;font-size:12px}.sm-backlog summary{font-weight:700;cursor:pointer}.sm-backlog>p{color:var(--sm-muted);font-size:11px}.sm-backlog [data-backlog]{max-height:330px;overflow:auto}.sm-backlog-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #edf1f6;padding:7px 0;font-size:11px}.sm-backlog-row button{font-size:10px;padding:4px 9px;min-height:28px;flex-shrink:0}.sm-editor{border:0;border-radius:14px;padding:22px;width:min(550px,90vw);max-height:85vh;color:var(--sm-ink);box-shadow:0 20px 100px #10244044}.sm-editor::backdrop{background:#10244080}.sm-editor header{display:flex;align-items:center;justify-content:space-between}.sm-editor h2{font-size:20px;margin:0}.sm-editor label{display:grid;gap:6px;font-size:11px;font-weight:600;margin-top:12px}.sm-editor input{width:100%;font-size:12px}.sm-editor .sm-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sm-editor .sm-confirm{display:flex;align-items:start;gap:9px;line-height:1.6}.sm-editor .sm-confirm input{width:auto;height:auto;margin-top:4px;accent-color:var(--sm-blue)}.sm-editor p{font-size:12px;color:var(--sm-muted);line-height:1.6}.sm-login{padding:50px 20px;display:flex;justify-content:center}.sm-login form{width:390px;background:white;border:1px solid var(--sm-line);border-radius:14px;padding:28px;box-shadow:0 8px 28px #10244014}.sm-login h1{margin:10px 0;font-size:28px}.sm-login p{font-size:12px;line-height:1.6;color:var(--sm-muted)}.sm-login label{display:grid;font-size:12px;gap:6px;margin:16px 0}.sm-login button{width:100%;margin-top:8px}.sm-loading{padding:45px;font-size:14px;color:var(--sm-muted)}
@media(min-width:1600px){.sm-workspace{grid-template-columns:370px 1fr;height:760px}}
@media(max-width:1050px){.sm-app{padding:22px 18px}.sm-controls{gap:10px}.sm-workspace{grid-template-columns:300px 1fr}.sm-note{display:none}.sm-top{padding:0 18px}.sm-legend{font-size:10px}}
@media(max-width:740px){.sm-top{height:60px}.sm-brand span{display:none}.sm-app{padding:18px 12px}.sm-heading h1{font-size:26px}.sm-controls{padding:13px;display:grid;grid-template-columns:1fr 1fr}.sm-controls>label,.sm-controls>.sm-field{min-width:0}.sm-controls input,.sm-controls select{width:100%;max-width:none!important}.sm-date input{width:100%;min-width:0}.sm-controls [data-refresh]{margin:0;height:39px}.sm-workspace{display:flex;flex-direction:column;height:auto;min-height:0}.sm-map-pane{order:0;height:55vh;min-height:340px}.sm-sidebar{order:1;border-right:0;border-top:1px solid var(--sm-line);height:510px}.sm-meta{align-items:start;font-size:10px}.sm-legend{flex-wrap:wrap}.sm-footer{font-size:10px}.sm-list{padding:0 18px}.sm-map-pane .sm-home{top:10px;right:10px}.sm-backlog-row{font-size:10px}.sm-editor{padding:17px}}

@media(max-width:740px){.sm-controls>label:nth-child(2){grid-column:1 / -1;grid-row:1}.sm-date input{flex:1}.sm-top .sm-brand{flex-shrink:0}}

/* v3: full-width interactive map; hotel details appear only on marker selection. */
.sm-app .sm-workspace{display:block;grid-template-columns:none;height:min(780px,76vh);min-height:530px;overflow:hidden}
.sm-app .sm-map-pane{width:100%;height:100%;min-height:0;position:relative}
.sm-app .sm-map-search{position:absolute;left:18px;top:18px;z-index:610;width:min(330px,calc(100% - 210px));padding:12px;background:#fff;border:1px solid #dce4ee;border-radius:12px;box-shadow:0 6px 22px #16274125}
.sm-app .sm-map-search label{display:block;font-size:11px;font-weight:750;color:#64738a;margin-bottom:7px}
.sm-app .sm-map-search input{display:block;width:100%;height:41px;border:1px solid #dbe2ec;border-radius:8px;background:#fff;padding:9px 12px;font-size:12px;color:#162741}
.sm-app .sm-search-results{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid #dce4ee;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 8px 20px #16274125;max-height:280px;overflow-y:auto;z-index:640;padding:5px}
.sm-app .sm-search-result{width:100%;border:0;min-height:48px;padding:10px;text-align:left;border-radius:7px;display:flex;flex-direction:column;gap:4px}
.sm-app .sm-search-result strong{font-size:12px;font-weight:750;line-height:1.3;white-space:normal}
.sm-app .sm-search-result small{font-size:10px;color:#64738a;line-height:1.3}
.sm-app .sm-search-empty{font-size:11px;color:#64738a;padding:12px;margin:0;line-height:1.6}
.sm-app .sm-map-tools{position:absolute;right:18px;top:18px;z-index:610;display:flex;gap:8px}
.sm-app .sm-map-pane .sm-map-tools button{background:#fff;border:1px solid #dce4ee;min-height:41px;padding:10px 13px;box-shadow:0 2px 12px #16274120;font-size:11px;white-space:nowrap}
.sm-app .sm-map-pane .sm-map-tools button:hover{background:#f3f7ff}
.sm-app .sm-drawer{position:absolute;right:16px;top:80px;bottom:16px;width:min(376px,calc(100% - 36px));z-index:650;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dce4ee;box-shadow:0 14px 45px #16274144;border-radius:14px}
.sm-app .sm-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:0 0 auto;padding:12px 16px;border-bottom:1px solid #e6edf5;font-size:12px;color:#64738a;font-weight:750}
.sm-app .sm-drawer-head button{width:34px;height:34px;min-height:34px;flex-shrink:0;padding:0;border-radius:8px;font-size:25px;line-height:1}
.sm-app .sm-drawer-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1;min-height:0;padding:4px 18px 18px}
.sm-app .sm-drawer-body .sm-hotel{padding:16px 0 0;border:0}
.sm-app .sm-drawer-body .sm-hotel h3{font-size:18px}
.sm-app .sm-drawer-body .sm-price strong{font-size:28px}
.sm-app .sm-group-detail{display:flex;flex-direction:column;gap:7px;padding-top:10px}
.sm-app .sm-group-hotel{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;min-height:61px;background:#f8faff;border:1px solid #e6edf5;border-radius:9px;padding:11px}
.sm-app .sm-group-hotel strong{font-weight:750;font-size:12px}
.sm-app .sm-group-hotel span{font-size:11px;color:#64738a}
.sm-app .leaflet-bottom.leaflet-right{margin-right:0}
.sm-app .sm-map-pane .sm-map-error{left:15px;right:auto;bottom:18px;width:min(400px,calc(100% - 30px))}
@media(max-width:1050px){.sm-app .sm-workspace{height:min(710px,72vh);min-height:500px}.sm-app .sm-map-search{width:min(300px,calc(100% - 210px))}}
@media(max-width:740px){
 .sm-app .sm-workspace{display:block;height:66svh;min-height:430px;max-height:740px}
 .sm-app .sm-map-pane{height:100%;min-height:0}
 .sm-app .sm-map-search{top:10px;left:10px;width:calc(100% - 139px);padding:8px;border-radius:10px}
 .sm-app .sm-map-search label{font-size:10px;margin-bottom:4px}
 .sm-app .sm-map-search input{height:37px;font-size:11px;padding:6px 8px}
 .sm-app .sm-map-tools{top:10px;right:10px;gap:5px;display:flex;flex-direction:column}
 .sm-app .sm-map-pane .sm-map-tools button{padding:7px 9px;min-height:34px;font-size:10px}
 .sm-app .sm-drawer{left:0;right:0;bottom:0;top:auto;width:100%;height:auto;max-height:min(60svh,470px);border-radius:16px 16px 0 0;border-bottom:0}
 .sm-app .sm-drawer-body{padding:1px 17px 16px;min-height:0}
 .sm-app .sm-drawer-body .sm-hotel{padding-top:12px}
 .sm-app .sm-map-pane .sm-map-error{bottom:45px}
}
@media(max-width:390px){.sm-app .sm-map-search{width:calc(100% - 127px)}.sm-app .sm-map-pane .sm-map-tools button{font-size:9px;padding:7px}}


/* v4 / restrained, production-minded cartography. */
.sm-app{--sm-blue:#22518b;--sm-navy:#152f4f;--sm-line:#e2e8f0}
.sm-app .sm-workspace{border-color:#e0e6ee;box-shadow:0 2px 11px rgba(15,37,60,.055);border-radius:12px}
.sm-app .sm-map{background:#e6eef2}


.sm-app .sm-cluster{width:38px;height:38px;border-radius:50%;background:#173656;border:2px solid #fff;box-shadow:0 2px 10px rgba(16,35,56,.25);display:flex;justify-content:center;align-items:center;transition:background .16s ease,box-shadow .16s ease}
.sm-app .sm-cluster strong{font:700 13px/1 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.01em}
.sm-app .sm-cluster small{display:none}
.sm-app .sm-marker:hover .sm-cluster{background:#255785;box-shadow:0 3px 14px rgba(16,35,56,.28)}
.sm-app .sm-pin{min-width:116px;max-width:142px;padding:6px 10px;border-width:1px;border-radius:8px;box-shadow:0 2px 9px rgba(16,35,56,.19)}
.sm-app .sm-pin strong{font:750 13px/1.3 Inter,ui-sans-serif,system-ui,sans-serif}
.sm-app .sm-pin small{font:600 9px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;color:#24538c;margin-top:2px}
.sm-app .sm-pin:after{width:7px;height:7px;bottom:-5px;border-width:1px}
.sm-app .sm-map-search{top:16px;left:16px;width:min(312px,calc(100% - 205px));padding:7px;border:1px solid #e0e7ef;border-radius:10px;box-shadow:0 3px 15px rgba(18,43,66,.11)}
.sm-app .sm-map-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0;padding:0}
.sm-app .sm-map-search input{height:38px;border:0;border-radius:6px;padding:8px 8px 8px 32px;font-size:12px;background-color:#fff;background-repeat:no-repeat;background-position:10px center;background-size:15px 15px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23677990' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")}
.sm-app .sm-map-search input:focus{outline:none;box-shadow:0 0 0 2px #d7e4f7}
.sm-app .sm-map-tools{top:16px;right:16px;gap:7px}
.sm-app .sm-map-pane .sm-map-tools button{min-height:36px;padding:7px 11px;border:1px solid #dce5ee;box-shadow:0 2px 9px rgba(16,35,56,.10);font-weight:650;font-size:11px;border-radius:8px}
.sm-app .sm-meta{font-size:11px}
.sm-app .sm-legend i{height:6px;width:6px}
.sm-app .sm-drawer{box-shadow:0 11px 32px rgba(10,31,52,.22);border-radius:11px}
@media(max-width:740px){
 .sm-app .sm-map-search{top:10px;left:10px;width:calc(100% - 132px);padding:5px}
 .sm-app .sm-map-search input{height:33px;padding-left:29px;background-position:8px center;font-size:11px}
 .sm-app .sm-map-tools{top:10px;right:10px;gap:4px}
 .sm-app .sm-map-pane .sm-map-tools button{font-size:10px;min-height:30px;padding:5px 8px}
 .sm-app .sm-drawer{border-radius:13px 13px 0 0}
}

/* v5: vector map engine, no raster tile seams or tile-pane color filters. */
.sm-app .maplibregl-map{font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#f2f4f4}
.sm-app .maplibregl-canvas{display:block;outline:none}
.sm-app .maplibregl-marker.sm-marker{border:0;box-shadow:none;background:transparent}
.sm-app .maplibregl-ctrl-group{background:#fff;border:1px solid #dce4ec;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(16,32,51,.13)}
.sm-app .maplibregl-ctrl-group button{border:0;border-radius:0;min-height:30px;width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center}
.sm-app .maplibregl-ctrl-group button+button{border-top:1px solid #e5e9ee}
.sm-app .maplibregl-ctrl-attrib{font-size:10px;background:rgba(255,255,255,.85);border-radius:4px 0 0 0}
.sm-app .maplibregl-ctrl-scale{font-size:10px;border-color:#68788b;color:#405369;background:rgba(255,255,255,.75)}
.sm-app .sm-workspace{background:#f2f4f4}
.sm-app .sm-marker:focus-visible{outline:3px solid #3371da;outline-offset:3px;border-radius:7px}
