/*
 * Tapu24 native-to-web design foundation.
 * Dark semantic colors are copied exactly from TapuPalette.dark in
 * Tapu24-13.9.0/native/lib/ui/theme.dart. No page or API behavior lives here.
 */
@font-face {
  font-family: "Tajawal";
  src: url("./assets/fonts/Tajawal-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("./assets/fonts/Tajawal-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("./assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "NotoSans";
  src: url("./assets/fonts/NotoSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root,
:root[data-appearance="dark"] {
  color-scheme: dark;
  --t24-toolbar: #08245b;
  --t24-toolbar-foreground: #ffffff;
  --t24-primary: #00c3cf;
  --t24-accent: #00c3cf;
  --t24-canvas: #041633;
  --t24-surface: #092750;
  --t24-surface-raised: #0c3262;
  --t24-title: #f8fbff;
  --t24-body: #b7cae0;
  --t24-muted: #b7cae0;
  --t24-divider: #214775;
  --t24-gold: #efd389;
  --t24-gold-accent: #efd389;
  --t24-selected-tab: #efd389;
  --t24-error: #ffb4ab;
  --t24-error-surface: #442433;
  --t24-success: #88e0c2;
  --t24-on-primary: #041633;
  --t24-on-gold: #041633;
  --t24-on-accent: #041633;
  --t24-font: "NotoSans", "Tajawal", sans-serif;
  --t24-space-1: 4px;
  --t24-space-2: 6px;
  --t24-space-3: 8px;
  --t24-space-4: 10px;
  --t24-space-5: 12px;
  --t24-space-6: 16px;
  --t24-space-7: 20px;
  --t24-space-8: 24px;
  --t24-space-9: 32px;
  --t24-radius-small: 8px;
  --t24-radius-input: 14px;
  --t24-radius-control: 16px;
  --t24-radius-card: 18px;
  --t24-radius-sheet: 24px;
  --t24-container-width: 1440px;
  --t24-sidebar-width: 264px;
  --t24-panel-width: 320px;
  --t24-header-height: 72px;
  --t24-focus-ring: 0 0 0 3px var(--t24-canvas), 0 0 0 6px var(--t24-primary);
}

:root:lang(ar) { --t24-font: "Tajawal", "NotoSans", sans-serif; }

*,
*::before,
*::after { box-sizing: border-box; }
html {
  min-block-size: 100%;
  background: var(--t24-canvas);
  scroll-padding-block-start: calc(var(--t24-header-height) + 16px);
}
body {
  min-block-size: 100vh;
  margin: 0;
  color: var(--t24-title);
  background: var(--t24-canvas);
  font-family: var(--t24-font);
  font-size: 16px;
  line-height: 1.5;
  text-align: start;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea { font: inherit; }
button,
input,
select,
textarea { accent-color: var(--t24-primary); }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--t24-primary); text-underline-offset: 3px; }
img,
svg { display: block; max-inline-size: 100%; }
img { block-size: auto; }
h1,
h2,
h3,
p { margin-block: 0; }
ul,
ol { padding-inline-start: 24px; }
[hidden] { display: none !important; }
::selection { color: var(--t24-title); background: color-mix(in srgb, var(--t24-primary) 25%, var(--t24-surface)); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--t24-primary);
  outline-offset: 4px;
}
.t24-sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.t24-skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 12px 20px;
  border-radius: var(--t24-radius-control);
  color: var(--t24-on-primary);
  background: var(--t24-primary);
  transform: translateY(-200%);
}
.t24-skip-link:focus { transform: none; }
.t24-container {
  inline-size: min(100%, var(--t24-container-width));
  margin-inline: auto;
  padding-inline: 32px;
}
.t24-app-shell { min-block-size: 100vh; }
.t24-topbar {
  position: sticky;
  z-index: 30;
  inset-block-start: 0;
  min-block-size: var(--t24-header-height);
  color: var(--t24-toolbar-foreground);
  background: var(--t24-toolbar);
  border-block-end: 1px solid var(--t24-divider);
}
.t24-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-block-size: var(--t24-header-height);
}
.t24-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.t24-brand__icon { inline-size: 44px; block-size: 44px; border-radius: 12px; object-fit: cover; }
.t24-topbar__actions,
.t24-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.t24-workspace {
  display: grid;
  grid-template-columns: var(--t24-sidebar-width) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-block: 24px 40px;
}
.t24-sidebar {
  position: sticky;
  inset-block-start: calc(var(--t24-header-height) + 24px);
  max-block-size: calc(100vh - var(--t24-header-height) - 48px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid var(--t24-divider);
  border-radius: var(--t24-radius-card);
  padding: 12px;
  background: var(--t24-surface);
}
.t24-sidebar__section + .t24-sidebar__section { margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--t24-divider); }
.t24-sidebar__label { padding: 8px 12px; color: var(--t24-body); font-size: 13px; font-weight: 500; }
.t24-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 48px;
  padding: 12px;
  border-radius: var(--t24-radius-input);
  color: var(--t24-title);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.t24-nav-link:hover { background: var(--t24-surface-raised); }
