/* ============================================================
   Playa Housing — left icon sidebar (shared across all pages)
   ============================================================ */
:root{
  --sb-rail: 64px;      /* collapsed width  */
  --sb-open: 232px;     /* expanded width   */
  --sb-bg: #ffffff;
  --sb-ink: #1a2233;
  --sb-muted: #6b7280;
  --sb-line: #e6e8ec;
  --sb-hover: #f3f4f6;
  --sb-accent: #49C6E5;
  --sb-accent-ink: #06384a;
  --sb-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
}

/* ---- global page adjustments (white bg + room for the rail) ---- */
body{
  background: #ffffff !important;
  padding-left: var(--sb-rail) !important;
}

/* ---- sidebar shell ---- */
.ph-sidebar{
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sb-rail);
  background: var(--sb-bg);
  border-right: 1px solid var(--sb-line);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 12px 0;
  overflow-x: hidden; overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: width .2s cubic-bezier(.4,0,.2,1), box-shadow .2s ease;
}
.ph-sidebar.open{
  width: var(--sb-open);
  box-shadow: 0 8px 40px rgba(16,24,40,.14);
}

/* ---- top row: toggle + brand ---- */
.ph-sb-top{
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 13px; margin-bottom: 12px;
}
.ph-sb-toggle{
  flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  border: 0; background: transparent; color: var(--sb-muted);
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.ph-sb-toggle:hover{ background: var(--sb-hover); color: var(--sb-ink); }
.ph-sb-toggle svg{ width: 22px; height: 22px; }

.ph-sb-brand{
  display: flex; align-items: center; overflow: hidden;
  opacity: 0; width: 0; transition: opacity .18s ease, width .2s ease;
}
.ph-sidebar.open .ph-sb-brand{ opacity: 1; width: auto; }
.ph-sb-brand img{ height: 28px; width: auto; display: block; }

/* ---- nav ---- */
.ph-sb-nav{ display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.ph-sb-item{
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 8px;
  border-radius: 11px; text-decoration: none;
  color: var(--sb-muted); font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.ph-sb-item:hover{ background: var(--sb-hover); color: var(--sb-ink); }
.ph-sb-item.active{
  background: var(--sb-accent); color: var(--sb-accent-ink);
  box-shadow: var(--sb-shadow);
}
.ph-sb-ic{ flex: none; width: 24px; height: 24px; display: grid; place-items: center; }
.ph-sb-ic svg{ width: 22px; height: 22px; }
.ph-sb-label{ opacity: 0; transition: opacity .15s ease; }
.ph-sidebar.open .ph-sb-label{ opacity: 1; }
