/* GoRealty Design Tokens */
:root {
  /* Warm Vietnamese palette */
  --gr-cream: #FDF6EC;
  --gr-cream-2: #F7EDDB;
  --gr-paper: #FFFFFF;
  --gr-ink: #1A1612;
  --gr-ink-2: #3A2E27;
  --gr-muted: #8C7B70;
  --gr-line: #EBDCC8;
  --gr-line-2: #F0E4D2;

  /* Brand */
  --gr-coral: #E04E39;        /* primary — warm coral red */
  --gr-coral-dark: #B8351F;
  --gr-coral-soft: #FDE8E1;
  --gr-saffron: #F2B544;      /* accent — warm gold */
  --gr-saffron-soft: #FCEFD0;
  --gr-jade: #1F8A5B;         /* gain green */
  --gr-jade-soft: #DFF1E5;
  --gr-rose: #C44545;         /* loss / urgent */

  /* shadows */
  --gr-shadow-sm: 0 1px 2px rgba(58,40,28,.06), 0 2px 6px rgba(58,40,28,.05);
  --gr-shadow-md: 0 4px 12px rgba(58,40,28,.07), 0 12px 32px rgba(58,40,28,.06);
  --gr-shadow-lg: 0 16px 40px rgba(58,40,28,.12), 0 4px 12px rgba(58,40,28,.06);
}

* { box-sizing: border-box; }

.gr {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--gr-ink);
  -webkit-font-smoothing: antialiased;
}

/* utility */
.gr-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.gr-mono { font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace; }

/* Property image placeholder — warm cream stripes */
.gr-img-ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(224,78,57,.06) 0 14px,
      rgba(224,78,57,.02) 14px 28px),
    linear-gradient(135deg, #F7E8D5 0%, #F4DBC0 100%);
  color: var(--gr-ink-2);
}
.gr-img-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(58,40,28,.5);
}

/* Pill */
.gr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  background: var(--gr-cream-2);
  color: var(--gr-ink-2);
  white-space: nowrap;
}
.gr-pill.coral { background: var(--gr-coral-soft); color: var(--gr-coral-dark); }
.gr-pill.jade { background: var(--gr-jade-soft); color: var(--gr-jade); }
.gr-pill.saffron { background: var(--gr-saffron-soft); color: #8A6620; }
.gr-pill.dark { background: var(--gr-ink); color: #fff; }

/* Card */
.gr-card {
  background: var(--gr-paper);
  border-radius: 20px;
  border: 1px solid var(--gr-line-2);
  overflow: hidden;
}

/* button */
.gr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 16px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  border: 0; cursor: pointer;
  background: var(--gr-coral); color: #fff;
  box-shadow: 0 6px 16px rgba(224,78,57,.25);
}
.gr-btn.ghost { background: var(--gr-cream-2); color: var(--gr-ink); box-shadow: none; }
.gr-btn.dark { background: var(--gr-ink); color: #fff; box-shadow: none; }

/* tabs */
.gr-tab {
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--gr-muted);
  border: 1px solid transparent;
}
.gr-tab.on {
  background: var(--gr-ink); color: #fff;
}

/* progress */
.gr-bar {
  height: 6px; border-radius: 3px;
  background: var(--gr-line);
  overflow: hidden;
  position: relative;
}
.gr-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gr-coral) 0%, var(--gr-saffron) 100%);
  border-radius: 3px;
}

/* scrollbars hidden in artboards */
.gr-noscroll::-webkit-scrollbar { display: none; }
.gr-noscroll { -ms-overflow-style: none; scrollbar-width: none; }

/* tiny key=value */
.gr-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; }
.gr-kv + .gr-kv { border-top: 1px dashed var(--gr-line); }
.gr-kv-k { color: var(--gr-muted); font-size: 13px; }
.gr-kv-v { font-weight: 600; font-size: 14px; }

/* dotted divider */
.gr-hr { border: 0; border-top: 1px dashed var(--gr-line); margin: 0; }

/* badge dot */
.gr-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
