/* =========================================================================
   tokens.css: the design tokens (colours, type, spacing, radius, shadow,
   layout) shared by the site and the admin panel. One source for every
   value; site.css and admin.css only use var(--name). The reference is
   docs/design/tokens.css and the Design System page; keep them in step.
   ========================================================================= */
:root {
  /* Brand */
  --brand-900: #13261f; /* main text, footer */
  --brand-700: #183f33; /* primary buttons, hero */
  --brand-600: #224c3f; /* hover on dark, cards on dark */
  --brand-100: #eef4f0; /* selected states, soft fills */
  --accent: #a8492a; /* booking and listing buttons only */
  --accent-soft: #fbede6;
  --accent-on-dark: #f2b38f;
  --whatsapp: #1f7a4d; /* WhatsApp buttons only */

  /* Neutrals */
  --surface: #f3f5f1; /* page background */
  --card: #fff;
  --border: #dce3de; /* card borders */
  --border-input: #c9d3cd;
  --divider: #e6ece8;
  --text: #13261f;
  --text-muted: #4a5a53; /* 7.3:1 on white */
  --text-on-dark: #d6e3db;

  /* Status: text colour on its soft background */
  --ok: #1f5b3a;
  --ok-bg: #e3f1e8;
  --warn: #7a4f00;
  --warn-bg: #fbf0d9;
  --info: #23466e;
  --info-bg: #e6eef8;
  --danger: #b42318; /* delete, reject, errors; 6.5:1 on white */
  --danger-bg: #fbe6e0;

  /* Type */
  --font-ar: 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif;
  --font-en: 'DM Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --fs-display: clamp(30px, 6vw + 8px, 52px);
  --fs-h1: 32px;
  --fs-h2: 22px;
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 13px; /* smallest Arabic size */
  --fw-regular: 400;
  --fw-medium: 600; /* no 500 file is hosted, so medium uses 600 */
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing (4px grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-14: 56px;

  /* Radius */
  --r-sm: 8px;
  --r-btn: 10px;
  --r-input: 12px;
  --r-card: 14px;
  --r-section: 16px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 4px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 8px 24px rgba(19, 38, 31, 0.1);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, 0.3);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --mobile-margin: 16px;
  --admin-sidebar: 248px;
  --admin-content: 1180px;
  --tap-min: 44px;
  --input-h: 48px;
  --btn-h: 48px; /* default button */
  --btn-h-lg: 56px; /* the main action on a phone */
  --btn-h-sm: 40px; /* desktop only, in crowded control panel places; its touch area is still 44 */
}

/* The one explanation line under a heading: one line when it fits, otherwise two lines of nearly equal length.
   Never three, never cut with "...", never a smaller font. The structure checks fail on a hint over two lines or an unbalanced pair. */
.hint {
  max-width: 100%;
  text-wrap: balance;
  line-height: 1.6;
}