.t24-nav-link[aria-current="page"] { color: var(--t24-on-primary); background: var(--t24-primary); font-weight: 700; }
.t24-nav-link > svg { inline-size: 22px; block-size: 22px; flex-shrink: 0; color: var(--t24-primary); }
.t24-nav-link[aria-current="page"] > svg { color: inherit; }
.t24-main { min-inline-size: 0; }
.t24-page-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-block-end: 20px; }
.t24-page-title { color: var(--t24-title); font-size: 24px; font-weight: 700; line-height: 1.35; }
.t24-section-title { color: var(--t24-title); font-size: 20px; font-weight: 700; line-height: 1.35; }
.t24-body-text { color: var(--t24-body); font-size: 16px; font-weight: 400; }
.t24-description { margin-block-start: 6px; color: var(--t24-body); font-size: 14px; }
.t24-muted { color: var(--t24-muted); }
.t24-stack { display: flex; flex-direction: column; gap: 16px; }
.t24-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.t24-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--t24-panel-width); gap: 24px; align-items: start; }
.t24-side-panel { position: sticky; inset-block-start: calc(var(--t24-header-height) + 24px); min-inline-size: 0; }
.t24-card { min-inline-size: 0; margin-block: 6px; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-card); overflow: clip; background: var(--t24-surface); }
.t24-card__body { padding: 16px; }
.t24-card__header,
.t24-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; }
.t24-card__header { border-block-end: 1px solid var(--t24-divider); }
.t24-card__footer { border-block-start: 1px solid var(--t24-divider); }
.t24-card__media { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--t24-surface-raised); }
.t24-card__title { color: var(--t24-title); font-size: 16px; line-height: 1.35; font-weight: 700; }
.t24-business-card { display: flex; align-items: start; gap: 11px; padding: 12px; margin-block: 0; border-radius: var(--t24-radius-control); color: inherit; text-decoration: none; }
.t24-business-card__image { inline-size: 56px; block-size: 56px; flex-shrink: 0; border-radius: var(--t24-radius-input); object-fit: cover; background: var(--t24-surface-raised); }
.t24-business-card__content { min-inline-size: 0; flex: 1; }
.t24-business-card__address { margin-block-start: 5px; color: var(--t24-body); font-size: 13px; }
.t24-business-card__metrics { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-block-start: 7px; color: var(--t24-body); font-size: 12px; }
.t24-metric { display: inline-flex; align-items: center; gap: 4px; }
.t24-metric > svg { inline-size: 16px; block-size: 16px; color: var(--t24-primary); }
.t24-metric--rating > svg { color: var(--t24-gold); }
.t24-verified { color: var(--t24-primary); }
.t24-price { color: var(--t24-primary); font-size: 22px; line-height: 1.35; font-weight: 700; font-variant-numeric: tabular-nums; }
.t24-price__approximate { display: block; margin-block-start: 4px; color: var(--t24-body); font-size: 13px; font-weight: 400; }
.t24-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-inline-size: 48px;
  min-block-size: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--t24-radius-control);
  background: var(--t24-primary);
  color: var(--t24-on-primary);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.t24-button:hover { background: color-mix(in srgb, var(--t24-primary) 92%, var(--t24-on-primary)); }
