/* ============================================================
   WELLSHOME DASHBOARD STYLES
   Brand theme: navy (#1a2e44) + orange (#e8821a) to match the
   Wellshome Properties website. Renders full-screen (no theme chrome).
============================================================ */
:root{
  /* Brand primary now maps onto the former "green" slots so every
     component recolors at once. */
  --whd-green:#1a2e44;        /* primary (navy) */
  --whd-green-dark:#0f1e2e;   /* primary dark  */
  --whd-green-light:#eaf0f6;  /* primary tint  */
  --whd-navy:#1a2e44;
  --whd-orange:#e8821a;
  --whd-orange-dark:#d06f10;
  --whd-bg:#f4f6f8;
  --whd-card:#ffffff;
  --whd-border:#e2e6ec;
  --whd-text:#2d3748;
  --whd-muted:#7b8794;
  --whd-radius:12px;
  --whd-shadow:0 1px 3px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.04);
}

/* ── FULL-SCREEN MODE (standalone template) ── */
body.whd-fullscreen{
  margin:0;padding:0;background:var(--whd-bg);
  font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
/* When admin bar is showing, push content down so it isn't hidden. */
body.whd-fullscreen.admin-bar .whd-dash{min-height:calc(100vh - 32px)}
body.whd-fullscreen .whd-dash{
  min-height:100vh;border:0;border-radius:0;max-width:none;
}
/* Stretch the content area to fill the screen evenly. */
body.whd-fullscreen .whd-content{
  max-width:1320px;margin:0 auto;width:100%;
}

/* reset within our scope */
.whd-dash *,.whd-auth-wrap *,.whd-submit-wrap *{box-sizing:border-box}

/* ---------- LAYOUT ---------- */
.whd-dash{
  display:flex;min-height:80vh;background:var(--whd-bg);
  font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--whd-text);border-radius:var(--whd-radius);overflow:hidden;
  border:1px solid var(--whd-border);
}

