/* Shared company location editor: isolated from the admin-only map styles. */
.company-location-picker{width:100%;min-width:0;margin:16px 0;background:var(--surface-card,#fff);border:1px solid var(--border-subtle,#dce4ef);border-radius:14px;overflow:hidden}
.company-location-picker__map{width:100%;height:370px;min-height:290px;position:relative;background:#e8eff6}
.company-location-map{position:absolute;inset:0;direction:ltr;overflow:hidden;touch-action:none;user-select:none;cursor:crosshair;isolation:isolate}
.company-location-map__grid{position:absolute;inset:0;background-color:#e4edf6;background-image:linear-gradient(0deg,transparent 97%,#bdccd9 100%),linear-gradient(90deg,transparent 97%,#bdccd9 100%);background-size:60px 60px}
.company-location-map__tiles,.company-location-map__markers{position:absolute;inset:0;pointer-events:none}
.company-location-map__tile{position:absolute;width:256px;height:256px;max-width:none;object-fit:cover;pointer-events:none}
.company-location-map__markers{z-index:3}
.company-location-map__pin{position:absolute;transform:translate(-50%,-100%);width:30px;height:38px;padding:0;background:#003da4;border:3px solid white;border-radius:50% 50% 50% 4px;rotate:-45deg;box-shadow:0 3px 10px #152f53a8;pointer-events:auto;cursor:grab}
.company-location-map__pin::after{content:'';position:absolute;inset:8px;background:#fff;border-radius:50%}
.company-location-map__pin:active{cursor:grabbing}
.company-location-map__pin:focus-visible{outline:3px solid #e3a333;outline-offset:4px}
.company-location-map__controls{position:absolute;top:12px;left:12px;z-index:10;display:flex;flex-direction:column;gap:5px}
.company-location-map__controls button{height:40px;width:40px;border:1px solid #bfccdb;border-radius:8px;background:#fff;color:#143b68;font:700 21px/1 sans-serif;cursor:pointer;box-shadow:0 2px 5px #0002}
.company-location-map__controls button:focus-visible{outline:3px solid #003da4;outline-offset:2px}
.company-location-map__notice,.company-location-map__tile-error{position:absolute;z-index:6;right:12px;top:12px;direction:rtl;text-align:right;font:500 12px/1.8 'Vazirmatn',Tahoma,sans-serif;color:#18395d;background:#fffc;border:1px solid #ccd7e5;border-radius:8px;padding:7px 10px;max-width:65%;pointer-events:none}
.company-location-map__notice[hidden],.company-location-map__tile-error[hidden]{display:none}
.company-location-map__tile-error{top:auto;bottom:25px;background:#fff7e9;color:#704711}
.company-location-map__credits{position:absolute;bottom:0;right:0;z-index:7;padding:2px 7px;background:#ffffffd9;font:10px/14px Arial,sans-serif;color:#394e64;direction:ltr}
.company-location-map__credits a{color:#14568e;text-decoration:underline}
.company-location-picker__footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:center;padding:15px 17px;direction:rtl}
.company-location-picker__hint{display:flex;flex-direction:column;gap:5px;flex:1;min-width:220px;font-size:12px;line-height:1.8;color:var(--text-secondary,#526277)}
.company-location-picker__hint strong{font-size:13px;color:var(--text-primary,#182a42)}
.company-location-picker__coords{font-variant-numeric:tabular-nums;unicode-bidi:isolate;text-align:right;color:var(--text-primary,#182a42);font-weight:600;font-size:12px}
.company-location-picker__clear{padding:10px 14px;border:1px solid var(--border-subtle,#c5d1df);border-radius:9px;background:var(--surface-subtle,#f1f5fa);color:var(--text-primary,#182a42);font-weight:600;font-size:12px;cursor:pointer}
.company-location-picker__clear:disabled{opacity:.55;cursor:not-allowed}
.company-location-picker__clear:focus-visible{outline:3px solid #003da4;outline-offset:2px}
@media(max-width:640px){.company-location-picker__map{height:320px}.company-location-picker__footer{padding:12px}.company-location-map__notice{max-width:calc(100% - 80px)}}

.company-location-picker__error{padding:12px;background:#fff3ed;color:#8c2e16;border:1px solid #e7b69b;border-radius:9px;margin:12px 0;font-size:13px}
