/* EIRC-MAP — colours and layout from the provided mobile design. */
:root{--bg:#f7f5f0;--sheet-bg:#f7f5f0;--text:#1e2a38;--muted:#8a93a0;--accent:#2563eb;--border:#e4dfd3;--field-bg:#fff;--row-bg:#f7f5f0;--sheet-radius:20px;--nav-height:env(safe-area-inset-bottom, 0px)}
body{background:var(--bg);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.apt-reading-pair{flex:1;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.apt-reading-pair .stat-value{overflow-wrap:anywhere}
[hidden]{display:none!important}
button,input{font-family:inherit}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#map{bottom:var(--nav-height);background:#e7eae0}
.map-toolbar{position:fixed;z-index:12;left:16px;right:16px;top:calc(12px + env(safe-area-inset-top));max-width:448px;margin:auto;display:grid;gap:9px;pointer-events:none}
.brand-row,.map-toolbar .search{pointer-events:auto}.brand-row{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border-radius:12px;padding:9px 12px;box-shadow:0 4px 14px #1e2a3815}
.brand-row strong{font-size:15px;color:var(--text);letter-spacing:.03em}.brand-row strong span{font-size:10px;color:#5b6b7a;font-weight:650;letter-spacing:.08em}
.brand-row .logout-button{position:static;box-shadow:none;background:#f1eee6;color:#5b6b7a;font-size:12px;font-weight:600;padding:7px 10px}
.search-field,.search-field:focus-within{background:#fff;border:1px solid var(--border);border-radius:14px;padding:13px 14px;box-shadow:0 4px 14px #1e2a3824}.search-cancel:not([hidden]){background:white;border-radius:9px;padding:8px;font-size:13px}
.sheet{bottom:var(--nav-height);height:calc(var(--sheet-h, 92vh) - var(--nav-height) - 70px);max-height:calc(var(--sheet-h, 92vh) - var(--nav-height) - 70px);background:var(--bg);backdrop-filter:none;box-shadow:0 -8px 24px #1e2a3829;border-radius:20px 20px 0 0}
.sheet-handle{padding:10px 0 3px}.sheet-handle .grip{height:4px;background:#d3ccbb}.sheet-header{padding:8px 16px 10px}.sheet-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.sheet-title{margin:0;font-size:17px;letter-spacing:-.025em}.sheet-content{padding:4px 12px 20px;touch-action:pan-y}.hint{color:#5b6b7a;margin:5px 4px;font-size:13px}.primary-small{border:0;border-radius:12px;background:var(--accent);color:#fff;font-size:13px;font-weight:700;padding:10px 14px;cursor:pointer;white-space:nowrap}
.address-card,.collapsible{background:white;border:0;border-radius:14px;box-shadow:0 1px 0 #1e2a380a}.address-pin{background:#eaf1ff;color:var(--accent)}.address-title{font-size:16px;color:var(--text)}.address-subtitle{font-size:12px;color:#5b6b7a}.collapsible summary{padding:14px 12px;gap:10px}.collapsible-title{font-size:15px;color:var(--text)}.collapsible-sub{font-size:12px;color:#5b6b7a}.collapsible-icon{width:34px;height:34px;border-radius:10px}.kv-row{font-size:14px}.kv-label{color:#5b6b7a}.kv-value{color:var(--text)}
.apt-card,.obj-card{background:var(--bg);border:0;border-radius:12px;padding:12px}.apt-card-num{font-size:15px}.apt-card-ls,.apt-card-meta{font-size:12px}.enter-btn{background:var(--accent);color:#fff;border:0;border-radius:11px}.stat-value,.obj-secondary dd{color:var(--text)}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;height:var(--nav-height);background:white;border-top:1px solid var(--border);display:flex;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:650;cursor:pointer}.bottom-nav button[aria-current]{color:var(--accent);font-weight:750}.bottom-nav svg{width:23px;height:23px}
.house-list-screen{position:fixed;inset:0 0 var(--nav-height);z-index:20;background:var(--bg);display:flex;flex-direction:column}.list-header{padding:calc(18px + env(safe-area-inset-top)) 20px 8px;max-width:720px;width:100%;margin:0 auto}.list-header h2{font-size:22px;margin:0 0 14px}.list-search{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;background:white;padding:11px 14px;color:var(--muted)}.list-search input{border:0;outline:none;flex:1;min-width:0;font-size:15px;background:transparent;color:var(--text)}.list-header p{font-size:13px;color:#5b6b7a;margin:12px 0 4px}.list-scroll{overflow:auto;flex:1;padding:4px 12px 18px;width:100%;max-width:720px;margin:0 auto}.house-row{display:flex;align-items:center;gap:12px;background:white;width:100%;text-align:left;border:0;border-radius:14px;padding:14px;margin-bottom:8px;color:var(--text);cursor:pointer}.house-num{min-width:40px;height:40px;display:grid;place-items:center;background:#eaf1ff;color:var(--accent);border-radius:10px;padding:4px;font-size:13px;font-weight:750}.house-row-info{display:grid;gap:4px;flex:1;min-width:0}.house-row-info strong{font-size:14px;overflow-wrap:anywhere}.house-row-info small{font-size:12px;color:var(--muted)}.house-arrow{color:var(--muted);font-size:23px}#list-more{display:block;margin:12px auto}
.entry{background:var(--bg)}.entry-head{border-color:var(--border)}.entry-back{background:#f1eee6}.entry-title{font-size:16px}.entry-sub{font-size:12px}.entry-body{padding:16px;max-width:640px;width:100%;margin:auto}.entry-prev{border-radius:14px}.entry-prev-label,.entry-label{font-size:13px;color:#5b6b7a}.entry-input{background:#1e2a38;color:#f7f5f0;letter-spacing:3px}.entry-photo-btn{min-height:150px;border-color:#c9c2af;color:var(--muted);font-size:13px}.entry-save{font-size:15px}.save-caption{color:#5b6b7a;text-align:center;font-size:12px;margin:0 0 10px}.entry-foot{padding:12px 16px calc(18px + env(safe-area-inset-bottom))}.toast{bottom:calc(var(--nav-height) + 12px)}
.auth-screen{background:var(--bg)}.login-card{border-radius:20px;color:var(--text)}
@media(min-width:640px){.map-toolbar{margin:0;left:16px;right:auto;width:448px;max-width:calc(100% - 32px)}.sheet{left:16px;bottom:calc(var(--nav-height) + 12px);max-width:448px;border-radius:20px}.bottom-nav{justify-content:center}.bottom-nav button{max-width:230px}.entry-foot .entry-save{max-width:608px;margin:auto}}
dialog { border:0; border-radius:18px; padding:20px; width:min(640px,92vw); max-height:85vh; overflow:auto; color:#1d2935; background:white; }
dialog::backdrop {background:#15233488;}
dialog input,dialog select {display:block;width:100%;margin:6px 0 12px;padding:9px;border:1px solid #ccd3dc;border-radius:8px;}
dialog button {margin:4px;padding:8px 12px;border:0;border-radius:8px;background:#1467db;color:white;}
dialog h3 {margin-top:22px;}
.search-toggle,.search-cancel-icon{display:none}
@media(max-width:639px){
  .map-toolbar{max-width:none;right:max(4px, env(safe-area-inset-right));left:max(16px, env(safe-area-inset-left))}
  .brand-row{background:none;box-shadow:none;padding:0;pointer-events:none;justify-content:flex-end}
  .brand-row strong{display:none}
  .brand-row .logout-button,.brand-row .search-toggle{pointer-events:auto;background:#fff;color:var(--text);box-shadow:0 3px 12px #1e2a3829;border-radius:12px;min-height:44px;font-size:14px;padding:0 14px}
  .brand-row .search-toggle{display:grid;place-items:center;border:0;margin-right:0;width:44px;padding:0;cursor:pointer}
  .map-toolbar:not(.search-open) .search{display:none}
  .map-toolbar.search-open .brand-row{display:none}
  .search-toggle .search-toggle-close{display:none}
  .map-toolbar.search-open .search-toggle-open{display:none}
  .map-toolbar.search-open .search-toggle-close{display:block}
  .map-toolbar .search{margin-right:0;min-width:0}
  .map-toolbar.search-open .search-cancel{display:grid!important;place-items:center;opacity:1;max-width:none;width:44px;height:44px;padding:0;background:white;border-radius:12px;box-shadow:0 3px 12px #1e2a3829}
  .search-cancel-text{display:none}
  .search-cancel-icon{display:block}
}
