
:root{
  --bg:#f4f7f6;--surface:#ffffff;--text:#17211d;--muted:#6d7973;
  --line:#e3eae6;--green:#0d7a53;--green2:#0a6847;--soft:#eaf6f0;
  --danger:#b42318;--shadow:0 8px 30px rgba(20,50,38,.08);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text)}
body{padding-bottom:90px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center}
.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--green),#2aa676);color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px}
.brand-name{font-weight:800;line-height:1.1}.brand-sub{font-size:11px;color:var(--muted);margin-top:2px}
.top-actions{display:flex;gap:8px}
.icon-btn,.avatar-btn{border:1px solid var(--line);background:#fff;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:700}
.avatar-btn{background:var(--soft);color:var(--green)}
.main{max-width:860px;margin:auto}
.screen{display:none;padding:18px 16px 28px}.screen.active{display:block}
.hero-card{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;background:linear-gradient(135deg,#0b6d4a,#149168);color:#fff;border-radius:24px;padding:22px;box-shadow:var(--shadow)}
.hero-card h1{font-size:25px;line-height:1.2;margin:6px 0 8px}.hero-card p{margin:0;opacity:.85;font-size:14px}
.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;opacity:.75}
.primary-btn,.secondary-btn,.text-btn{border:0;border-radius:13px;padding:12px 16px;font-weight:750}
.primary-btn{background:var(--green);color:#fff}.primary-btn:hover{background:var(--green2)}
.secondary-btn{background:#fff;color:var(--text);border:1px solid var(--line)}
.text-btn{background:transparent;color:var(--green);padding:8px 4px}
.hero-btn{background:#fff;color:var(--green);white-space:nowrap}.full{width:100%}.large{padding:15px 18px;font-size:16px}.compact{padding:9px 12px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}
.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.metric-card span{font-size:12px;color:var(--muted);display:block}.metric-card strong{font-size:22px;margin-top:5px;display:block}
.section-head,.page-title-row,.editor-head,.upload-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
.section-head{margin:22px 2px 10px}.section-head h2,.page-title-row h1,.editor-head h1,.upload-title h2,.review-header h2{margin:0}.section-head p,.page-title-row p,.editor-head p,.upload-title p,.review-header p{margin:4px 0 0;color:var(--muted);font-size:13px}
.property-list{display:grid;gap:10px}.property-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;display:grid;grid-template-columns:76px 1fr auto;gap:12px;align-items:center}
.property-thumb{width:76px;height:68px;border-radius:12px;background:#e6eee9;display:grid;place-items:center;color:#6b7d74;font-size:24px;overflow:hidden}.property-thumb img{width:100%;height:100%;object-fit:cover}
.property-main h3{margin:0 0 4px;font-size:15px}.property-main p{margin:0;color:var(--muted);font-size:12px}.price{font-weight:800;margin-top:5px}
.status-badge{font-size:11px;border-radius:999px;padding:5px 8px;background:#eef2f0;color:#53615a;white-space:nowrap}.status-published{background:#e7f7ef;color:#087447}.status-submitted{background:#fff4db;color:#946200}.status-draft{background:#eef2f7;color:#59687a}.status-hidden{background:#f7eaea;color:#9b3129}
.empty-card,.empty-state{background:#fff;border:1px dashed #cfd9d4;border-radius:18px;padding:24px;text-align:center;color:var(--muted)}
.empty-state{margin-top:20px}.empty-icon{font-size:34px}
.subscription-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}
.subscription-bar{height:9px;background:#edf2ef;border-radius:20px;overflow:hidden;margin:12px 0}.subscription-bar>span{display:block;height:100%;background:var(--green);border-radius:20px}
.filter-tabs,.admin-tabs{display:flex;gap:8px;overflow:auto;padding:12px 0 16px}.filter-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;white-space:nowrap}.filter-chip.active{background:var(--green);color:#fff;border-color:var(--green)}
.editor-head{margin-bottom:14px}.editor-head .icon-btn{width:38px;height:38px}.editor-head h1{font-size:20px}
.stepper{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:8px;margin-bottom:14px}
.step-dot{border:0;background:transparent;color:#8a9690;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px}.step-dot span{width:28px;height:28px;border-radius:50%;background:#eef2f0;display:grid;place-items:center;font-weight:700}.step-dot small{font-size:10px}.step-dot.active{color:var(--green)}.step-dot.active span{background:var(--green);color:#fff}.step-dot.done span{background:#dff3e9;color:var(--green)}
.editor-step{display:none}.editor-step.active{display:block}
.form-card,.upload-card,.location-card,.preview-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 4px 18px rgba(20,50,38,.03)}
label{display:block;font-size:12px;font-weight:700;margin:12px 0 6px;color:#47534d}
input,select,textarea{width:100%;border:1px solid #dce4df;background:#fff;border-radius:12px;padding:12px 13px;outline:none}input:focus,select:focus,textarea:focus{border-color:#67b794;box-shadow:0 0 0 3px #e8f6ef}
textarea{min-height:110px;resize:vertical}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.money-input{display:flex;align-items:center;border:1px solid #dce4df;border-radius:12px;padding-left:12px}.money-input input{border:0}
.land-fields{margin-top:4px}
.upload-card{position:relative}
.count-pill{font-size:11px;background:var(--soft);color:var(--green);padding:6px 9px;border-radius:999px;font-weight:700}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.photo-item{aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#eef2ef}.photo-item img{width:100%;height:100%;object-fit:cover}
.camera-tile,.document-picker{border:1.5px dashed #b9c8c0;border-radius:16px;padding:16px;display:flex;align-items:center;gap:12px;background:#fafcfb;margin:10px 0}.camera-icon{width:42px;height:42px;border-radius:12px;background:var(--soft);display:grid;place-items:center;font-size:22px;color:var(--green)}.camera-tile strong,.camera-tile small,.document-picker strong,.document-picker small{display:block}.camera-tile small,.document-picker small{color:var(--muted)}
.doc-icon{width:46px;height:46px;border-radius:12px;background:#fff0ee;color:#c63a2f;display:grid;place-items:center;font-size:12px;font-weight:900}
.doc-list{display:grid;gap:8px;margin:12px 0}.doc-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px}.doc-meta strong{display:block;font-size:13px}.doc-meta small{color:var(--muted)}
.doc-actions{display:flex;gap:6px;flex-wrap:wrap}.mini-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 9px;font-size:11px}.mini-btn.on{background:var(--soft);color:var(--green);border-color:#bee4d1}
.privacy-note,.hint{font-size:12px;color:var(--muted);margin-top:9px}.center{text-align:center}
.location-status{background:#f7faf8;border:1px solid var(--line);border-radius:12px;padding:11px;margin:12px 0;font-size:13px}
#map{height:320px;border-radius:16px;margin-top:12px;background:#e8efeb;overflow:hidden}
.review-header{margin-bottom:12px}.review-summary-grid{display:grid;gap:10px}.check-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px}.check-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0}.ok{color:#0a7a4f;font-weight:700}.warn{color:#a15d00;font-weight:700}
.review-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.review-photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
.editor-actions{position:sticky;bottom:82px;background:rgba(244,247,246,.95);backdrop-filter:blur(8px);display:flex;gap:10px;padding:12px 0 4px;margin-top:12px}.editor-actions button{flex:1}
.profile-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px}.profile-avatar{width:58px;height:58px;border-radius:18px;background:var(--soft);color:var(--green);font-size:22px;font-weight:900;display:grid;place-items:center}.profile-card h2{margin:0}.profile-card p{margin:4px 0;color:var(--muted)}
.menu-card{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.menu-row{width:100%;border:0;background:#fff;padding:15px 16px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);text-align:left}.menu-row:last-child{border-bottom:0}.menu-row.danger{color:var(--danger)}
.account-panel{margin-top:14px}.hidden{display:none!important}
.admin-content{display:grid;gap:10px}.admin-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px}.admin-card h3{margin:0 0 6px}.admin-card p{font-size:12px;color:var(--muted)}
.admin-actions{display:flex;gap:8px;margin-top:10px}.approve{background:var(--green);color:#fff}.reject{background:#fff;color:var(--danger);border:1px solid #edc6c3}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:60;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr 74px 1fr 1fr;align-items:end;padding:7px 10px max(8px,env(safe-area-inset-bottom))}
.nav-item{border:0;background:transparent;color:#78857f;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px}.nav-item span{font-size:20px}.nav-item small{font-size:10px}.nav-item.active{color:var(--green);font-weight:700}
.nav-add{width:56px;height:56px;border:0;border-radius:18px;background:var(--green);color:#fff;font-size:30px;box-shadow:0 8px 18px rgba(13,122,83,.28);justify-self:center;transform:translateY(-9px)}
.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%) translateY(20px);opacity:0;background:#17211d;color:#fff;padding:11px 15px;border-radius:12px;z-index:100;transition:.2s;pointer-events:none;max-width:90%;font-size:13px}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
pre{white-space:pre-wrap;word-break:break-word;background:#111;color:#e4f6ed;border-radius:14px;padding:12px;font-size:11px;max-height:360px;overflow:auto}
@media(max-width:620px){
  .screen{padding:14px 12px 24px}.hero-card{align-items:flex-start;flex-direction:column}.hero-btn{width:100%}
  .metric-grid{grid-template-columns:1fr 1fr}.property-card{grid-template-columns:64px 1fr auto}.property-thumb{width:64px;height:60px}
  .two-col{grid-template-columns:1fr}.three-col{grid-template-columns:repeat(3,1fr)}
  .stepper{gap:0}.step-dot small{font-size:9px}.topbar{padding:11px 13px}
}

.nearby-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.nearby-chips{display:flex;gap:7px;overflow:auto;padding:10px 0 12px}
.nearby-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;white-space:nowrap;font-size:12px}
.nearby-chip.active{background:var(--soft);color:var(--green);border-color:#b8dec9;font-weight:750}
.nearby-search-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.nearby-search-row select{margin:0}
.nearby-results,.selected-nearby{display:grid;gap:8px;margin-top:10px}
.nearby-result,.nearby-selected-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px;background:#fff}
.nearby-icon{width:38px;height:38px;border-radius:11px;background:var(--soft);display:grid;place-items:center;font-size:20px}
.nearby-info strong{display:block;font-size:13px}.nearby-info small{color:var(--muted)}
.nearby-add,.nearby-remove{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 9px;font-size:11px}
.nearby-add{color:var(--green)}.nearby-remove{color:var(--danger)}
.manual-nearby{margin:12px 0}.manual-nearby summary{cursor:pointer;color:var(--green);font-weight:700;font-size:13px}
.compact-card{margin-top:9px;padding:12px}.nearby-selected-head{margin-top:16px}

.search-hero{background:linear-gradient(135deg,#0b6d4a,#15a274);color:#fff;border-radius:22px;padding:22px;margin-bottom:12px}
.search-hero h1{margin:6px 0 8px;font-size:26px}.search-hero p{margin:0;opacity:.85}
.agent-shortcut{text-align:right;margin-bottom:6px}
.search-controls{background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;margin-bottom:12px}
.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:13px;padding:0 10px}.search-box input{border:0}
.search-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
#searchMap{height:360px;border-radius:18px;background:#e7efeb;overflow:hidden;border:1px solid var(--line)}
.multi-gallery{margin-top:8px}
.photo-item{position:relative}.delete-float{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:9px;background:rgba(180,35,24,.9);color:#fff;font-weight:800}
.property-card{position:relative}.property-delete{position:absolute;bottom:8px;right:8px;border:0;background:#fff0ee;color:var(--danger);border-radius:8px;padding:5px 7px;font-size:10px}
.doc-row{position:relative}.doc-delete{color:var(--danger)}
.ai-summary-card,.poster-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:12px}
.poster-actions{display:flex;gap:8px;margin:10px 0}.poster-actions button{flex:1}
.poster-preview{width:100%;max-height:520px;border-radius:14px;background:#eef2ef;margin:10px 0}
.search-property-card{cursor:pointer}
.detail-sheet{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:100;display:flex;align-items:flex-end}
.detail-inner{background:#fff;width:100%;max-height:88vh;overflow:auto;border-radius:24px 24px 0 0;padding:18px}
.lang-switcher{display:flex;gap:8px}
@media(min-width:800px){.detail-inner{max-width:720px;margin:auto;border-radius:24px}}

.lang-segment{display:flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.lang-btn{border:0;background:#fff;padding:9px 9px;font-weight:750;color:#66736d}
.lang-btn.active{background:var(--soft);color:var(--green)}
.enhance-toggle{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:14px;padding:11px;margin:10px 0}
.enhance-toggle input{width:auto}
.enhance-toggle span strong,.enhance-toggle span small{display:block}
.enhance-toggle span small{color:var(--muted)}
.photo-auto-note,.autosave-state{font-size:12px;color:var(--green);background:var(--soft);border-radius:11px;padding:9px 11px;margin:10px 0}
.draw-mode-active{outline:3px solid #15a274;outline-offset:-3px;touch-action:none}
.preview-badge{background:#f2eafe;color:#6d28d9}

.map-title-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 4px;color:var(--muted);font-size:12px}
.map-title-row strong{color:var(--text);font-size:14px}
.search-box-action{padding-right:5px}.search-box-action input{min-width:0}.search-box-action button{white-space:nowrap}
.amenities-editor{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.amenity-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.amenity-chip{display:flex;align-items:center;gap:6px;background:var(--soft);color:var(--green);border:1px solid #c7e5d6;border-radius:999px;padding:7px 10px;font-size:12px}
.amenity-chip button{border:0;background:transparent;color:var(--danger);font-weight:900;padding:0 2px}
.amenity-add-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.camera-launch{border:1.5px dashed #a9c1b5;background:#fbfdfc;border-radius:18px;padding:18px;display:flex;gap:14px;align-items:center;text-align:left}
.camera-launch span strong,.camera-launch span small{display:block}.camera-launch span small{color:var(--muted);margin-top:3px}
.camera-modal{position:fixed;inset:0;z-index:500;background:#0a0d0b;color:#fff;display:flex;flex-direction:column}
.camera-modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#101512}
.camera-modal-head small{display:block;color:#aeb8b2;margin-top:3px}.camera-close{width:42px;height:42px;border:0;border-radius:12px;background:#222a25;color:#fff;font-size:28px}
.camera-stage{position:relative;flex:1;min-height:0;background:#000;overflow:hidden}.camera-stage video{width:100%;height:100%;object-fit:cover}
.camera-guide{position:absolute;inset:10%;border:1px solid rgba(255,255,255,.25);border-radius:20px;pointer-events:none}
.camera-controls{display:grid;grid-template-columns:1fr 92px 1fr;gap:14px;align-items:center;padding:18px 20px;background:#101512}
.camera-shutter{width:78px;height:78px;border-radius:50%;border:7px solid #fff;background:#d8e0db;justify-self:center;box-shadow:inset 0 0 0 4px #101512}
.camera-status{text-align:center;padding:9px;background:#101512;color:#c5d2ca;font-size:12px}
.poster-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hidden{display:none!important}

/* v16 / v102-style interaction restore */
.main{padding-bottom:112px}
.topbar{z-index:350}
.bottom-nav{z-index:340}
#searchMap,#map{position:relative;z-index:1;isolation:isolate;overflow:hidden}
#searchMap .leaflet-pane,#map .leaflet-pane{z-index:1!important}
#searchMap .leaflet-top,#searchMap .leaflet-bottom,#map .leaflet-top,#map .leaflet-bottom{z-index:10!important}
.search-controls{position:relative;z-index:2}
.v102-actions{align-items:center}
#drawAreaBtn.active{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 0 0 3px rgba(13,122,83,.12)}
.address-card{margin:12px 0;background:#f8fbf9;border:1px solid var(--line);border-radius:15px;padding:12px}
.address-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.address-card textarea{min-height:74px;margin:0 0 8px}
.address-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.translation-review-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:12px}
.translation-tabs,.poster-lang-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}
.translation-panel{border:1px solid var(--line);border-radius:14px;padding:11px;background:#fbfdfc}
.translation-field{margin:9px 0}
.translation-field label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.translation-field input,.translation-field textarea{width:100%}
.translation-field textarea{min-height:92px}
.translation-list{display:flex;flex-wrap:wrap;gap:6px}
.translation-token{background:var(--soft);color:var(--green);padding:6px 9px;border-radius:999px;font-size:12px}
.translation-status{font-size:11px;color:var(--muted);margin-top:6px}
.poster-language{margin:10px 0}
.poster-language>span{font-size:12px;color:var(--muted);font-weight:700}
.sheet-backdrop{position:fixed;inset:0;z-index:600;background:rgba(12,20,16,.45);display:flex;align-items:flex-end}
.bottom-sheet{width:100%;max-height:82vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:10px 16px 24px}
.sheet-handle{width:44px;height:5px;background:#c8d0cb;border-radius:99px;margin:2px auto 12px}
.sheet-head{display:flex;justify-content:space-between;align-items:center}.sheet-head h2{margin:0}.sheet-head p{margin:3px 0 0;color:var(--muted)}
.filter-form{box-shadow:none;border:0;padding:0}
.filter-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.no-results-actions{display:flex;gap:8px;justify-content:center;margin-top:10px}

/* v17: public photo slider */
.property-slider{margin:8px 0 18px}
.slider-stage{position:relative;width:100%;aspect-ratio:4/3;background:#eef3f0;border-radius:18px;overflow:hidden;touch-action:pan-y}
.slider-stage>img{width:100%;height:100%;object-fit:cover;display:block}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:42px;border:0;border-radius:50%;background:rgba(10,20,15,.62);color:#fff;font-size:30px;line-height:1}
.slider-prev{left:10px}.slider-next{right:10px}
.slider-counter{position:absolute;right:10px;bottom:10px;background:rgba(10,20,15,.68);color:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}
.slider-thumbs{display:flex;gap:8px;overflow-x:auto;padding:9px 2px 2px;scrollbar-width:none}
.slider-thumbs::-webkit-scrollbar{display:none}
.slider-thumb{flex:0 0 72px;width:72px;height:56px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#fff}
.slider-thumb.active{border-color:var(--green)}
.slider-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* v18 search map follows results + v102-style public detail */
.price-marker-wrap{background:transparent!important;border:0!important}
.price-marker{white-space:nowrap;background:#19779a;color:#fff;border:2px solid #fff;border-radius:10px;padding:5px 8px;font-size:12px;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.2);text-align:center}
.search-property-card.map-selected{outline:2px solid var(--green);outline-offset:2px}
.v102-detail{background:rgba(8,24,18,.72)}
.v102-detail-inner{max-width:620px;margin:0 auto;background:#fff;min-height:100vh;padding:0 0 28px!important;border-radius:24px 24px 0 0;overflow:hidden}
.detail-sticky-head{position:sticky;top:0;z-index:20;height:58px;background:#fff;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:6px 12px;border-bottom:1px solid var(--line);font-weight:800;text-align:center}
.detail-close,.detail-share-top{width:40px;height:40px;border:0;border-radius:12px;background:#edf6f1;color:var(--green);font-size:25px}
.detail-share-top{font-size:20px}
.v102-detail .property-slider{margin:0;padding:12px 18px 0}
.v102-detail .slider-stage{aspect-ratio:4/3;border-radius:20px}
.detail-hero{padding:24px 30px 16px}
.detail-purpose{color:var(--green);font-size:18px;margin-bottom:10px}
.detail-hero h1{font-size:32px;line-height:1.18;margin:0 0 12px}
.detail-price{font-size:38px;font-weight:900;color:#a95b1f;margin-bottom:12px}
.detail-short-spec{font-size:19px;line-height:1.5;color:#173b30}
.detail-address{margin-top:14px;background:var(--green);color:#fff;border-radius:17px;padding:17px;font-size:16px;line-height:1.5;font-weight:700}
.detail-agent-card{margin:8px 30px 22px;padding:16px;border-radius:20px;background:#eef8f2;display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:center}
.agent-avatar{width:56px;height:56px;border-radius:50%;overflow:hidden;background:#dbece3;display:grid;place-items:center;font-size:26px}
.agent-avatar img{width:100%;height:100%;object-fit:cover}
.agent-copy{display:flex;flex-direction:column;min-width:0}.agent-copy strong{font-size:20px}.agent-copy span,.agent-copy small{color:var(--muted)}
.detail-agent-card .primary-btn{grid-column:1/-1}
.detail-section{padding:8px 30px 18px}.detail-section h2{font-size:25px;margin:10px 0 13px;color:#173b30}
.summary-card{background:#f4f9f6;border-left:5px solid var(--green);border-radius:14px;padding:18px;line-height:1.8;font-size:17px;white-space:pre-line}
.spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.spec-card{background:#eef8f2;border-radius:18px;padding:16px;text-align:center;min-height:126px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.spec-icon{font-size:28px}.spec-card strong{font-size:24px;color:#164b3b}.spec-card span{color:#345e50;margin-top:4px}
.amenity-public-list{display:flex;flex-wrap:wrap;gap:8px}.amenity-public{background:#eaf7ef;color:#175c46;border-radius:999px;padding:9px 13px}
.nearby-public-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.nearby-public-row small{white-space:nowrap;color:var(--muted)}
.document-public-row{width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px;margin:8px 0;border:1px solid var(--line);border-radius:14px;background:#f8fbf9;text-align:left;color:#173b30}
.detail-empty{padding:14px;border-radius:12px;background:#f6f7f6;color:var(--muted)}
.detail-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.detail-bottom-close{margin:4px 30px 20px;width:calc(100% - 60px)!important}
@media(max-width:420px){.detail-hero,.detail-section{padding-left:20px;padding-right:20px}.detail-agent-card{margin-left:20px;margin-right:20px}.detail-hero h1{font-size:28px}.detail-price{font-size:34px}}

/* v19: v102 area fallback, search modes, room editor, translation approval */
#nearMeBtn.active,#drawAreaBtn.active{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important;box-shadow:0 0 0 3px rgba(13,122,83,.12)}
.area-fallback-banner{background:#fff4d6;border:1px solid #efd491;border-radius:14px;padding:12px 14px;margin:0 0 12px;color:#705317;line-height:1.45}
.marker-emoji{font-size:16px;vertical-align:-1px}.property-emoji-thumb{font-size:36px;display:grid;place-items:center;width:100%;height:100%;background:#eef7f2}
.smart-subcard{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfdfc}
.compact-title h3{margin:0;font-size:18px}.compact-title p{margin:3px 0 0;color:var(--muted);font-size:12px}
.room-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.room-chip-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:7px;align-items:center;background:#edf7f1;border-radius:13px;padding:8px 10px;min-width:170px}
.room-chip-icon{font-size:20px}.room-chip-name{font-size:13px}.room-remove{border:0;background:#fff;color:#c9342f;border-radius:50%;width:24px;height:24px}
.room-add-row{display:grid;grid-template-columns:1fr 1fr 66px auto;gap:7px;align-items:center}.room-add-row>*{min-width:0}
.translation-approve-btn{margin-top:10px}
.translation-status.approved{color:var(--green);font-weight:800;background:#eaf7ef;padding:8px 10px;border-radius:10px}
@media(max-width:520px){.room-add-row{grid-template-columns:1fr 1fr}.room-add-row #roomQty{grid-column:1}.room-add-row #addRoom{grid-column:2}}

/* v20: true in-app property popup + mutually exclusive search modes */
body.modal-open{overflow:hidden}
.search-mode-btn{background:#fff!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important}
.search-mode-btn.active{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important;box-shadow:0 0 0 3px rgba(13,122,83,.12)!important}
.v102-detail{z-index:1200!important;align-items:flex-end!important;padding:14px 10px 0;background:rgba(8,24,18,.62)!important}
.v102-detail-inner{position:relative;min-height:0!important;max-height:92dvh!important;height:auto!important;width:min(620px,100%)!important;border-radius:24px 24px 0 0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:0 -10px 40px rgba(0,0,0,.24)}
.v102-detail .detail-sticky-head{position:sticky;top:0;z-index:50;background:#fff;border-radius:24px 24px 0 0}
.v102-detail .detail-close{background:#0d7a53!important;color:#fff!important;font-weight:900}
.v102-detail .detail-share-top{background:#edf6f1!important;color:#0d7a53!important}
.auto-translation-note{margin-top:10px;padding:8px 10px;border-radius:10px;background:#fff4d6;color:#745716;font-size:12px;font-weight:700}
body.modal-open .bottom-nav{pointer-events:none}

/* v21: public detail poster preview + fully localized section headings */
.public-poster-preview{background:#eef5f1;border-radius:18px;padding:10px;min-height:220px;display:grid;place-items:center}
.public-poster-preview img{display:none;width:100%;max-height:560px;object-fit:contain;border-radius:14px;background:#fff}
.poster-loading{color:var(--muted);padding:40px 10px;text-align:center}
.detail-section h2{display:flex;align-items:center;gap:8px}

.search-map-wrap{position:relative}.map-clear-area{position:absolute;top:12px;right:12px;z-index:550;width:42px;height:42px;border:0;border-radius:12px;background:#fff;color:#0d7a53;font-size:20px;font-weight:900;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.v102-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:8px!important}.v102-actions button{width:100%;min-width:0;padding-left:7px!important;padding-right:7px!important}
.amenity-dropdown-row{display:grid!important;grid-template-columns:1.1fr 1fr auto;gap:8px}
.nearby-compact-controls{display:grid;grid-template-columns:1.2fr .9fr auto;gap:8px;margin:10px 0}.nearby-result-picker{display:grid;grid-template-columns:1fr auto;gap:8px;margin:10px 0}
.slot-add-row{display:grid;grid-template-columns:1.25fr .8fr .8fr auto;gap:8px;align-items:center}.slot-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}.slot-row,.public-slot{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#eef8f2;border-radius:13px;padding:10px 12px}.slot-remove{border:0;background:#fff;color:#b8322c;border-radius:999px;padding:6px 10px}.public-slot-list{display:flex;flex-direction:column;gap:8px}
@media(max-width:520px){.amenity-dropdown-row{grid-template-columns:1fr 1fr}.amenity-dropdown-row button{grid-column:1/-1}.nearby-compact-controls{grid-template-columns:1fr 1fr}.nearby-compact-controls button{grid-column:1/-1}.slot-add-row{grid-template-columns:1fr 1fr}.slot-add-row #slotDate,.slot-add-row button{grid-column:1/-1}}

/* v23 detail readability, owner edit, poster preview, leads */
.detail-section h2{font-size:21px;line-height:1.2;margin:8px 0 11px}
.upload-title h2,.review-header h2,.page-title-row h1{font-size:24px;line-height:1.15}
.land-spec-wide{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:#eaf6f0;border-radius:16px;padding:14px 16px;margin-bottom:10px}
.land-spec-wide span{font-size:26px}.land-spec-wide strong{font-size:22px}.land-spec-wide small{color:#567269}
.property-owner-note{display:block;color:#0d7a53;margin-top:4px;font-size:11px}
.clickable-poster{cursor:zoom-in}.poster-preview-hint{text-align:center;color:#6c7b75;font-size:12px;margin-top:7px}
.poster-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:10050;display:grid;place-items:center;padding:18px}
.poster-lightbox img{max-width:100%;max-height:90vh;object-fit:contain;border-radius:14px}.poster-lightbox-close{position:fixed;top:18px;right:18px;width:48px;height:48px;border:0;border-radius:50%;font-size:30px;background:#fff;color:#111}
.contact-overlay{position:fixed;inset:0;z-index:10020;background:rgba(10,35,27,.58);display:flex;align-items:flex-end;justify-content:center}
.contact-sheet{background:#fff;width:min(680px,100%);max-height:90vh;overflow:auto;border-radius:26px 26px 0 0;padding:18px}
.contact-head{display:flex;align-items:center;justify-content:space-between;font-size:22px}.contact-head button{border:0;background:#eef5f1;border-radius:12px;width:42px;height:42px;font-size:26px}
.contact-sheet label{display:block;font-weight:700;margin:13px 0 6px}.contact-sheet input,.contact-sheet textarea,.contact-sheet select{width:100%}.contact-agent-name{color:#61736b;margin:6px 0 12px}
.customer-thread,.lead-messages{display:flex;flex-direction:column;gap:8px;margin:10px 0}.chat-bubble{max-width:86%;padding:9px 11px;border-radius:14px;background:#eef3f0;white-space:pre-wrap}.chat-bubble.agent{align-self:flex-end;background:#dff5e9}.chat-bubble small{display:block;color:#718079;font-size:10px;margin-bottom:2px}
.lead-inbox{display:grid;gap:12px}.lead-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.lead-card-head{display:flex;justify-content:space-between;gap:10px}.lead-card-head small{display:block;color:#718079;margin-top:3px}.lead-appointment{background:#fff6dc;border-radius:12px;padding:10px;margin:10px 0}.appointment-actions{display:flex;gap:8px;margin-top:8px}.appointment-actions button{border:1px solid #d5ded8;background:#fff;border-radius:10px;padding:7px 10px}.lead-reply{display:grid;grid-template-columns:1fr auto;gap:8px}
.detail-share-actions{margin-top:4px}
@media(max-width:520px){
  .detail-section h2{font-size:19px}.upload-title h2,.review-header h2,.page-title-row h1{font-size:22px}
  .land-spec-wide{grid-template-columns:auto 1fr}.land-spec-wide small{grid-column:2}
}

/* v24 */
.nearby-result-toolbar{display:flex;gap:8px;margin-bottom:10px;position:sticky;top:0;background:#fff;padding:6px 0;z-index:2}
.nearby-result-list{display:grid;gap:7px;max-height:310px;overflow:auto;border:1px solid #dce5e0;border-radius:14px;padding:8px}
.nearby-result-option{display:flex;align-items:flex-start;gap:10px;padding:10px;border-radius:12px;background:#f7faf8;border:1px solid #e4ebe7}
.nearby-result-option input{width:22px;height:22px;margin-top:2px;flex:0 0 auto}
.nearby-result-copy{display:flex;flex-direction:column;min-width:0}.nearby-result-copy strong{font-size:15px;line-height:1.25}.nearby-result-copy small{color:#718079;margin-top:3px}
.custom-nearby-category-list{display:grid;gap:7px;margin-top:10px}.custom-nearby-category-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f3f8f5;border-radius:12px;padding:9px 10px}.custom-category-delete{border:0;background:#fff0ed;color:#c9362b;border-radius:10px;padding:7px 10px;font-weight:700}
.detail-address-link{width:100%;border:0;text-align:left;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;cursor:pointer}.detail-address-link span{flex:0 0 auto;font-size:20px}
.land-spec-wide strong{white-space:nowrap;font-size:19px;letter-spacing:-.2px}
.public-poster-preview img{width:100%;height:auto;display:block}
@media(max-width:430px){.land-spec-wide{grid-template-columns:auto minmax(0,1fr) auto}.land-spec-wide strong{font-size:16px;white-space:nowrap}.land-spec-wide small{font-size:11px;white-space:nowrap;grid-column:auto}.nearby-result-toolbar{display:grid;grid-template-columns:1fr 1fr}}

/* v28: public poster actions belong to the public listing */
.public-poster-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.public-poster-actions .primary-btn,.public-poster-actions .secondary-btn{min-height:54px;font-weight:800}
@media(max-width:420px){.public-poster-actions{grid-template-columns:1fr}}

.public-slot.slot-booked{opacity:.55;background:#f2f3f2}.public-slot em{font-style:normal;font-size:.86rem;font-weight:800;color:#0d7a53}.public-slot.slot-booked em{color:#8a4a42}.public-poster-actions button:disabled{opacity:.45;pointer-events:none}

/* v30 Super Admin + runtime i18n/master data */
.lang-segment{max-width:240px;overflow-x:auto;scrollbar-width:none}.lang-segment::-webkit-scrollbar{display:none}.lang-btn{min-width:44px;white-space:nowrap}
.admin-agent-card{display:grid;gap:12px}.admin-agent-head{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center}.agent-avatar.mini{width:46px;height:46px}.admin-agent-metrics{display:flex;gap:8px}.admin-agent-metrics span{background:#eef7f2;border-radius:999px;padding:6px 10px;font-size:12px}.admin-inline-panel{padding:12px;border-radius:13px;background:#f5f9f7}.admin-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.admin-language-grid label{display:flex;align-items:center;gap:7px;font-weight:600}.admin-language-grid small{color:var(--muted)}
.admin-config-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#eef7f2;border-radius:15px;padding:12px;margin-bottom:12px}.admin-config-toolbar span{font-size:12px;color:var(--muted)}.admin-lang-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.admin-lang-head h3 small{font-size:11px;color:var(--muted)}.coverage-row{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}.coverage-row span{font-size:12px;background:#f3f6f4;border-radius:999px;padding:6px 9px}.admin-master-group{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}.admin-master-group h2{font-size:19px;margin:0 0 10px}.master-row{display:grid;grid-template-columns:36px 1fr auto auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.master-row:last-child{border-bottom:0}.master-row small{display:block;color:var(--muted);font-size:11px}.master-icon{font-size:22px}.danger-btn{border:1px solid #efc7c3;background:#fff1ef;color:#b42318;border-radius:11px;padding:9px 12px;font-weight:800}
html[data-i18n-debug="true"] [data-i18n-missing]{outline:1px dashed rgba(220,80,60,.18);outline-offset:1px}
@media(max-width:520px){.admin-agent-head{grid-template-columns:42px 1fr}.admin-agent-head .status-badge{grid-column:2}.admin-language-grid{grid-template-columns:1fr}.admin-config-toolbar{align-items:flex-start;flex-direction:column}.master-row{grid-template-columns:34px 1fr auto}.master-row .delete-master{grid-column:2/-1;justify-self:end}}

/* v32 compact booking + admin language controls */
.public-viewing-select{width:100%;min-height:52px;border:1px solid #d8e2de;border-radius:16px;padding:0 14px;background:#f1faf6;font:inherit;color:#17352c}
.slot-date-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 12px}.slot-date-picker label{font-weight:800}.slot-date-picker input{flex:1;min-width:190px}
.slot-hour-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.slot-hour-check{display:block}.slot-hour-check input{position:absolute;opacity:0;pointer-events:none}.slot-hour-check span{display:flex;justify-content:center;align-items:center;min-height:44px;border:1px solid #d9e4df;border-radius:12px;background:#fff;font-weight:700;font-size:.9rem}.slot-hour-check input:checked+span,.slot-hour-check.checked span{background:#e3f5ed;border-color:#11875f;color:#0b6b4c;box-shadow:inset 0 0 0 1px #11875f}.slot-date-note{font-size:.9rem;color:#6d7b76;margin-bottom:8px}.sticky-admin-toolbar{position:sticky;top:0;z-index:6;background:#f7faf8;padding:10px 0;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:520px){.slot-hour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sticky-admin-toolbar span{width:100%}}

/* v33 language/admin layout */
.topbar{gap:10px}
.brand{min-width:0;flex:0 1 auto}
.brand>div:last-child{min-width:0}
.brand-name,.brand-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{min-width:0;max-width:62%;align-items:center}
.lang-segment{max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;white-space:nowrap;flex:1}
.lang-segment::-webkit-scrollbar{display:none}
.lang-btn{flex:0 0 auto;white-space:nowrap}
.sticky-admin-toolbar{top:68px!important}
.coverage-bars{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 10px}
.coverage-bars>div{height:6px;background:#e8eeeb;border-radius:999px;overflow:hidden}
.coverage-bars i{display:block;height:100%;background:#11875f;border-radius:999px;min-width:0}
@media(max-width:520px){
  .topbar{padding:10px 12px}
  .brand-mark{width:34px;height:34px}
  .brand-sub{max-width:145px}
  .top-actions{max-width:64%}
  .lang-btn{padding:9px 10px}
  .sticky-admin-toolbar{top:58px!important}
}

/* v34: scalable language selector + compact mobile header */
.lang-segment.lang-select-mode{overflow:visible;border:0;background:transparent;max-width:150px}
.lang-select{height:44px;max-width:150px;width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;color:#174537;font:inherit;font-weight:800;padding:0 34px 0 12px;appearance:auto}
.translation-complete{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:12px;background:#e8f7f0;color:#08744f;font-weight:800}
@media(max-width:520px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .brand{max-width:190px}
  .brand-sub{max-width:120px}
  .top-actions{max-width:none;min-width:0}
  .lang-segment.lang-select-mode{max-width:118px}
  .lang-select{max-width:118px;height:42px;font-size:15px;padding-left:10px}
}

/* v37: keep Step 5 stable while async translations/poster sections update */
#screen-editor .editor-step[data-step-panel="5"],#reviewSummary,#translationReviewPanel,.translation-review-card,.ai-summary-card,.poster-card{overflow-anchor:none}
#screen-editor .editor-step[data-step-panel="5"]{min-height:calc(100vh - 210px)}

/* v38: lock editor viewport; Step 5 must never drift horizontally while async i18n loads */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;overscroll-behavior-x:none}
.main,.screen,#screen-editor,#screen-editor .editor-step,#screen-editor .review-summary-grid,#screen-editor .translation-review-card,#screen-editor .ai-summary-card,#screen-editor .poster-card{width:100%;max-width:100%;min-width:0}
#screen-editor{overflow-x:clip;touch-action:pan-y}
#screen-editor .editor-step[data-step-panel="5"]{overflow-x:clip!important;contain:inline-size style}
#screen-editor .editor-step[data-step-panel="5"] *{max-width:100%}
#screen-editor textarea,#screen-editor input,#screen-editor select{min-width:0}
.nav-inbox{position:relative}.nav-badge{position:absolute;top:0;right:18%;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d93025;color:#fff;font-size:11px;line-height:20px;text-align:center;font-weight:800}.nav-badge.hidden{display:none}
.admin-language-scope{display:grid;grid-template-columns:minmax(100px,1fr) repeat(3,minmax(64px,.6fr));gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.admin-language-scope .scope-head{font-size:11px;color:var(--muted);text-align:center}.admin-language-scope label{display:flex;justify-content:center;align-items:center;gap:4px;font-size:12px}.admin-language-scope strong{font-size:13px}
.chat-bubble{position:relative;padding-right:34px}.chat-delete{position:absolute;right:6px;top:6px;border:0;background:transparent;color:#9a5a55;font-size:15px;line-height:1;padding:4px;cursor:pointer}.unread-pill{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:#d93025;color:#fff;font-size:11px;font-weight:800;padding:0 6px}.lead-card.unread{box-shadow:0 0 0 2px rgba(13,122,83,.12)}.appointment-status{font-weight:800}.appointment-status.confirmed{color:#0d7a53}.appointment-status.cancelled{color:#b3261e}.appointment-actions .danger{color:#b3261e}
@media(max-width:520px){.admin-language-scope{grid-template-columns:minmax(86px,1fr) repeat(3,54px);font-size:11px}.admin-language-scope .scope-head{font-size:9px}}

.scope-save-state{grid-column:1/-1;text-align:right;min-height:14px;font-size:11px;color:var(--green)}
.nav-badge{z-index:4;box-shadow:0 0 0 2px #fff}


/* v43: poster actions live inside full-screen poster preview */
.poster-preview-section .public-poster-actions{display:none!important}
.v43-poster-lightbox{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:78px 16px 24px}
.v43-poster-lightbox .poster-lightbox-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:auto}
.v43-poster-lightbox .poster-lightbox-stage img{display:block;max-width:min(94vw,760px);max-height:calc(100vh - 110px);width:auto;height:auto;object-fit:contain;border-radius:20px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.poster-lightbox-toolbar{position:fixed;top:max(18px,env(safe-area-inset-top));right:16px;z-index:10060;display:flex;gap:10px;align-items:center}
.poster-icon-btn{width:50px;height:50px;border:0;border-radius:999px;background:#fff;color:#0d7a53;font-size:29px;line-height:1;display:grid;place-items:center;box-shadow:0 4px 18px rgba(0,0,0,.28);font-weight:800}
.poster-icon-btn.poster-lightbox-close{color:#111;font-size:34px}
.poster-icon-btn:disabled{opacity:.38;pointer-events:none}
@media(max-width:480px){.v43-poster-lightbox{padding:74px 10px 18px}.poster-lightbox-toolbar{right:12px;gap:8px}.poster-icon-btn{width:46px;height:46px;font-size:26px}.poster-icon-btn.poster-lightbox-close{font-size:31px}.v43-poster-lightbox .poster-lightbox-stage img{max-width:96vw;max-height:calc(100vh - 100px);border-radius:14px}}
/* v46: Agent Workspace lives under Properties; public search has no workspace shortcut */
.properties-workspace{margin-bottom:18px}
.properties-workspace-hero{margin-bottom:14px}
.properties-metric-grid{margin-bottom:22px}
.poster-icon-btn.poster-icon-save{text-decoration:none;cursor:pointer}
.poster-icon-btn.poster-icon-save[aria-disabled="true"]{opacity:.38;pointer-events:none}

/* v46: compact search hero + remove redundant map caption */
.search-hero h1{white-space:nowrap;font-size:clamp(20px,5.9vw,28px);letter-spacing:-.035em;line-height:1.15}
.map-title-row{display:none!important}
@media(max-width:390px){.search-hero{padding-left:16px;padding-right:16px}.search-hero h1{font-size:clamp(19px,5.6vw,24px)}}

/* v46: keep the search headline on one line without clipping in every UI language */
.search-hero{overflow:hidden}
.search-hero h1{white-space:nowrap;max-width:100%;font-size:clamp(19px,5.2vw,26px);letter-spacing:-.035em;line-height:1.15}
html[data-ui-lang="en"] .search-hero h1{font-size:clamp(16px,4.45vw,22px);letter-spacing:-.045em}
html[data-ui-lang="ru"] .search-hero h1{font-size:clamp(16px,4.35vw,21px);letter-spacing:-.04em}
html[data-ui-lang="ja"] .search-hero h1,html[data-ui-lang="zh"] .search-hero h1{font-size:clamp(18px,4.9vw,24px)}
.search-map-caption{display:none!important}
@media(max-width:390px){.search-hero{padding-left:16px;padding-right:16px}.search-hero h1{font-size:18px}html[data-ui-lang="en"] .search-hero h1{font-size:15.5px}html[data-ui-lang="ru"] .search-hero h1{font-size:15px}}
/* v47: render the poster preview from the live canvas so LINE WebView export/CORS cannot hide it. */
.public-poster-canvas-mount{width:100%;display:grid;place-items:center}
.public-poster-preview canvas.public-poster-canvas{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;border-radius:14px;background:#fff}
.poster-lightbox-stage canvas.public-poster-canvas-lightbox{display:block;max-width:100%;max-height:calc(100vh - 130px);width:auto;height:auto;margin:auto;border-radius:16px;background:#fff}

/* v49 public poster orientation + download */
.public-poster-orientation{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 14px}
.poster-orientation-btn{min-height:48px;border:1px solid #d7dfdb;border-radius:16px;background:#fff;color:#20332d;font-weight:800;font-size:1rem;padding:10px 12px}
.poster-orientation-btn.active{background:#e7f6ef;border-color:#12845f;color:#0a7654;box-shadow:inset 0 0 0 1px #12845f}
.public-poster-canvas[data-orientation=landscape]{aspect-ratio:4/3}
.public-poster-canvas[data-orientation=portrait]{aspect-ratio:3/4}
.poster-lightbox-stage .public-poster-canvas{max-width:min(94vw,1100px);max-height:82vh;width:auto;height:auto}

.public-poster-preview{position:relative}
.public-poster-inline-actions{position:absolute;top:12px;right:12px;z-index:5;display:flex;gap:8px}
.poster-inline-icon{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.94);color:#087955;font-size:1.3rem;font-weight:900;box-shadow:0 3px 12px rgba(0,0,0,.18);display:grid;place-items:center}
.poster-inline-icon:disabled{opacity:.38;pointer-events:none}

/* v50: reliable public poster orientation + direct save links */
.poster-inline-save,.poster-icon-save{text-decoration:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
.poster-inline-save[aria-disabled="true"],.poster-icon-save[aria-disabled="true"]{opacity:.38;pointer-events:none}
.public-poster-orientation{position:relative;z-index:2}
.public-poster-orientation .poster-orientation-btn{display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap}
@media(max-width:390px){.public-poster-orientation .poster-orientation-btn{font-size:.92rem;padding-inline:8px}}

.poster-save-fallback{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:18px}
.poster-save-fallback-card{position:relative;width:min(94vw,760px);max-height:94vh;overflow:auto;background:#111;border-radius:24px;padding:16px;color:#fff;text-align:center}
.poster-save-fallback-card img{display:block;width:100%;height:auto;border-radius:16px;margin-top:12px;-webkit-touch-callout:default;user-select:auto}
.poster-save-fallback-title{font-size:1.15rem;font-weight:800;margin:4px 48px 4px}
.poster-save-fallback-help{font-size:.92rem;opacity:.82;line-height:1.4}
.poster-save-fallback-close{position:absolute;right:10px;top:8px;border:0;border-radius:999px;width:42px;height:42px;font-size:30px;line-height:1;background:#fff;color:#111}
.agent-intro-overlay{position:fixed;inset:0;z-index:10020;background:rgba(5,26,20,.62);display:flex;align-items:flex-end;justify-content:center;padding:16px}
.agent-intro-sheet{position:relative;width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:28px 28px 20px 20px;padding:28px 20px 22px;color:#12251f}
.agent-intro-close{position:absolute;right:14px;top:14px;width:44px;height:44px;border:0;border-radius:999px;background:#eef6f2;font-size:30px;line-height:1;color:#143d31}
.agent-intro-kicker{font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0c8a60;margin-right:56px}
.agent-intro-sheet h2{font-size:1.7rem;line-height:1.15;margin:8px 56px 12px 0}
.agent-intro-sheet>p{line-height:1.55;color:#4b5d57}
.agent-intro-hero{display:block;width:100%;height:auto;border-radius:20px;margin:14px 0 16px;border:1px solid #dce9e3}.agent-intro-benefits{display:grid;gap:8px;margin:14px 0 4px}.agent-intro-benefits>div{background:#f0faf6;border:1px solid #cfe8dc;border-radius:14px;padding:12px 14px;font-weight:800;color:#126e50}.help-agent-guide-image{margin-bottom:14px;border-radius:18px;overflow:hidden}.help-agent-guide-image img{display:block;width:100%;height:auto}
.agent-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.agent-plan-card{border:1px solid #dbe7e2;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:5px;min-width:0}
.agent-plan-card.featured{border:2px solid #14865f;background:#f0faf6}
.agent-plan-card strong{color:#0c7c58}.agent-plan-card b{font-size:1.05rem}.agent-plan-card span{font-size:.82rem;color:#66756f;line-height:1.35}
.agent-plan-note{font-size:.9rem;background:#f6f8f7;padding:12px 14px;border-radius:14px}
.agent-intro-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;margin-top:18px}.agent-intro-actions button{min-height:52px}
.contact-signed-in{margin:4px 0 14px;padding:10px 12px;border-radius:12px;background:#f2f8f5;color:#315247;font-size:.9rem}
@media(max-width:520px){.agent-plan-grid{grid-template-columns:1fr}.agent-intro-actions{grid-template-columns:1fr}.agent-intro-sheet{padding:24px 18px 18px}}


/* v56 billing, admin reconciliation, grouped chat */
.billing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.billing-plan-card{border:1px solid #d9e5df;border-radius:16px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:5px;text-align:left;min-width:0;color:#1b3129}
.billing-plan-card.active{border:2px solid #11845d;background:#eef9f4}
.billing-plan-card strong{font-size:1rem}.billing-plan-card span{font-size:.82rem;color:#6c7b75}.billing-plan-card b{color:#087955}
.payment-box,.payment-qr-admin{margin-top:14px}.payment-qr-image{display:block;width:min(260px,75vw);height:auto;margin:12px auto;border-radius:14px;border:1px solid #dce6e1;background:#fff;padding:8px}
.payment-slip-upload{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding:12px;border:1px dashed #b9cfc5;border-radius:14px;background:#f8fbfa;font-weight:700}
.payment-slip-upload input{font-size:16px}.payment-slip-preview{display:block;width:min(320px,100%);max-height:380px;object-fit:contain;margin:12px auto;border-radius:14px;border:1px solid #d8e1dd;background:#fff}
.admin-billing-status{display:grid;grid-template-columns:auto auto 1fr;gap:6px 12px;align-items:center;padding:12px;margin:10px 0;border-radius:14px;background:#f6f8f7}
.admin-billing-status small{grid-column:1/-1;color:#68766f}.billing-state{justify-self:start;border-radius:999px;padding:4px 9px;font-size:.75rem;font-weight:800;background:#edf1ef}.billing-state.active{background:#e2f7ed;color:#087955}.billing-state.over_quota,.billing-state.past_due,.billing-state.suspended{background:#fff0ef;color:#a23a32}
.admin-payment-warning{padding:10px 12px;border-radius:12px;background:#fff8e5;color:#745710;font-weight:700;margin-bottom:10px}
.chat-group{border:1px solid #dbe4e0;border-radius:18px;background:#fff;margin:0 0 12px;overflow:hidden}.chat-group>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer}.chat-group>summary::-webkit-details-marker{display:none}.chat-group>summary>span:first-child{display:flex;flex:1;min-width:0;flex-direction:column}.chat-group>summary small{font-weight:500;color:#6c7a74}.chat-group-body{border-top:1px solid #e3e9e6;padding:10px;background:#f8faf9}.chat-thread-delete{border:0;background:transparent;font-size:1rem;padding:7px;min-width:40px;min-height:40px}
@media(max-width:520px){.billing-plans{grid-template-columns:1fr}.admin-billing-status{grid-template-columns:1fr 1fr}.admin-billing-status .billing-state{grid-column:1/-1}}

.admin-tab-badge{display:inline-flex;min-width:22px;height:22px;padding:0 6px;border-radius:999px;align-items:center;justify-content:center;background:#b42318;color:#fff;font-size:12px;font-weight:800;vertical-align:middle}.submitted-slip{margin:14px 0}.submitted-slip strong{display:block;margin-bottom:8px}.submitted-slip .payment-slip-preview{width:100%;max-height:420px;object-fit:contain;border-radius:16px;border:1px solid #dbe5df;background:#fff}


/* NearEstate VW60 — search UI refresh, preserving v57 app structure */
.vw60-map-wrap{position:relative;overflow:hidden;border-radius:22px;box-shadow:var(--shadow)}
.vw60-map-wrap #searchMap{height:390px;border-radius:22px}
.vw60-map-actions{position:absolute;left:12px;bottom:12px;z-index:900;display:flex;gap:8px;flex-wrap:wrap}
.vw60-map-actions .secondary-btn{background:rgba(255,255,255,.96);box-shadow:0 3px 14px rgba(0,0,0,.14);border:0;border-radius:999px;padding:10px 13px}
.vw60-map-status{font-size:12px;color:var(--muted);min-height:19px;padding:7px 3px 0}
.vw60-shortcuts{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:12px 0 7px}
.vw60-shortcuts::-webkit-scrollbar{display:none}
.vw60-shortcut{flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 13px;font-weight:750;white-space:nowrap}
.vw60-search-box{margin-top:4px}
.vw60-filter-section{margin-bottom:14px}
.vw60-cluster-icon{background:transparent!important;border:0!important}
.vw60-cluster-icon div{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;border:3px solid #fff;box-shadow:0 3px 14px rgba(0,0,0,.22);font-weight:900}
.favorite-heart{position:absolute;right:9px;top:9px;z-index:3;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#7f8984;font-size:24px;display:grid;place-items:center;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.favorite-heart.active,.detail-favorite-top.active{color:#e53935}
.search-property-card,.favorite-property-card{position:relative;padding-right:58px}
.detail-head-actions{display:flex;align-items:center;gap:8px}
.detail-favorite-top{border:0;background:#fff;width:40px;height:40px;border-radius:12px;font-size:24px;color:#7f8984}
@media(max-width:620px){.vw60-map-wrap #searchMap{height:350px}.vw60-map-actions{left:9px;bottom:9px}.vw60-map-actions .secondary-btn{font-size:12px;padding:9px 11px}}


/* VW62 map controls: icon only */
.map-icon-btn{width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;display:inline-grid!important;place-items:center!important;border-radius:50%!important}
.map-icon-btn svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.map-clear-area.map-icon-btn{display:grid;place-items:center}
.map-clear-area.map-icon-btn.hidden{display:none!important}
.vw60-map-actions{gap:10px}

/* VW63 */
.public-filter-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 0 2px}.public-filter-tabs::-webkit-scrollbar{display:none}.public-filter-tabs .filter-chip{flex:0 0 auto}.filter-open-chip{margin-left:auto}
.poster-dual-stage{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:6px;width:min(96vw,1100px);min-height:55vh}.poster-slide-mount{display:grid;place-items:center;min-width:0;min-height:50vh}.poster-slide-arrow{width:42px;height:56px;border:0;border-radius:16px;background:rgba(255,255,255,.94);font-size:38px;line-height:1;color:#0d7a53;box-shadow:0 4px 18px rgba(0,0,0,.16)}.poster-slide-dots{display:flex;justify-content:center;gap:9px;padding:12px}.poster-slide-dots button{width:9px;height:9px;border-radius:50%;border:0;background:#b8c9c1;padding:0}.poster-slide-dots button.active{background:#0d7a53;transform:scale(1.25)}.poster-lightbox-count{color:#fff;font-weight:800;margin-right:auto}.v63-poster-lightbox .poster-lightbox-toolbar{display:flex;align-items:center;gap:10px}.v63-poster-lightbox .poster-lightbox-toolbar .poster-lightbox-close{margin-left:auto}
@media(max-width:520px){.poster-dual-stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:2px}.poster-slide-arrow{width:34px;height:48px;font-size:30px}}

/* VW64 poster pair */
.poster-pair-preview{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:12px;align-items:start;margin-top:12px}
.poster-pair-item{min-width:0}
.poster-pair-item>small{display:block;margin:0 0 6px;color:var(--muted,#6d756f);font-weight:700}
.poster-pair-item canvas{width:100%;height:auto;display:block;border-radius:16px;background:#eef4f0;border:1px solid #dce6df}
.poster-preview.poster-rendering{opacity:.55}
.poster-lightbox-actions{display:flex;gap:8px}
@media(max-width:560px){.poster-pair-preview{grid-template-columns:1fr}.poster-pair-item:first-child canvas{max-width:72%;margin-inline:auto}}


/* VW66 stable bottom navigation slots */
.bottom-nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 74px minmax(0,1fr) minmax(0,1fr);contain:layout style;}
.bottom-nav>[data-nav-slot="1"]{grid-column:1}.bottom-nav>[data-nav-slot="2"]{grid-column:2}.bottom-nav>[data-nav-slot="3"]{grid-column:3}.bottom-nav>[data-nav-slot="4"]{grid-column:4}.bottom-nav>[data-nav-slot="5"]{grid-column:5}
.nav-item{min-width:0;min-height:54px;position:relative;contain:layout style paint}.nav-item small{display:block;min-height:14px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-slot-hidden{visibility:hidden!important;pointer-events:none!important;display:flex!important}
.nav-account .nav-badge{position:absolute;top:2px;right:calc(50% - 22px)}

/* VW66 true freehand capture surface */

/* VW66 poster viewer: swipe only, no left/right arrows */
.v66-poster-lightbox .poster-dual-stage{display:block;width:min(96vw,1100px);min-height:55vh;touch-action:pan-y}
.v66-poster-lightbox .poster-slide-mount{display:grid;place-items:center;min-height:55vh}
.v66-poster-lightbox .poster-slide-arrow{display:none!important}
.v66-poster-lightbox .poster-lightbox-toolbar{left:16px;right:16px;justify-content:flex-end}
.v66-poster-lightbox .poster-lightbox-count{margin-right:auto}

.admin-sort-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap}.admin-sort-toolbar select{min-height:42px;border:1px solid var(--line);border-radius:12px;padding:8px 12px;background:#fff;font:inherit}.admin-payment-warning[data-payment-shortcut]{cursor:pointer;border:0;width:100%;text-align:left}


/* VW69: published posters are stored assets, shown compactly in detail and enlarged only on tap. */
.published-poster-gallery{display:grid;grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr);gap:12px;align-items:start}
.published-poster-card{appearance:none;border:1px solid #dbe5df;background:#f7faf8;border-radius:16px;padding:8px;min-width:0;cursor:zoom-in;text-align:left;overflow:hidden}
.published-poster-card>span{display:block;font-size:.78rem;font-weight:800;color:#6d7b75;margin:0 0 6px 2px}
.published-poster-card img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain;border-radius:12px;background:#fff}
.published-poster-card:first-child img{max-height:330px}
@media(max-width:480px){.published-poster-gallery{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:8px}.published-poster-card{padding:6px}.published-poster-card img{max-height:230px}.published-poster-card:first-child img{max-height:260px}}
.v69-poster-lightbox{position:fixed;inset:0;z-index:10080;background:rgba(0,0,0,.95);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:76px 10px 28px}
.v69-poster-lightbox .poster-lightbox-stage{width:100%;height:calc(100vh - 120px);display:flex;align-items:center;justify-content:center;touch-action:pan-y;overflow:hidden}
.v69-poster-lightbox .stored-poster-lightbox-img{display:block;max-width:96vw;max-height:calc(100vh - 145px);width:auto;height:auto;object-fit:contain;border-radius:14px;background:#fff}
.v69-poster-lightbox .poster-lightbox-toolbar{position:fixed;top:max(16px,env(safe-area-inset-top));left:12px;right:12px;display:flex;gap:8px;align-items:center;z-index:10090}
.v69-poster-lightbox .poster-lightbox-count{color:#fff;font-weight:800;margin-right:auto}
.v69-poster-lightbox .poster-icon-btn{width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:#0d7a53;font-size:24px;display:grid;place-items:center;box-shadow:0 5px 20px rgba(0,0,0,.22)}
.v69-poster-lightbox .poster-lightbox-close{font-size:30px;color:#111}
.v69-poster-lightbox .poster-slide-dots{display:flex;gap:8px;margin-top:8px}
.v69-poster-lightbox .poster-slide-dots i{width:8px;height:8px;border-radius:50%;background:#b7c6bf;display:block}.v69-poster-lightbox .poster-slide-dots i.active{background:#19a36f;transform:scale(1.25)}
/* Review poster pair remains a visual preview only; no save controls in step 5. */
.poster-pair-preview{overflow:hidden}.poster-pair-item canvas{max-height:420px;object-fit:contain}

/* VW70 flow stability */
.bottom-nav{grid-template-columns:1fr 1fr 74px 1fr 1fr!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important}
.bottom-nav [data-nav-slot="1"]{grid-column:1}.bottom-nav [data-nav-slot="2"]{grid-column:2}.bottom-nav [data-nav-slot="3"]{grid-column:3}.bottom-nav [data-nav-slot="4"]{grid-column:4}.bottom-nav [data-nav-slot="5"]{grid-column:5}
.published-poster-gallery{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:10px;align-items:start}
.published-poster-card{min-width:0;overflow:hidden}
.published-poster-card img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
@media(max-width:420px){.published-poster-gallery{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px}}

/* VW71 compact viewing schedule + gallery poster viewer */
.viewing-dropdown-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:10px 0}
.viewing-time-select{width:100%;min-height:52px;border:1px solid #d8e1dc;border-radius:14px;background:#fff;padding:0 14px;font-size:17px}
.viewing-selected-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.viewing-selected-chip{display:inline-flex;align-items:center;gap:8px;background:#eef7f2;border:1px solid #cfe4d8;border-radius:999px;padding:8px 10px 8px 14px;font-weight:700;color:#174b38}
.viewing-selected-chip button{border:0;background:transparent;color:#8b2f2f;font-size:20px;line-height:1;padding:0 2px}
.v71-gallery-lightbox .poster-lightbox-stage{overflow:hidden;touch-action:none;display:flex;align-items:center;justify-content:center;height:calc(100vh - 110px)}
.v71-gallery-img{max-width:96vw;max-height:calc(100vh - 150px);object-fit:contain;transform-origin:center center;will-change:transform;transition:transform .08s linear;user-select:none;-webkit-user-drag:none}
.v71-gallery-lightbox .poster-lightbox-toolbar{pointer-events:auto}
/* VW72 */
.suspended-agent-overlay{position:fixed;inset:0;background:rgba(12,28,22,.54);z-index:5000;display:flex;align-items:center;justify-content:center;padding:22px}
.suspended-agent-card{width:min(440px,100%);background:#fff;border-radius:24px;padding:24px;box-shadow:0 22px 70px rgba(0,0,0,.28);text-align:center}
.suspended-agent-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#fff0ef;color:#b9322c;font-size:32px;font-weight:900}
.suspended-agent-card h2{margin:0 0 10px}.suspended-agent-card p{color:#5f6b66;line-height:1.55;margin:0 0 18px}
.chat-property-ref{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;text-align:left;color:inherit;max-width:78%}
.chat-property-ref>span:first-child{width:38px;height:38px;border-radius:12px;background:#eef8f3;display:grid;place-items:center;flex:0 0 auto}
.chat-property-ref strong,.chat-property-ref small{display:block}.chat-property-ref small{color:#718078;margin-top:2px;font-size:12px}

/* VW75: filters must stay above map controls; map buttons must never overlay the sheet. */
#filterSheet{z-index:12050!important}
#filterSheet .bottom-sheet{position:relative;z-index:12051}
.vw60-map-actions{z-index:30!important}
/* Search purpose colors: sale and rent are intentionally distinct. */
#screen-search [data-search-purpose="sale"].active{background:#11875f!important;border-color:#11875f!important;color:#fff!important}
#screen-search [data-search-purpose="rent"].active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
#screen-search [data-search-purpose=""].active{background:#17211d!important;border-color:#17211d!important;color:#fff!important}


/* VW78: Super Admin per-agent language permissions */
.admin-inline-panel{margin-top:12px;border-top:1px solid #e0e8e4;padding-top:12px}.admin-inline-panel.hidden{display:none}
.agent-language-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.agent-language-panel-head strong,.agent-language-panel-head small{display:block}.agent-language-panel-head small{color:#6f7d76;margin-top:3px}.agent-lang-close{width:36px;height:36px;border:1px solid #dce5e0;border-radius:12px;background:#fff;font-size:22px}
.agent-language-grid{display:grid;gap:8px}.agent-language-row{display:grid;grid-template-columns:minmax(110px,1fr) repeat(3,minmax(88px,auto));gap:10px;align-items:center;padding:10px;border:1px solid #e2e9e5;border-radius:14px;background:#fbfdfc}.agent-language-name strong,.agent-language-name small{display:block}.agent-language-name small{color:#7b8882}.agent-language-row label{display:flex;gap:6px;align-items:center;font-size:13px}.agent-language-actions{display:flex;justify-content:flex-end;margin-top:12px}
@media(max-width:520px){.agent-language-row{grid-template-columns:1fr 1fr}.agent-language-name{grid-column:1/-1}}

/* VW79 poster language is independent from app UI language. */
.poster-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.poster-section-head h2{margin:0}.poster-language-select{max-width:46%;min-height:42px;border:1px solid #d8e1dc;border-radius:12px;background:#fff;padding:7px 34px 7px 12px;font:inherit;font-weight:700;color:#173b2f}


/* VW80 compact/faster Search shell */
.topbar{padding:10px 14px;min-height:62px}
.brand{gap:9px;min-width:0;flex:0 1 auto}
.brand-mark{width:40px;height:40px;flex:0 0 40px}
.brand-name{font-size:21px;line-height:1;font-weight:850;white-space:nowrap;overflow:visible;text-overflow:clip}
.brand-sub{display:none!important}
.top-actions{min-width:0;align-items:center}
.lang-segment{min-width:0}

/* Taller map on phones while keeping the controls compact. */
.vw60-map-wrap #searchMap{height:460px}
@media(max-width:620px){.vw60-map-wrap #searchMap{height:450px}}
@media(max-height:720px) and (max-width:620px){.vw60-map-wrap #searchMap{height:390px}}

/* Near Me and Draw are separate toggle controls. */
#nearMeBtn,#drawAreaBtn{transition:background .14s ease,color .14s ease,transform .14s ease,box-shadow .14s ease}
#nearMeBtn.active{background:#0d7a53!important;color:#fff!important;border-color:#0d7a53!important;box-shadow:0 0 0 3px rgba(13,122,83,.14)}
#drawAreaBtn.active{background:#1769aa!important;color:#fff!important;border-color:#1769aa!important;box-shadow:0 0 0 3px rgba(23,105,170,.14)}
#nearMeBtn:not(.active),#drawAreaBtn:not(.active){background:rgba(255,255,255,.96)!important;color:#17211d!important}

/* Keep all five bottom menu slots fully inside the mobile viewport/safe-area. */
body{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
.bottom-nav{box-sizing:border-box!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 68px minmax(0,1fr) minmax(0,1fr)!important;min-height:76px;padding:6px max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;align-items:end!important;overflow:visible!important}
.bottom-nav .nav-item{width:100%;min-width:0;padding:5px 1px!important;overflow:visible!important}
.bottom-nav .nav-item span{font-size:19px;line-height:1.05}
.bottom-nav .nav-item small{font-size:10px;line-height:1.15;max-width:100%;overflow:visible;text-overflow:clip;white-space:nowrap}
.bottom-nav .nav-add{width:54px;height:54px;transform:translateY(-6px)}
@media(max-width:380px){.bottom-nav .nav-item small{font-size:9px}.bottom-nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 62px minmax(0,1fr) minmax(0,1fr)!important}.bottom-nav .nav-add{width:50px;height:50px}}

/* VW81 compact Agent admin list */
.admin-agent-row{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.admin-agent-summary{width:100%;display:grid;grid-template-columns:34px minmax(90px,1.3fr) auto minmax(72px,.8fr) auto 20px;gap:7px;align-items:center;border:0;background:#fff;padding:9px 10px;text-align:left;color:inherit}
.agent-avatar.tiny{width:34px;height:34px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#edf6f1}.agent-avatar.tiny img{width:100%;height:100%;object-fit:cover}
.admin-agent-summary-name{min-width:0}.admin-agent-summary-name strong,.admin-agent-summary-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-agent-summary-name small{font-size:10px;color:var(--muted)}
.admin-agent-summary-plan{font-size:11px;color:#4f5f57;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-agent-alert-dot{width:20px;height:20px;border-radius:50%;background:#d6453d;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.admin-agent-chevron{font-size:18px;color:#738079;text-align:center}
.admin-agent-detail{padding:10px;border-top:1px solid #edf1ef;background:#fbfdfc}.admin-agent-detail.hidden{display:none!important}.admin-actions-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-actions-compact button{min-height:42px;white-space:normal}.admin-agent-demote{border-color:#d8c8a0!important;background:#fffaf0!important;color:#745b18!important}
@media(max-width:520px){.admin-agent-summary{grid-template-columns:30px minmax(80px,1fr) auto 18px}.admin-agent-summary-plan{display:none}.admin-agent-summary .status-badge{font-size:9px;padding:4px 6px}.admin-agent-alert-dot{position:absolute;margin-left:23px;margin-top:-25px}.admin-agent-row{position:relative}}

/* VW82: compact quick filters on mobile; keep the Filters chip fully inside the card. */
@media(max-width:620px){
  #screen-search .public-filter-tabs{display:grid!important;grid-template-columns:1.02fr .78fr .92fr .94fr;gap:6px;overflow:visible!important;width:100%;padding:8px 0 4px}
  #screen-search .public-filter-tabs .filter-chip{min-width:0;width:100%;padding:9px 7px;font-size:15px;line-height:1.1;text-align:center;overflow:hidden;text-overflow:clip}
  #screen-search .public-filter-tabs .filter-open-chip{margin-left:0!important;padding-inline:6px;font-size:13.5px;letter-spacing:-.15px}
  #screen-search .public-filter-tabs #filterCount:empty{display:none}
}
/* VW82: editor fields must stay stable while autosave runs. */
#screen-editor input,#screen-editor textarea,#screen-editor select{contain:style}

/* VW83: make the Filters shortcut slightly smaller and keep native select popups stable. */
@media(max-width:620px){
  #screen-search .public-filter-tabs .filter-open-chip{font-size:12.5px!important;padding-inline:4px!important;letter-spacing:-.25px!important}
}

/* VW84 processing, faster media, schedule/location/nearby/poster UX */
.processing-overlay{position:fixed;inset:0;z-index:20000;background:rgba(8,24,18,.48);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px)}
.processing-overlay.hidden{display:none}.processing-card{min-width:220px;max-width:86vw;background:#fff;border-radius:22px;padding:22px;text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.processing-emoji{font-size:42px;display:inline-block;animation:neWork .85s ease-in-out infinite alternate}.processing-card strong,.processing-card small{display:block}.processing-card strong{font-size:20px;margin-top:8px}.processing-card small{color:#68756f;margin-top:6px}
@keyframes neWork{from{transform:rotate(-10deg) translateY(0)}to{transform:rotate(12deg) translateY(-4px)}}
.photo-pending{position:relative;opacity:.82}.photo-processing{position:absolute;right:8px;bottom:8px;background:rgba(255,255,255,.92);border-radius:50%;padding:5px;animation:neSpin 1s linear infinite}@keyframes neSpin{to{transform:rotate(360deg)}}
.location-search-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0}.location-search-box input{min-width:0}.location-search-results{display:grid;gap:6px;margin:-4px 0 12px}.location-search-result{border:1px solid #dce6e0;background:#fff;border-radius:12px;padding:10px 12px;text-align:left;color:#22312b}.location-search-result strong{font-size:13px;line-height:1.35}
.nearby-category-multi{display:flex;gap:7px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:none}.nearby-category-multi::-webkit-scrollbar{display:none}.nearby-category-chip{white-space:nowrap;border:1px solid #d8e4dd;background:#fff;border-radius:999px;padding:8px 11px;font-weight:700;color:#4e5c56}.nearby-category-chip.active{background:#0d865c;color:#fff;border-color:#0d865c}
.viewing-marked-dates{display:flex;gap:7px;overflow-x:auto;padding:8px 0 4px}.viewing-date-chip{white-space:nowrap;border:1px solid #d8e4dd;background:#fff;border-radius:999px;padding:7px 10px;color:#405049}.viewing-date-chip.active{background:#e7f7ef;border-color:#0d865c;color:#0b6f4e}.viewing-date-chip b{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#0d865c;color:#fff;font-size:11px}
.poster-open-button{width:100%;border:1px solid #cfe1d7;background:#f0faf5;color:#0b6f4e;border-radius:16px;padding:15px 16px;text-align:left;font-size:16px;font-weight:800}.poster-browser-overlay{position:fixed;inset:0;z-index:15000;background:rgba(7,20,15,.6);display:flex;align-items:flex-end;justify-content:center}.poster-browser-card{width:min(680px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:18px}.poster-browser-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;background:#fff;padding:12px 0;z-index:2}.poster-browser-head strong,.poster-browser-head small{display:block}.poster-browser-head small{color:#708078;margin-top:3px}.poster-browser-close{border:0;background:#eef4f1;width:42px;height:42px;border-radius:50%;font-size:26px}.poster-language-buttons{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px}.poster-language-buttons button{border:1px solid #d8e4dd;background:#fff;border-radius:999px;padding:9px 13px;white-space:nowrap}.poster-language-buttons button.active{background:#0d865c;color:#fff;border-color:#0d865c}.poster-browser-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:10px;align-items:start}.poster-browser-item{border:1px solid #dfe8e3;background:#f8fbf9;border-radius:14px;padding:7px;overflow:hidden}.poster-browser-item span{display:block;text-align:left;font-weight:800;color:#68766f;margin:0 0 5px}.poster-browser-item img{width:100%;height:auto;max-height:55vh;object-fit:contain;border-radius:10px}
@media(max-width:520px){.location-search-box{grid-template-columns:1fr}.poster-browser-grid{grid-template-columns:.8fr 1.2fr}}

/* VW86: compact, readable Search result cards */
.search-property-card{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important;min-height:132px;padding:10px 12px 10px 10px!important;padding-right:12px!important;overflow:hidden}
.search-property-card .search-card-thumb{width:112px!important;height:112px!important;align-self:center;border-radius:14px}
.search-property-card .search-card-thumb img{width:100%;height:100%;object-fit:cover}
.search-card-body{min-width:0;display:flex;flex-direction:column;padding:2px 38px 0 0}
.search-card-title{font-size:16px;line-height:1.25;margin:0 0 7px;font-weight:800;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.search-card-meta{font-size:12px;line-height:1.35;color:var(--muted);min-height:32px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.search-card-footer{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.search-card-footer .price{font-size:17px;line-height:1.1;margin:0;white-space:nowrap}
.search-card-detail{border:0;border-radius:999px;background:#e7f7ef;color:#087447;font-weight:750;font-size:11px;padding:8px 12px;white-space:nowrap}
.search-card-detail.preview{background:#f2eafe;color:#6d28d9}
.search-property-card .favorite-heart{right:9px;top:9px;width:36px;height:36px;font-size:22px}
@media(max-width:420px){
  .search-property-card{grid-template-columns:96px minmax(0,1fr)!important;min-height:124px;padding:9px!important}
  .search-property-card .search-card-thumb{width:96px!important;height:104px!important}
  .search-card-title{font-size:15px}.search-card-footer .price{font-size:16px}.search-card-detail{padding:7px 10px;font-size:10.5px}
}


/* VW87: larger listing cards + compact green detail/edit icons */
.search-property-card{grid-template-columns:132px minmax(0,1fr)!important;min-height:150px!important;padding:10px!important;gap:13px!important}
.search-property-card .search-card-thumb{width:132px!important;height:132px!important;border-radius:15px!important}
.search-card-body{padding:3px 42px 0 0!important}
.search-card-title{font-size:17px!important;line-height:1.22!important;margin-bottom:8px!important}
.search-card-meta{font-size:13px!important;line-height:1.35!important;min-height:36px!important}
.search-card-footer .price{font-size:18px!important}
.search-card-detail-icon,.property-open-icon{width:38px;height:38px;border:0;border-radius:50%;background:#0d865c;color:#fff;display:grid;place-items:center;font-size:23px;font-weight:900;box-shadow:0 3px 10px rgba(13,134,92,.18);padding:0;flex:0 0 auto}
.search-card-detail-icon{font-family:Arial,sans-serif;line-height:1}
.search-property-card .favorite-heart{width:38px!important;height:38px!important;right:10px!important;top:10px!important}

/* My Properties uses the same visual scale as Search cards. */
#allProperties .property-card,#recentProperties .property-card{grid-template-columns:126px minmax(0,1fr) 44px!important;min-height:148px!important;padding:10px!important;gap:12px!important;align-items:center!important}
#allProperties .property-thumb,#recentProperties .property-thumb{width:126px!important;height:126px!important;border-radius:15px!important}
#allProperties .property-main h3,#recentProperties .property-main h3{font-size:17px!important;line-height:1.23!important;margin-bottom:6px!important}
#allProperties .property-main p,#recentProperties .property-main p{font-size:13px!important}
#allProperties .property-main .price,#recentProperties .property-main .price{font-size:18px!important}
.property-card-actions{display:flex;flex-direction:column;align-items:center;gap:8px;align-self:center}
.property-card-actions .status-badge{max-width:78px;text-align:center;white-space:normal;line-height:1.15}
#allProperties .property-delete,#recentProperties .property-delete{bottom:8px;right:8px}

/* Share control removed from property detail to keep gallery stable. */
.detail-head-actions{display:flex;align-items:center;justify-content:flex-end;min-width:48px}

@media(max-width:430px){
  .search-property-card{grid-template-columns:118px minmax(0,1fr)!important;min-height:138px!important}
  .search-property-card .search-card-thumb{width:118px!important;height:118px!important}
  #allProperties .property-card,#recentProperties .property-card{grid-template-columns:112px minmax(0,1fr) 40px!important;min-height:136px!important}
  #allProperties .property-thumb,#recentProperties .property-thumb{width:112px!important;height:112px!important}
  .search-card-title,#allProperties .property-main h3,#recentProperties .property-main h3{font-size:16px!important}
  .search-card-detail-icon,.property-open-icon{width:36px;height:36px;font-size:21px}
}

/* VW93: public appointment, nearby grouping, poster share */
.public-viewing-groups{display:grid;gap:12px}.public-viewing-day{border:1px solid #dce7e1;border-radius:16px;background:#f8fbf9;padding:12px}.public-viewing-date{font-size:15px;color:#29483e;margin-bottom:10px}.public-viewing-times{display:flex;flex-wrap:wrap;gap:8px}.public-viewing-time{border:1px solid #cfe2d8;border-radius:13px;background:#fff;color:#17352c;padding:10px 13px;min-width:132px;text-align:left;display:grid;gap:2px}.public-viewing-time span{font-weight:850;font-size:16px}.public-viewing-time small{font-size:12px;color:#0d7a53;font-weight:700}.public-viewing-time.booked{opacity:.5;background:#f0f2f1}.public-viewing-time.booked small{color:#8a4a42}@media(max-width:420px){.public-viewing-time{flex:1 1 calc(50% - 8px);min-width:0}}
.nearby-public-group{margin:0 0 16px}.nearby-public-group:last-child{margin-bottom:0}.nearby-public-group-title{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:12px;background:#f0f8f4;color:#174c3d;margin-bottom:2px}.nearby-public-group-title span{font-size:22px}.nearby-public-group-title strong{font-size:16px}.nearby-public-group .nearby-public-row{padding:10px 8px}.nearby-public-group .nearby-public-row>span{display:flex;gap:8px;align-items:flex-start}.poster-lightbox-share{font-size:24px!important}

/* VW94: keep Poster Share and Close visibly separated on mobile */
.v84-poster-viewer .poster-lightbox-toolbar{
  position:fixed!important;
  top:max(16px,env(safe-area-inset-top))!important;
  left:14px!important;
  right:14px!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  z-index:10120!important;
  pointer-events:none;
}
.v84-poster-viewer .poster-icon-btn{
  position:static!important;
  pointer-events:auto!important;
  margin:0!important;
}
.v84-poster-viewer .poster-lightbox-share{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  background:#0d8f63!important;
  color:#fff!important;
  font-size:25px!important;
}
.v84-poster-viewer .poster-lightbox-close{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  background:#fff!important;
  color:#111!important;
}

/* VW95: appointment ownership + aligned listing actions */
.my-viewing-appointment:empty{display:none}
.my-viewing-appointment{margin-bottom:12px}
.my-viewing-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border-radius:14px;background:#eaf8f1;border:1px solid #cfe8dc;color:#174c3d}
.my-viewing-card>div{display:flex;flex-direction:column;gap:3px;min-width:0}.my-viewing-card strong{font-size:14px;line-height:1.3}.my-viewing-card span{font-size:13px;color:#45685d}.my-viewing-card .cancel-own-viewing{border:1px solid #efc4c1;background:#fff;color:#a92f2a;border-radius:999px;padding:8px 11px;font-weight:800;white-space:nowrap}.appointment-syncing{font-weight:700;color:#0d7a53!important;white-space:nowrap}
@media(max-width:420px){.my-viewing-card{align-items:flex-start;flex-direction:column}.my-viewing-card .cancel-own-viewing{align-self:flex-end}}
.search-card-side-actions{position:absolute;right:10px;top:10px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:8px}
.search-card-side-actions .favorite-heart{position:static!important;right:auto!important;top:auto!important;margin:0!important}
.search-card-side-actions .search-card-detail-icon{position:static!important;margin:0!important}
.search-card-body{padding-right:46px!important}
/* VW96: customer can cancel their own booked slot directly in the viewing timetable. */
.inline-cancel-viewing{border:1px solid #efc4c1;background:#fff5f4;color:#a92f2a;border-radius:13px;padding:9px 12px;font-weight:850;min-height:42px;cursor:pointer}
.public-viewing-times .inline-cancel-viewing{flex:0 0 auto}
@media(max-width:420px){.public-viewing-times .inline-cancel-viewing{flex:1 1 calc(50% - 8px)}}

/* VW98 — working state + photo order */
.processing-ne-logo,.mini-ne-spinner{display:inline-grid;place-items:center;border-radius:14px;background:#0f8b61;color:#fff;font-weight:900;letter-spacing:-1px}
.processing-ne-logo{width:64px;height:64px;font-size:38px;box-shadow:0 10px 26px rgba(15,139,97,.18);animation:neWorkingHorizontal 1s ease-in-out infinite}
.mini-ne-spinner{width:30px;height:30px;font-size:18px;animation:neWorkingHorizontal .9s ease-in-out infinite}
@keyframes neWorkingHorizontal{0%,100%{transform:translateX(-7px) scale(1)}50%{transform:translateX(7px) scale(.94)}}
.photo-item.reorderable-photo{position:relative;touch-action:manipulation}
.photo-order-badge{position:absolute;left:7px;top:7px;z-index:4;background:rgba(0,0,0,.68);color:#fff;border-radius:999px;min-width:28px;height:28px;padding:0 7px;display:grid;place-items:center;font-weight:800;font-size:13px}
.photo-move-left,.photo-move-right{position:absolute;bottom:7px;z-index:4;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#0f6f52;font-size:28px;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.photo-move-left{left:7px}.photo-move-right{right:7px}.reorderable-photo.dragging{opacity:.48;outline:3px solid #0f8b61}
.location-search-loading{display:flex;align-items:center;gap:10px;padding:14px;color:#52635e}
.location-result-row{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e4ece8;background:#fff;padding:13px 14px;color:#17221e}
.location-result-row strong{display:block;font-size:15px}.location-result-row small{display:block;margin-top:4px;color:#71807b}

/* VW102 */
.property-hide-toggle{border:1px solid #d9e6e1;background:#fff;color:#0d7a53;border-radius:14px;padding:7px 10px;font-weight:800;font-size:12px}.property-hide-toggle.is-hidden{background:#eef3f1;color:#67746f}.profile-edit-card{display:grid;gap:10px;background:#fff;border:1px solid #e3ebe8;border-radius:22px;padding:16px}.profile-edit-card label{font-weight:800}.profile-edit-card input{width:100%;border:1px solid #dfe8e4;border-radius:14px;padding:13px;font:inherit}.profile-avatar img,.profile-avatar-preview img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-avatar-preview{width:86px;height:86px;border-radius:22px;background:#eaf6f1;display:grid;place-items:center;font-size:34px;font-weight:800;color:#0d7a53;overflow:hidden}.payment-history{margin-top:18px}.payment-history h3{margin:0 0 10px}.payment-history-list{display:grid;gap:8px}.payment-history-row{display:flex;justify-content:space-between;gap:12px;border:1px solid #e3ebe8;border-radius:14px;padding:11px 12px;background:#fff}.payment-history-row>div{display:grid;gap:3px}.payment-history-row>div:last-child{text-align:right}.payment-history-row small{color:#72817c}.account-panel{margin-top:14px}

/* VW103 profile permissions + media */
.profile-readonly-note{padding:12px 14px;border-radius:14px;background:#f4f7f6;border:1px solid #dfe8e4;color:#63716c;font-weight:700;line-height:1.45}
.profile-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:4px}.profile-media-block{display:grid;gap:9px;align-content:start}.profile-avatar-preview.logo{border-radius:16px;background:#f7faf8}.linked-identities{display:grid;gap:8px;margin-top:6px}.linked-identities h3{margin:4px 0 0;font-size:15px}.linked-identity-row{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e3ebe8;border-radius:12px;background:#fafcfb}.linked-identity-row span{overflow-wrap:anywhere;text-align:right;color:#66736e}.profile-edit-card input:disabled{background:#f5f7f6;color:#6f7975}.hidden{display:none!important}@media(max-width:520px){.profile-media-grid{grid-template-columns:1fr}}

/* VW104 account profile shortcut */
.account-profile-shortcut{width:100%;border:0;text-align:left;cursor:pointer;position:relative;font:inherit;color:inherit}
.account-profile-shortcut .profile-shortcut-chevron{margin-left:auto;font-size:30px;font-weight:700;color:var(--muted,#748078);padding-left:10px}
.account-profile-shortcut:active{transform:scale(.995)}
/* VW105 monthly billing lifecycle */
.billing-plan-card:disabled{opacity:.52;cursor:not-allowed;filter:saturate(.65)}
.billing-plan-card small{display:block;margin-top:5px;color:var(--muted);font-weight:750}
.billing-lifecycle-alert{margin:10px 0;padding:13px 14px;border:1px solid #cfe6da;background:#f4fbf7;border-radius:15px}
.billing-lifecycle-alert.warning{border-color:#f0d49b;background:#fff9ec}
.billing-lifecycle-alert.danger{border-color:#efc5c2;background:#fff5f4}
.billing-lifecycle-alert p{margin:5px 0 0;color:var(--muted);line-height:1.45}
.billing-recovery{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.billing-recovery-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.billing-recovery-row:last-of-type{border-bottom:0}.billing-recovery-row small{display:block;color:var(--muted);margin-top:3px}

/* VW108 property-specific editor / map / profile */
.property-dynamic-fields{display:grid;gap:12px;margin:12px 0}
.property-dynamic-fields>.hidden{display:none!important}
.nearby-title-actions{display:flex;align-items:center;gap:8px}
.icon-close-btn{width:38px;height:38px;border-radius:999px;border:1px solid #d9e3dd;background:#fff;font-size:24px;line-height:1;cursor:pointer}
.profile-public-toggle{display:flex!important;align-items:center;gap:8px;font-weight:700!important;margin:-2px 0 8px!important;color:#52605a}
.profile-public-toggle input{width:20px!important;height:20px!important}
.identity-readonly{background:#f3f5f4!important;color:#58625e!important}
.price-marker{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:0 5px;min-width:104px;background:#fff;border:2px solid #0f8b62;border-radius:13px;padding:5px 7px;box-shadow:0 3px 10px rgba(0,0,0,.18);font-size:11px;line-height:1.05}
.price-marker .marker-emoji{grid-row:1/3;font-size:20px}.price-marker .marker-kind{font-size:9px;color:#66736d;font-weight:800}.price-marker b{font-size:12px}
.marker-land .price-marker{border-color:#176B46}.marker-house .price-marker{border-color:#0E704F}.marker-condo .price-marker{border-color:#1267A8}.marker-townhouse .price-marker{border-color:#C95C2C}.marker-commercial .price-marker{border-color:#B58B2A}
@media(max-width:640px){.property-dynamic-fields{gap:10px}.price-marker{min-width:96px}}

/* VW109 — compact appointment slots + emoji-only property pins */
.property-type-marker{background:transparent!important;border:0!important}
.property-type-pin{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--green);box-shadow:0 3px 10px rgba(0,0,0,.22);font-size:22px;line-height:1}
.marker-land .property-type-pin{border-color:#176B46}.marker-house .property-type-pin{border-color:#0E704F}.marker-condo .property-type-pin{border-color:#1267A8}.marker-townhouse .property-type-pin{border-color:#C95C2C}.marker-commercial .property-type-pin{border-color:#B58B2A}
.public-viewing-time{min-width:118px;padding:8px 10px;gap:1px}
.public-viewing-time span{font-size:13px;line-height:1.15;white-space:nowrap;letter-spacing:-.15px}
.public-viewing-time small{font-size:11px;line-height:1.15}
@media(max-width:420px){.public-viewing-time{flex:1 1 calc(50% - 8px);min-width:0}.public-viewing-time span{font-size:12.5px}}


/* VW109-R1: remove alphabet avatar, align Favorites with Search, fix My Properties actions, plan admin */
.avatar-btn .header-profile-icon,.avatar-btn #avatarLetter{width:22px;height:22px;display:grid;place-items:center}
.avatar-btn .header-profile-icon svg,.avatar-btn #avatarLetter svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Favorites uses exactly the same card geometry as Search. */
#favoritesList .favorite-property-card{display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;min-height:150px!important;padding:10px!important;gap:13px!important;align-items:stretch!important;overflow:hidden}
#favoritesList .favorite-property-card .search-card-thumb{width:132px!important;height:132px!important;border-radius:15px!important;align-self:center}
#favoritesList .favorite-property-card .search-card-body{padding:3px 42px 0 0!important;min-width:0;display:flex;flex-direction:column}
#favoritesList .favorite-property-card .search-card-title{font-size:17px!important;line-height:1.22!important;margin:0 0 8px!important}
#favoritesList .favorite-property-card .search-card-meta{font-size:13px!important;line-height:1.35!important;min-height:36px!important}
#favoritesList .favorite-property-card .search-card-footer{margin-top:auto}
#favoritesList .favorite-property-card .search-card-footer .price{font-size:18px!important}
#favoritesList .favorite-property-card .favorite-heart{width:38px!important;height:38px!important;right:10px!important;top:10px!important}
@media(max-width:430px){
  #favoritesList .favorite-property-card{grid-template-columns:118px minmax(0,1fr)!important;min-height:138px!important}
  #favoritesList .favorite-property-card .search-card-thumb{width:118px!important;height:118px!important}
  #favoritesList .favorite-property-card .search-card-title{font-size:16px!important}
}

/* Hide / Delete are in one vertical action column and can never overlap. */
#allProperties .property-card,#recentProperties .property-card{padding-right:10px!important}
#allProperties .property-card-actions,#recentProperties .property-card-actions{position:static!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:6px!important;min-width:48px!important}
#allProperties .property-card-actions>button,#recentProperties .property-card-actions>button{position:static!important;margin:0!important;max-width:58px!important;min-width:42px!important;align-self:center!important}
#allProperties .property-delete,#recentProperties .property-delete{position:static!important;right:auto!important;bottom:auto!important;font-size:10px!important;padding:5px 7px!important}
#allProperties .property-hide-toggle,#recentProperties .property-hide-toggle{font-size:10px!important;padding:5px 7px!important;border-radius:8px!important;white-space:nowrap}

.admin-plan-settings{display:grid;gap:12px;margin-top:14px}.admin-plan-setting{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--card,#fff);display:grid;gap:10px}.admin-plan-setting-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.admin-plan-setting-head strong,.admin-plan-setting-head small{display:block}.admin-plan-setting-head small{color:var(--muted);margin-top:2px}.admin-plan-setting label{display:grid;gap:6px;font-weight:700}.admin-plan-setting input[type=number]{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--card,#fff);color:var(--text)}.plan-visible-toggle{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;font-size:13px!important}.plan-visible-toggle input{width:18px;height:18px}


/* VW109-R2: header cleanup — account access stays in bottom navigation. */
.top-actions{margin-left:auto;justify-content:flex-end}
#langSegment{margin-left:auto}
@media(max-width:520px){
  .topbar{grid-template-columns:minmax(0,1fr) auto}
  .top-actions{justify-self:end;margin-left:auto}
  #langSegment{margin-left:auto}
}

/* VW109-R3 — Light/Dark mode toggled by the NearEstate N logo */
.theme-logo-toggle{border:0;padding:0;cursor:pointer;font-family:inherit;line-height:1;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .12s ease}
.theme-logo-toggle:active{transform:scale(.96)}
.theme-logo-toggle:focus-visible{outline:3px solid rgba(13,122,83,.24);outline-offset:2px}
html[data-theme="dark"]{
  --bg:#09110e;--surface:#101b16;--text:#f3f7f5;--muted:#aab7b1;
  --line:#26352e;--soft:#173329;--shadow:0 8px 30px rgba(0,0,0,.34);
  color-scheme:dark;
}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .topbar{background:rgba(9,17,14,.96);border-color:var(--line)}
html[data-theme="dark"] .brand-mark{background:#fff!important;color:var(--green)!important;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
html[data-theme="light"] .brand-mark{background:linear-gradient(135deg,var(--green),#2aa676);color:#fff}
html[data-theme="dark"] .bottom-nav{background:rgba(9,17,14,.97);border-color:var(--line)}
html[data-theme="dark"] .screen,html[data-theme="dark"] .main{color:var(--text)}
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .property-card,
html[data-theme="dark"] .subscription-card,
html[data-theme="dark"] .stepper,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .upload-card,
html[data-theme="dark"] .location-card,
html[data-theme="dark"] .preview-card,
html[data-theme="dark"] .check-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .menu-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .empty-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .search-controls,
html[data-theme="dark"] .public-detail-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .sheet-card{background:var(--surface)!important;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .money-input{background:#0d1713!important;color:var(--text)!important;border-color:#34473e!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#7f9188!important}
html[data-theme="dark"] label{color:#c9d4cf}
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .mini-btn,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .menu-row{background:#111e18;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .filter-chip.active{background:var(--green);color:#fff;border-color:var(--green)}
html[data-theme="dark"] .property-thumb,
html[data-theme="dark"] .photo-item,
html[data-theme="dark"] #map,
html[data-theme="dark"] #searchMap{background:#15221c}
html[data-theme="dark"] .camera-tile,
html[data-theme="dark"] .document-picker,
html[data-theme="dark"] .location-status{background:#0d1713;border-color:var(--line);color:var(--text)}
html[data-theme="dark"] .editor-actions{background:rgba(9,17,14,.95)}
html[data-theme="dark"] .status-badge{background:#1c2923;color:#c7d2cd}
html[data-theme="dark"] .status-published{background:#123a2a;color:#7ee0af}
html[data-theme="dark"] .status-submitted{background:#3a2d12;color:#f5cc72}
html[data-theme="dark"] .status-draft{background:#1d2834;color:#b9c9dc}
html[data-theme="dark"] .status-hidden{background:#3a1f1f;color:#f0a6a6}
html[data-theme="dark"] .linked-identity-row,
html[data-theme="dark"] .profile-avatar-preview.logo{background:#0d1713!important;border-color:var(--line)!important;color:var(--text)}
html[data-theme="dark"] .profile-edit-card input:disabled{background:#111a16!important;color:#87958e!important}
html[data-theme="dark"] .leaflet-control-zoom a{background:#101b16!important;color:#fff!important;border-color:#304038!important}

/* VW109-R5: Super Admin master-data dropdown/editor */
.master-dropdown-list{display:grid;gap:12px;margin-top:14px}.admin-master-dropdown{border:1px solid var(--line,#dfe7e3);border-radius:18px;background:var(--card,#fff);overflow:hidden}.admin-master-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none;font-size:1.08rem}.admin-master-dropdown>summary::-webkit-details-marker{display:none}.admin-master-dropdown>summary span{min-width:34px;text-align:center;padding:4px 9px;border-radius:999px;background:var(--soft,#eaf7f1);color:var(--brand,#0b8a62)}.admin-master-dropdown-body{padding:0 12px 12px}.master-editor-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.46);display:flex;align-items:center;justify-content:center;padding:18px}.master-editor-modal{width:min(520px,100%);max-height:min(82vh,720px);overflow:auto;background:var(--card,#fff);color:var(--text,#12231c);border-radius:22px;padding:18px;box-shadow:0 20px 70px rgba(0,0,0,.22)}.master-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.master-editor-head h3{margin:0;font-size:1.25rem}.master-editor-modal label{display:grid;gap:7px;margin:12px 0;font-weight:700}.master-editor-modal input,.master-editor-modal select{width:100%;min-height:48px;border:1px solid var(--line,#dfe7e3);border-radius:14px;background:var(--input-bg,#fff);color:var(--text,#12231c);padding:10px 12px;font:inherit}.master-editor-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:16px}
[data-theme="dark"] .admin-master-dropdown,[data-theme="dark"] .master-editor-modal{background:#111c17;color:#f2f7f4;border-color:#294037}[data-theme="dark"] .master-editor-modal input,[data-theme="dark"] .master-editor-modal select{background:#0c1511;color:#f4f8f6;border-color:#355046}[data-theme="dark"] .admin-master-dropdown>summary span{background:#17342a;color:#62ddb2}


/* VW109-R6 — dark-mode readability audit + master-data single dropdown */
html[data-theme="dark"] .lang-segment{background:#0b1511!important;border-color:#355046!important}
html[data-theme="dark"] .lang-btn{background:#0b1511!important;color:#fff!important}
html[data-theme="dark"] .lang-btn.active{background:#176b50!important;color:#fff!important}

html[data-theme="dark"] .detail-inner,
html[data-theme="dark"] .v102-detail-inner{background:#09110e!important;color:#f3f7f5!important}
html[data-theme="dark"] .detail-sticky-head{background:#101b16!important;color:#f3f7f5!important;border-color:#2a3a33!important}
html[data-theme="dark"] .detail-sticky-head>span,
html[data-theme="dark"] .detail-hero h1,
html[data-theme="dark"] .detail-section h2,
html[data-theme="dark"] .detail-agent-card strong,
html[data-theme="dark"] .nearby-public-row strong,
html[data-theme="dark"] .document-public-row strong{color:#f3f7f5!important}
html[data-theme="dark"] .detail-purpose,
html[data-theme="dark"] .detail-project,
html[data-theme="dark"] .detail-short-spec,
html[data-theme="dark"] .detail-empty,
html[data-theme="dark"] .detail-agent-card span,
html[data-theme="dark"] .detail-agent-card small,
html[data-theme="dark"] .nearby-public-row small{color:#b9c7c0!important}
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .spec-card,
html[data-theme="dark"] .amenity-public,
html[data-theme="dark"] .nearby-public-group-title,
html[data-theme="dark"] .document-public-row,
html[data-theme="dark"] .public-viewing-day,
html[data-theme="dark"] .public-viewing-time,
html[data-theme="dark"] .my-viewing-card,
html[data-theme="dark"] .poster-open-button,
html[data-theme="dark"] .detail-agent-card{background:#111f19!important;color:#f3f7f5!important;border-color:#30443a!important}
html[data-theme="dark"] .nearby-public-group-title{color:#75dfb4!important}
html[data-theme="dark"] .public-viewing-date{color:#d7e2dd!important}
html[data-theme="dark"] .public-viewing-time span{color:#f5f8f6!important}
html[data-theme="dark"] .public-viewing-time small{color:#68d6aa!important}
html[data-theme="dark"] .public-viewing-time.booked span{color:#b7c0bc!important}
html[data-theme="dark"] .public-viewing-time.booked small{color:#d39a92!important}
html[data-theme="dark"] .detail-address{background:#0f7657!important;color:#fff!important;border-color:#238568!important}
html[data-theme="dark"] .nearby-result,
html[data-theme="dark"] .nearby-selected-item,
html[data-theme="dark"] .nearby-result-option,
html[data-theme="dark"] .custom-nearby-category-row,
html[data-theme="dark"] .enhance-toggle,
html[data-theme="dark"] .camera-launch,
html[data-theme="dark"] .billing-recovery,
html[data-theme="dark"] .payment-history-row,
html[data-theme="dark"] .profile-edit-card{background:#101b16!important;color:#f3f7f5!important;border-color:#30443a!important}
html[data-theme="dark"] .nearby-result-copy strong,
html[data-theme="dark"] .payment-history-row strong,
html[data-theme="dark"] .profile-edit-card strong{color:#f3f7f5!important}
html[data-theme="dark"] .nearby-result-copy small,
html[data-theme="dark"] .payment-history-row small{color:#aab7b1!important}
html[data-theme="dark"] .nearby-add,
html[data-theme="dark"] .nearby-remove,
html[data-theme="dark"] .icon-close-btn{background:#14231c!important;border-color:#3a5046!important}
html[data-theme="dark"] .location-result-row{background:#101b16!important;color:#f3f7f5!important;border-color:#2d4037!important}
html[data-theme="dark"] .location-result-row small{color:#aab7b1!important}
html[data-theme="dark"] .admin-config-toolbar{background:#101b16!important;color:#f3f7f5!important;border-color:#2d4037!important}
html[data-theme="dark"] .master-auto-translate-note{color:#b9c7c0!important}
.master-data-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:12px;align-items:end}
.master-data-toolbar .master-auto-translate-note{grid-column:1/-1;line-height:1.45}
.admin-master-type-picker{display:grid;gap:7px;font-weight:800}
.admin-master-type-picker select{min-height:48px;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff;color:var(--text);font:inherit}
.admin-master-single-list{margin-top:14px;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
.admin-master-single-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);font-size:1.08rem}
.admin-master-single-head span{min-width:34px;text-align:center;padding:4px 9px;border-radius:999px;background:var(--soft);color:var(--green)}
html[data-theme="dark"] .admin-master-type-picker select{background:#0c1511!important;color:#fff!important;border-color:#355046!important}
html[data-theme="dark"] .admin-master-single-list{background:#111c17!important;color:#f2f7f4!important;border-color:#294037!important}
html[data-theme="dark"] .admin-master-single-head{border-color:#294037!important}
html[data-theme="dark"] .admin-master-single-head span{background:#17342a!important;color:#62ddb2!important}
html[data-theme="dark"] .master-row{color:#f3f7f5!important;border-color:#2c4036!important}
html[data-theme="dark"] .master-row strong{color:#f3f7f5!important}
html[data-theme="dark"] .master-row small{color:#aab7b1!important}

@media(max-width:520px){
  .master-data-toolbar{grid-template-columns:1fr}
  .master-data-toolbar .master-auto-translate-note{grid-column:auto}
}


/* VW109-R11 language picker: user selects a language by name; ISO code stays internal. */
.system-language-picker-overlay{position:fixed;inset:0;z-index:10020;background:rgba(0,0,0,.46);display:flex;align-items:center;justify-content:center;padding:18px}
.system-language-picker-card{width:min(520px,100%);max-height:min(760px,88vh);overflow:auto;background:var(--surface,#fff);border-radius:24px;padding:18px;box-shadow:0 18px 60px rgba(0,0,0,.24)}
.system-language-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.system-language-picker-head strong{display:block;font-size:24px;line-height:1.2}
.system-language-picker-head small{display:block;margin-top:5px;color:var(--muted,#6b7470);line-height:1.35}
.system-language-search{width:100%;min-height:48px;border:1px solid #d9e4df;border-radius:14px;padding:0 14px;font-size:16px;background:var(--surface,#fff);color:var(--text,#18221e);margin-bottom:12px}
.system-language-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.system-language-option{border:1px solid #dce8e2;border-radius:16px;background:var(--surface,#fff);color:var(--text,#18221e);min-height:68px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;text-align:left}
.system-language-option span{display:flex;flex-direction:column;gap:2px}
.system-language-option strong{font-size:17px}
.system-language-option small{font-size:12px;color:var(--muted,#6b7470)}
.system-language-option b{font-size:24px;color:#12825e}
.system-language-option:active{transform:scale(.99)}
.system-language-picker-note{margin-top:12px;font-size:12px;color:var(--muted,#6b7470);text-align:center}
html[data-theme="dark"] .system-language-picker-card,
html[data-theme="dark"] .system-language-option,
html[data-theme="dark"] .system-language-search{background:#0f1915!important;color:#fff!important;border-color:#31473e!important}
html[data-theme="dark"] .system-language-picker-head small,
html[data-theme="dark"] .system-language-option small,
html[data-theme="dark"] .system-language-picker-note{color:#b9c7c1!important}
@media(max-width:520px){.system-language-list{grid-template-columns:1fr}.system-language-picker-card{border-radius:20px;padding:15px}}


/* VW109-R21: selective poster regeneration + publishing instructions */
.poster-regenerate-card,.publish-instruction-card{margin-top:16px;padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:#fff}
.poster-regenerate-card .upload-title{margin-bottom:10px}.poster-language-label{font-weight:700;margin:8px 0}
.poster-language-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin:10px 0 14px}
.poster-language-option{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:#fafafa;cursor:pointer}
.poster-language-option input{width:18px;height:18px}.poster-language-option .poster-lang-meta{display:flex;flex-direction:column;min-width:0}.poster-language-option small{opacity:.72}
.poster-language-option.needs-translation{border-style:dashed}.poster-language-option.ready small{font-weight:600}
.publish-instruction-card h3{margin:0 0 12px}.publish-instruction-row{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;margin:10px 0}
.publish-instruction-row b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#f3f4f6}.publish-instruction-row p{margin:2px 0;line-height:1.55}


/* VW109-R23: Smart Share + source tracking */
.property-smart-share{border:0;border-radius:10px;background:#eaf7ef;color:#0d7a53;font-weight:900;min-height:36px;padding:0 11px;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.property-smart-share span{font-size:12px}
.smart-share-overlay{position:fixed;inset:0;z-index:1800;background:rgba(8,24,18,.65);display:flex;align-items:flex-end;justify-content:center;padding:18px 10px 0}
.smart-share-sheet{width:min(620px,100%);max-height:90dvh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:22px;position:relative;box-shadow:0 -12px 44px rgba(0,0,0,.25)}
.smart-share-close{position:absolute;right:16px;top:14px;border:0;border-radius:12px;width:40px;height:40px;background:#edf6f1;color:#0d7a53;font-size:26px;font-weight:800}
.smart-share-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#0d7a53;font-weight:900}.smart-share-sheet h2{margin:4px 48px 6px 0;font-size:25px}.smart-share-sheet>p{margin:0 0 16px;color:var(--muted);line-height:1.55}
.smart-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.smart-share-btn{border:1px solid var(--line);background:#fbfdfc;border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;color:#173b30;cursor:pointer}.smart-share-btn span{width:34px;height:34px;border-radius:10px;background:#eaf7ef;color:#0d7a53;display:grid;place-items:center;font-weight:900;font-size:12px}.smart-share-btn strong{font-size:14px}
.smart-share-stats{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.smart-share-stats h3{margin:0 0 9px;font-size:17px}.smart-share-stats-list{display:grid;gap:7px}.smart-share-stat-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f5f9f7;border-radius:11px}.smart-share-stat-row strong{color:#0d7a53}.smart-share-stat-row small{font-weight:600;color:var(--muted)}.smart-share-empty{padding:11px 12px;border-radius:11px;background:#f6f7f6;color:var(--muted)}
@media(max-width:420px){.smart-share-actions{grid-template-columns:1fr}.smart-share-sheet{padding:20px 16px}}

.share-link-section{background:#f4fbf7;border:1px solid #cfe9dc;border-radius:16px}.share-link-help{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.5}.smart-share-primary{width:100%;border:0;border-radius:13px;background:#0d8a61;color:white;font-weight:900;padding:13px 14px;font-size:15px;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.poster-preview-section .share-link-help{margin-top:2px}

/* VW109-R27 owner/private share analytics */
.share-analytics-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 16px}.share-analytics-summary>div{background:#fff;border:1px solid #e4ebe7;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:3px}.share-analytics-summary strong{font-size:24px;color:#0d7657}.share-analytics-summary span{font-size:12px;color:#6b7772}.share-analytics-property{background:#fff;border:1px solid #e2e9e5;border-radius:18px;padding:14px;margin:10px 0}.share-analytics-property-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.share-analytics-property-head>div{display:flex;flex-direction:column;min-width:0}.share-analytics-property-head strong{font-size:16px}.share-analytics-property-head small{color:#7a8580;margin-top:3px}.share-analytics-property-head>b{font-size:20px;color:#0d7657}.share-analytics-mini{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.share-analytics-mini span{background:#f0f7f4;border-radius:999px;padding:5px 9px;font-size:12px}.share-analytics-sources{margin-top:10px;border-top:1px solid #edf1ef;padding-top:8px}.share-analytics-sources>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:12px}.share-analytics-sources strong{font-variant-numeric:tabular-nums}.admin-tabs .hidden{display:none!important}
.share-analytics-channel-summary{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px}.share-analytics-channel-summary>div{min-width:120px;background:#eef7f3;border:1px solid #d9ebe3;border-radius:14px;padding:9px 10px;display:grid;grid-template-columns:1fr auto;gap:3px 8px}.share-analytics-channel-summary span{font-size:12px;white-space:nowrap}.share-analytics-channel-summary strong{color:#0d7657}.share-analytics-channel-summary small{grid-column:1/-1;color:#74807b}

/* VW109-R28 compact sortable share analytics */
.share-analytics-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}.share-analytics-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#68756f}.share-analytics-controls select{width:100%;min-height:40px;border:1px solid #dce6e1;border-radius:11px;background:#fff;padding:8px 10px;font:inherit;color:#173b30}.share-analytics-table-wrap{overflow-x:auto;border:1px solid #e2e9e5;border-radius:14px;background:#fff}.share-analytics-table{min-width:860px}.share-analytics-row{display:grid;grid-template-columns:minmax(220px,2.3fr) 112px 82px 82px 82px 82px minmax(130px,1.1fr);align-items:center;gap:8px;min-height:44px;padding:0 12px;border-top:1px solid #edf1ef;font-size:12px;white-space:nowrap}.share-analytics-row:first-child{border-top:0}.share-analytics-row strong{color:#0d7657;font-variant-numeric:tabular-nums}.share-analytics-header{min-height:38px;background:#f3f8f5;color:#66736d;font-weight:800}.share-analytics-name,.share-analytics-agent,.share-analytics-source{overflow:hidden;text-overflow:ellipsis}.share-analytics-name{font-size:13px;font-weight:800;color:#173b30}.share-analytics-table-wrap .share-analytics-row:has(.share-analytics-agent){grid-template-columns:minmax(220px,2.1fr) minmax(120px,1fr) 112px 82px 82px 82px 82px minmax(130px,1.1fr)}
@media(max-width:520px){.share-analytics-controls{grid-template-columns:1fr}.share-analytics-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* VW109-R32: in-app poster share chooser (no visible URL) */
.poster-share-choice-overlay{
  position:fixed;inset:0;z-index:17000;background:rgba(5,20,14,.72);
  display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
  backdrop-filter:blur(5px)
}
.poster-share-choice-card{
  position:relative;width:min(430px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;
  padding:22px 18px 18px;box-shadow:0 22px 70px rgba(0,0,0,.28);text-align:center
}
.poster-share-choice-close{
  position:absolute;top:14px;right:14px;width:44px;height:44px;border:0;border-radius:14px;
  background:#eef8f4;color:#087b57;font-size:30px;line-height:1;font-weight:800
}
.poster-share-choice-brand{display:flex;justify-content:center;align-items:center;gap:9px;margin-bottom:14px;color:#0b6f4e}
.poster-share-choice-brand span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#0b8b63;color:#fff;font-size:23px;font-weight:900}
.poster-share-choice-brand strong{font-size:19px}
.poster-share-choice-preview{display:block;width:auto;max-width:100%;max-height:34vh;margin:0 auto 14px;border-radius:16px;box-shadow:0 5px 20px rgba(0,0,0,.12);object-fit:contain}
.poster-share-choice-card h2{font-size:25px;line-height:1.2;margin:8px 0 16px;color:#17231e}
.poster-share-choice-actions{display:grid;gap:11px}
.poster-share-choice-btn{
  width:100%;min-height:58px;border:1px solid #d8e7df;border-radius:17px;background:#f6faf8;color:#143d31;
  font-size:17px;padding:13px 15px;display:flex;align-items:center;justify-content:center;gap:10px
}
.poster-share-choice-btn.primary{background:#0b8b63;border-color:#0b8b63;color:#fff}
.poster-share-choice-btn.line{background:#effbf5;border-color:#cfe8dc;color:#076b4d}
.poster-share-choice-btn strong{font-size:17px}
.poster-share-choice-cancel{margin-top:12px;width:100%;border:0;background:transparent;padding:13px;color:#66736e;font-size:16px;font-weight:750}

.poster-share-choice-help{margin:-4px 4px 16px;color:#6b7772;font-size:14px;line-height:1.5}
.poster-share-choice-btn{flex-wrap:wrap}
.poster-share-choice-btn small{display:block;width:100%;font-size:12px;font-weight:700;opacity:.8;margin-top:-2px}


/* VW109-R36 message alert settings */
.notification-settings-card{background:var(--card,#fff);border:1px solid rgba(20,60,45,.10);border-radius:20px;padding:8px 16px 16px}
.notification-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 2px;border-bottom:1px solid rgba(20,60,45,.08)}
.notification-setting-row span{display:flex;flex-direction:column;gap:3px;text-align:left}
.notification-setting-row strong{font-size:16px}.notification-setting-row small,.notification-system-box small{font-size:13px;color:#738079}
.notification-setting-row input[type="checkbox"]{width:24px;height:24px;accent-color:#0b8b63;flex:0 0 auto}
.notification-quiet-times{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 0}
.notification-quiet-times.disabled{opacity:.45;pointer-events:none}
.notification-quiet-times label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#65736d}
.notification-quiet-times input{width:100%;padding:12px;border:1px solid #d8e2dd;border-radius:12px;background:var(--card,#fff);color:inherit}
.notification-system-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid rgba(20,60,45,.08);border-bottom:1px solid rgba(20,60,45,.08);margin-bottom:14px}
.notification-system-box>div{display:flex;flex-direction:column;gap:3px;text-align:left}


/* VW109-R37 editor media/location UX */
.location-search-box .location-search-primary{
  background:var(--green,#0b8b63);
  color:#fff;
  border-color:var(--green,#0b8b63);
  font-weight:850;
  box-shadow:0 5px 14px rgba(11,139,99,.18);
}
.location-search-box .location-search-primary:active{transform:translateY(1px)}
.camera-shutter:active{transform:scale(.94)}


/* VW109-R40 ordered public search filters */
.primary-search-filter-form .vw60-filter-section{display:grid;gap:8px}
.primary-search-filter-form .vw60-filter-section>label{font-weight:800;color:#17372d}
.price-scale-values{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#0a7655;font-size:15px}
.price-scale-values span{color:#829089}
.dual-range{position:relative;height:38px;margin:4px 4px 2px}
.dual-range-track,.dual-range-fill{position:absolute;left:0;right:0;top:17px;height:6px;border-radius:999px}
.dual-range-track{background:#dfe8e4}.dual-range-fill{background:#0b8b63}
.dual-range input[type="range"]{position:absolute;left:0;top:0;width:100%;height:38px;background:transparent;pointer-events:none;-webkit-appearance:none;appearance:none;margin:0}
.dual-range input[type="range"]::-webkit-slider-runnable-track{height:6px;background:transparent}
.dual-range input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:4px solid #0b8b63;box-shadow:0 2px 7px rgba(0,0,0,.16);margin-top:-9px;pointer-events:auto}
.dual-range input[type="range"]::-moz-range-track{height:6px;background:transparent}
.dual-range input[type="range"]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid #0b8b63;box-shadow:0 2px 7px rgba(0,0,0,.16);pointer-events:auto}
#filterCountry:disabled{opacity:1;color:#18372d;background:#f5f8f6}


/* VW109-R41 display currency */
.display-currency-control{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:-2px}
.display-currency-control label{font-size:12px;font-weight:800;color:#67756f}
.display-currency-control select{width:auto;min-width:135px;padding:8px 30px 8px 10px;border:1px solid #d9e4df;border-radius:12px;background:var(--card,#fff);color:inherit;font-weight:750}
.price .original-price,.detail-price .original-price{display:inline}
.estimated-price{display:block;margin-top:2px;font-size:.72em;font-weight:750;color:#5f746b;line-height:1.25}
.detail-price .estimated-price{font-size:.52em;margin-top:5px}
.estimated-price small{display:block;font-size:.72em;font-weight:600;color:#83908a;margin-top:2px}
@media(max-width:520px){.display-currency-control{justify-content:space-between}.display-currency-control select{min-width:150px}}


/* VW109-R44 — R41 Display Currency layout, theme-aware label only */
.display-currency-control label{
  color:#0b7657;
}
html[data-theme="dark"] .display-currency-control label,
body[data-theme="dark"] .display-currency-control label,
.dark .display-currency-control label,
.dark-mode .display-currency-control label,
.theme-dark .display-currency-control label{
  color:#fff;
}


/* VW109-R46 profile identity layout */
.profile-identity-group{
  display:grid;
  gap:7px;
  margin:2px 0 5px;
}
.profile-identity-group > label:not(.profile-public-toggle){
  margin:0;
}
.profile-identity-group .identity-readonly{
  margin:0;
}
.profile-identity-help{
  display:block;
  margin:-1px 2px 1px;
  color:#7b8782;
  font-size:12px;
  line-height:1.35;
}
.profile-identity-group .profile-public-toggle{
  margin:0 0 3px 2px;
}


/* VW109-R48 profile contact + Super Admin contact layout */
.admin-agent-contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px;
  margin:8px 0;
}
.admin-contact-item{
  display:grid;
  gap:2px;
  padding:10px 12px;
  border:1px solid var(--line,#dfe6e3);
  border-radius:12px;
  background:var(--card,#fff);
}
.admin-contact-item strong{font-size:12px;color:#0b7657}
.admin-contact-item span{font-weight:800;overflow-wrap:anywhere}
.admin-contact-item small{color:#728078;overflow-wrap:anywhere}
html[data-theme="dark"] .admin-contact-item,
body[data-theme="dark"] .admin-contact-item{background:#18201d;border-color:#314039}
html[data-theme="dark"] .admin-contact-item strong,
body[data-theme="dark"] .admin-contact-item strong{color:#6ed3ae}


/* VMX10 — Master Property Color System
   Same type color is used across Poster + Map markers. */
:root{
  --property-land:#176B46;
  --property-house:#0E704F;
  --property-condo:#1267A8;
  --property-townhouse:#C95C2C;
  --property-commercial:#B58B2A;
}


/* VW109-R51 Help Center */
.help-page-head{align-items:flex-start}.help-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}.help-quick-card{border:1px solid var(--line,#dfe8e2);background:var(--card,#fff);border-radius:18px;padding:16px 10px;text-align:left;min-height:120px;box-shadow:0 6px 22px rgba(24,90,57,.07);color:inherit}.help-quick-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#e8f7ef;color:#0b875e;margin-bottom:12px}.help-quick-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.help-quick-icon svg path:first-child:not(:only-child){fill:none}.help-quick-card strong,.help-quick-card small{display:block}.help-quick-card small{margin-top:5px;color:var(--muted,#6d756f)}.help-section-head{margin-top:18px}.help-faq-list{display:grid;gap:10px}.help-faq-item{background:var(--card,#fff);border:1px solid var(--line,#e4ebe6);border-radius:16px;padding:0 14px}.help-faq-item summary{cursor:pointer;display:flex;align-items:center;gap:10px;padding:14px 0;list-style:none}.help-faq-item summary::-webkit-details-marker{display:none}.help-faq-item p{margin:0 0 15px 34px;color:var(--muted,#66736b);line-height:1.6}.help-contact-form{margin-bottom:90px}.help-guide-sheet{max-height:90vh;overflow:auto}.help-guide-body{padding:4px 0 12px}.help-step-list{display:grid;gap:10px}.help-step-card{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:12px;border:1px solid var(--line,#e4ebe6);border-radius:16px;padding:12px;background:var(--card,#fff)}.help-step-card b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e8f7ef;color:#087844;font-size:18px}.help-step-card p{margin:0;line-height:1.5}.help-infographic-button{display:block;width:100%;border:0;padding:0;margin:0 0 14px;background:transparent;border-radius:18px;overflow:hidden}.help-infographic-button img{display:block;width:100%;height:auto}.help-listing-visuals{display:grid;gap:14px;margin:4px 0 16px}.help-step-visual{position:relative;display:block;width:100%;border:1px solid var(--line,#e4ebe6);padding:0;background:var(--card,#fff);border-radius:18px;overflow:hidden;box-shadow:0 6px 22px rgba(24,90,57,.08);text-align:left}.help-step-visual img{display:block;width:100%;height:auto}.help-step-visual-label{position:absolute;z-index:2;left:10px;top:10px;background:rgba(0,125,76,.92);color:#fff;padding:6px 11px;border-radius:999px;font-weight:800;font-size:13px;box-shadow:0 3px 12px rgba(0,0,0,.12)}
.help-step-accordion{display:grid;gap:12px;margin:6px 0 12px}.help-step-item{border:1px solid var(--line,#e4ebe6);border-radius:18px;background:var(--card,#fff);overflow:hidden;box-shadow:0 6px 22px rgba(24,90,57,.06)}.help-step-toggle{width:100%;display:grid;grid-template-columns:52px 1fr 22px;align-items:center;gap:14px;border:0;background:transparent;padding:18px 16px;text-align:left}.help-step-num{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e8f7ef;color:#087844;font-size:24px;font-weight:900}.help-step-text{font-size:18px;font-weight:700;line-height:1.35}.help-step-caret{justify-self:end;font-size:22px;color:#0a7d4c;transition:transform .2s ease}.help-step-item.open .help-step-caret{transform:rotate(180deg)}.help-step-panel{padding:0 16px 16px}.help-step-thumb{display:block;width:100%;border:0;padding:0;background:transparent;border-radius:18px;overflow:hidden}.help-step-thumb img{display:block;width:100%;height:auto;border:1px solid var(--line,#e4ebe6);border-radius:18px}.help-step-visual-label{display:none}@media(max-width:520px){.help-step-toggle{grid-template-columns:48px 1fr 20px;padding:16px 14px}.help-step-num{width:40px;height:40px;font-size:22px}.help-step-text{font-size:17px}}
.help-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.help-feature-card{background:var(--card,#fff);border:1px solid var(--line,#e4ebe6);border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(24,90,57,.08)}.help-feature-image{display:block;width:100%;border:0;padding:0;background:transparent;cursor:pointer}.help-feature-image img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.help-feature-content{padding:14px 14px 16px}.help-feature-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}.help-feature-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e8f7ef;color:#087844;font-size:19px;flex:0 0 38px}.help-feature-content h3{margin:0;font-size:19px;line-height:1.3}.help-feature-content p{margin:8px 0 10px;color:var(--muted,#66736b);line-height:1.55}.help-feature-content ul{margin:0;padding-left:18px;color:#284236;line-height:1.5;display:grid;gap:5px}.help-feature-content li::marker{color:#0a7d4c}.help-feature-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f2fbf6;color:#0a7d4c;font-size:12px;font-weight:800;letter-spacing:.01em;text-transform:uppercase;margin-bottom:8px}.help-feature-note{font-size:12px;color:var(--muted,#6d756f);margin-top:10px}.help-feature-empty{padding:20px}.help-guide-actions{position:sticky;bottom:0;display:flex;gap:10px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:var(--bg,#fff)}.help-guide-actions>*{flex:1}.help-image-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:20px}.help-image-lightbox img{max-width:100%;max-height:90vh;object-fit:contain;border-radius:12px}.help-image-lightbox button{position:fixed;right:16px;top:16px;width:44px;height:44px;border-radius:50%;border:0;font-size:28px}.support-admin-list{display:grid;gap:12px}.support-admin-card{background:var(--card,#fff);border:1px solid var(--line,#e4ebe6);border-radius:16px;padding:14px}.support-admin-head{display:flex;justify-content:space-between;gap:12px}.support-admin-head small{display:block;color:var(--muted,#6d756f);margin-top:4px}.support-admin-card p{white-space:pre-wrap;line-height:1.55}.support-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:520px){.help-quick-grid{grid-template-columns:1fr 1fr}.help-quick-card{min-height:104px}.help-feature-list{grid-template-columns:1fr}.help-feature-content h3{font-size:18px}}

.admin-tab-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e53935;color:#fff;font-size:12px;font-weight:800;margin-left:6px}.support-admin-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}.support-admin-summary span{background:#eef8f3;border:1px solid #d2e9dd;border-radius:999px;padding:7px 10px;font-weight:700;color:#176746}.support-reply-box{margin-top:12px;padding-top:12px;border-top:1px solid var(--line,#e4ebe6)}.support-reply-box textarea{width:100%;min-height:88px;border:1px solid var(--line,#dfe8e2);border-radius:12px;padding:10px;background:var(--card,#fff);color:inherit;resize:vertical}.support-reply-box .support-reply-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}.support-existing-reply{margin-top:10px;background:#f2fbf6;border-left:3px solid #0a8a5b;padding:10px 12px;border-radius:10px}.support-user-key{font-size:12px;color:var(--muted,#6d756f);margin-top:4px}.help-my-support-list{display:grid;gap:10px;margin-bottom:90px}.help-my-support-card{border:1px solid var(--line,#e4ebe6);border-radius:16px;background:var(--card,#fff);padding:14px}.help-my-support-card h3{margin:0 0 6px;font-size:16px}.help-my-support-card p{white-space:pre-wrap;margin:6px 0;line-height:1.5}.help-my-support-card .support-answer{background:#f2fbf6;border-left:3px solid #0a8a5b;padding:10px 12px;border-radius:10px;margin-top:10px}.help-my-support-card small{color:var(--muted,#6d756f)}

.agent-intro-pitch{margin-top:-2px;padding:12px 14px;border-radius:14px;background:#f4fbf7;color:#2f5b49;line-height:1.6}.support-admin-compact{padding:0;overflow:hidden}.support-admin-compact>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:14px;cursor:pointer}.support-admin-compact>summary::-webkit-details-marker{display:none}.support-compact-main{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center}.support-compact-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.support-compact-main span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted,#6d756f)}.support-admin-expanded{border-top:1px solid var(--line,#e4ebe6);padding:14px}.support-admin-expanded>small{display:block;color:var(--muted,#6d756f);margin-bottom:10px}@media(max-width:520px){.support-compact-main{grid-template-columns:1fr}.support-compact-main strong{max-width:none}.support-admin-compact>summary{grid-template-columns:minmax(0,1fr) auto}}

/* VMX1: country-aware property area units */
.area-unit-card{display:grid;gap:8px}.area-unit-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.area-unit-head label{margin:0}.area-unit-head select{width:auto;max-width:52%;min-width:145px}.area-unit-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px}.area-unit-row input,.area-unit-row select,.area-unit-head select,#singleLandField input{min-height:46px}.area-unit-card .hint{margin-top:0;line-height:1.35}.area-unit-card .three-col{margin-top:0}@media(max-width:520px){.area-unit-head{align-items:flex-start;flex-direction:column}.area-unit-head select{max-width:none;width:100%}.area-unit-row{grid-template-columns:minmax(0,1fr) 104px}}

/* VMX2: country-aware listing currency */
.money-currency-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:10px;align-items:center}.money-currency-row .money-input{margin:0}.money-currency-row select{min-height:46px}.money-currency-row+.hint{display:block;margin-top:6px}@media(max-width:520px){.money-currency-row{grid-template-columns:minmax(0,1fr) 118px}}

.theme-admin-card{margin:12px 0}.theme-admin-meta{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.theme-admin-meta span{background:#f3f7f5;border-radius:999px;padding:6px 9px;font-size:12px}.theme-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.theme-template-grid>div{border:1px solid var(--line);border-radius:12px;padding:9px;display:flex;flex-direction:column;gap:2px}.theme-template-grid small{color:var(--muted)}.theme-default-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-default-grid label,.theme-create-grid label{display:flex;flex-direction:column;gap:5px;font-weight:700}.theme-default-grid select,.theme-create-grid input,.theme-create-grid select,.theme-create-grid textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--card);color:inherit}.theme-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-description-label{grid-column:1/-1}.theme-status-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:640px){.theme-default-grid,.theme-create-grid{grid-template-columns:1fr}.theme-template-grid{grid-template-columns:1fr}}
/* VMX15 Poster Theme preview */
.theme-template-preview-grid{align-items:start}.theme-template-preview{min-width:0}.theme-mini{overflow:hidden;border:1px solid #dce7e2;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(13,75,54,.08)}.theme-mini.portrait{aspect-ratio:3/4}.theme-mini.landscape{aspect-ratio:4/3}.theme-mini-hero{height:44%;background:linear-gradient(145deg,var(--theme-accent),#dfeae5);position:relative}.theme-mini-hero:after{content:"";position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(transparent,rgba(0,0,0,.42))}.theme-mini-hero span{position:absolute;left:8px;bottom:7px;z-index:1;color:#fff;font-size:11px;font-weight:800}.theme-mini-price{text-align:center;background:var(--theme-accent);color:#fff;font-weight:900;font-size:12px;padding:5px 6px}.theme-mini-body{padding:7px;display:flex;flex-direction:column;gap:3px}.theme-mini-body b{font-size:12px}.theme-mini-body span,.theme-mini-body small{font-size:9px;color:#53645c}.theme-preview-language{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}.theme-preview-language select{border:1px solid var(--line);border-radius:10px;padding:7px 9px;background:var(--card);color:inherit}

/* VMX17 Theme Studio — simple mode for non-programmer Super Admin */
.theme-quick-nav{position:sticky;top:58px;z-index:20;display:flex;gap:7px;overflow:auto;padding:8px 4px 10px;background:var(--bg);scrollbar-width:none}.theme-quick-nav::-webkit-scrollbar{display:none}.theme-quick-nav button{border:1px solid var(--line);background:var(--card);color:inherit;border-radius:999px;padding:9px 12px;white-space:nowrap;font-weight:800;font-size:12px}.theme-quick-nav button:nth-child(2){background:var(--brand);color:#fff;border-color:var(--brand)}
.theme-section-title{margin:18px 0 10px}.theme-default-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-default-preview-card{border:1px solid var(--line);border-radius:16px;padding:10px;background:var(--card)}.theme-default-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.theme-default-preview-head span{font-size:11px;font-weight:900;background:#edf6f1;border-radius:999px;padding:4px 8px}.theme-default-preview-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.theme-default-preview-pair small{display:block;font-weight:900;color:var(--muted);margin:0 0 4px}
.theme-default-preview-pair .theme-studio-canvas{width:100%;min-height:0;box-shadow:none;border-radius:9px}.theme-default-preview-pair .theme-studio-block{pointer-events:none}.theme-default-preview-pair .theme-studio-block-name{display:none}.theme-default-preview-pair .theme-studio-block-content{font-size:5px;line-height:1.08}.theme-default-preview-pair .theme-studio-canvas.portrait{aspect-ratio:3/4}.theme-default-preview-pair .theme-studio-canvas.landscape{aspect-ratio:4/3}
.theme-studio-card{scroll-margin-top:110px}.theme-studio-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.theme-studio-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:800}.theme-studio-toolbar select,.theme-studio-toolbar input[type="range"]{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--card);color:inherit;padding:9px}.theme-studio-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}.theme-studio-stage{min-width:0;padding:10px;border:1px dashed var(--line);border-radius:16px;background:rgba(127,150,140,.06);overflow:auto}.theme-studio-canvas{position:relative;width:min(100%,640px);margin:auto;border:1px solid #cddbd5;border-radius:16px;overflow:hidden;box-shadow:0 10px 28px rgba(17,61,45,.12);touch-action:none;user-select:none}.theme-studio-canvas.portrait{aspect-ratio:3/4}.theme-studio-canvas.landscape{aspect-ratio:4/3;width:min(100%,860px)}.theme-studio-block{position:absolute;border:1px solid rgba(22,89,65,.22);border-radius:10px;overflow:visible;padding:5px;box-sizing:border-box;cursor:grab;box-shadow:0 2px 8px rgba(9,55,39,.08)}.theme-studio-block:active{cursor:grabbing}.theme-studio-block.selected{outline:3px solid #ffb000;outline-offset:1px;z-index:99!important}.theme-studio-block-name{display:block;font-size:8px;font-weight:900;opacity:.82;line-height:1.1;margin-bottom:2px}.theme-studio-block-id{display:inline-block;margin-bottom:3px;padding:2px 6px;border-radius:999px;background:rgba(13,80,66,.82);color:#fff;font-size:7px;font-weight:700}.theme-studio-block-content{font-size:8px;font-weight:700;line-height:1.18;overflow:hidden}.theme-studio-block.fixed-editor-block:not(.selected){border-color:rgba(11,96,113,.15)!important;background:rgba(255,255,255,.01)!important;box-shadow:none}.theme-studio-block.fixed-editor-block:not(.selected) .theme-studio-block-name,.theme-studio-block.fixed-editor-block:not(.selected) .theme-studio-block-id{opacity:.28}.theme-studio-block.block-hero{background:linear-gradient(145deg,#b8d4c8,#e8efe9)!important}.theme-studio-block.block-hero .theme-studio-block-content:after{content:"🏠  PROPERTY PHOTO";display:flex;align-items:center;justify-content:center;height:100%;font-size:10px;color:#2f6554;opacity:.75}.theme-studio-block.block-hero .theme-studio-block-content{height:calc(100% - 12px);color:transparent}.theme-studio-block.block-price .theme-studio-block-content{font-size:12px;text-align:center}.theme-studio-block.block-nearby .theme-studio-block-content{white-space:normal}.theme-studio-empty{display:grid;place-items:center;min-height:280px;padding:20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}.theme-studio-side{position:sticky;top:108px;display:flex;flex-direction:column;gap:10px}.theme-studio-inspector,.theme-studio-source-guide{border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--card)}.theme-studio-inspector h4,.theme-studio-source-guide h4{margin:0 0 8px}.theme-studio-source-guide p{margin:0 0 10px;color:#60716b;font-size:12px;line-height:1.45}.theme-studio-source-group{display:grid;gap:6px;padding-top:8px}.theme-studio-source-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;font-size:11px}.theme-studio-source-row span{font-weight:800}.theme-studio-source-row code,.theme-studio-block-meta code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f3f8f6;padding:2px 6px;border-radius:8px;color:#155b49;word-break:break-all}.theme-studio-block-meta{display:grid;gap:4px;margin:0 0 8px;font-size:11px;color:#60716b}.theme-studio-inspector label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:800;margin:7px 0}.theme-studio-inspector select,.theme-studio-inspector input[type="text"],.theme-studio-inspector input:not([type]),.theme-studio-inspector input[type="number"]{width:100%;border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--card);color:inherit}.theme-studio-inspector input[type="range"]{width:100%}.theme-studio-inspector input[type="color"]{width:100%;height:34px;border:0;border-radius:8px;background:transparent;padding:0}.theme-studio-wide{grid-column:1/-1}.theme-studio-check{flex-direction:row!important;align-items:center!important}.theme-studio-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.theme-studio-actions button{width:100%}.theme-studio-block-group-list{display:grid;gap:10px}.theme-studio-block-group{border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--card)}.theme-studio-block-group h5{margin:0 0 8px;font-size:12px}.theme-studio-block-list{display:flex;gap:6px;flex-wrap:wrap}.theme-studio-block-list button{border:1px solid var(--line);background:var(--card);color:inherit;border-radius:12px;padding:7px 9px;font-size:10px;font-weight:800;display:grid;gap:2px;text-align:left}.theme-studio-block-list button small{font-size:9px;color:#60716b;font-weight:700}.theme-studio-block-list button.active{background:var(--brand);color:#fff;border-color:var(--brand)}.theme-studio-block-list button.active small{color:#e8fbf4}.theme-studio-block-list button.muted{opacity:.45}.theme-studio-resize-handle{position:absolute;width:16px;height:16px;border-radius:50%;background:#ffb000;border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.18);display:none}.theme-studio-block.selected .theme-studio-resize-handle{display:block}.theme-studio-resize-handle.tl{left:-8px;top:-8px;cursor:nwse-resize}.theme-studio-resize-handle.tr{right:-8px;top:-8px;cursor:nesw-resize}.theme-studio-resize-handle.bl{left:-8px;bottom:-8px;cursor:nesw-resize}.theme-studio-resize-handle.br{right:-8px;bottom:-8px;cursor:nwse-resize}
#themeOverview,#themeImport,#themeVersions{scroll-margin-top:110px}
@media(max-width:760px){.theme-default-preview-grid{grid-template-columns:1fr}.theme-studio-toolbar{grid-template-columns:1fr 1fr}.theme-studio-workspace{grid-template-columns:1fr}.theme-studio-side{position:static}.theme-studio-canvas.portrait{width:min(100%,520px)}.theme-studio-canvas.landscape{width:min(100%,760px)}}
@media(max-width:430px){.theme-studio-toolbar{grid-template-columns:1fr}.theme-default-preview-pair{grid-template-columns:1fr 1fr}.theme-studio-block-name{font-size:6px}.theme-studio-block-content{font-size:6px}.theme-studio-block.block-price .theme-studio-block-content{font-size:9px}.theme-studio-resize-handle{width:18px;height:18px}}

/* VMX21 Condo Poster Theme Hotfix */
.poster-approval-workflow{margin-top:16px;padding:16px;border:1px solid #dce8e4;border-radius:18px;background:#f8fbfa;display:grid;gap:12px}
.poster-review-language{display:flex;gap:8px;flex-wrap:wrap}
.poster-review-section{background:#fff;border:1px solid #dfe9e6;border-radius:16px;padding:14px;display:grid;gap:10px}
.poster-review-section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.poster-review-section-head small{display:block;color:#71807a;margin-top:3px}
.approval-state{font-size:12px;font-weight:700;color:#8a6a1b;background:#fff7d9;padding:5px 9px;border-radius:999px;white-space:nowrap}.approval-state.approved{color:#12613f;background:#e6f7ef}
.poster-review-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.char-counter{float:right;font-size:12px;color:#71807a}
.poster-review-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.poster-review-image-card{border:1px solid #dfe9e6;border-radius:12px;padding:8px;display:grid;gap:6px;background:#fbfdfc}.poster-review-image-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px}.poster-review-image-card span{font-size:12px;display:flex;gap:6px;align-items:center}
.poster-review-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.poster-review-detail-grid>div{padding:10px;border-radius:12px;background:#f1f7f5;display:grid;gap:3px}.poster-review-detail-grid small{color:#6b7a74}.poster-review-detail-grid strong{font-size:15px}
.poster-review-nearby{display:grid;gap:8px}.poster-nearby-edit{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:8px;padding:8px;border:1px solid #e3ebe8;border-radius:12px}.poster-nearby-edit input[type=text],.poster-nearby-edit input:not([type]){min-width:0}.poster-nearby-edit small{color:#71807a;white-space:nowrap}
.poster-final-state{display:inline-block;margin-top:7px}.poster-pair-item .poster-final-approve{margin-top:8px}
.theme-line-list{display:grid;gap:8px}.theme-line-item{border:1px solid #dde7e4;border-radius:13px;background:#fff;overflow:hidden}.theme-line-item>summary{list-style:none;display:grid;grid-template-columns:auto minmax(160px,1fr) auto auto auto minmax(130px,auto) auto;gap:10px;align-items:center;padding:12px 14px;cursor:pointer}.theme-line-item>summary::-webkit-details-marker{display:none}.theme-line-version{font-weight:800;color:#07556b}.theme-line-count{color:#71807a;font-size:12px;text-align:right}.theme-line-arrow{font-size:11px;transition:.2s}.theme-line-item[open] .theme-line-arrow{transform:rotate(180deg)}.theme-line-expanded{padding:0 14px 14px;border-top:1px solid #eef3f1}.theme-preview-pair-thai{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}.theme-preview-pair-thai>div{min-width:0}.theme-preview-pair-thai small{display:block;margin-bottom:6px;color:#60716b}.theme-preview-pair-thai .theme-studio-canvas{max-height:360px}
@media(max-width:760px){.theme-line-item>summary{grid-template-columns:auto 1fr auto}.theme-line-item>summary>span:nth-child(3),.theme-line-item>summary>.theme-line-count{display:none}.theme-preview-pair-thai{grid-template-columns:1fr}.poster-review-actions>*{flex:1}.poster-nearby-edit{grid-template-columns:auto auto 1fr}.poster-nearby-edit small{grid-column:3}}
/* VMX23 simplified Poster content selection */
.poster-choice-list{display:grid;gap:8px}.poster-choice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dbe7e2;border-radius:12px;background:#fff}.poster-choice-row>span{display:flex;align-items:center;gap:8px;min-width:0}.poster-choice-row input[type="text"],.poster-choice-row input:not([type]){min-width:0;flex:1;border:0;background:transparent;padding:6px 4px;font:inherit}.poster-choice-row input[type="checkbox"]{width:24px;height:24px;accent-color:#13885f}.poster-choice-row small{color:#718079;white-space:nowrap}.compact-poster-content{padding-bottom:12px}.poster-pair-item canvas{background:#f5f8f6}

/* VMX27 unified Poster Editor / Preview */
.theme-studio-canvas.fixed-fill-editor{--editor-zoom:1;transform:scale(var(--editor-zoom));transform-origin:top center;margin-bottom:calc((var(--editor-zoom) - 1)*420px);background-position:center;background-size:100% 100%!important}
.theme-studio-canvas.fixed-fill-editor .theme-studio-block{background:rgba(255,255,255,.10)!important;border:1px dashed rgba(7,85,107,.26);box-shadow:none;padding:3px;overflow:visible}
.theme-studio-canvas.fixed-fill-editor .theme-studio-block-name{background:rgba(7,85,107,.88);color:#fff;border-radius:999px;display:inline-block;padding:2px 5px;font-size:7px}
.theme-studio-canvas.fixed-fill-editor .theme-studio-block.selected .theme-studio-block-content{display:block;font-size:8px;line-height:1.08;color:#123c35;background:rgba(255,255,255,.84);padding:3px;border-radius:5px;overflow:hidden;max-height:calc(100% - 30px)}
.theme-studio-canvas.fixed-fill-editor .theme-studio-block.selected{outline:3px solid #ffb000;border-color:#ffb000}
#studioZoom{width:100%}

.theme-studio-canvas.fixed-fill-editor .block-hero .theme-studio-block-content,.theme-studio-canvas.fixed-fill-editor .block-gallery .theme-studio-block-content,.theme-studio-canvas.fixed-fill-editor .block-map_qr .theme-studio-block-content,.theme-studio-canvas.fixed-fill-editor .block-listing_qr .theme-studio-block-content{display:grid;place-items:center;height:calc(100% - 14px);background:rgba(255,255,255,.58);font-weight:800}
/* VMX29 mobile editor controls */
.theme-studio-zoom-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 10px}.theme-studio-zoom-buttons button{width:44px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:20px;font-weight:900;color:inherit}.theme-studio-zoom-buttons #studioZoomFit{width:auto;padding:0 14px;font-size:12px}.theme-studio-zoom-buttons small{color:var(--muted);font-size:11px;line-height:1.35;flex:1 1 200px}.theme-studio-canvas.fixed-fill-editor .theme-studio-block:not(.selected) .theme-studio-block-content{display:none!important}.theme-studio-canvas.fixed-fill-editor .theme-studio-block.selected .theme-studio-block-name,.theme-studio-canvas.fixed-fill-editor .theme-studio-block.selected .theme-studio-block-id{opacity:1}
@media(max-width:430px){.theme-studio-stage{padding:5px}.theme-studio-zoom-buttons{position:sticky;top:102px;z-index:22;background:var(--bg);padding:6px 0}.theme-studio-side{gap:8px}.theme-studio-source-guide{font-size:11px}}

/* VMX30 — simple automatic poster layout selector */
.poster-layout-simple{display:grid;gap:14px}.poster-layout-current{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f5faf8}.poster-layout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.poster-layout-card{position:relative;border:2px solid var(--line);border-radius:18px;padding:10px;background:var(--card);color:inherit;text-align:left;display:grid;gap:6px;overflow:hidden;cursor:pointer}.poster-layout-card.active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(18,143,99,.12)}.poster-layout-card img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;border-radius:12px;background:#eef4f1}.poster-layout-card strong{font-size:16px}.poster-layout-card small{color:var(--muted);line-height:1.35}.poster-layout-card em{font-style:normal;font-size:11px;color:var(--brand);font-weight:800}.poster-layout-check{position:absolute;right:16px;top:16px;width:30px;height:30px;border-radius:999px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 4px 14px rgba(0,0,0,.14)}.poster-layout-card:not(.active) .poster-layout-check{display:none}.poster-layout-note{padding:14px;border-radius:16px;background:#eef8f4;color:#335148;line-height:1.5}
@media(max-width:760px){.poster-layout-grid{grid-template-columns:1fr 1fr}.poster-layout-card{padding:8px}.poster-layout-card strong{font-size:14px}}
@media(max-width:430px){.poster-layout-grid{grid-template-columns:1fr 1fr;gap:9px}.poster-layout-card img{border-radius:10px}.poster-layout-card small{font-size:10px}.poster-layout-card em{font-size:9px}.poster-layout-check{right:11px;top:11px;width:26px;height:26px}}

/* VMX32 — calibrated admin/agent renderer */
.agent-poster-layout-notice{margin:10px 0 14px;padding:10px 12px;border:1px solid #cfe7de;border-radius:14px;background:#eef9f5;color:#173e33;font-size:13px}.agent-poster-layout-notice strong{font-weight:900}.agent-poster-layout-notice span{display:block;margin-top:2px;color:#60736b;font-size:11px}.poster-layout-card.selected{box-shadow:0 0 0 3px rgba(15,139,98,.18)}
.poster-layout-live-wrap{position:relative;width:100%;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#eef4f1;display:grid;place-items:center}.poster-layout-live-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:12px}.poster-layout-live-state{position:relative;z-index:2;padding:12px;text-align:center;font-size:11px;line-height:1.35;color:#51655d;font-weight:700;background:rgba(255,255,255,.82);border-radius:10px;margin:12px}.poster-layout-card[data-preview-ready="1"] .poster-layout-live-state{display:none}


/* VMX43 — mobile header size correction only.
   CSS-only: no language permissions, Super Admin rules, routing, JS, or HTML changed. */
@media(max-width:520px){
  .topbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:6px!important;
    padding:10px 10px!important;
  }

  .brand{
    min-width:0!important;
    max-width:none!important;
    width:auto!important;
    flex:1 1 auto!important;
    gap:7px!important;
  }

  .brand-mark{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }

  .brand-name{
    font-size:19px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .top-actions{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
    justify-self:end!important;
    gap:0!important;
  }

  #langSegment.lang-segment{
    width:auto!important;
    max-width:142px!important;
    min-width:0!important;
    margin-left:0!important;
    overflow:hidden!important;
    flex:0 0 auto!important;
  }

  #langSegment .lang-btn{
    min-width:38px!important;
    padding:7px 7px!important;
    font-size:13px!important;
    line-height:1.1!important;
  }

  #langSegment.lang-select-mode{
    width:112px!important;
    max-width:112px!important;
  }

  #langSegment .lang-select{
    width:112px!important;
    max-width:112px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 26px 0 9px!important;
    font-size:13px!important;
  }
}

@media(max-width:390px){
  .brand-name{font-size:18px!important}
  #langSegment.lang-segment{max-width:132px!important}
  #langSegment .lang-btn{min-width:36px!important;padding:7px 6px!important;font-size:12px!important}
  #langSegment.lang-select-mode,#langSegment .lang-select{width:104px!important;max-width:104px!important}
}

/* VMX44 — portrait-only poster system */
.poster-pair-preview.poster-portrait-only{grid-template-columns:minmax(0,1fr);justify-items:center}
.poster-pair-preview.poster-portrait-only .poster-pair-item{width:min(100%,560px)}
.poster-pair-preview.poster-portrait-only .poster-preview-portrait{width:100%;height:auto;aspect-ratio:3/4}

/* VMX52 — unmistakable layout selection + reference preview frame */
.poster-layout-card{border-width:2px;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.poster-layout-card.active{border:4px solid var(--brand)!important;box-shadow:0 0 0 4px rgba(18,143,99,.18),0 10px 28px rgba(10,60,45,.12)!important;transform:translateY(-1px)}
.poster-layout-card.active .poster-layout-live-wrap{outline:3px solid var(--brand);outline-offset:-3px}
.poster-layout-card[aria-pressed="true"] strong{color:var(--brand);font-weight:900}
.poster-layout-check{z-index:5;border:3px solid #fff;width:34px;height:34px}
.poster-layout-live-wrap{border:1px solid rgba(20,60,48,.14);background:#fff}


/* VMX95 — Agent-owned poster theme selection + Super Admin theme catalog */
.agent-poster-theme-picker{display:grid;gap:10px;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.agent-poster-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.agent-theme-option{position:relative;display:grid;gap:6px;min-width:0;padding:8px;border:2px solid var(--line);border-radius:15px;background:var(--card);color:inherit;text-align:left;overflow:hidden}
.agent-theme-option.active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,139,98,.13)}
.agent-theme-option img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;border-radius:10px;background:#eef4f1}
.agent-theme-option strong{font-size:13px;line-height:1.2}.agent-theme-option small{font-size:10px;color:var(--muted);line-height:1.3}.agent-theme-option em{font-size:9px;color:var(--brand);font-style:normal;font-weight:800}
.agent-theme-check{position:absolute;right:12px;top:12px;width:26px;height:26px;border-radius:999px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.agent-theme-option:not(.active) .agent-theme-check{display:none}
.poster-theme-manager{display:grid;gap:12px}.poster-theme-policy{display:flex;flex-wrap:wrap;gap:8px}.poster-theme-policy>*{padding:8px 10px;border-radius:999px;background:#eef8f4;color:#245347;font-size:11px}
.poster-admin-theme-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.poster-admin-theme-card{border:1px solid var(--line);border-radius:16px;padding:10px;background:var(--card);display:grid;gap:9px;align-content:start}.poster-admin-theme-card.inactive,.poster-admin-theme-card.draft{opacity:.72}.poster-admin-theme-card>img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;border-radius:12px;background:#eef4f1}.poster-admin-theme-copy{display:grid;gap:5px}.poster-admin-theme-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.35}.poster-admin-theme-copy small{font-size:10px;color:#60736b}.poster-admin-theme-title{display:flex;gap:8px;align-items:center;justify-content:space-between}.poster-admin-theme-title strong{font-size:14px}.poster-admin-theme-actions{display:grid;grid-template-columns:1fr auto;gap:7px}
.poster-theme-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.poster-theme-create-grid label{display:grid;gap:5px;font-size:12px;font-weight:800}.poster-theme-create-grid input,.poster-theme-create-grid select{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px;background:var(--card);color:inherit}.theme-create-wide{grid-column:1/-1}.theme-type-checks{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.theme-type-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:5px!important;padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#f7faf8;font-weight:700!important}.theme-type-check input{width:auto!important}
@media(max-width:560px){.agent-poster-theme-grid,.poster-admin-theme-list,.poster-theme-create-grid{grid-template-columns:1fr 1fr}.poster-admin-theme-card{padding:8px}.poster-theme-create-grid .theme-create-wide{grid-column:1/-1}}
@media(max-width:390px){.poster-admin-theme-list{grid-template-columns:1fr}.poster-theme-create-grid{grid-template-columns:1fr}.poster-theme-create-grid>*{grid-column:1/-1}}

/* VMX97: explicit Poster Theme loading state. */
.poster-theme-loading{grid-column:1/-1;min-height:86px;border:1px solid #d9e7e2;border-radius:18px;background:#f4fbf8;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:18px;text-align:center;color:#176b56}
.poster-theme-loading strong{font-size:18px;line-height:1.25;width:calc(100% - 34px)}
.poster-theme-loading small{display:block;width:100%;color:#70807a;font-size:13px;line-height:1.4}
.poster-theme-loading-dot{width:18px;height:18px;border:3px solid #b9ddd0;border-top-color:#15966f;border-radius:50%;animation:neThemeSpin .8s linear infinite}
@keyframes neThemeSpin{to{transform:rotate(360deg)}}

/* VMX98: searchable property ID under public search cards */
.search-card-property-id{margin-top:4px;font-size:.78rem;color:#66736f;letter-spacing:.01em}.search-card-property-id strong{color:#0d7a53;font-weight:800}
\n/* VMX99 Super Admin property management */
.admin-property-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto;gap:8px;align-items:center;margin:0 0 12px}.admin-property-toolbar input,.admin-property-toolbar select{min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px 10px;font:inherit}.admin-property-count{font-weight:800;color:var(--muted);white-space:nowrap}.admin-property-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.admin-property-row{display:grid;grid-template-columns:110px minmax(180px,1.7fr) minmax(150px,1.15fr) 95px 95px 105px 150px;gap:10px;align-items:center;min-height:48px;padding:7px 10px;border-bottom:1px solid var(--line);font-size:13px;white-space:nowrap}.admin-property-row:last-child{border-bottom:0}.admin-property-code{font-weight:900}.admin-property-title,.admin-property-agent b{overflow:hidden;text-overflow:ellipsis}.admin-property-agent{display:flex;align-items:center;gap:7px;min-width:0}.admin-property-agent img{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none}.admin-property-actions{display:flex;justify-content:flex-end;gap:5px}.admin-property-row .compact{min-height:32px;padding:5px 8px;font-size:12px}@media(max-width:760px){.admin-property-toolbar{grid-template-columns:1fr 1fr}.admin-property-toolbar input{grid-column:1/-1}.admin-property-list{overflow-x:auto}.admin-property-row{min-width:930px}}\n/* VMX105 Poster Design Tokens */
.poster-token-editor{margin-top:10px;border-top:1px solid rgba(90,110,100,.16);padding-top:10px}
.poster-token-editor summary{cursor:pointer;font-weight:800;color:#17684f}
.poster-token-editor textarea{width:100%;min-height:220px;margin:10px 0;padding:12px;border:1px solid #d9e4df;border-radius:12px;background:#fbfdfc;font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;resize:vertical}
.poster-token-editor .secondary-btn{margin-bottom:6px}

/* VMX106 — Super Admin Visual Poster Editor */
.poster-token-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.poster-token-actions span{font-size:11px;color:var(--muted)}
.poster-visual-modal{position:fixed;inset:0;z-index:9999;background:rgba(4,18,27,.78);display:flex;align-items:center;justify-content:center;padding:14px;backdrop-filter:blur(6px)}
.poster-visual-shell{width:min(1180px,96vw);max-height:94vh;background:var(--card,#fff);border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.36);display:grid;grid-template-rows:auto 1fr}.poster-visual-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);gap:12px}.poster-visual-head>div{display:grid;gap:3px}.poster-visual-head strong{font-size:16px}.poster-visual-head small{font-size:11px;color:var(--muted)}.poster-visual-head>button{border:0;background:#eef3f1;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}
.poster-visual-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:0;overflow:hidden}.poster-visual-stage-wrap{overflow:auto;background:#dfe8e4;padding:18px;display:flex;justify-content:center;align-items:flex-start}.poster-visual-stage{position:relative;width:min(68vh,620px);aspect-ratio:3/4;background:#fff center top/cover no-repeat;box-shadow:0 12px 36px rgba(0,0,0,.22);touch-action:none;flex:0 0 auto}.poster-visual-block{position:absolute;border:2px solid rgba(23,104,79,.75);background:rgba(44,178,133,.13);min-width:24px;min-height:18px;cursor:grab;touch-action:none;box-sizing:border-box}.poster-visual-block.selected{border-color:#ff8a00;background:rgba(255,138,0,.16);box-shadow:0 0 0 2px rgba(255,255,255,.88) inset}.poster-visual-block>span{position:absolute;left:0;top:-22px;background:#17382e;color:#fff;font-size:10px;font-weight:700;padding:3px 6px;border-radius:5px;white-space:nowrap;pointer-events:none}.poster-visual-block.selected>span{background:#ff8a00}.poster-visual-resize{position:absolute;right:-6px;bottom:-6px;width:14px;height:14px;border-radius:50%;background:#ff8a00;border:2px solid #fff;cursor:nwse-resize}
.poster-visual-body aside{padding:16px;overflow:auto;border-left:1px solid var(--line);display:grid;align-content:start;gap:14px;background:#fbfdfc}.poster-visual-body aside h4{margin:0;font-size:15px}.poster-visual-geometry{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.poster-visual-geometry label,.poster-visual-sliders label{display:grid;gap:4px;font-size:10px;color:var(--muted)}.poster-visual-geometry input{width:100%;min-width:0;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.poster-visual-sliders{display:grid;gap:10px}.poster-visual-sliders label{grid-template-columns:1fr minmax(90px,1.5fr) 48px;align-items:center}.poster-visual-sliders input[type=range]{width:100%}.poster-visual-sliders output{text-align:right;color:var(--text);font-weight:700}.poster-visual-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:static;background:#fbfdfc;padding:10px 0;margin-top:14px;box-shadow:none}
@media(max-width:800px){.poster-visual-modal{padding:0}.poster-visual-shell{width:100vw;height:100vh;max-height:none;border-radius:0}.poster-visual-body{grid-template-columns:1fr;grid-template-rows:minmax(48vh,1fr) auto}.poster-visual-body aside{border-left:0;border-top:1px solid var(--line);max-height:42vh}.poster-visual-stage{width:min(78vw,430px)}}
.theme-template-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.theme-template-preview{border:1px solid #e4ece7;border-radius:14px;padding:10px;background:#fff}.theme-template-preview>strong,.theme-template-preview>span,.theme-template-preview>small{display:block;margin-top:5px}.theme-mini{--theme-accent:#246b55;border:1px solid #dbe6df;border-radius:10px;overflow:hidden;background:#f8fbf9;margin-bottom:8px}.theme-mini.portrait{aspect-ratio:3/4}.theme-mini.landscape{aspect-ratio:4/3}.theme-mini-hero{height:58%;background:linear-gradient(135deg,var(--theme-accent),#dbe9df)}.theme-mini-body{padding:7px}.theme-mini-body b{color:var(--theme-accent);font-size:11px}.theme-mini-body span{display:block;height:4px;background:#e7eee9;border-radius:4px;margin:5px 0}.theme-mini-body span:nth-child(3){width:68%}.theme-mini-body small{font-size:8px;color:#66766c}.theme-import-box{display:grid;gap:10px}.theme-import-box .payment-slip-upload{margin:0}

/* VMX108 All Theme Block Editor + Reference Builder */
.poster-builder-shell{width:min(1380px,98vw)}
.poster-builder-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--line);background:#f6faf8}.poster-builder-toolbar label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.poster-builder-upload{padding:7px 10px;background:#fff;border:1px solid var(--line);border-radius:10px}.poster-builder-upload input{max-width:220px}
.poster-builder-body{display:grid;grid-template-columns:220px minmax(0,1fr) 340px;min-height:0;overflow:hidden}.poster-builder-palette,.poster-builder-body>aside:last-child{padding:14px;overflow:auto;background:#fbfdfc}.poster-builder-palette{border-right:1px solid var(--line)}.poster-builder-body>aside:last-child{border-left:1px solid var(--line)}
.poster-builder-palette h4{margin:0 0 10px}.poster-builder-palette button{width:100%;text-align:left;border:1px solid #d8e5df;background:#fff;border-radius:10px;padding:9px 10px;margin-bottom:7px;cursor:pointer;font-size:12px}.poster-builder-palette button:hover{border-color:#17684f;background:#f0faf6}
.poster-builder-reference{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:0}.poster-builder-block{position:absolute;border:2px solid rgba(23,104,79,.82);box-sizing:border-box;cursor:grab;touch-action:none;min-width:18px;min-height:18px}.poster-builder-block.selected{border-color:#ff8a00;box-shadow:0 0 0 2px #fff inset}.poster-builder-block>span{position:absolute;left:0;top:-22px;background:#17382e;color:#fff;padding:3px 6px;border-radius:5px;font-size:10px;font-weight:800;white-space:nowrap;pointer-events:none}.poster-builder-block.selected>span{background:#ff8a00}.poster-builder-sample{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;font-size:10px;font-weight:800;color:#17382e;padding:4px;overflow:hidden;pointer-events:none}.poster-builder-block.type-photo .poster-builder-sample{color:#0d5ca8}.poster-builder-block.type-qr .poster-builder-sample{color:#5f3aa5}
.poster-builder-inspector{display:grid;grid-template-columns:1fr 1fr;gap:8px}.poster-builder-inspector label{display:grid;gap:4px;font-size:10px;color:var(--muted)}.poster-builder-inspector input,.poster-builder-inspector select,.poster-builder-inspector textarea{width:100%;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.poster-builder-wide{grid-column:1/-1}.poster-builder-check{grid-column:1/-1;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.poster-builder-check input{width:auto!important}.poster-builder-object-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.poster-builder-object-actions button{padding:8px;border-radius:9px;border:1px solid var(--line);background:#fff;cursor:pointer}.poster-builder-object-actions .danger-btn{background:#fff2f2}
@media(max-width:950px){.poster-builder-body{grid-template-columns:150px minmax(0,1fr) 290px}.poster-builder-palette button{font-size:10px;padding:7px}}
@media(max-width:760px){.poster-builder-shell{width:100vw;height:100vh;max-height:none;border-radius:0}.poster-builder-body{grid-template-columns:1fr;grid-template-rows:auto minmax(46vh,1fr) auto;overflow:auto}.poster-builder-palette{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);gap:6px;padding:8px}.poster-builder-palette h4{display:none}.poster-builder-palette button{width:auto;min-width:max-content;margin:0}.poster-builder-body>aside:last-child{border-left:0;border-top:1px solid var(--line);max-height:38vh}.poster-builder-toolbar{padding:8px;gap:8px}}

/* Touch-first template editor: full-strength reference with unobtrusive outlines */
.poster-visual-stage{background-size:100% 100%!important}
.poster-visual-block{background:transparent!important;border:1.5px dashed rgba(0,129,240,.72)!important;box-shadow:none!important}
.poster-visual-block.selected{border:3px solid #ff9000!important;background:rgba(255,144,0,.045)!important}
.poster-visual-block>span{display:none}
.poster-visual-block.selected>span{display:block;top:-28px;font-size:12px;padding:5px 8px}
.poster-visual-resize,.poster-visual-radius-handle{position:absolute;width:27px;height:27px;border:3px solid white;border-radius:50%;box-shadow:0 1px 6px #0006;touch-action:none;display:none}
.poster-visual-block.selected .poster-visual-resize,.poster-visual-block.selected .poster-visual-radius-handle{display:block}
.poster-visual-resize{right:-13px;bottom:-13px;background:#ff9000}
.poster-visual-radius-handle{right:-13px;top:-13px;background:#127fcb;cursor:nesw-resize}
.poster-visual-style-panel input[type=range]{width:100%;min-height:40px}

/* Live block-layer staging preview for Visual Editor */
.pv-live-layer{position:absolute;inset:0;container-type:inline-size;pointer-events:none;overflow:hidden;background:linear-gradient(#dae4e8 0 46%,#fff 46% 86%,#0e2533 86%)}
.pv-live-piece{position:absolute;box-sizing:border-box;overflow:hidden;padding:1.5%;display:flex;flex-direction:column;justify-content:center;gap:.3em;font-family:system-ui,'Noto Sans Thai',sans-serif;font-weight:750;line-height:1.15;word-break:break-word;text-shadow:0 1px 2px rgba(0,0,0,.10)}
.pv-live-piece small{font-size:.38em;font-weight:500}.pv-live-piece span{font-size:.52em;font-weight:500;line-height:1.35}.pv-live-hero,.pv-live-photos,.pv-live-circlePhoto{font-size:2.1cqw!important;color:white!important;align-items:center;background:linear-gradient(135deg,#c8d9df,#536d83)!important}.pv-live-photos{flex-direction:row;padding:0;gap:1%}.pv-live-photos>div{display:grid;place-items:center;flex:1;height:100%;border:1px solid white}.pv-live-headline{font-weight:900;font-size:5.7cqw;text-shadow:0 2px 6px #111}.pv-live-descriptor{font-size:3.7cqw;color:#93d5ff!important}.pv-live-location{font-size:2.15cqw}.pv-live-price{align-items:center;font-size:5cqw}.pv-live-price b{font-size:1.35em}.pv-live-about,.pv-live-features{justify-content:flex-start;font-size:2.75cqw;padding:2%}.pv-live-contact{font-size:2.4cqw}.pv-live-qr{display:flex;flex-direction:row;padding:1%;gap:3%;justify-content:center}.pv-qr-card{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;background:white;color:#102333;font-size:5cqw;line-height:1}.pv-qr-card small{font-size:.28em}.pv-live-brand{font-size:2.35cqw}.pv-live-brand small{font-size:.5em}

/* visual editor three-layer reference visibility patch */
#posterVisualStage .pv-poster-layer{display:block!important;visibility:visible!important}
#posterVisualStage .pv-live-piece{display:flex;position:absolute;visibility:visible;box-sizing:border-box;overflow:hidden;padding:1.5%;align-items:flex-start;justify-content:center;flex-direction:column;font-family:system-ui,'Noto Sans Thai',sans-serif;font-weight:750;line-height:1.2}
#posterVisualStage .pv-reference-layer{display:block!important;visibility:visible!important}
#posterVisualStage .pv-boxes-layer{position:absolute;inset:0;z-index:3;pointer-events:none}
#posterVisualStage .pv-boxes-layer .poster-visual-block{pointer-events:auto}

/* Tablet layout editor: independent stable canvas and inspector scroll positions */
.poster-visual-stage{container-type:inline-size}
.poster-visual-body aside{overscroll-behavior:contain;scrollbar-gutter:stable}
.poster-visual-style-panel select[data-pv-align]{width:100%;padding:9px;border:1px solid #cbd5d1;border-radius:9px;background:white;font-size:14px}
@media(max-width:800px){
 .poster-visual-shell{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;display:flex;flex-direction:column}
 .poster-visual-head{flex:0 0 auto}
 .poster-visual-body{display:grid!important;grid-template-rows:minmax(0,55fr) minmax(0,45fr)!important;min-height:0!important;height:100%!important;flex:1}
 .poster-visual-stage-wrap{min-height:0!important;overflow:auto!important;align-items:flex-start}
 .poster-visual-body aside{min-height:0!important;height:100%!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:100px}
 .poster-visual-actions{position:static;bottom:auto;z-index:auto;background:#fbfdfc;box-shadow:none;padding:10px 0}
}

/* Mobile detail readability and long translated content. */
html {-webkit-text-size-adjust:100%;text-size-adjust:100%}
.v102-detail-inner,.detail-hero,.detail-section,.spec-card {min-width:0}
.detail-hero h1 {overflow-wrap:anywhere}
.detail-price {font-size:clamp(24px,7vw,34px);overflow-wrap:anywhere;line-height:1.25}
.nearby-public-row>*:first-child {min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){
 .detail-hero{padding:18px 20px 12px}.detail-section{padding:8px 20px 16px}
 .detail-hero h1{font-size:24px;line-height:1.35}.detail-section h2{font-size:20px}
 .summary-card{font-size:16px;line-height:1.65;padding:14px}.detail-short-spec{font-size:16px}
 .spec-card{padding:12px;min-height:108px}.spec-card strong{font-size:22px}.spec-card span{font-size:14px}
 .detail-purpose{font-size:16px}.detail-empty{font-size:15px;overflow-wrap:anywhere}
}