/* ---------- SIDEBAR ---------- */
.whd-sidebar{
  width:240px;flex-shrink:0;background:#fff;border-right:1px solid var(--whd-border);
  padding:1.25rem 0;display:flex;flex-direction:column;
}
.whd-brand{padding:0 1.25rem 1.25rem;border-bottom:1px solid var(--whd-border);margin-bottom:1rem}
.whd-brand-link{display:inline-block;line-height:0}
.whd-brand img{max-width:160px;max-height:54px;width:auto;height:auto;object-fit:contain}
.whd-brand .custom-logo-link{display:inline-block;line-height:0}
.whd-brand strong{font-size:1.3rem;color:var(--whd-navy)}
.whd-nav{display:flex;flex-direction:column;gap:2px;padding:0 .75rem}
.whd-nav-item{
  display:flex;align-items:center;gap:.7rem;padding:.7rem .85rem;border-radius:10px;
  color:var(--whd-text);text-decoration:none;font-size:.92rem;font-weight:600;transition:.15s;
}
.whd-nav-item:hover{background:var(--whd-green-light);color:var(--whd-green-dark)}
.whd-nav-item.active{background:var(--whd-green-light);color:var(--whd-green-dark);box-shadow:inset 3px 0 0 var(--whd-orange)}
.whd-nav-ico{width:20px;text-align:center;font-size:1rem;opacity:.85}
.whd-nav-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:var(--whd-muted);margin:1rem .85rem .35rem;font-weight:700}
.whd-nav-logout{color:#d6453c}
.whd-nav-logout:hover{background:#fdecea;color:#c0392b}

/* ---------- MAIN ---------- */
.whd-main{flex:1;display:flex;flex-direction:column;min-width:0}
.whd-topbar{
  display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;background:#fff;
  border-bottom:1px solid var(--whd-border);
}
.whd-page-title{font-size:1.4rem;font-weight:800;margin:0;font-family:'Montserrat',sans-serif}
.whd-search{flex:1;max-width:420px;display:flex;background:var(--whd-bg);border-radius:30px;overflow:hidden;border:1px solid var(--whd-border)}
.whd-search input{flex:1;border:0;background:transparent;padding:.6rem 1rem;font-size:.9rem;outline:none}
.whd-search button{border:0;background:transparent;padding:0 1rem;cursor:pointer;font-size:1rem}
.whd-user{display:flex;align-items:center;gap:.6rem;margin-left:auto}
.whd-avatar{width:38px;height:38px;border-radius:50%;background:var(--whd-navy);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.whd-username{font-weight:700;font-size:.9rem}

.whd-content{padding:1.5rem;flex:1}

/* ---------- HERO BANNER ---------- */
.whd-hero-banner{
  background:linear-gradient(120deg,var(--whd-green-dark),var(--whd-green));
  color:#fff;border-radius:var(--whd-radius);padding:1.75rem;margin-bottom:1.5rem;
}
.whd-hero-banner h2{margin:0 0 .35rem;font-size:1.45rem;font-family:'Montserrat',sans-serif}
.whd-hero-banner p{margin:0 0 1rem;opacity:.92}

/* ---------- STAT CARDS ---------- */
.whd-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin-bottom:1.5rem}
.whd-stat-card{background:var(--whd-card);border:1px solid var(--whd-border);border-radius:var(--whd-radius);padding:1.25rem;box-shadow:var(--whd-shadow);display:flex;flex-direction:column;gap:.35rem}
.whd-stat-label{color:var(--whd-muted);font-size:.85rem;font-weight:600}
.whd-stat-value{font-size:2.4rem;font-weight:800;line-height:1;font-family:'Montserrat',sans-serif}
.whd-stat-value-sm{font-size:1.25rem;font-weight:800}
.whd-stat-link{margin-top:.5rem;color:var(--whd-green-dark);font-weight:700;font-size:.85rem;text-decoration:none}
.whd-stat-link:hover{text-decoration:underline}

/* ---------- PANELS ---------- */
.whd-panel{background:var(--whd-card);border:1px solid var(--whd-border);border-radius:var(--whd-radius);padding:1.5rem;margin-bottom:1.5rem;box-shadow:var(--whd-shadow)}
.whd-panel h3{margin:0 0 1rem;font-size:1.1rem;font-family:'Montserrat',sans-serif}
.whd-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.whd-panel-head h3{margin:0}
.whd-link{color:var(--whd-green-dark);text-decoration:none;font-weight:700;font-size:.88rem}
.whd-section-title{font-size:1.5rem;font-family:'Montserrat',sans-serif;margin:0 0 .25rem}
.whd-section-sub{color:var(--whd-muted);margin:0 0 1.25rem}
.whd-page-head{margin-bottom:1.25rem}
.whd-muted{color:var(--whd-muted)}

/* ---------- CARDS GRID ---------- */
.whd-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}
.whd-card{background:#fff;border:1px solid var(--whd-border);border-radius:var(--whd-radius);overflow:hidden;box-shadow:var(--whd-shadow);display:flex;flex-direction:column;transition:.18s}
.whd-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(16,24,40,.1)}
.whd-card-img{height:160px;background:#dfe4ea center/cover no-repeat;position:relative;display:flex;align-items:center;justify-content:center}
.whd-noimg{color:#9aa5b1;font-size:.85rem}
.whd-badge{position:absolute;top:.6rem;left:.6rem;padding:.25rem .6rem;border-radius:20px;font-size:.72rem;font-weight:700;color:#fff}
.whd-badge-pending{background:var(--whd-orange)}
.whd-save-btn{position:absolute;top:.5rem;right:.5rem;background:rgba(255,255,255,.92);border:0;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:1rem;filter:grayscale(1);opacity:.7;transition:.15s}
.whd-save-btn.saved{filter:none;opacity:1;background:var(--whd-green-light)}
.whd-card-body{padding:1rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.whd-card-title{margin:0;font-size:1rem;font-weight:700;line-height:1.3}
.whd-card-loc{margin:0;font-size:.8rem;color:var(--whd-muted)}
.whd-card-price{margin:.15rem 0;font-size:1.15rem;font-weight:800;color:var(--whd-orange);font-family:'Montserrat',sans-serif}
.whd-card-meta{display:flex;gap:.75rem;font-size:.78rem;color:var(--whd-muted);flex-wrap:wrap}
.whd-card-actions{display:flex;gap:.5rem;margin-top:auto;padding-top:.6rem}

/* ---------- BUTTONS ---------- */
.whd-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.65rem 1.25rem;border-radius:6px;font-weight:700;font-size:.9rem;border:0;cursor:pointer;text-decoration:none;transition:.15s;font-family:inherit}
.whd-btn-primary{background:var(--whd-orange);color:#fff}
.whd-btn-primary:hover{background:var(--whd-orange-dark)}
.whd-btn-dark{background:var(--whd-navy);color:#fff}
.whd-btn-dark:hover{background:var(--whd-green-dark)}
.whd-btn-light{background:#fff;color:var(--whd-text);border:1px solid var(--whd-border)}
.whd-btn-light:hover{background:var(--whd-bg)}
.whd-btn-text{background:transparent;color:var(--whd-muted)}
.whd-btn-whatsapp{background:#25d366;color:#fff}
.whd-btn-block{width:100%}
.whd-btn-lg{padding:.85rem 2rem;font-size:1rem}
.whd-btn-sm{padding:.45rem .9rem;font-size:.82rem}

/* ---------- EMPTY STATE ---------- */
.whd-empty{text-align:center;padding:3rem 1rem;color:var(--whd-muted)}
.whd-empty-ico{font-size:3rem;opacity:.5;margin-bottom:.5rem}
.whd-empty h4{margin:.25rem 0;color:var(--whd-text);font-size:1.15rem}
.whd-empty p{margin:0 0 1.25rem}

/* ---------- PAGINATION ---------- */
.whd-pagination{margin-top:2rem;display:flex;justify-content:center}
.whd-pagination ul{display:flex;gap:.4rem;list-style:none;padding:0;margin:0}
.whd-pagination a,.whd-pagination span{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:50%;text-decoration:none;color:var(--whd-text);font-weight:700;border:1px solid var(--whd-border);background:#fff;padding:0 .5rem}
.whd-pagination .current{background:var(--whd-navy);color:#fff;border-color:var(--whd-navy)}

/* ---------- FORMS ---------- */
.whd-form .whd-field{margin-bottom:1rem}
.whd-form label{display:block;font-weight:600;font-size:.85rem;margin-bottom:.35rem}
.whd-form label small{color:var(--whd-muted);font-weight:400}
.whd-form .req{color:#d6453c}
.whd-form input,.whd-form select,.whd-form textarea{
  width:100%;padding:.7rem .85rem;border:1px solid var(--whd-border);border-radius:10px;
  font-size:.92rem;font-family:inherit;background:#fff;outline:none;transition:.15s;
}
.whd-form input:focus,.whd-form select:focus,.whd-form textarea:focus{border-color:var(--whd-green);box-shadow:0 0 0 3px var(--whd-green-light)}
.whd-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.whd-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}
.whd-check,.whd-remember{display:flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;cursor:pointer}
.whd-check input,.whd-remember input{width:auto}
.whd-hint{font-size:.8rem;color:var(--whd-muted);margin:.5rem 0 0}

/* ---------- SUBMIT FORM ---------- */
.whd-submit-wrap{max-width:780px}
.whd-form fieldset{border:1px solid var(--whd-border);border-radius:var(--whd-radius);padding:1.25rem 1.5rem 1.5rem;margin:0 0 1.5rem;background:#fff}
.whd-form legend{font-weight:800;padding:0 .5rem;font-family:'Montserrat',sans-serif;font-size:.95rem;color:var(--whd-green-dark)}
.whd-submit-actions{display:flex;align-items:center;gap:1rem}

/* gallery uploader */
.whd-gallery-preview{display:flex;flex-wrap:wrap;gap:.75rem;margin:.5rem 0 .75rem}
.whd-gallery-item{position:relative;width:90px;height:90px;border-radius:8px;overflow:hidden;border:2px solid var(--whd-border)}
.whd-gallery-item img{width:100%;height:100%;object-fit:cover}
.whd-gallery-remove{position:absolute;top:3px;right:3px;background:rgba(192,57,43,.92);color:#fff;border:0;border-radius:50%;width:20px;height:20px;cursor:pointer;font-size:11px;line-height:1;padding:0}

/* ---------- ACCOUNT ---------- */
.whd-account-head{display:flex;align-items:center;gap:1.25rem;margin-bottom:1.5rem;background:#fff;border:1px solid var(--whd-border);border-radius:var(--whd-radius);padding:1.5rem;box-shadow:var(--whd-shadow)}
.whd-avatar-lg{width:72px;height:72px;border-radius:50%;background:var(--whd-navy);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:800;flex-shrink:0}
.whd-account-head h2{margin:0 0 .25rem;font-family:'Montserrat',sans-serif}
.whd-help a{color:var(--whd-green-dark)}

/* ---------- ALERTS ---------- */
.whd-alert{padding:.85rem 1rem;border-radius:10px;margin-bottom:1rem;font-size:.9rem;font-weight:600}
.whd-alert-error{background:#fdecea;color:#c0392b;border:1px solid #f5c6c0}
.whd-alert-success{background:var(--whd-green-light);color:var(--whd-green-dark);border:1px solid #cfe8b0}

/* ---------- AUTH SCREEN ---------- */
.whd-auth-wrap{min-height:60vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem;background:var(--whd-bg);font-family:'Open Sans',sans-serif}
.whd-auth-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--whd-border);border-radius:var(--whd-radius);padding:2rem;box-shadow:var(--whd-shadow)}
.whd-auth-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;background:var(--whd-bg);border-radius:30px;padding:.3rem}
.whd-tab{flex:1;border:0;background:transparent;padding:.6rem;border-radius:30px;font-weight:700;cursor:pointer;color:var(--whd-muted);font-family:inherit;transition:.15s}
.whd-tab.active{background:#fff;color:var(--whd-green-dark);box-shadow:var(--whd-shadow)}
.whd-auth-form{display:none;flex-direction:column}
.whd-auth-form.active{display:flex}
.whd-auth-form label{font-weight:600;font-size:.85rem;margin:.75rem 0 .35rem}
.whd-auth-form input{padding:.75rem .85rem;border:1px solid var(--whd-border);border-radius:10px;font-size:.95rem;outline:none}
.whd-auth-form input:focus{border-color:var(--whd-green);box-shadow:0 0 0 3px var(--whd-green-light)}
.whd-auth-form .whd-btn{margin-top:1.25rem}
.whd-auth-foot{text-align:center;margin:1rem 0 0}
.whd-auth-foot a{color:var(--whd-muted);font-size:.85rem;text-decoration:none}
.whd-auth-note{font-size:.78rem;color:var(--whd-muted);text-align:center;margin:.75rem 0 0}
.whd-remember{margin-top:.75rem;font-weight:400}

/* ---------- MOBILE ---------- */
.whd-menu-toggle{display:none;position:fixed;bottom:1.25rem;left:1.25rem;z-index:999;width:50px;height:50px;border-radius:50%;background:var(--whd-green-dark);color:#fff;border:0;font-size:1.3rem;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.2)}

@media(max-width:900px){
  .whd-grid-3{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .whd-dash{flex-direction:column;border-radius:0}
  .whd-sidebar{position:fixed;top:0;left:0;bottom:0;z-index:1000;transform:translateX(-100%);transition:.25s;box-shadow:4px 0 20px rgba(0,0,0,.15)}
  .whd-sidebar.open{transform:translateX(0)}
  .whd-menu-toggle{display:flex;align-items:center;justify-content:center}
  .whd-topbar{flex-wrap:wrap}
  .whd-page-title{order:1}
  .whd-user{order:2}
  .whd-search{order:3;max-width:100%;flex-basis:100%}
  .whd-grid-2,.whd-grid-3{grid-template-columns:1fr}
}

/* ============================================================
   BROADCAST / ANNOUNCEMENT BANNER
============================================================ */
.whd-broadcast{
  display:flex;align-items:flex-start;gap:.75rem;
  padding:1rem 1.15rem;border-radius:var(--whd-radius);
  margin-bottom:1.5rem;border:1px solid var(--whd-border);
  background:#fff;box-shadow:var(--whd-shadow);
  border-left:5px solid var(--whd-navy);
  animation:whd-bc-in .25s ease;
}
@keyframes whd-bc-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.whd-broadcast-icon{font-size:1.25rem;line-height:1.4;flex-shrink:0}
.whd-broadcast-body{flex:1;line-height:1.5}
.whd-broadcast-title{display:block;font-size:1rem;margin-bottom:.15rem;font-family:'Montserrat',sans-serif}
.whd-broadcast-text{display:block;font-size:.92rem;color:var(--whd-text)}
.whd-broadcast-text a{color:var(--whd-orange);text-decoration:underline}
.whd-broadcast-close{
  background:none;border:0;font-size:1.4rem;line-height:1;cursor:pointer;
  color:var(--whd-muted);flex-shrink:0;padding:0 .25rem;transition:.15s;
}
.whd-broadcast-close:hover{color:var(--whd-text)}

/* type variants */
.whd-broadcast-info   {border-left-color:#1a73e8;background:#eef4fe}
.whd-broadcast-warning{border-left-color:#e8821a;background:#fff5ea}
.whd-broadcast-danger {border-left-color:#d6453c;background:#fdecea}
.whd-broadcast-success{border-left-color:#1e9e54;background:#eafaf0}
