/* ─────────────────────────────────────────────────────────
   _components.css — shared component styles for preview cards + kits.
   Imported alongside colors_and_type.css.
   ───────────────────────────────────────────────────────── */

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-micro) var(--ease-out),
              border-color var(--duration-micro) var(--ease-out),
              color var(--duration-micro) var(--ease-out);
  white-space: nowrap; line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }

.btn--primary { background: var(--text-900); color: #FFF; }
.btn--primary:hover { background: #1A1F26; }

.btn--secondary {
  background: transparent; color: var(--text-900);
  border-color: var(--stone-700);
}
.btn--secondary:hover { background: var(--stone-100); }

.btn--ghost {
  background: transparent; color: var(--text-700);
  padding: 0 14px; height: 36px;
  letter-spacing: 0.04em;
}
.btn--ghost:hover { color: var(--text-900); background: var(--stone-100); }

.btn--moss {
  background: var(--moss); color: #FFF;
}
.btn--moss:hover { background: #74594B; }

.btn--sm { height: 32px; padding: 0 14px; font-size: 11px; letter-spacing: 0.08em; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 14px; }

.btn .ico { width: 16px; height: 16px; flex: none; }

/* ── Field ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--text-500);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 14px; color: var(--text-900);
  background: var(--surface-card); border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  height: var(--field-h); padding: 0 14px;
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
  width: 100%;
}
.field textarea { height: auto; padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--moss);
  box-shadow: 0 0 0 3px var(--moss-bg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-300); }
.field-help { font-family: var(--font-body); font-size: 12px; color: var(--text-500); }
.field-error { font-family: var(--font-body); font-size: 12px; color: #B0584A; }
.field.error input, .field.error textarea {
  border-color: #B0584A;
  box-shadow: 0 0 0 3px rgba(176,88,74,0.12);
}
.field input[disabled] {
  background: var(--surface-subtle); color: var(--text-300); cursor: not-allowed;
}

/* ── Toggle ───────────────────────────────────────────── */
.toggle {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
}
.toggle-track {
  width: 36px; height: 20px; border-radius: 10px;
  background: var(--stone-400); position: relative;
  transition: background var(--duration-micro) var(--ease-out);
}
.toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #FFF;
  border-radius: 50%;
  transition: transform var(--duration-micro) var(--ease-out);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.toggle.on .toggle-track { background: var(--text-900); }
.toggle.on .toggle-track::after { transform: translateX(16px); }

/* ── Status pill ──────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-pill.available { background: var(--status-available-bg); color: var(--status-available); }
.status-pill.available::before { background: var(--status-available); }
.status-pill.reserved  { background: var(--status-reserved-bg);  color: var(--status-reserved); }
.status-pill.reserved::before  { background: var(--status-reserved); }
.status-pill.sold      { background: var(--status-sold-bg);      color: var(--status-sold); }
.status-pill.sold::before      { background: var(--status-sold); }

/* ── Wordmark ─────────────────────────────────────────── */
.wm {
  display: inline-flex; align-items: baseline; gap: 0.32em;
  font-family: var(--font-display); font-weight: 200;
  color: currentColor; line-height: 1; letter-spacing: -0.02em;
}
.wm-mark { display: inline-block; height: 1em; flex: none; color: currentColor; transform: translateY(0.06em); }
.wm-text { font-weight: 200; letter-spacing: -0.025em; }
.wm-text .domain { opacity: 1; }  /* V1 locked: uniform weight — .online is NOT dimmed */

/* ── Unit card ────────────────────────────────────────── */
.unit-card {
  background: var(--surface-card); border: 1px solid var(--stone-200);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}
.unit-card:hover { border-color: var(--stone-700); box-shadow: var(--shadow-card); }
.unit-card__media {
  aspect-ratio: 16 / 10; background: var(--stone-100);
  background-size: cover; background-position: center;
  position: relative;
}
.unit-card__status { position: absolute; top: 12px; left: 12px; }
.unit-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.unit-card__ribcap { display: block; margin-top: -6px; }
.unit-card__id {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--text-500);
}
.unit-card__title {
  font-family: var(--font-display); font-size: 22px; font-weight: 300;
  letter-spacing: -0.02em; color: var(--text-900); margin: 0;
}
.unit-card__meta {
  display: flex; gap: 16px; font-family: var(--font-body); font-size: 12.5px;
  color: var(--text-500);
}
.unit-card__meta .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.unit-card__price {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--moss); margin-top: 4px;
}

/* ── Tabs ─────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--stone-200);
}
.tab {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--text-500); padding: 14px 20px;
  cursor: pointer; border: 0; background: transparent;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color var(--duration-micro) var(--ease-out),
              border-color var(--duration-micro) var(--ease-out);
}
.tab:hover { color: var(--text-900); }
.tab.active { color: var(--text-900); border-bottom-color: var(--text-900); }

/* ── Card chrome ──────────────────────────────────────── */
.card {
  background: var(--surface-card); border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
}
.card__header {
  padding: 18px 22px; border-bottom: 1px solid var(--stone-200);
  display: flex; align-items: center; justify-content: space-between;
}
.card__title {
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--text-900); margin: 0;
}
.card__body { padding: 22px; }

/* ── Parabolic divider ────────────────────────────────── */
.parabolic-divider { display: block; width: 100%; height: 24px; }

/* ── Atmosphere backdrop helper ───────────────────────── */
.atmo-bg {
  background: linear-gradient(160deg,
    var(--atmo-sky) 0%, var(--atmo-plaster) 30%,
    var(--atmo-stone) 55%, var(--atmo-deep) 80%, var(--atmo-anchor) 100%);
}

/* ── Hairline rule ────────────────────────────────────── */
.hairline { height: 1px; background: var(--stone-200); border: 0; margin: 0; }

/* ── Skeleton-rib motif (marketing decoration) ────────── */
.rib-pattern {
  position: absolute; inset: 0; pointer-events: none;
}
