/* ============================================================
   Detour — Colors & Typography
   Beyond the obvious path.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ---------- Brand / Accent ---------- */
  --color-primary: #F26419;          /* Ember — primary CTAs, search orb, heart, brand links */
  --color-primary-active: #D4530C;
  --color-primary-hover: #E55A10;
  --color-primary-disabled: #FAC09A;
  --color-primary-tint: #FDE8D9;

  --color-secondary: #093C2C;        /* Forest — active states, secondary CTAs, hover overlays */
  --color-secondary-active: #062A1E;
  --color-secondary-hover: #0B4F3A;
  --color-secondary-tint: #D6E8E2;
  --color-secondary-muted: #3D7A64;

  --color-highlight: #EBE64C;        /* Citron — tags, chips, labels (always with border) */
  --color-highlight-soft: #F2F0A0;
  --color-highlight-active: #D4CF2A;

  /* ---------- Surface ---------- */
  --color-canvas: #ffffff;
  --color-surface-soft: #F5F4F4;
  --color-surface-strong: #E8E7E7;

  /* ---------- Hairlines & Borders ---------- */
  --color-border: #202620;
  --color-border-strong: #202620;
  --color-hairline: #DDDDDD;
  --color-hairline-soft: #EBEBEB;

  /* ---------- Text ---------- */
  --color-ink: #202620;              /* deep near-black with green warmth */
  --color-body: #3A3D3A;
  --color-muted: #6A6D6A;
  --color-muted-soft: #929792;
  --color-on-primary: #ffffff;
  --color-on-secondary: #ffffff;
  --color-on-highlight: #202620;

  /* ---------- Semantic ---------- */
  --color-error: #C13515;
  --color-error-hover: #A82A05;
  --color-legal-link: #093C2C;

  --color-scrim: rgba(0, 0, 0, 0.5);

  /* ---------- Typography families ---------- */
  --font-display: "Archivo Black", -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;

  /* ---------- Spacing (4px base, 2px micro) ---------- */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 64px;

  /* ---------- Radii ---------- */
  --radius-sm: 8px;     /* buttons */
  --radius-md: 14px;    /* property cards, host card, reservation card */
  --radius-lg: 20px;
  --radius-xl: 32px;    /* category strip pills */
  --radius-full: 9999px;

  /* ---------- Elevation (single tier) ---------- */
  --shadow-card-hover:
    rgba(0, 0, 0, 0.02) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 6px 0,
    rgba(0, 0, 0, 0.10) 0 4px 8px 0;
}

/* ============================================================
   Semantic typography classes
   ============================================================ */

.t-rating-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-ink);
}

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}

.t-display-lg {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: var(--color-ink);
}

.t-display-md {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.3;
  color: var(--color-ink);
}

.t-display-sm {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.18px;
  color: var(--color-ink);
}

.t-title-md {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-ink);
}

.t-title-sm {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-ink);
}

.t-body-md {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink);
}

.t-body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: var(--color-ink);
}

.t-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.29;
  color: var(--color-ink);
}

.t-caption-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.23;
  color: var(--color-muted);
}

.t-badge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.18;
  color: var(--color-ink);
}

.t-micro-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.33;
  color: var(--color-ink);
}

.t-chip-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.25;
  color: var(--color-on-highlight);
}

.t-uppercase-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-ink);
}

.t-button-md {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
}

.t-button-sm {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.29;
}

.t-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.t-nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-ink);
}

/* ============================================================
   Element defaults — opt-in by adding class="detour" to body
   ============================================================ */

.detour {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.detour h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--color-ink);
  margin: 0;
}

.detour h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: var(--color-ink);
  margin: 0;
}

.detour h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 0;
}

.detour h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.18px;
  color: var(--color-ink);
  margin: 0;
}

.detour p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0;
}

.detour a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detour a:hover {
  color: var(--color-primary-hover);
}
