/* =========================================================
   SKYBOUND ADMIN / CMS — same three tokens, denser layout
   ========================================================= */
.adm { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--sand); font-family: "Manrope", sans-serif; }
.adm__side { position: sticky; top: 0; height: 100vh; background: var(--night); color: var(--sand); padding: 26px 18px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.adm__side .logo { padding-inline: 8px; }
.adm__nav { display: flex; flex-direction: column; gap: 2px; }
.adm__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--sand-60); transition: .25s; }
.adm__nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.adm__nav a:hover { color: var(--sand); background: var(--sand-08); }
.adm__nav a.is-on { color: var(--night); background: var(--gold); }
.adm__nav a b { margin-inline-start: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: var(--night); font-size: 12px; display: grid; place-items: center; padding-inline: 6px; }
.adm__nav a.is-on b { background: var(--night); color: var(--gold); }
.adm__user { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--sand-08); }
.adm__user b { display: block; font-size: 14px; }
.adm__user span { font-size: 12px; color: var(--gold); }
.adm__av, .adm-av { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.adm__side-acts { display: flex; flex-direction: column; gap: 6px; }
.adm__side-acts .adm-btn { justify-content: flex-start; color: var(--sand-80); border-color: var(--sand-14); }
.adm__main { padding: 30px clamp(18px, 3vw, 44px) 60px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.adm__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }
.adm__top h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 42px; line-height: 1.05; }
.adm__top p { color: var(--night-60); font-size: 14px; margin-top: 4px; }
.adm__top-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding-inline: 16px; border-radius: 12px; font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: .25s; white-space: nowrap; cursor: pointer; }
.adm-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.adm-btn--gold { background: var(--gold); color: var(--night); }
.adm-btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.adm-btn--dark { background: var(--night); color: var(--sand); }
.adm-btn--dark:hover { transform: translateY(-1px); }
.adm-btn--ghost { border-color: var(--night-12); background: transparent; color: var(--night); }
.adm-btn--ghost:hover { border-color: var(--gold); }
.adm-btn--danger { background: #b5503c; color: var(--sand); }

.adm-card { background: var(--white); border-radius: 18px; padding: 22px; border: 1px solid var(--night-06); box-shadow: 0 20px 40px -36px rgb(13 36 29 / .4); min-width: 0; }
.adm-card h3 { font-size: 16px; font-weight: 700; }
.adm-card__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-card__h .muted { font-size: 13px; }
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adm-kpis--6 { grid-template-columns: repeat(6, 1fr); }
.adm-kpi { display: flex; flex-direction: column; gap: 4px; }
.adm-kpi span { font-size: 12.5px; color: var(--night-60); font-weight: 600; }
.adm-kpi b { font-family: "Cormorant Garamond", serif; font-size: 46px; font-weight: 500; line-height: 1; }
.adm-kpi small { font-size: 12px; color: var(--night-60); }
.adm-kpis--6 .adm-kpi b { font-size: 34px; }
.adm-kpis--6 .adm-kpi span { font-family: ui-monospace, monospace; font-size: 11.5px; }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* charts: single series, one hue, recessive grid */
.chart { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid { stroke: var(--night-06); stroke-width: 1; }
.chart-svg .base { stroke: var(--night-40); stroke-width: 1; }
.chart-svg .axis { fill: var(--night-60); font-size: 11px; font-family: "Manrope", sans-serif; }
.chart-svg .bar { fill: var(--night); transition: opacity .2s; }
.chart-svg .bar-g.is-dim .bar { opacity: .35; }
.chart-tip { position: absolute; pointer-events: none; background: var(--night); color: var(--sand); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 2; }
.hbars { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 32px; gap: 12px; align-items: center; font-size: 13.5px; cursor: default; padding: 2px 0; }
.hbar span { color: var(--night-80); }
.hbar div { height: 14px; background: var(--night-06); border-radius: 4px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; transition: opacity .2s; }
.hbar b { text-align: end; font-weight: 700; color: var(--night); }
.hbar.is-dim i { opacity: .35; }

.adm-uat ol { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.adm-uat li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.adm-uat li span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: #8a6a2c; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

.adm-filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.adm-filters input, .adm-filters select, .afld input, .afld select, .afld textarea { height: 42px; border-radius: 10px; border: 1px solid var(--night-12); padding-inline: 12px; background: var(--sand); outline: none; width: 100%; font-size: 14px; }
.afld textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.adm-filters input:focus, .adm-filters select:focus, .afld input:focus, .afld select:focus, .afld textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-10); }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: start; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-60); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--night-12); white-space: nowrap; }
.adm-table td { padding: 10px; border-bottom: 1px solid var(--night-06); vertical-align: middle; }
.adm-table td b { display: block; font-weight: 600; }
.adm-table td small { display: block; font-size: 12px; color: var(--night-60); margin-top: 2px; }
.adm-table tbody tr { transition: background .2s; }
.adm-table tbody tr:hover { background: var(--sand); }
.js-lead-row { cursor: pointer; }
.adm-table code { font-size: 11.5px; color: var(--night-80); word-break: break-all; }
.adm-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.adm-inline { height: 36px; border-radius: 8px; border: 1px solid var(--night-12); padding-inline: 8px; background: var(--sand); font-size: 13.5px; font-weight: 600; min-width: 110px; outline: none; }
.adm-inline:focus { border-color: var(--gold); }
.adm-inline:disabled { opacity: .7; background: transparent; }
.adm-inline.st-available { color: #2f7a55; } .adm-inline.st-reserved { color: #8a6a2c; } .adm-inline.st-sold { color: #a2452f; }
.adm-acts { display: flex; gap: 4px; justify-content: flex-end; }
.adm-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--night-60); transition: .2s; }
.adm-icon:hover { background: var(--sand); color: var(--night); }
.adm-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.apill { display: inline-flex; height: 24px; align-items: center; padding-inline: 9px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--night-06); color: var(--night-80); white-space: nowrap; }
.apill--financing, .apill--eligibility { background: var(--gold-10); color: #8a6a2c; }
.apill--whatsapp, .apill--call { background: rgb(63 154 107 / .12); color: #2f7a55; }
.apill--viewing, .apill--property { background: var(--night); color: var(--sand); }

.adm-list { display: flex; flex-direction: column; }
.adm-li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--night-06); }
.adm-li > div:not(.adm-acts) { flex: 1; min-width: 0; }
.adm-li b { display: block; font-size: 14.5px; font-weight: 600; }
.adm-li small { font-size: 12.5px; color: var(--night-60); }

