/* Shared interface typography. Icon fonts and standalone PDF templates stay independent. */
:root {
    --system-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --bs-body-font-family: var(--system-font);
    --body-font: var(--system-font);
    --heading-font: var(--system-font);
}
body {
    font-family: var(--system-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.system-admin {
    font-size: 15px;
    line-height: 1.55;
}
button, input, select, textarea, optgroup,
.btn, .form-control, .form-select, .select2-container,
.dropdown-menu, .popover, .tooltip {
    font-family: var(--system-font);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--system-font) !important;
    letter-spacing: -0.02em;
}
.system-admin .sidebar__menu .menu-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}
.system-admin .sidebar__menu-header {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.system-admin .card-title,
.system-admin .card-header h5,
.system-admin .table th,
.system-admin label {
    font-weight: 600;
}
.table, .db-kpi .value, .ic-metrics strong,
input[type='number'], .pagination {
    font-variant-numeric: tabular-nums;
}
.iziToast {
    font-family: var(--system-font) !important;
}
svg text { font-family: var(--system-font); }
code, pre, kbd, samp, .CodeMirror {
    font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ---------------------------------------------------------------
   Type scale (v2). One family (Inter) everywhere; nothing on screen
   smaller than 12px. Print/PDF templates are not affected.
   --------------------------------------------------------------- */
:root {
    --fs-xs: 12px;     /* badges, captions, eyebrow labels */
    --fs-sm: 13px;     /* helper text, table headers, small buttons */
    --fs-md: 14px;     /* table cells, form controls, buttons */
    --fs-base: 15px;   /* admin body text */
    --fs-lg: 17px;     /* card titles */
    --fs-xl: 20px;     /* page titles */
}
small, .small { font-size: var(--fs-sm); }
.badge { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.01em; }

/* Admin panel */
.system-admin .page-title { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.015em; }
.system-admin .card-title,
.system-admin .card-header h5,
.system-admin .card-header .card-title { font-size: var(--fs-lg); line-height: 1.35; }
.system-admin .table td { font-size: var(--fs-md); }
.system-admin .table th,
.system-admin .table thead th {
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    text-transform: none;
}
.system-admin label,
.system-admin .form-label { font-size: var(--fs-md); margin-bottom: 6px; }
.system-admin .form-control,
.system-admin .form-select,
.system-admin .select2-container .select2-selection { font-size: var(--fs-md); }
.system-admin .form-text,
.system-admin .text-muted.small,
.system-admin small.text-muted { font-size: var(--fs-sm); }
.system-admin .btn { font-size: var(--fs-md); font-weight: 500; }
.system-admin .btn-sm,
.system-admin .btn--sm { font-size: var(--fs-sm); }
.system-admin .sidebar__menu-header { font-size: var(--fs-xs) !important; }
.system-admin .sidebar__menu .sidebar-submenu .sidebar-menu-item a .menu-title { font-size: var(--fs-sm); }
.system-admin .sidebar__menu .menu-badge,
.system-admin .breadcrumb-nav a .menu-badge { font-size: var(--fs-xs); }
.system-admin .dropdown-item { font-size: var(--fs-md); }
.system-admin .modal-title { font-size: var(--fs-lg); font-weight: 600; }
.system-admin p { line-height: 1.6; }

/* Public website */
body:not(.system-admin) { font-size: 16px; line-height: 1.65; }
body:not(.system-admin) p { line-height: 1.7; }
body:not(.system-admin) .btn { font-weight: 600; letter-spacing: 0; }
body:not(.system-admin) .form--control,
body:not(.system-admin) .form-control,
body:not(.system-admin) .form-select { font-size: 15px; }
body:not(.system-admin) label,
body:not(.system-admin) .form-label,
body:not(.system-admin) .form--label { font-size: 14px; font-weight: 600; }
body:not(.system-admin) .section-top-title { letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fs-sm); }

/* Rich text typed into the CMS (room descriptions, About section) often carries
   pasted <font> tags and inline colours. Keep it in the site font and colour. */
.cms-content font,
.cms-content span[style] {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}
.cms-content { color: #3d4f4b; }
.cms-content ol, .cms-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.cms-content ul li { list-style: disc; }
.cms-content ol li { list-style: decimal; }
.cms-content li { margin-bottom: 0.35rem; }
.cms-content li { margin-bottom: 0.5rem; }
.cms-content h2, .cms-content h3 { margin: 1.75rem 0 0.75rem; font-size: 1.25rem; font-weight: 600; }
.cms-content p { margin-bottom: 1rem; }
.policy-content h2:first-child, .policy-content h3:first-child { margin-top: 0; }
@media (max-width: 575px) {
    body:not(.system-admin) .form--control,
    body:not(.system-admin) .form-control,
    body:not(.system-admin) .form-select { font-size: 16px; } /* stops iOS zooming on focus */
}
.room-details-card .body i.fa-solid,
.room-details-card .body i.fas,
.room-details-card .body i.las { color: #537c70; width: 20px; margin-right: 6px; text-align: center; }
.system-admin td > i.fa-solid, .system-admin td > i.fas { font-size: 18px; color: #46665f; }
