.ranch-map-dialog{box-sizing:border-box;width:calc(100vw - 32px);max-width:1180px;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid #cbbba5;border-radius:12px;background:#fffaf2;color:#38251b;box-shadow:0 20px 70px #0005;overflow:hidden}
.ranch-map-dialog::backdrop{background:#1c1712c9;backdrop-filter:blur(3px)}
.ranch-map-toolbar{display:flex;align-items:center;gap:18px;padding:10px 16px;border-bottom:1px solid #ded2c1;background:#fffaf2;min-height:64px;box-sizing:border-box}
.ranch-map-dialog .ranch-map-toolbar h2{margin:0 auto 0 0;font:400 22px/1.2 Georgia,serif;color:#38251b}
.ranch-map-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:6px 10px;border:1px solid #cfbfa8;border-radius:6px;background:#fffdf8;color:#38251b;font:600 20px/1 Arial,sans-serif;cursor:pointer}
.ranch-map-toolbar button:disabled{opacity:.4;cursor:default}.ranch-map-zoom{display:flex;gap:5px}.ranch-map-toolbar [data-map-reset]{font:600 12px/1 Arial,sans-serif;min-width:65px}
.ranch-map-original{display:inline-flex;align-items:center;min-height:44px;color:#963642;font:600 12px/1.4 Arial,sans-serif;text-decoration:none;white-space:nowrap}
.ranch-map-toolbar .ranch-map-close{font-size:27px;margin-left:2px}.ranch-map-dialog :is(a,button):focus-visible{outline:3px solid #a13a45;outline-offset:2px}
.ranch-map-viewport{height:calc(100% - 65px);overflow:auto;background:#e8dfd0;overscroll-behavior:contain;scrollbar-gutter:stable}
.ranch-map-viewport img{display:block;width:100%;height:auto;max-width:none;margin:0 auto;object-fit:contain}
@media(max-width:620px){.ranch-map-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:8px}.ranch-map-toolbar{gap:7px;padding:8px;flex-wrap:wrap;min-height:110px}.ranch-map-dialog .ranch-map-toolbar h2{font-size:19px;flex:1}.ranch-map-zoom{order:3;flex:1}.ranch-map-original{order:4;font-size:11px}.ranch-map-viewport{height:calc(100% - 111px)}}
