/* Own POI photo editor and library thumbnail. */
#modalCustomPoi .modal-box{max-height:calc(100dvh - 32px);overflow-y:auto}
.custom-poi-image-editor{margin:12px 0}
.custom-poi-image-preview{width:144px;height:90px;object-fit:cover;border-radius:6px;border:1px solid var(--line,#ccc);display:block;margin-bottom:8px}
.custom-poi-image-preview[hidden]{display:none}
.custom-poi-image-actions{display:flex;flex-wrap:wrap;gap:6px}
.custom-poi-image-actions button{font:inherit;padding:6px 10px;cursor:pointer;border:1px solid #bbb;background:#fff;border-radius:4px}
#customPoiImageStatus{display:block;font-size:.8rem;line-height:1.4;margin-top:6px}
#viewPoi .poi-cols,#viewPoi .custom-poi-row,.poi-cols,.custom-poi-row{grid-template-columns:56px minmax(150px,.9fr) minmax(0,2fr) 150px 96px}
.poi-dot:has(img){width:56px;height:40px;border-radius:5px;overflow:hidden;position:relative}
.poi-dot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.poi-dot img[hidden]{display:none}
@media(max-width:720px){
 #viewPoi .custom-poi-row,.custom-poi-row{grid-template-columns:56px minmax(0,1fr) auto}
}
/* Always usable when the global central-POI card switch is off. */
body.ls-personal-poi-open #lsPoiGlance{display:none!important}
.ls-personal-poi-card{position:fixed;z-index:10000080;left:max(12px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));box-sizing:border-box;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 100px);background:#fff;color:#201b16;border:2px solid #f28c28;border-radius:10px;box-shadow:0 4px 24px #0004;font:16px/1.45 system-ui,sans-serif;overflow:hidden;display:flex;flex-direction:column;pointer-events:auto;isolation:isolate}
.ls-personal-poi-card *{box-sizing:border-box}
.ls-personal-summary{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:10px 40px 10px 10px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;flex-shrink:0}
.ls-personal-heading{display:flex;flex-direction:column;gap:4px;min-width:0}
.ls-personal-title{font-weight:700;overflow-wrap:anywhere;min-width:0}
.ls-personal-hint{font-size:12px;font-weight:500;color:#69513b;line-height:1.35;text-decoration:underline}
.ls-personal-photo{position:relative;display:grid;place-items:center;flex:0 0 104px;height:72px;background:#fff2df;border-radius:5px;overflow:hidden}
.ls-personal-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ls-personal-photo img[hidden]{display:none}
.ls-personal-close{position:absolute;right:2px;top:2px;z-index:1;width:36px;height:36px;border:0;border-radius:6px;background:#fff;color:#201b16;font:26px/1 system-ui;cursor:pointer}
.ls-personal-poi-card.is-expanded{width:min(440px,calc(100vw - 24px));max-height:min(620px,calc(100dvh - 100px))}
.is-expanded .ls-personal-summary{align-items:flex-start;flex-direction:column;padding:12px 42px 8px 12px;gap:8px}
.is-expanded .ls-personal-photo{width:100%;flex-basis:auto;height:150px}
.ls-personal-description{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 16px 16px;min-height:0;touch-action:pan-y;user-select:text}
.ls-personal-description[hidden]{display:none}
@media(max-height:500px){
 .ls-personal-poi-card{bottom:12px;max-height:calc(100dvh - 76px)}
 .ls-personal-poi-card.is-expanded{max-height:calc(100dvh - 76px)}
 .is-expanded .ls-personal-summary{flex-direction:row;align-items:center;padding-bottom:10px}
 .is-expanded .ls-personal-photo{flex:0 0 104px;width:104px;height:72px}
}

/* Dial links stay in the saved description; their native tel: action is preserved. */
#lsPersonalPoiCard .ls-personal-phone{display:inline-block;color:#006b37;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:4px 2px;border-radius:3px;touch-action:manipulation}
#lsPersonalPoiCard .ls-personal-phone:focus-visible{outline:2px solid #f28c28;outline-offset:2px}

/* LS_POI_PHOTO_INPUT_R1 */
.ls-poi-image-drag{outline:3px dashed #18834c;outline-offset:-4px}
.poi-photo-input-hint{font:inherit;line-height:1.45;overflow-wrap:anywhere}
