:root{--navy:#07131d;--navy2:#0d1e2b;--gold:#c9983d;--ink:#17222c;--muted:#6f787e;--line:#e8e4dc;--cream:#f8f7f4}*{box-sizing:border-box}.admin-body{margin:0;background:#f5f4f0;color:var(--ink);font-family:Arial,Helvetica,sans-serif}.login-gate{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at top right,#243a49,#07131d 55%)}.login-card{width:min(480px,94vw);background:#fff;padding:42px;border-radius:18px;box-shadow:0 25px 70px #0005;text-align:center}.login-card img{width:150px;height:auto;margin-bottom:18px}.login-card small,.dash-head small,.form-head small{color:var(--gold);font-weight:800;letter-spacing:1.5px}.login-card h1{font:38px/1.05 Georgia,serif;margin:12px 0}.login-card h1 em{color:var(--gold);font-style:normal}.login-card p{color:var(--muted);line-height:1.6}.login-card label{text-align:left;display:block;font-size:12px;font-weight:700;margin:24px 0}.login-card input,.tools input,.tools select,.form-grid input,.form-grid textarea,.form-grid select{width:100%;border:1px solid #ddd8ce;border-radius:7px;padding:13px 14px;margin-top:7px;font:inherit;background:#fff}.login-card button,.big{width:100%;border:0;padding:14px 18px;font-weight:800;letter-spacing:.5px;cursor:pointer}.login-card>a{display:inline-block;margin-top:22px;color:#59636a;text-decoration:none}.demo-note{margin-top:25px;padding:12px;background:#f6f2e9;border-radius:8px;font-size:11px;color:#776d5d}.demo-note span{color:#9a9183}.login-card #loginError{color:#b52f2f;font-size:12px;margin-top:10px;min-height:16px}.admin-top{height:76px;background:#07131d;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 5%;box-shadow:0 3px 20px #0002}.admin-brand{display:flex;align-items:center;gap:12px}.admin-brand img{height:48px;width:auto;background:#fff;border-radius:4px}.admin-brand strong{display:block;font:18px Georgia,serif}.admin-brand span{display:block;font-size:10px;color:#aeb7bc;letter-spacing:1px}.admin-top a,.admin-top button{color:#fff;text-decoration:none;background:transparent;border:0;margin-left:22px;cursor:pointer;font:inherit}.dashboard{max-width:1200px;margin:auto;padding:45px 5% 70px}.dash-head{display:flex;align-items:end;justify-content:space-between;gap:30px}.dash-head h1{font:44px Georgia,serif;margin:8px 0}.dash-head p{color:var(--muted);margin:0;max-width:650px}.gold{background:var(--gold);color:#101820;border-radius:5px}.dash-head .big{width:auto;white-space:nowrap}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:34px 0}.metrics>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px}.metrics small{display:block;color:#8a8f92;font-size:10px;font-weight:800;letter-spacing:1px}.metrics b{display:block;font:34px Georgia,serif;margin-top:8px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid var(--line);gap:20px}.panel-head h2{margin:0;font:27px Georgia,serif}.panel-head p{margin:6px 0 0;color:var(--muted);font-size:12px}.tools{display:flex;gap:8px}.tools input{width:210px;margin:0}.tools select{width:150px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:750px}th,td{padding:16px 20px;text-align:left;border-bottom:1px solid #eee;font-size:12px}th{font-size:9px;color:#8a8f92;letter-spacing:1px}.property-cell{display:flex;align-items:center;gap:13px}.property-cell img{width:58px;height:46px;object-fit:cover;border-radius:5px}.property-cell strong,.property-cell span{display:block}.property-cell span{color:var(--muted);margin-top:5px;font-size:10px}.status{color:#8b682a;font-size:9px;font-weight:800;letter-spacing:.6px}.actions button,.backup button{border:1px solid #dcd6ca;background:#fff;border-radius:5px;padding:8px 10px;font-size:10px;font-weight:800;cursor:pointer;margin-right:5px}.actions .danger{color:#a33131}.empty{text-align:center;color:#8a8f92;padding:40px}.backup{margin-top:18px;background:#0d1e2b;color:#fff;border-radius:12px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.backup p{color:#adb7bc;font-size:11px;line-height:1.5;max-width:700px}.backup button{color:#fff;background:#ffffff0b;border-color:#ffffff22}.modal{position:fixed;inset:0;background:#06101a99;display:none;place-items:center;padding:20px;z-index:20}.modal.open{display:grid}.form-card{width:min(760px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 30px 80px #0006}.form-head{display:flex;justify-content:space-between;padding:26px 30px;border-bottom:1px solid var(--line)}.form-head h2{margin:7px 0 0;font:29px Georgia,serif}.form-head button{border:0;background:none;font-size:30px;color:#777;cursor:pointer}.form-card form{padding:28px 30px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{font-size:11px;font-weight:800}.form-grid .wide{grid-column:1/-1}.form-grid textarea{resize:vertical}.upload img{display:block;width:180px;height:115px;object-fit:cover;border-radius:8px;margin-top:12px;border:1px solid #ddd}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.form-actions button{border:1px solid #ddd5c9;background:#fff;border-radius:5px;padding:13px 18px;font-weight:800;cursor:pointer}.toast{position:fixed;right:25px;bottom:25px;background:#07131d;color:#fff;padding:13px 17px;border-radius:7px;transform:translateY(20px);opacity:0;transition:.2s;z-index:50;font-size:12px}.toast.show{transform:translateY(0);opacity:1}.owner-link{margin-left:10px;color:#b9a67f!important;font-size:10px;text-decoration:none}@media(max-width:800px){.dash-head,.panel-head,.backup{align-items:stretch;flex-direction:column}.dash-head .big{width:100%}.metrics{grid-template-columns:1fr 1fr}.tools{flex-direction:column}.tools input,.tools select{width:100%}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.admin-top{padding:0 4%;}.admin-top a{display:none}}@media(max-width:500px){.metrics{grid-template-columns:1fr}.dashboard{padding-top:30px}.dash-head h1{font-size:36px}.login-card{padding:30px 24px}}
.setup-notice{margin:18px 0;padding:14px 16px;border:1px solid #d5a45155;background:#d5a45112;border-radius:8px;text-align:left;color:#c7cdd1;font-size:12px;line-height:1.6}.setup-notice strong{display:block;color:#d7aa5b;margin-bottom:4px}.setup-notice span{display:block}.global-error{margin-top:14px;padding:11px 13px;border-radius:7px;background:#8b2d2d22;border:1px solid #c86c6c66;color:#f0b1b1;font-size:12px;line-height:1.5}.upload #preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px;min-height:30px;color:#7d858b;font-size:11px}.upload #preview img{width:74px;height:56px;object-fit:cover;border-radius:5px}.upload #preview span{padding:8px 10px;background:#f4f2ed;border-radius:5px}.admin-top span{font-size:10px;color:#9b7a43}.actions button:disabled{opacity:.5}

.upload-help{margin-top:8px;color:#7d858b;font-size:11px;line-height:1.5;font-weight:400}.upload-status{min-height:18px;margin-top:9px;color:#8b682a;font-size:11px;font-weight:800}.upload #preview{align-items:flex-start}.photo-card{position:relative;width:110px;height:90px;border:1px solid #ddd8ce;border-radius:8px;overflow:hidden;background:#f4f2ed}.photo-card img{display:block;width:100%;height:100%;object-fit:cover;border:0!important;margin:0!important}.photo-card img.broken{opacity:.25}.photo-card small{position:absolute;left:5px;bottom:5px;padding:3px 5px;background:#07131dcc;color:#fff;border-radius:3px;font-size:7px;letter-spacing:.7px}.photo-remove{position:absolute;right:4px;top:4px;width:23px;height:23px;border:0;border-radius:50%;background:#fff;color:#8d3030;font-size:16px;line-height:20px;cursor:pointer;box-shadow:0 1px 5px #0003}.upload-status:empty{display:none}

.gallery-admin-panel{margin-top:18px}.gallery-pick{position:relative;display:inline-flex;align-items:center;background:#f6f2e9;border:1px solid #ddd1b9;color:#8b682a;border-radius:5px;padding:11px 13px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.gallery-pick input{position:absolute;inset:0;opacity:0;cursor:pointer}.gallery-manager{padding:24px}.gallery-preview{display:flex;gap:9px;flex-wrap:wrap;min-height:90px;align-items:flex-start}.gallery-preview>span{padding:12px;background:#f4f2ed;border-radius:6px;color:#7d858b;font-size:11px}.gallery-pick:has(input:focus){outline:2px solid #c9983d55}.gallery-actions{display:flex;align-items:center;gap:15px;margin:18px 0 24px}.gallery-actions button{border:0;padding:12px 16px;font-size:10px;font-weight:800;cursor:pointer}.gallery-admin-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.gallery-admin-card{position:relative;height:130px;border-radius:8px;overflow:hidden;background:#f4f2ed;border:1px solid #e4dfd5}.gallery-admin-card img{width:100%;height:100%;object-fit:cover;display:block}.gallery-admin-card button{position:absolute;right:7px;top:7px;width:27px;height:27px;border:0;border-radius:50%;background:#fff;color:#8d3030;font-size:17px;cursor:pointer;box-shadow:0 2px 8px #0003}.gallery-admin-card small{position:absolute;left:7px;bottom:7px;background:#07131dcc;color:#fff;padding:4px 6px;border-radius:3px;font-size:7px}.gallery-preview .photo-card{width:110px;height:90px}@media(max-width:900px){.gallery-admin-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.gallery-pick{width:100%;justify-content:center}.gallery-actions{align-items:stretch;flex-direction:column}.gallery-admin-grid{grid-template-columns:repeat(2,1fr)}}


/* =========================================================
   ESHAN Estate — Mobile Owner Dashboard Upgrade
   Optimized for phones and touch screens.
   ========================================================= */
@media (max-width: 700px){
  html{font-size:16px}
  body.admin-body{overflow-x:hidden}
  .admin-top{height:auto;min-height:70px;padding:10px 14px;gap:10px}
  .admin-brand{min-width:0;gap:9px}
  .admin-brand img{width:42px;height:42px;object-fit:contain}
  .admin-brand strong{font-size:16px}
  .admin-brand span{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}
  .admin-top>div:last-child{display:flex;align-items:center;gap:5px;flex-shrink:0}
  .admin-top a,.admin-top button{margin-left:0;padding:10px 8px;font-size:10px}
  .dashboard{width:100%;padding:24px 13px 45px}
  .dash-head{gap:18px}
  .dash-head h1{font-size:34px;line-height:1.05}
  .dash-head p{font-size:12px;line-height:1.55}
  .dash-head .big{min-height:48px;font-size:11px}
  .metrics{gap:9px;margin:22px 0}
  .metrics>div{padding:16px 13px;border-radius:10px}
  .metrics b{font-size:28px}
  .panel{border-radius:11px}
  .panel-head{padding:18px 15px;gap:14px}
  .panel-head h2{font-size:23px}
  .panel-head p{font-size:11px;line-height:1.45}
  .tools{width:100%;gap:7px}
  .tools input,.tools select{min-height:44px;font-size:14px}

  /* Turn the property table into easy-to-read mobile cards. */
  .table-wrap{overflow:visible}
  table{min-width:0;width:100%;display:block}
  table thead{display:none}
  table tbody{display:block;width:100%}
  table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:14px 13px;border-bottom:1px solid #eee}
  table tbody tr:last-child{border-bottom:0}
  table tbody td{display:block;padding:0;border:0;font-size:12px;min-width:0}
  table tbody td:first-child{grid-column:1/-1}
  table tbody td:nth-child(2)::before{content:'STATUS  ';font-size:8px;font-weight:800;color:#999;letter-spacing:.7px}
  table tbody td:nth-child(3)::before{content:'PRICE  ';font-size:8px;font-weight:800;color:#999;letter-spacing:.7px}
  table tbody td:nth-child(4)::before{content:'FEATURED  ';font-size:8px;font-weight:800;color:#999;letter-spacing:.7px}
  table tbody td:nth-child(5){grid-column:1/-1;margin-top:3px}
  .property-cell{gap:10px}
  .property-cell img{width:62px;height:52px;border-radius:7px;flex-shrink:0}
  .property-cell strong{font-size:12px;line-height:1.3}
  .property-cell span{font-size:10px;line-height:1.35}
  .actions{display:flex;gap:7px}
  .actions button{flex:1;min-height:42px;margin:0;font-size:10px}

  .gallery-manager{padding:16px 13px}
  .gallery-pick{width:100%;min-height:46px;justify-content:center;font-size:10px}
  .gallery-actions{margin:14px 0 20px;gap:8px}
  .gallery-actions button{width:100%;min-height:46px;font-size:10px}
  .gallery-preview{gap:8px}
  .gallery-preview .photo-card{width:calc(33.333% - 6px);height:82px}
  .gallery-admin-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .gallery-admin-card{height:135px}
  .gallery-admin-card button{width:34px;height:34px;font-size:19px}

  .modal{padding:0;align-items:stretch}
  .form-card{width:100%;height:100%;max-height:none;border-radius:0;display:flex;flex-direction:column}
  .form-head{padding:18px 17px;position:sticky;top:0;background:#fff;z-index:2}
  .form-head h2{font-size:24px}
  .form-head button{width:42px;height:42px;font-size:30px}
  .form-card form{padding:18px 17px 30px;overflow:auto}
  .form-grid{gap:14px}
  .form-grid input,.form-grid textarea,.form-grid select{font-size:16px;min-height:46px;padding:11px 12px}
  .form-grid textarea{min-height:120px}
  .upload #preview .photo-card{width:calc(33.333% - 6px);height:82px}
  .photo-remove{width:30px;height:30px;font-size:18px}
  .form-actions{position:sticky;bottom:0;background:#fff;padding:12px 0 2px;margin-top:18px;gap:8px}
  .form-actions button{flex:1;min-height:48px;font-size:11px}
  .check{align-items:flex-start;line-height:1.4}
  .check input{margin-top:2px}

  .login-gate{padding:14px}
  .login-card{width:100%;padding:28px 20px;border-radius:14px}
  .login-card h1{font-size:34px}
  .login-card input{font-size:16px;min-height:48px}
  .login-card button{min-height:50px}
  .toast{left:14px;right:14px;bottom:14px;text-align:center}
}

@media (max-width:380px){
  .admin-brand span{display:none}
  .admin-top a{display:none}
  .admin-top button{font-size:9px}
  .metrics{grid-template-columns:1fr 1fr}
  .metrics>div{padding:14px 10px}
  .metrics b{font-size:25px}
  .gallery-preview .photo-card,.upload #preview .photo-card{width:calc(50% - 4px);height:95px}
}