/* editor */
.adm-editor { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.adm-editor__side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.adm-editor__side .afld + .afld { margin-top: 10px; }
.adm-preview .pcard:hover { transform: none; }
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--night-12); margin: -6px -6px 20px; padding: 0 6px; overflow-x: auto; }
.adm-tabs button { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--night-60); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.adm-tabs button.is-on { color: var(--night); border-color: var(--gold); }
.adm-pane { display: none; }
.adm-pane.is-on { display: block; animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.agrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; }
.afld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.afld.span2 { grid-column: span 2; }
.afld.span4 { grid-column: 1 / -1; }
.afld label { font-size: 12.5px; font-weight: 700; color: var(--night-80); }
.afld input.bad { border-color: #b5503c; color: #a2452f; }
.achk { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 500 !important; color: var(--night) !important; cursor: pointer; height: 42px; }
.achk input { width: 17px !important; height: 17px !important; accent-color: var(--night); }
.achips { display: flex; flex-wrap: wrap; gap: 0 18px; }
.achips .achk { height: 34px; }
.adm-map { height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--night-12); }
.adm-map iframe { width: 100%; height: 100%; border: 0; }
.adm-drop { border: 1.5px dashed var(--night-40); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; transition: .25s; background: var(--sand); }
.adm-drop svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.adm-drop span { font-size: 13px; color: var(--night-60); }
.adm-drop:hover, .adm-drop.is-over { border-color: var(--gold); background: var(--gold-10); }
.adm-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.adm-img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--night-06); }
.adm-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-img .apill { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--night); }
.adm-img > div { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; }
.adm-img button { width: 30px; height: 30px; border-radius: 8px; background: rgb(245 239 228 / .92); display: grid; place-items: center; }
.adm-img button svg { width: 15px; height: 15px; fill: none; stroke: var(--night); stroke-width: 2; }
.adm-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.adm-lib button { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: .2s; }
.adm-lib button:hover { border-color: var(--gold); }
.adm-lib img { width: 100%; height: 100%; object-fit: cover; }
.serp { padding: 16px; border-radius: 12px; border: 1px solid var(--night-12); background: #fff; font-family: Arial, sans-serif; }
.serp__url { font-size: 12.5px; color: #3c4043; display: block; }
.serp b { display: block; color: #1a0dab; font-size: 18px; font-weight: 400; margin: 4px 0; }
.serp p { color: #4d5156; font-size: 13.5px; line-height: 1.5; }

/* login */
.adm-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--sand); }
.adm-login__art { position: relative; overflow: hidden; color: var(--sand); }
.adm-login__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 36 29 / .2), rgb(13 36 29 / .92)); }
.adm-login__quote { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.adm-login__quote .h2 { font-size: clamp(34px, 3.4vw, 54px); max-width: 16ch; }
.adm-login__form { padding: clamp(28px, 6vw, 90px); display: flex; flex-direction: column; gap: 16px; justify-content: center; max-width: 560px; width: 100%; margin-inline: auto; }
.adm-login__form h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 48px; margin-top: 24px; line-height: 1; }
.adm-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-role input { position: absolute; opacity: 0; }
.adm-role span { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--night-12); font-size: 12.5px; color: var(--night-60); cursor: pointer; transition: .2s; background: var(--white); }
.adm-role span b { display: block; font-size: 14px; color: var(--night); }
.adm-role input:checked + span { border-color: var(--night); box-shadow: 0 0 0 2px var(--night); }
.adm-role input:focus-visible + span { outline: 2px solid var(--gold); }
.inline-ic { width: 14px; height: 14px; display: inline; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 1180px) {
  .adm-kpis--6 { grid-template-columns: repeat(3, 1fr); }
  .adm-editor { grid-template-columns: 1fr; }
  .adm-editor__side { position: static; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; gap: 10px; }
  .adm__nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  .adm__nav a span { white-space: nowrap; }
  .adm__user, .adm__side-acts { display: none; }
  .adm-kpis, .adm-grid2 { grid-template-columns: 1fr 1fr; }
  .adm-grid2 { grid-template-columns: 1fr; }
  .adm-filters { grid-template-columns: 1fr 1fr; }
  .adm-filters input[name=q] { grid-column: 1 / -1; }
  .agrid { grid-template-columns: 1fr 1fr; }
  .adm-login { grid-template-columns: 1fr; }
  .adm-login__art { display: none; }
}
@media (max-width: 560px) {
  .adm-kpis, .adm-kpis--6 { grid-template-columns: 1fr 1fr; }
  .agrid { grid-template-columns: 1fr; }
  .afld.span2 { grid-column: 1 / -1; }
  .adm-roles { grid-template-columns: 1fr; }
}

/* numerals — match the public site */
.adm-kpi b { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 36px; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums; }
.adm-kpis--6 .adm-kpi b { font-size: 28px; }
.adm-table, .adm-inline, .hbar b, .chart-svg .axis { font-variant-numeric: lining-nums tabular-nums; }