.t24-button--outlined { border-color: var(--t24-primary); background: transparent; color: var(--t24-primary); font-size: 16px; }
.t24-button--outlined:hover,
.t24-button--text:hover { background: var(--t24-surface-raised); }
.t24-button--text { background: transparent; color: var(--t24-primary); font-size: 15px; }
.t24-button--danger { border-color: var(--t24-error); background: var(--t24-error-surface); color: var(--t24-error); }
.t24-button--danger:hover { background: color-mix(in srgb, var(--t24-error) 10%, var(--t24-error-surface)); }
.t24-button--full { inline-size: 100%; }
.t24-button:disabled,
.t24-button[aria-disabled="true"] { color: var(--t24-body); background: var(--t24-surface-raised); border-color: var(--t24-divider); cursor: default; }
.t24-button > svg { inline-size: 20px; block-size: 20px; flex-shrink: 0; }
.t24-icon-button { display: inline-flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; padding: 12px; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-control); color: var(--t24-primary); background: transparent; }
.t24-icon-button:hover { background: var(--t24-surface-raised); }
.t24-icon-button > svg { inline-size: 22px; block-size: 22px; }
.t24-icon-button:disabled { color: var(--t24-body); background: var(--t24-surface-raised); }
.t24-field { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.t24-field__label { color: var(--t24-body); font-size: 16px; font-weight: 500; }
.t24-input { display: block; inline-size: 100%; min-block-size: 52px; padding: 16px; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-input); color: var(--t24-title); background: var(--t24-surface); font-size: 16px; line-height: 1.35; }
.t24-input::placeholder { opacity: 1; color: var(--t24-body); font-size: 15px; }
.t24-input:focus { border-color: var(--t24-primary); }
.t24-input[aria-invalid="true"] { border-color: var(--t24-error); }
.t24-input:disabled { color: var(--t24-body); background: var(--t24-surface-raised); }
textarea.t24-input { min-block-size: 128px; resize: vertical; }
.t24-field__hint { color: var(--t24-body); font-size: 13px; }
.t24-field__error { color: var(--t24-error); font-size: 13px; }
.t24-search { display: flex; align-items: center; min-inline-size: 0; gap: 8px; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-input); padding-inline: 12px; background: var(--t24-surface); }
.t24-search:focus-within { border-color: var(--t24-primary); }
.t24-search > svg { inline-size: 22px; block-size: 22px; flex-shrink: 0; color: var(--t24-primary); }
.t24-search > input { inline-size: 100%; min-inline-size: 0; min-block-size: 52px; padding-block: 13px; border: 0; color: var(--t24-title); background: transparent; }
.t24-search > input::placeholder { color: var(--t24-body); opacity: 1; }
.t24-search > input:focus-visible { outline-offset: -4px; }
.t24-search > button { flex-shrink: 0; }
.t24-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.t24-form-grid__full { grid-column: 1 / -1; }
.t24-directory-toolbar { display: flex; flex-direction: column; gap: 10px; margin-block-end: 10px; }
.t24-directory-toolbar__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t24-result-count { color: var(--t24-body); font-size: 12px; }
.t24-chip { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 6px 10px; border: 1px solid var(--t24-divider); border-radius: 999px; color: var(--t24-title); background: var(--t24-surface-raised); font-size: 14px; line-height: 1.35; font-weight: 700; text-decoration: none; }
.t24-chip[aria-pressed="true"],
.t24-chip[aria-selected="true"] { color: var(--t24-on-primary); background: var(--t24-primary); border-color: var(--t24-primary); }
.t24-chip > svg { inline-size: 18px; block-size: 18px; flex-shrink: 0; }
.t24-badge { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; min-block-size: 20px; padding: 2px 6px; border-radius: 999px; color: var(--t24-on-primary); background: var(--t24-primary); font-size: 12px; font-weight: 700; line-height: 1.2; }
.t24-badge--featured { color: var(--t24-on-gold); background: var(--t24-gold-accent); }
.t24-tabs { display: flex; gap: 8px; border-block-end: 1px solid var(--t24-divider); overflow-x: auto; }
.t24-tab { flex-shrink: 0; min-block-size: 48px; padding: 12px 16px; border: 0; border-block-end: 2px solid transparent; color: var(--t24-body); background: transparent; font-size: 15px; font-weight: 700; text-decoration: none; }
.t24-tab[aria-selected="true"],
.t24-tab[aria-current="page"] { color: var(--t24-primary); border-block-end-color: var(--t24-primary); }
.t24-empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 16px; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-control); background: var(--t24-surface); text-align: center; }
.t24-empty-state > svg { inline-size: 40px; block-size: 40px; color: var(--t24-primary); }
.t24-status { padding: 16px; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-control); color: var(--t24-title); background: var(--t24-surface-raised); }
.t24-status--error { border-color: var(--t24-error); color: var(--t24-error); background: var(--t24-error-surface); }
.t24-status--success { border-color: var(--t24-success); color: var(--t24-success); background: var(--t24-surface); }
.t24-progress { display: block; inline-size: 100%; block-size: 6px; overflow: hidden; border: 0; border-radius: 999px; background: var(--t24-surface-raised); accent-color: var(--t24-primary); }
.t24-progress::-webkit-progress-bar { border-radius: 999px; background: var(--t24-surface-raised); }
.t24-progress::-webkit-progress-value { border-radius: 999px; background: var(--t24-primary); }
.t24-progress::-moz-progress-bar { border-radius: 999px; background: var(--t24-primary); }
.t24-dialog { inline-size: min(calc(100% - 48px), 560px); max-block-size: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-control); color: var(--t24-title); background: var(--t24-surface); overflow: auto; overscroll-behavior: contain; }
.t24-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.t24-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-block-end: 1px solid var(--t24-divider); }
.t24-dialog__body { padding: 20px; color: var(--t24-body); }
.t24-dialog__footer { display: flex; justify-content: end; flex-wrap: wrap; gap: 12px; padding: 16px 20px 20px; border-block-start: 1px solid var(--t24-divider); }
.t24-sheet { border-start-start-radius: var(--t24-radius-sheet); border-start-end-radius: var(--t24-radius-sheet); }
.t24-menu { margin: 0; padding: 8px; list-style: none; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-control); color: var(--t24-title); background: var(--t24-surface-raised); }
.t24-menu__item { display: flex; align-items: center; gap: 12px; inline-size: 100%; min-block-size: 48px; padding: 12px; border: 0; border-radius: var(--t24-radius-input); color: inherit; background: transparent; font-size: 15px; font-weight: 500; text-align: start; text-decoration: none; }
.t24-menu__item:hover { background: var(--t24-surface); }
.t24-table-wrap { max-inline-size: 100%; overflow-x: auto; border: 1px solid var(--t24-divider); border-radius: var(--t24-radius-card); background: var(--t24-surface); }
.t24-table { inline-size: 100%; border-collapse: collapse; text-align: start; }
.t24-table th,
.t24-table td { padding: 14px 16px; border-block-end: 1px solid var(--t24-divider); text-align: start; vertical-align: middle; }
.t24-table th { color: var(--t24-body); background: var(--t24-surface-raised); font-size: 13px; font-weight: 700; }
.t24-table td { font-size: 14px; }
.t24-table tbody tr:last-child td { border-block-end: 0; }
.t24-table tbody tr:hover { background: var(--t24-surface-raised); }
.t24-divider { margin-block: 16px; border: 0; border-block-start: 1px solid var(--t24-divider); }
.t24-ltr { direction: ltr; unicode-bidi: isolate; }
.t24-scroll-region { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }

@media (max-width: 1279px) {
  .t24-container { padding-inline: 24px; }
  .t24-workspace { grid-template-columns: 232px minmax(0, 1fr); gap: 20px; }
  .t24-split { grid-template-columns: minmax(0, 1fr); }
  .t24-side-panel { position: static; }
}
@media (max-width: 959px) {
  .t24-workspace { grid-template-columns: minmax(0, 1fr); }
  .t24-sidebar { position: static; max-block-size: none; }
  .t24-page-header { flex-wrap: wrap; }
}
@media (max-width: 599px) {
  .t24-container { padding-inline: 16px; }
  .t24-topbar__inner { gap: 12px; }
  .t24-form-grid { grid-template-columns: minmax(0, 1fr); }
  .t24-dialog { inline-size: calc(100% - 24px); max-block-size: calc(100dvh - 24px); }
  .t24-page-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: Highlight; }
  .t24-button,
  .t24-chip,
  .t24-nav-link[aria-current="page"] { border: 1px solid ButtonText; }
}
