:root{
  --bg:#f7f0e6;
  --card:#fffaf3;
  --white:#fff;
  --text:#1f312b;
  --muted:#737a73;
  --line:#eee4d6;
  --green:#08764f;
  --green-soft:#e8f4ed;
  --gold:#c89133;
  --shadow:0 18px 44px rgba(42,35,24,.12);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC","PingFang SC","Microsoft YaHei",Arial,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;min-height:100vh;color:var(--text);background:linear-gradient(180deg,#f8f1e8 0%,#f7efe4 100%)}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{border:0;background:none;color:inherit;cursor:pointer}
img{display:block;max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.map-shell{width:min(100%,430px);min-height:100vh;margin:0 auto;position:relative;overflow:hidden;background:#efe7d9;box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.map-topbar{position:absolute;top:0;left:0;right:0;z-index:20;min-height:60px;display:flex;align-items:center;gap:7px;padding:10px 12px 8px;background:linear-gradient(180deg,rgba(250,246,239,.94),rgba(250,246,239,.72) 76%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.region-btn{min-height:38px;display:flex;align-items:center;gap:4px;font-size:14px;font-weight:800;white-space:nowrap}
.map-search{height:38px;flex:1;min-width:0;display:flex;align-items:center;gap:7px;padding:0 11px;background:rgba(255,255,255,.88);border:1px solid #e2dbcf;border-radius:20px;box-shadow:none}
.map-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:16px}
.map-search input::placeholder{color:#8e918a}
.notify-link{width:34px;height:38px;display:grid;place-items:center;color:#46574f;position:relative}
.notify-link::after{content:"";position:absolute;right:3px;top:7px;width:6px;height:6px;border-radius:50%;background:#08764f}
.avatar-link{position:relative;flex:0 0 36px;width:36px;height:36px;border-radius:50%;padding:2px;background:#fff;box-shadow:0 4px 12px rgba(45,35,20,.13)}
.avatar-link img{width:100%;height:100%;border-radius:50%;object-fit:cover}.avatar-link i{position:absolute;right:0;bottom:2px;width:9px;height:9px;border-radius:50%;background:#18ad6b;border:2px solid #fff}
.map-page{min-height:100vh;position:relative}.map-stage{height:330px;position:relative;overflow:hidden;background:#dbe7df}.map-canvas{position:absolute;inset:0;overflow:hidden;background:#dbe7df}
.map-canvas::before,.map-canvas::after{content:none}
.real-map,.real-map-fallback{position:absolute;inset:0;width:100%;height:100%;border:0;background:#dbe7df}
.real-map{z-index:2}
.real-map-fallback{z-index:1}
.map-shell.map-fallback-mode .real-map{display:none}
.map-shell.map-fallback-mode .real-map-fallback{z-index:2}
.map-loading{position:absolute;left:12px;right:12px;bottom:52px;z-index:4;padding:9px 11px;border-radius:8px;background:rgba(255,250,243,.94);border:1px solid rgba(229,219,203,.9);box-shadow:0 8px 20px rgba(58,45,26,.1);color:#23362f;pointer-events:none}
.map-loading strong{display:block;font-size:11px;line-height:1.25}
.map-loading span{display:block;margin-top:2px;color:#747a73;font-size:9px}
.map-loading.is-hidden{display:none}
.leaflet-container{font:inherit;background:#dbe7df}
.leaflet-control-attribution{font-size:9px;background:rgba(255,255,255,.74)}
.real-map-marker-wrap{background:transparent;border:0}
.real-map-marker{width:34px;height:40px;border-radius:18px 18px 18px 5px;display:grid;place-items:center;background:var(--green);color:#fff;border:3px solid #fff;box-shadow:0 9px 20px rgba(42,33,20,.28);transform:rotate(-45deg)}
.real-map-marker span{display:grid;place-items:center;transform:rotate(45deg);line-height:1}
.real-map-marker .ui-icon{width:16px;height:16px;stroke:#fff;stroke-width:1.85;fill:none}
.real-map-marker.is-active{background:#c89133;box-shadow:0 10px 24px rgba(200,145,51,.34)}
.real-map-popup h3{margin:0 0 4px;font-size:15px;color:#172b25}
.real-map-popup p{margin:0;color:#5d665f;font-size:12px;line-height:1.35}
.leaflet-popup-content-wrapper{border-radius:14px;box-shadow:0 12px 28px rgba(45,35,21,.16)}
.leaflet-popup-content{margin:10px 12px}
.map-categories{position:absolute;z-index:22;top:67px;left:12px;right:12px;display:flex;gap:7px;overflow-x:auto;padding:3px 0 7px;scrollbar-width:none}.map-categories::-webkit-scrollbar{display:none}
.map-chip{flex:0 0 auto;min-width:58px;height:34px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:17px;background:rgba(255,252,246,.92);border:1px solid rgba(234,225,211,.86);box-shadow:0 5px 13px rgba(61,47,28,.1);font-weight:800;font-size:10px;color:#1e342e}.map-chip span{font-size:14px;color:var(--green)}.map-chip.active{background:#fff;color:#093e2c;box-shadow:0 6px 16px rgba(8,118,79,.14)}
.map-label{position:absolute;z-index:3;text-align:center;color:#22362f;text-shadow:0 1px 1px rgba(255,255,255,.7)}.map-label strong{display:block;font-size:22px;letter-spacing:.08em}.map-label span{display:block;font-size:17px}.map-label small{display:block;font-size:15px;color:#4e6a68}.map-label.oia{left:44%;top:195px}.map-label.bay{left:58px;top:286px}.map-label.santorini{right:42px;top:254px}
.pin{position:absolute;z-index:5;width:35px;height:43px;border-radius:18px 18px 18px 4px;display:grid;place-items:center;color:#fff;background:var(--green);box-shadow:0 8px 16px rgba(45,34,20,.25);transform:rotate(-45deg);font-size:15px;font-weight:900}.pin::after{content:attr(data-place);position:absolute;left:28px;top:-9px;min-width:max-content;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.88);color:#44504a;font-size:10px;font-weight:800;opacity:0;transform:rotate(45deg) translateY(4px);pointer-events:none;transition:.2s}.pin span,.pin{line-height:1}.pin:hover::after,.pin:focus-visible::after,.pin.active::after{opacity:1;transform:rotate(45deg) translateY(0)}.pin:focus-visible{outline:3px solid rgba(8,118,79,.28);outline-offset:3px}.pin-camera{left:43%;top:150px}.pin-food{left:32%;top:248px}.pin-star{left:50%;top:273px;background:var(--gold)}.pin-hotel{right:25%;top:186px;background:var(--gold)}.pin-spa{right:26%;bottom:42px}.pin-shop{right:40%;bottom:8px}.pin-camera,.pin-food,.pin-star,.pin-hotel,.pin-spa,.pin-shop{color:transparent}.pin-camera::before,.pin-food::before,.pin-star::before,.pin-hotel::before,.pin-spa::before,.pin-shop::before{transform:rotate(45deg);color:#fff}.pin-camera::before{content:""}.pin-food::before{content:""}.pin-star::before{content:""}.pin-hotel::before{content:""}.pin-spa::before{content:""}.pin-shop::before{content:""}
.recommend-sheet{position:relative;z-index:10;margin-top:-22px;min-height:calc(100vh - 308px);padding:10px 12px 26px;background:rgba(255,250,243,.97);border-radius:16px 16px 0 0;border-top:1px solid rgba(237,228,216,.95);box-shadow:0 -12px 28px rgba(43,35,21,.1);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sheet-drag-handle{width:100%;min-height:44px;display:grid;place-items:center;padding:0;touch-action:none;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;cursor:grab}.sheet-drag-handle:active{cursor:grabbing}.sheet-drag-handle:focus-visible{outline:3px solid rgba(8,118,79,.3);outline-offset:1px;border-radius:10px}.sheet-handle{width:42px;height:5px;border-radius:3px;background:#d7c9b9;transition:width .18s ease,background-color .18s ease,transform .18s ease}.recommend-sheet.is-dragging .sheet-handle{width:52px;background:var(--green);transform:scaleY(1.12)}.sheet-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);margin-bottom:9px}.sheet-tab{position:relative;min-width:0;min-height:44px;padding:5px 4px;font-size:12px;font-weight:800;line-height:1.2;color:#6d6e68;overflow-wrap:anywhere}.sheet-tab.active{color:#182c25}.sheet-tab.active::after{content:"";position:absolute;left:18px;right:18px;bottom:-1px;height:2px;border-radius:2px;background:var(--green)}
.sheet-filters{display:flex;gap:7px;overflow-x:auto;padding:0 0 9px;scrollbar-width:none}.sheet-filters::-webkit-scrollbar{display:none}.filter-pill{flex:0 0 auto;height:31px;min-width:66px;padding:0 11px;border-radius:16px;background:#f3ede4;color:#4b504b;border:1px solid rgba(238,229,216,.95);font-size:10px;font-weight:700}.filter-pill.active{background:var(--green);color:#fff}.filter-pill span{font-size:10px}.place-list{display:flex;flex-direction:column;gap:7px}.place-card{position:relative;display:grid;grid-template-columns:88px minmax(0,1fr) 46px;gap:8px;align-items:center;min-height:84px;padding:8px;border:1px solid rgba(237,228,216,.92);background:rgba(255,255,255,.68);border-radius:8px;box-shadow:0 5px 15px rgba(68,52,30,.05)}.place-thumb{width:88px;height:66px;border-radius:7px;overflow:hidden;background:#d8c;box-shadow:inset 0 -24px 30px rgba(0,0,0,.1)}.thumb-sunset{background:linear-gradient(135deg,#e6b58b,#334d64 45%,#f2e6c9 46%,#28506b)}.thumb-dinner{background:linear-gradient(135deg,#27384c,#e5a45b 42%,#624025 70%,#111)}.thumb-spa{background:linear-gradient(135deg,#f6d3a2,#2c5870 35%,#0e5b64 58%,#f8e3c2)}.thumb-hotel{background:linear-gradient(135deg,#193f5f,#f3e5d0 40%,#31516d 70%,#e4a45d)}.thumb-shop{background:linear-gradient(135deg,#38241b,#d1a56d 50%,#f2e2bd)}.place-info{min-width:0;padding-right:10px}.place-title{display:flex;align-items:center;gap:5px;min-width:0;margin-bottom:5px}.place-title h2{margin:0;font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place-title span{flex:0 0 auto;padding:2px 5px;border-radius:4px;background:#eee6d8;color:#5b5e58;font-size:8px;font-weight:700}.place-distance,.place-meta{margin:0;color:#68716b;font-size:9px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place-meta strong{color:#b8871f;margin-right:5px}.favorite{position:absolute;right:11px;top:10px;width:28px;height:28px;display:grid;place-items:center;color:#72756f}.favorite .ui-icon{width:18px;height:18px}.favorite.saved{color:#0b7d5c}.favorite.saved .ui-icon{fill:currentColor}.action-btn{grid-column:3;grid-row:1;align-self:end;justify-self:end;width:42px;height:30px;display:grid;place-items:center;border-radius:6px;background:var(--green);color:#fff;font-size:10px;font-weight:800;box-shadow:0 5px 12px rgba(8,118,79,.18)}.empty-state{padding:24px 14px;text-align:center;color:#7a8079;background:#fff;border:1px dashed #ded3c4;border-radius:8px;font-size:11px}
@media(max-width:374px){.map-topbar{padding-left:9px;padding-right:9px}.region-btn{font-size:13px}.map-categories{left:9px;right:9px}.map-chip{min-width:54px;padding:0 8px}.recommend-sheet{padding-left:9px;padding-right:9px}.place-card{grid-template-columns:80px minmax(0,1fr) 42px;gap:6px}.place-thumb{width:80px}.place-title h2{font-size:12px}.action-btn{width:39px}.favorite{right:8px}}
@media(min-width:700px){.map-shell{border-radius:8px;margin:20px auto;min-height:calc(100vh - 40px)}}


/* v0.1.28 - real photos for map nearby recommendation thumbnails */
.place-thumb{background-size:cover;background-position:center;background-repeat:no-repeat;}
.thumb-sunset{background-image:url('../img/map/independence_palace.jpg');}
.thumb-dinner{background-image:url('../img/map/ben_thanh_market.jpg');}
.thumb-spa{background-image:url('../img/map/spa.jpg');}
.thumb-hotel{background-image:url('../img/map/opera_house.jpg');}
.thumb-shop{background-image:url('../img/map/bitexco_tower.jpg');}

/* v0.1.29 - Nearby Guides tab rebuilt from reference */
.recommend-sheet{padding-bottom:102px;}
.tab-panel{display:none;}
.tab-panel.active{display:block;}
.guide-filters{display:flex;gap:7px;overflow-x:auto;padding:0 0 9px;scrollbar-width:none;}
.guide-filters::-webkit-scrollbar{display:none;}
.guide-filter{flex:0 0 auto;height:31px;min-width:66px;padding:0 11px;border-radius:16px;background:#f3ede4;color:#4d534e;border:1px solid rgba(238,229,216,.96);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;}
.guide-filter.active{background:var(--green);color:#fff;box-shadow:0 8px 16px rgba(8,118,79,.18);}
.nearby-guide-list{width:100%;max-width:100%;min-width:0;display:flex;flex-direction:column;gap:7px;overflow-x:hidden;}
.nearby-guide-card{width:100%;max-width:100%;min-width:0;box-sizing:border-box;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,104px) minmax(0,1fr);gap:9px;min-height:96px;padding:8px;overflow:hidden;border:1px solid rgba(237,228,216,.92);border-radius:8px;background:rgba(255,255,255,.72);box-shadow:0 5px 15px rgba(68,52,30,.05);}
.nearby-guide-card>*{min-width:0;max-width:100%;}
.nearby-guide-thumb{position:relative;width:100%;max-width:100%;min-width:0;height:80px;border-radius:7px;overflow:hidden;background-size:cover;background-position:center;box-shadow:inset 0 -28px 34px rgba(0,0,0,.2);}
.guide-badge{position:absolute;top:6px;left:6px;height:18px;padding:0 6px;display:inline-flex;align-items:center;border-radius:4px;background:rgba(183,132,36,.9);color:#fff;font-size:8px;font-weight:800;}
.guide-badge.video{background:rgba(13,100,129,.92);}
.play-mark{position:absolute;left:50%;top:50%;width:34px;height:34px;border:2px solid rgba(255,255,255,.92);border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.18);color:#fff;font-size:14px;text-indent:2px;transform:translate(-50%,-50%);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
.nearby-guide-thumb time{position:absolute;right:6px;bottom:5px;color:#fff;font-size:9px;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.45);}
.nearby-guide-body{min-width:0;max-width:100%;padding:1px 0 0;overflow:visible;}
.nearby-guide-head{min-width:0;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:4px;align-items:start;margin-bottom:3px;overflow:hidden;}
.nearby-guide-head h2{margin:0;font-size:12px;line-height:1.25;font-weight:800;color:#1e302a;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.nearby-guide-head button{width:24px;height:24px;display:grid;place-items:center;color:#6f766f}.nearby-guide-head button .ui-icon{width:17px;height:17px}.nearby-guide-head button.saved{color:#0b7d5c}.nearby-guide-head button.saved .ui-icon{fill:currentColor}
.nearby-guide-body p{margin:0 0 5px;color:#69706a;font-size:9px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.nearby-guide-place,.nearby-guide-stats{min-width:0;max-width:100%;display:flex;align-items:center;gap:9px;color:#767d76;font-size:8px;line-height:1.35;white-space:nowrap;overflow:hidden;}
.nearby-guide-place{margin-bottom:4px;}
.nearby-guide-place span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.nearby-guide-place span:last-child{flex:0 0 auto;}
.nearby-guide-stats span{flex:0 0 auto;}
.thumb-guide-sunset{background-image:url('../img/map/independence_palace.jpg');}
.thumb-guide-video{background-image:url('../img/map/hcm_night.png');}
.thumb-guide-cafe{background-image:url('../img/map/notre_dame.jpg');}
.thumb-guide-spa{background-image:url('../img/map/spa.jpg');}
.thumb-guide-walk{background-image:url('../img/map/hcm_hero.png');}
.saved-block{padding-top:2px;}
.saved-title{height:32px;display:flex;align-items:center;gap:6px;font-size:11px;color:#24332d;}
.saved-title span{width:22px;height:22px;border-radius:6px;background:#e8f4ed;color:var(--green);display:grid;place-items:center;}
.saved-title em{font-style:normal;color:#9a866d;font-size:9px;margin-left:2px;}
.saved-mini-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;}
.saved-mini-row article{min-width:0;padding:6px;border-radius:8px;background:rgba(255,255,255,.72);border:1px solid rgba(237,228,216,.92);}
.saved-mini-row .mini{height:54px;border-radius:6px;background-size:cover;background-position:center;margin-bottom:5px;}
.saved-mini-row strong{display:block;font-size:9px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.saved-mini-row small{display:block;color:#85867d;font-size:8px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bottom-nav{position:fixed;left:50%;bottom:0;z-index:40;width:min(100%,430px);height:78px;padding:9px 14px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);align-items:end;border-top:1px solid rgba(230,220,204,.92);background:rgba(255,253,248,.96);box-shadow:0 -8px 24px rgba(42,34,20,.09);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transform:translateX(-50%)}
.nav-item{position:relative;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:8px;color:#48534d}.nav-item>.ui-icon{width:22px;height:22px}.nav-item strong{font-size:9px;font-weight:700}.nav-item.camera{align-self:start;margin-top:-18px}.nav-item.camera>span{width:56px;height:56px;display:grid;place-items:center;border:4px solid #fffaf1;border-radius:50%;background:var(--green);color:#fff;box-shadow:0 7px 18px rgba(9,105,68,.25)}.nav-item.camera .ui-icon{width:25px;height:25px}.nav-item.camera strong{color:var(--text)}.nav-item.message i{position:absolute;top:3px;right:17px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e84a35;color:#fff;font-size:9px;font-style:normal;font-weight:800;line-height:17px;text-align:center}
@media(max-width:374px){.nearby-guide-card{grid-template-columns:minmax(0,92px) minmax(0,1fr);gap:7px}.nearby-guide-thumb{height:76px}.guide-filter{min-width:60px;padding:0 9px}.bottom-nav{padding-left:10px;padding-right:10px}.nav-item.message i{right:14px}}
@media(min-width:700px){.bottom-nav{bottom:20px;border-radius:0 0 8px 8px}}

/* v0.12.14 - guide map markers reuse existing landmark category icons */
.nearby-guide-card.is-live-guide{cursor:pointer}
.nearby-guide-card.is-live-guide:focus-visible{outline:3px solid rgba(8,118,79,.24);outline-offset:2px}
.nearby-guide-card.is-live-guide .nearby-guide-head h2 a{display:block;min-width:0;max-width:100%;overflow:hidden;color:inherit;text-decoration:none}
.nearby-guide-card.is-live-guide .nearby-guide-thumb{position:relative;overflow:hidden;background-color:#e8dfd1;background-image:var(--guide-cover,linear-gradient(135deg,#d5b67d,#315947));background-size:cover;background-position:center}
/* Video guides have no still image: paint the first frame of the clip as the cover */
.nearby-guide-card.is-live-guide .nearby-guide-thumb .nearby-guide-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#1c211d;pointer-events:none}
.nearby-guide-card.is-live-guide .nearby-guide-thumb .guide-badge,.nearby-guide-card.is-live-guide .nearby-guide-thumb .play-mark{position:absolute;z-index:2}
.nearby-guide-card.is-live-guide .nearby-guide-thumb .play-mark{top:50%;left:50%;transform:translate(-50%,-50%)}
.place-card[hidden],.nearby-guide-card[hidden],.saved-place-card[hidden]{display:none}

/* v0.1.30 - Saved Places tab rebuilt from reference */
.saved-filters{display:flex;gap:7px;overflow-x:auto;padding:0 0 9px;scrollbar-width:none;}
.saved-filters::-webkit-scrollbar{display:none;}
.saved-filter{flex:0 0 auto;height:31px;min-width:60px;padding:0 11px;border-radius:16px;background:#f3ede4;color:#535850;border:1px solid rgba(238,229,216,.96);font-size:10px;font-weight:700;white-space:nowrap;}
.saved-filter.active{background:var(--green);color:#fff;box-shadow:0 8px 16px rgba(8,118,79,.18);}
.saved-place-list{display:flex;flex-direction:column;gap:7px;}
.saved-place-card{position:relative;display:grid;grid-template-columns:88px minmax(0,1fr) 46px;gap:8px;align-items:center;min-height:88px;padding:8px;border:1px solid rgba(237,228,216,.92);border-radius:8px;background:rgba(255,255,255,.74);box-shadow:0 5px 15px rgba(68,52,30,.05);}
.saved-place-thumb{width:88px;height:68px;border-radius:7px;overflow:hidden;background-size:cover;background-position:center;box-shadow:inset 0 -24px 30px rgba(0,0,0,.1);}
.saved-place-info{min-width:0;padding-right:8px;}
.saved-place-head{display:flex;align-items:center;gap:5px;min-width:0;margin-bottom:4px;}
.saved-place-head h2{margin:0;font-size:12px;line-height:1.22;font-weight:800;color:#1d2f29;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.saved-place-head span{flex:0 0 auto;padding:2px 5px;border-radius:4px;background:#eee6d8;color:#5b5e58;font-size:8px;font-weight:700;}
.saved-place-info p{margin:0 0 2px;color:#68716b;font-size:9px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.saved-place-info p strong{color:#b8871f;margin-right:5px;}
.saved-place-info small{display:block;color:#9a927f;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.saved-bookmark{position:absolute;right:10px;top:9px;width:28px;height:28px;display:grid;place-items:center;color:#0b7d5c;}
.saved-bookmark .ui-icon{width:18px;height:18px;fill:currentColor}
.saved-action{grid-column:3;grid-row:1;align-self:end;justify-self:end;width:42px;height:30px;display:grid;place-items:center;border-radius:6px;background:var(--green);color:#fff;font-size:10px;font-weight:800;box-shadow:0 5px 12px rgba(8,118,79,.18);}
@media(max-width:374px){.saved-place-card{grid-template-columns:80px minmax(0,1fr) 42px;gap:6px}.saved-place-thumb{width:80px;height:64px}.saved-action{width:39px}.saved-bookmark{right:8px}}

/* v0.6.16 mobile-floor */
@media(max-width:374px){
  .map-topbar{padding-left:max(16px,9px);padding-right:max(16px,9px)}
  .recommend-sheet{padding-left:max(16px,9px);padding-right:max(16px,9px)}
  .bottom-nav{padding-left:max(16px,10px);padding-right:max(16px,10px)}
}

/* v0.12.16 - live recommendation sheet; original demo cards are backed up only */
.map-sheet-loading{margin:18px 0;padding:18px;border:1px dashed rgba(8,126,93,.24);border-radius:12px;background:#f7fbf9;color:#587069;text-align:center;font-size:12px;line-height:1.5}
.place-card.is-live-recommendation .place-thumb,.saved-place-card.is-live-saved .saved-place-thumb{position:relative;overflow:hidden;background-color:#e8dfd1;background-image:var(--guide-cover,linear-gradient(135deg,#d5b67d,#315947));background-size:cover;background-position:center}
.place-card.is-live-recommendation .nearby-guide-video,.saved-place-card.is-live-saved .nearby-guide-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#1d2924;pointer-events:none}
.place-card.is-live-recommendation .place-meta{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.recommend-sheet .place-list{width:100%;max-width:100%;min-width:0}
.place-card.is-live-recommendation{
  width:100%;
  max-width:100%;
  min-width:0;
  grid-template-columns:minmax(0,88px) minmax(0,1fr) minmax(38px,46px);
  overflow:hidden;
  box-sizing:border-box;
}
.place-card.is-live-recommendation>*{min-width:0;max-width:100%}
.place-card.is-live-recommendation .place-media-deep-link{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
.place-card.is-live-recommendation .place-thumb{
  width:100%;
  max-width:100%;
  min-width:0;
}
.place-card.is-live-recommendation .place-info{min-width:0;max-width:100%;overflow:hidden;padding-right:6px}
.place-card.is-live-recommendation .place-title,.place-card.is-live-recommendation .place-title h2,.place-card.is-live-recommendation .place-distance,.place-card.is-live-recommendation .place-meta{min-width:0;max-width:100%}
@media(max-width:374px){
  .place-card.is-live-recommendation{grid-template-columns:minmax(0,80px) minmax(0,1fr) minmax(36px,42px)}
}
.place-card.is-live-recommendation .favorite:disabled,.saved-place-card.is-live-saved .saved-bookmark:disabled,.nearby-guide-card.is-live-guide button:disabled{opacity:.55;cursor:wait}
.saved-place-card.is-live-saved .saved-action,.place-card.is-live-recommendation .action-btn{white-space:nowrap}

/* v0.12.17 - centered video play control + explicit media deep links */
.nearby-guide-media-link,.place-media-deep-link,.saved-media-deep-link{display:block;border-radius:7px;color:inherit;text-decoration:none}
.nearby-guide-media-link{width:100%;max-width:100%;min-width:0;height:80px;overflow:hidden}
.place-media-deep-link{width:88px;height:66px}
.saved-media-deep-link{width:88px;height:68px}
.nearby-guide-media-link:focus-visible,.place-media-deep-link:focus-visible,.saved-media-deep-link:focus-visible{outline:3px solid rgba(8,118,79,.34);outline-offset:2px}
.nearby-guide-media-link .play-mark{margin:0;transform:translate(-50%,-50%)}
@media(max-width:374px){.nearby-guide-media-link{height:76px}.place-media-deep-link{width:80px;height:66px}.saved-media-deep-link{width:80px;height:64px}}

/* v0.12.19 - contained map scroll: only recommend lists scroll, shell stays viewport-bound */
html,
body{
  height:100%;
  width:100%;
  max-width:100%;
  overflow:hidden;
  overscroll-behavior:none;
}
.map-shell{
  height:100vh;
  height:100dvh;
  width:100%;
  max-width:430px;
  min-width:0;
  max-height:100dvh;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  overscroll-behavior:none;
}
.map-page{
  --sheet-expanded-map-height:330px;
  --sheet-handle-zone-height:55px;
  width:100%;
  max-width:100%;
  min-width:0;
  flex:1 1 auto;
  min-height:0;
  height:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.map-stage{
  flex:0 0 330px;
  height:330px;
  max-height:330px;
}
.recommend-sheet{
  width:100%;
  max-width:100%;
  min-width:0;
  flex:1 1 auto;
  min-height:0;
  margin-top:-22px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding-bottom:0;
}
.recommend-sheet-content{
  width:100%;
  max-width:100%;
  min-width:0;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.recommend-sheet-content[hidden]{display:none}
.recommend-sheet .sheet-drag-handle,
.recommend-sheet .sheet-tabs{
  flex:0 0 auto;
}
.recommend-sheet .tab-panel{
  display:none;
  width:100%;
  max-width:100%;
  min-width:0;
  flex:1 1 auto;
  min-height:0;
  flex-direction:column;
  overflow:hidden;
}
.recommend-sheet .tab-panel.active{
  display:flex;
}
.recommend-sheet .sheet-filters,
.recommend-sheet .guide-filters,
.recommend-sheet .saved-filters{
  flex:0 0 auto;
}
.recommend-sheet .place-list,
.recommend-sheet .nearby-guide-list,
.recommend-sheet .saved-place-list{
  width:100%;
  max-width:100%;
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:calc(102px + env(safe-area-inset-bottom,0px));
}
.recommend-sheet.is-collapsed{
  flex:0 0 calc(55px + var(--bottom-nav-height,82px));
  min-height:calc(55px + var(--bottom-nav-height,82px));
  padding-bottom:var(--bottom-nav-height,82px);
}
.recommend-sheet.is-dragging,
.recommend-sheet.is-settling{
  flex:0 0 var(--sheet-drag-height);
  min-height:var(--sheet-drag-height);
  padding-bottom:0;
  will-change:flex-basis,min-height;
}
.recommend-sheet.is-dragging{
  transition:none;
}
.recommend-sheet.is-settling{
  transition:flex-basis .24s cubic-bezier(.22,.75,.25,1),min-height .24s cubic-bezier(.22,.75,.25,1);
}
.map-page.sheet-dragging .map-stage{
  flex:1 1 auto;
  height:auto;
  max-height:none;
  min-height:0;
}
.map-page.sheet-collapsed .map-stage{
  flex:1 1 auto;
  height:auto;
  max-height:none;
}
@media(prefers-reduced-motion:reduce){
  .sheet-handle,.recommend-sheet.is-settling{transition:none}
}
@media(min-width:700px){
  .map-shell{
    height:calc(100vh - 40px);
    height:calc(100dvh - 40px);
    max-height:calc(100dvh - 40px);
    min-height:0;
  }
}

/* v0.12.23 - foreground GPS, user trail and guide navigation */
.map-location-control{
  position:absolute;
  z-index:24;
  top:112px;
  right:12px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(222,231,226,.96);
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#176a52;
  box-shadow:0 8px 20px rgba(33,55,46,.18);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  -webkit-tap-highlight-color:transparent;
  transition:background-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.map-location-control .ui-icon{width:22px;height:22px}
.map-location-control:active{transform:scale(.94)}
.map-location-control:focus-visible{outline:3px solid rgba(22,119,210,.3);outline-offset:2px}
.map-location-control.is-active{background:#1677d2;color:#fff;border-color:#fff;box-shadow:0 9px 24px rgba(22,119,210,.32)}
.map-location-control.is-locating{color:#1677d2}
.map-location-control.is-locating .ui-icon{animation:map-location-spin 1.1s linear infinite}
.map-location-control.is-error{color:#b14d3c;background:#fff7f4}
.user-location-marker-wrap{background:transparent;border:0}
.user-location-marker{position:relative;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(22,119,210,.18);animation:user-location-pulse 1.8s ease-out infinite}
.user-location-marker i{width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:#1677d2;box-shadow:0 3px 10px rgba(18,78,134,.38)}
.real-map-popup-actions{display:flex;gap:7px;margin-top:9px}
.real-map-popup-actions a{min-height:29px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;font-size:11px;font-weight:800}
.real-map-popup-navigate{background:var(--green);color:#fff}
.real-map-popup-detail{background:#edf3ef;color:#285044}
.nearby-guide-footer{display:flex;align-items:center;gap:7px;min-width:0}
.nearby-guide-footer .nearby-guide-stats{flex:1 1 auto;min-width:0;gap:6px}
.nearby-guide-navigate{flex:0 0 auto;min-width:38px;height:24px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:var(--green);color:#fff;font-size:9px;font-weight:800;box-shadow:0 4px 10px rgba(8,118,79,.16)}
@keyframes map-location-spin{to{transform:rotate(360deg)}}
@keyframes user-location-pulse{0%{box-shadow:0 0 0 0 rgba(22,119,210,.34)}70%{box-shadow:0 0 0 13px rgba(22,119,210,0)}100%{box-shadow:0 0 0 0 rgba(22,119,210,0)}}
@media(max-width:374px){
  .map-location-control{right:9px}
}
@media(prefers-reduced-motion:reduce){
  .map-location-control,.map-location-control.is-locating .ui-icon,.user-location-marker{animation:none;transition:none}
}
