@font-face{font-family:Peyda;src:url('/peyda-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Peyda;src:url('/peyda-black.ttf') format('truetype');font-weight:900;font-display:swap}
:root{font-family:Peyda,sans-serif;color:#1f3430;background:#f3f5f0;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #a45e14;outline-offset:3px}.muted{color:#52665f;line-height:1.8}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#e8efe9}.login-card{width:min(100%,420px);background:#fff;border:1px solid #cbd8cf;padding:36px;border-radius:12px;box-shadow:0 12px 32px #173b2d16}.mark{display:grid;place-items:center;background:#205b49;color:white;width:42px;height:42px;border-radius:9px;font-weight:900;font-size:20px;flex:none}.eyebrow{color:#28634e;font-size:.85rem;margin:24px 0 8px}.login-card h1{font-size:1.45rem;margin:0}.login-form{display:grid;gap:9px;margin-top:24px}.login-form label{font-size:.9rem;margin-top:9px}.login-form input{width:100%;border:1px solid #7c9085;border-radius:6px;padding:11px;background:white;direction:ltr;text-align:left}.error{color:#a12121;min-height:1.5em;font-size:.85rem;margin:0}.primary{min-height:44px;background:#205b49;color:#fff;border:0;border-radius:6px;padding:12px;font-weight:900}.primary:hover{background:#174637}.dashboard{min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid #d5ded7;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,40px);gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand strong,.brand span:not(.mark){display:block}.brand strong{font-size:.98rem}.brand div span{font-size:.75rem;color:#61736a;margin-top:3px}.logout{min-height:44px;background:white;color:#285648;border:1px solid #9aafa1;border-radius:6px;padding:8px 14px}.logout:hover{background:#edf3ee}.workspace{max-width:1600px;margin:auto;padding:24px clamp(16px,3vw,40px) 32px}.map-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:17px}.map-heading h1{font-size:1.35rem;margin:0}.map-heading p{color:#52665f;font-size:.86rem;margin:6px 0 0}.legend{font-size:.8rem;color:#405c4f;white-space:nowrap}.legend i{display:inline-block;width:12px;height:12px;background:#78bca2;border:1px solid #246857;margin-left:5px;vertical-align:middle}.map-frame{height:calc(100vh - 180px);min-height:400px;position:relative;border:1px solid #bac9bd;border-radius:10px;overflow:hidden;background:#e6e1d4}#map{width:100%;height:100%;direction:ltr}.details{position:absolute;right:16px;bottom:16px;width:min(300px,calc(100% - 32px));background:#fff;border:1px solid #c6d4ca;border-radius:8px;padding:15px;box-shadow:0 4px 16px #172c201c;font-size:.85rem}.details-title{display:flex;justify-content:space-between;align-items:center}.details h2{font-size:.95rem;margin:0}.details button{border:0;background:transparent;font-size:1.5rem;line-height:1;color:#315648;min-width:44px;min-height:44px}.map-error{position:absolute;top:12px;right:12px;margin:0;background:#fff3ee;color:#842e1c;border:1px solid #a64c36;padding:10px 14px;border-radius:6px;font-size:.85rem}.details dl,.property-popup dl{margin:10px 0 0}.details dl div,.property-popup dl div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.details dt,.property-popup dt{color:#52665f}.details dd,.property-popup dd{margin:0;direction:ltr;text-align:left;overflow-wrap:anywhere}.maplibregl-popup-content{font-family:Peyda,sans-serif;direction:rtl;min-width:220px;font-size:.8rem;padding:12px}.maplibregl-popup-close-button{font-size:20px}.maplibregl-ctrl-attrib{direction:ltr}@media(max-width:600px){.topbar{height:68px}.brand div span{display:none}.workspace{padding:16px 12px}.map-heading{align-items:start}.map-heading h1{font-size:1.15rem}.map-heading p{max-width:220px}.map-frame{height:calc(100vh - 165px);min-height:380px}.details{right:10px;bottom:10px;width:min(280px,calc(100% - 20px))}}

.map-frame:focus-within::after{content:"+";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;color:#173e31;font:bold 24px sans-serif;text-shadow:0 0 3px white}

.plate-search{margin-bottom:16px;max-width:26rem}
.plate-search label{display:block;margin-bottom:4px}
.plate-controls{display:flex;gap:8px}
.plate-controls input:not([type="hidden"]){min-width:0;flex:1;min-height:44px;padding:8px 10px;border:1px solid #52665f;border-radius:6px;background:#fff;color:#1f3430}
.plate-controls button:disabled{opacity:.7;cursor:wait}

.plate-search p{margin:6px 0 0}
.plate-search p:empty{margin:0}

#plate-mode{font:inherit;min-height:44px;margin-bottom:8px;padding:5px 10px;border:1px solid #52665f;border-radius:6px;background:#fff;color:#1f3430}
#plate-mode:focus-visible{outline:3px solid #a45e14;outline-offset:3px}
.basemap-version{margin-bottom:12px}
.basemap-version select{font:inherit;min-height:44px;margin-inline-start:8px;padding:5px 10px;border:1px solid #52665f;border-radius:6px;background:#fff;color:#1f3430}
.basemap-version select:focus-visible{outline:3px solid #a45e14;outline-offset:3px}

.dashboard{height:100vh;height:100dvh;overflow:hidden}
.workspace{position:absolute;inset:0;max-width:none;margin:0;padding:0}
.map-frame{position:absolute;inset:0;height:auto;min-height:0;border:0;border-radius:0}
.topbar{position:absolute;z-index:3;inset:0 0 auto;height:auto;min-height:76px;padding:10px 20px;gap:16px;box-shadow:0 2px 10px #173b2d20}
.topbar .plate-search{position:relative;flex:1;max-width:460px;margin:0}
.plate-search label{font-size:.75rem;margin:0 0 2px}
.plate-controls input:not([type="hidden"]){direction:ltr}
.plate-controls input::placeholder{direction:rtl;text-align:right;color:#52665f}
.plate-search p:not(:empty){position:absolute;top:100%;right:0;margin:8px 0 0;padding:7px 12px;background:#fff;border:1px solid #c6d4ca;border-radius:6px;box-shadow:0 2px 8px #173b2d20}
.basemap-version{position:absolute;z-index:2;bottom:140px;left:10px;right:auto;margin:0;padding:5px 10px;background:#fff;border:1px solid #c6d4ca;border-radius:6px;font-size:.8rem}
.basemap-version select{min-height:38px}
.map-error{top:88px;left:16px;right:auto;z-index:1}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.map-frame:focus-within::after{z-index:1}
.details{max-height:40%;overflow:auto}
@media(max-width:700px){
  .topbar{display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:8px 12px}
  .topbar .plate-search{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
  .topbar .brand{grid-column:1;grid-row:1}
  .topbar form[action="/logout"]{grid-column:2;grid-row:1}
  .brand .mark{width:36px;height:36px}
  .map-error{top:143px;left:10px}
}
