/* TERRY_DOOR_LOCATION_R2_20261008. Scoped to location blocks and their dialog. */
.tdl-location{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:center;padding:10px;background:#f3f8fb;border:1px solid #d5e3ec;border-radius:9px;box-sizing:border-box;min-width:0}
.th-door>.tdl-location{margin:0 12px 12px}
.tg-door-card>.tdl-location{margin:12px 0 2px;background:#fffaf0;border-color:#e8ddc3}
.tdl-location.tdl-no-map{grid-template-columns:minmax(0,1fr);padding:12px 13px;border-left:3px solid #5790b4}
.tg-door-card>.tdl-no-map{border-left-color:#af8530}
.tdl-location .tdl-thumb{display:block;align-self:start;min-width:0;border:1px solid #a9c3d2;border-radius:6px;overflow:hidden;background:#fff;text-decoration:none!important;color:#174e6e!important}
.tdl-location .tdl-thumb img{display:block;width:100%;max-width:100%;height:auto;margin:0;padding:0;border:0;object-fit:contain}
.tdl-location .tdl-enlarge{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 2px;min-height:26px;box-sizing:border-box;background:#e8f2f8;border-top:1px solid #c6d9e5;color:#235a78;font-size:11px;font-weight:750;line-height:1.4}
.tdl-location .tdl-enlarge>span{font-size:13px;line-height:1}
.tdl-thumb:hover{box-shadow:0 0 0 2px #8cb7d1}
.tdl-copy{min-width:0;overflow-wrap:anywhere}
.tdl-copy .tdl-label{display:block;font-size:11px;font-weight:750;color:#4c6575;letter-spacing:.02em;line-height:1.5;margin-bottom:5px}
.tdl-copy .tdl-place{margin:0;font-size:14px;font-weight:800;line-height:1.6;color:#1d4561}
.tdl-copy .tdl-note{font-size:12px;line-height:1.75;font-weight:500;color:#37596e;margin:5px 0 0}
.tdl-copy .tdl-map-note{font-size:11px;line-height:1.65;color:#705022;margin:6px 0 0;border-top:1px solid #e0d4bc;padding-top:5px}
.tg-door-card .tdl-place{color:#62470f}
.tg-door-card .tdl-note{color:#615339}
.tg-door-card .tdl-label{color:#75603b}
.tg-door-card .tdl-thumb{border-color:#cfbd91}
.tg-door-card .tdl-enlarge{background:#f6eddb;border-color:#e0d1b0;color:#62470f}
.tdl-guide{margin:0 0 12px;font-size:12px!important;color:#4e6575;line-height:1.8}
.tdl-thumb:focus-visible{outline:3px solid #c45f00;outline-offset:3px}
.tdl-location [hidden]{display:none!important}
/* Only the activated dialog is inserted by JS; the original GIF link remains a fallback. */
html.tdl-map-open{overflow:hidden}
.tdl-map-dialog{box-sizing:border-box;width:min(540px,calc(100% - 24px));max-width:none;max-height:94vh;max-height:94dvh;padding:0;border:1px solid #9db6c6;border-radius:12px;background:#fff;color:#193c54;overflow:auto;box-shadow:0 16px 60px #10263770;font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif;line-height:1.7}
.tdl-map-dialog::backdrop{background:#0e223bcc}
.tdl-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f3f8fc;border-bottom:1px solid #d1e1ec;padding:10px 12px}
.tdl-dialog-head h2{font-size:16px;line-height:1.6;margin:0;min-width:0;overflow-wrap:anywhere}
.tdl-dialog-close{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:44px;flex-shrink:0;padding:7px 9px;border:1px solid #9fbccd;border-radius:7px;background:#fff;color:#24536f;font:700 13px/1.5 system-ui,sans-serif;cursor:pointer}
.tdl-dialog-close:focus-visible,.tdl-dialog-original:focus-visible{outline:3px solid #c45f00;outline-offset:2px}
.tdl-dialog-body{padding:12px 15px 8px;text-align:center}
.tdl-dialog-body img{display:block;max-width:100%;width:auto;height:auto;max-height:62vh;max-height:62dvh;min-height:0;object-fit:contain;margin:0 auto;image-rendering:auto}
.tdl-dialog-body img.tdl-map-enlarged{width:min(100%,476px)}
.tdl-dialog-note{margin:12px 0 0;color:#375367;font-size:13px;text-align:left;line-height:1.8}
.tdl-dialog-original{display:flex;align-items:center;justify-content:center;min-height:44px;margin:3px 15px 13px;border:1px solid #c1d3de;border-radius:6px;font-size:12px;color:#245571;text-decoration:underline}
@media(min-width:900px){.tdl-location{grid-template-columns:116px minmax(0,1fr);padding:11px;gap:14px}.th-door>.tdl-location{margin-left:15px;margin-right:15px}.tdl-copy .tdl-place{font-size:15px}.tdl-copy .tdl-note{font-size:13px}.tdl-copy .tdl-label{font-size:11px}.tdl-location .tdl-enlarge{font-size:12px}}
@media(max-width:359px){.tdl-location{grid-template-columns:90px minmax(0,1fr);padding:8px;gap:9px}.tdl-copy .tdl-place{font-size:13px}.tdl-copy .tdl-note{font-size:12px}.tdl-dialog-head h2{font-size:14px}}
@media print{.tdl-map-dialog,.tdl-guide,.tdl-enlarge{display:none!important}.tdl-location{break-inside:avoid}.tdl-location .tdl-thumb{border:0}.tdl-location{background:#fff!important}}
