/**
 * Sayarat — theme on Bootstrap 5 (RTL). Font: Tajawal (partials/styles.php).
 *
 * Brand: violet primary + amber accent; page canvas is warm off-white.
 * Tokens: documentation/brand-colors.md
 */
:root {
  color-scheme: light;

  /* Sayarat brand tokens */
  --sayarat-brand: #5b21b6;
  --sayarat-brand-rgb: 91, 33, 182;
  --sayarat-brand-deep: #4c1d95;
  --sayarat-brand-bright: #7c3aed;
  --sayarat-accent: #b45309;
  --sayarat-accent-rgb: 180, 83, 9;
  --sayarat-accent-bright: #d97706;
  --sayarat-ink: #16131f;
  --sayarat-ink-rgb: 22, 19, 31;
  /* Muted body / UI copy: darker than stone-600 for readability on warm canvas */
  --sayarat-muted: #45403c;
  --sayarat-muted-rgb: 69, 64, 60;
  --sayarat-muted-strong: #3a3530;
  --sayarat-muted-strong-rgb: 58, 53, 48;
  --sayarat-canvas: #faf8f5;
  --sayarat-line: #e8e4f0;
  --sayarat-header-bg: #ffffff;
  --sayarat-shadow-sm: 0 1px 2px rgba(var(--sayarat-ink-rgb), 0.06);
  --sayarat-shadow-brand: 0 0.5rem 1.5rem rgba(var(--sayarat-brand-rgb), 0.12);

  /* Bootstrap bridge */
  --bs-body-font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--sayarat-canvas);
  --bs-body-color: var(--sayarat-ink);
  /* Bootstrap `.text-secondary` / `.text-body-secondary`: ink-tinted, higher contrast on off-white */
  --bs-secondary-color: rgba(var(--sayarat-ink-rgb), 0.82);
  --bs-secondary-color-rgb: var(--sayarat-ink-rgb);
  /* Bumped from 0.62 → 0.72 so `.text-body-tertiary` separators and
     similar light text clear WCAG AA on the warm `--sayarat-canvas` bg
     (previous value rendered ≈4.8:1; new value lands ≈6:1). */
  --bs-tertiary-color: rgba(var(--sayarat-ink-rgb), 0.72);
  --bs-tertiary-color-rgb: var(--sayarat-ink-rgb);
  --bs-primary: var(--sayarat-brand);
  --bs-primary-rgb: var(--sayarat-brand-rgb);
  --bs-link-color: var(--sayarat-brand-bright);
  --bs-link-hover-color: var(--sayarat-brand-deep);
  --bs-border-color: var(--sayarat-line);
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: 0.625rem;
  --bs-focus-ring-color: rgba(var(--sayarat-brand-rgb), 0.35);
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Bootstrap 5.3: `.text-secondary` still maps to `--bs-secondary-rgb` (theme gray #6c757d), not `--bs-secondary-color`.
   The marketing page uses `text-secondary` heavily — point it at the
   stronger muted token (#3a3530) so secondary copy stays readable on the
   warm `--sayarat-canvas` bg. The previous mapping to `--sayarat-muted`
   (#45403c) was mathematically AA-compliant but felt thin against the
   off-white canvas. */
.text-secondary {
  color: rgba(var(--sayarat-muted-strong-rgb), var(--bs-text-opacity)) !important;
}

/* Navbar: white bar + violet → amber strip */
.navbar.sayarat-nav {
  position: relative;
  box-shadow: var(--sayarat-shadow-sm);
  background: var(--sayarat-header-bg) !important;
}

/* RTL: on expanded (lg+) viewports we keep brand + links grouped on the right
   (inline-start). On mobile we keep Bootstrap's default `space-between` so the
   burger toggler ends up on the opposite edge (physical left under dir=rtl). */
@media (min-width: 992px) {
  .navbar.sayarat-nav > .container {
    justify-content: flex-start;
  }

  .navbar.sayarat-nav .navbar-collapse {
    flex-grow: 0;
  }
}

/* Mobile: pin the burger toggler to the physical left edge regardless of the
   source order, so the brand stays on the right and the toggler on the left. */
@media (max-width: 991.98px) {
  .navbar.sayarat-nav .navbar-toggler {
    margin-inline-start: auto;
  }
}

.navbar.sayarat-nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 45%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
}

.navbar.sayarat-nav .navbar-brand {
  font-weight: 600;
  color: var(--sayarat-ink) !important;
  letter-spacing: -0.02em;
}

.navbar.sayarat-nav .navbar-brand.sayarat-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

img.sayarat-site-logo {
  display: block;
  width: auto;
  height: 2rem;
}

img.sayarat-tenant-logo {
  max-height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.navbar.sayarat-nav .nav-link {
  font-weight: 500;
  color: var(--sayarat-muted) !important;
}

.navbar.sayarat-nav .nav-link:hover,
.navbar.sayarat-nav .nav-link:focus-visible {
  color: var(--sayarat-brand) !important;
}

/* Current-page link: stronger weight + colour, plus a thin brand underline on
   wide viewports (we drop the underline on the mobile collapse since items
   stack and the underline reads as a divider line instead of an accent). */
.navbar.sayarat-nav .nav-link.active {
  color: var(--sayarat-brand) !important;
  font-weight: 600;
}

@media (min-width: 992px) {
  .navbar.sayarat-nav .nav-link.active {
    position: relative;
  }

  .navbar.sayarat-nav .nav-link.active::after {
    content: "";
    position: absolute;
    inset-inline: 0.6rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
}

/* Apex marketing homepage: hero + CTA band */
.sayarat-apex-hero {
  padding: 2rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--bs-border-radius-lg);
  background: linear-gradient(
    145deg,
    rgba(var(--bs-primary-rgb), 0.1) 0%,
    rgba(var(--sayarat-accent-rgb), 0.07) 55%,
    rgba(var(--bs-primary-rgb), 0.04) 100%
  );
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
  box-shadow: var(--sayarat-shadow-sm);
}

@media (min-width: 768px) {
  .sayarat-apex-hero {
    padding: 2.5rem 2rem;
  }
}

.sayarat-apex-hero .sayarat-apex-hero-lead {
  max-width: 44rem;
}

.sayarat-apex-cta {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.35rem 1.9rem;
  border-radius: var(--bs-border-radius-lg);
  text-align: center;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
  background: linear-gradient(
    155deg,
    rgba(var(--bs-primary-rgb), 0.11) 0%,
    rgba(var(--sayarat-accent-rgb), 0.09) 38%,
    rgba(255, 255, 255, 0.88) 72%,
    #fff 100%
  );
  box-shadow:
    var(--sayarat-shadow-brand),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sayarat-apex-cta::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 40%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sayarat-apex-cta > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .sayarat-apex-cta {
    padding: 2rem 2rem 2.15rem;
  }
}

.sayarat-apex-cta-heading {
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  line-height: 1.45;
  max-width: 42rem;
  margin-inline: auto;
}

.sayarat-apex-cta .text-secondary {
  max-width: 36rem;
  margin-inline: auto;
}

.sayarat-apex-cta .sayarat-apex-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.sayarat-apex-cta .btn-lg {
  min-width: min(100%, 14rem);
}

/* Apex marketing: secondary action button — always-on violet outline on
   white. Used on both the hero (`.sayarat-apex-hero`) and the closing
   CTA panel (`.sayarat-apex-cta`), so the rule is intentionally NOT
   scoped — keeping the visible border consistent in either context.
   (Earlier versions scoped this under `.sayarat-apex-cta`, which made
   the hero copy of this button render border-less until hover.) */
.btn-apex-secondary {
  --bs-btn-color: var(--sayarat-brand-deep);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--sayarat-brand);
  --bs-btn-border-width: 2px;
  --bs-btn-font-weight: 600;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sayarat-brand);
  --bs-btn-hover-border-color: var(--sayarat-brand-deep);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sayarat-brand-deep);
  --bs-btn-active-border-color: var(--sayarat-brand-deep);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.sayarat-apex-hero-toc {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(var(--bs-primary-rgb), 0.14);
}

.sayarat-apex-hero-toc-link {
  display: inline-block;
  min-height: 1.5em;
  line-height: 1.5;
  color: var(--sayarat-brand);
  font-weight: 500;
  text-decoration: none;
}

.sayarat-apex-hero-toc-link:hover,
.sayarat-apex-hero-toc-link:focus {
  text-decoration: underline;
  color: var(--sayarat-brand-deep);
}

.sayarat-apex-hero-toc-link--em {
  font-weight: 600;
}

/* Apex marketing: anchor targets clear the sticky navbar */
#top,
#challenges,
#approach,
#features,
#how,
#trial-or-join,
#join {
  scroll-margin-top: 5rem;
}

/* Apex marketing: vertical rhythm between hero and panels */
.sayarat-apex-section {
  padding-block: 2.25rem;
  border-top: 1px solid rgba(var(--bs-primary-rgb), 0.11);
}

@media (min-width: 768px) {
  .sayarat-apex-section {
    padding-block: 2.5rem;
  }
}

.sayarat-apex-section .sayarat-section-title {
  color: var(--sayarat-ink);
}

/* CTA block is its own bordered card; skip the section’s top rule so the frame stays even */
.sayarat-apex-section.sayarat-apex-cta {
  border-top: none;
}

/* Apex marketing: Q&A (pain points) + approach + why-us — span full `.container` width; `margin-inline: auto` keeps the block centered if a max-width is added later */
.sayarat-apex-section--content {
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.sayarat-apex-qa-panel,
.sayarat-apex-approach-panel,
.sayarat-apex-features-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
  background: #fff;
  box-shadow: var(--sayarat-shadow-sm);
  padding: 1.25rem 1.25rem 1.35rem;
}

.sayarat-apex-qa-panel::before,
.sayarat-apex-approach-panel::before,
.sayarat-apex-features-wrap::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 50%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sayarat-apex-qa-panel > *,
.sayarat-apex-approach-panel > *,
.sayarat-apex-features-wrap > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .sayarat-apex-qa-panel,
  .sayarat-apex-approach-panel,
  .sayarat-apex-features-wrap {
    padding: 1.5rem 1.75rem 1.65rem;
  }
}

.sayarat-apex-qa-panel {
  background: linear-gradient(
    180deg,
    rgba(var(--bs-primary-rgb), 0.04) 0%,
    #fff 7rem
  );
}

.sayarat-apex-approach-panel {
  border-color: rgba(var(--sayarat-accent-rgb), 0.2);
  background: linear-gradient(
    180deg,
    rgba(var(--sayarat-accent-rgb), 0.06) 0%,
    #fff 9rem
  );
}

.sayarat-apex-qa-lead {
  color: var(--sayarat-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sayarat-apex-qa-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sayarat-brand-deep);
  margin-bottom: 0.75rem;
}

.sayarat-apex-qa-sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--bs-primary-rgb), 0.25) 0%,
    rgba(var(--sayarat-accent-rgb), 0.12) 100%
  );
  min-width: 2rem;
}

[dir="rtl"] .sayarat-apex-qa-sub {
  flex-direction: row;
}

.sayarat-apex-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sayarat-apex-qa-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  background: rgba(255, 255, 255, 0.9);
  color: var(--sayarat-muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.sayarat-apex-qa-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    140deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 100%
  );
  line-height: 1;
  margin-top: 0.1rem;
}

.sayarat-apex-approach-tiles {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  grid-template-columns: 1fr;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

/* Tablet: first two side by side, third block full width */
@media (min-width: 768px) and (max-width: 991.98px) {
  .sayarat-apex-approach-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .sayarat-apex-approach-tile--wide {
    grid-column: 1 / -1;
  }
}

/* Desktop: three equal columns */
@media (min-width: 992px) {
  .sayarat-apex-approach-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sayarat-apex-approach-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
  background: rgba(var(--bs-primary-rgb), 0.04);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--sayarat-muted-strong);
}

/* Number badge before the tile body — mirrors `.sayarat-apex-qa-num`
   so the QA list and the approach list read as the same family. */
.sayarat-apex-approach-tile-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    140deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 100%
  );
  line-height: 1;
  margin-top: 0.1rem;
}

.sayarat-apex-approach-tile--accent .sayarat-apex-approach-tile-num {
  background: linear-gradient(
    140deg,
    var(--sayarat-accent) 0%,
    var(--sayarat-accent-bright) 100%
  );
}

.sayarat-apex-approach-tile-body {
  flex: 1 1 auto;
  min-width: 0;
}

.sayarat-apex-approach-tile--accent {
  border-color: rgba(var(--sayarat-accent-rgb), 0.32);
  background: rgba(var(--sayarat-accent-rgb), 0.08);
}

.sayarat-apex-approach-tile--wide {
  border-color: rgba(var(--bs-primary-rgb), 0.2);
  background: linear-gradient(
    180deg,
    rgba(var(--bs-primary-rgb), 0.07) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
}

.sayarat-apex-approach-tile strong {
  color: var(--sayarat-ink);
}

.sayarat-apex-approach-foot {
  color: var(--sayarat-muted);
  line-height: 1.7;
  margin-top: 1.1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(var(--bs-primary-rgb), 0.12);
}

.sayarat-apex-features-wrap {
  background: #fff;
}

.sayarat-apex-features-intro {
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.sayarat-apex-feature-card {
  position: relative;
  display: block;
  height: 100%;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: var(--sayarat-shadow-sm);
  overflow: hidden;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sayarat-apex-feature-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 45%,
    var(--sayarat-accent-bright) 100%
  );
}

.sayarat-apex-feature-card:hover {
  box-shadow: var(--sayarat-shadow-brand);
  border-color: rgba(var(--bs-primary-rgb), 0.22);
}

.sayarat-apex-feature-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.sayarat-apex-feature-card h3 {
  color: var(--sayarat-ink);
  font-size: 0.95rem;
}

.sayarat-apex-feature-card p {
  font-size: 0.875rem;
}

/* Apex marketing: join request form */
.sayarat-apex-join-section {
  background: linear-gradient(
    180deg,
    rgba(var(--bs-primary-rgb), 0.03) 0%,
    transparent 12rem
  );
}

.sayarat-apex-join-panel {
  position: relative;
  overflow: hidden;
  max-width: 640px;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 1.65rem;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
  background: linear-gradient(
    180deg,
    rgba(var(--bs-primary-rgb), 0.045) 0%,
    #fff 5rem
  );
  box-shadow: var(--sayarat-shadow-sm);
}

.sayarat-apex-join-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 50%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sayarat-apex-join-panel > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .sayarat-apex-join-panel {
    padding: 1.75rem 1.85rem 1.85rem;
  }
}

.sayarat-apex-join-heading {
  font-weight: 600;
  line-height: 1.4;
}

.sayarat-apex-join-panel .form-label {
  font-weight: 500;
}

.sayarat-apex-join-panel .form-control,
.sayarat-apex-join-panel .form-select {
  border-color: rgba(var(--bs-primary-rgb), 0.12);
}

.sayarat-apex-join-panel .form-control:focus,
.sayarat-apex-join-panel .form-select:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.14);
}

.sayarat-apex-join-panel .alert {
  border-radius: var(--bs-border-radius);
}

.sayarat-apex-join-submit {
  margin-top: 0.35rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(var(--bs-primary-rgb), 0.15);
}

/* ===========================================================================
 * Sayarat — apex marketing additions: hero eyebrow + free-launch badge,
 * trust strip, QA body wrapping, features checkmark strip, #how steps,
 * FAQ <details> items, and the small apex footer. Built on top of the
 * existing `.sayarat-apex-*` family above so tokens stay consistent.
 * =========================================================================*/

/* Hero: small uppercase eyebrow above the H1 reads as a category label */
.sayarat-apex-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sayarat-brand-deep);
  margin: 0;
}

.sayarat-apex-hero-title {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--sayarat-ink);
  max-width: 44rem;
}

/* Hero CTA pair — primary + secondary buttons reused from .btn-apex-secondary */
.sayarat-apex-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.1rem;
}

.sayarat-apex-hero-actions .btn-lg {
  min-width: min(100%, 14rem);
  min-height: 3rem;
}

/* Free-during-launch callout — sits between the CTAs and the trust strip.
   Pill-shaped, soft amber tint so it reads as positive news, never alarm.
   On mobile the inline content wraps onto multiple lines, so we use a
   larger border-radius (instead of `999px`) and roomier padding so the
   wrapped text doesn't kiss the rounded corners. Tablet+ tightens the
   block back down once everything fits on one row. */
.sayarat-apex-launch-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  padding: 0.8rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(var(--sayarat-accent-rgb), 0.32);
  background: linear-gradient(
    100deg,
    rgba(var(--sayarat-accent-rgb), 0.12) 0%,
    rgba(var(--sayarat-accent-rgb), 0.06) 100%
  );
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sayarat-muted-strong);
  margin-bottom: 1rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .sayarat-apex-launch-badge {
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
  }
}

.sayarat-apex-launch-badge strong {
  color: var(--sayarat-accent);
}

/* Animated dot draws the eye — always-on green pulse, paused for users
   who prefer reduced motion. */
.sayarat-apex-launch-badge-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: sayarat-pulse 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sayarat-apex-launch-badge-dot {
    animation: none;
  }
}

@keyframes sayarat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70%  { box-shadow: 0 0 0 0.5rem rgba(22, 163, 74, 0);    }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);    }
}

.sayarat-apex-launch-badge-text {
  color: var(--sayarat-muted-strong);
}

.sayarat-apex-launch-badge-link {
  color: var(--sayarat-brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sayarat-apex-launch-badge-link:hover,
.sayarat-apex-launch-badge-link:focus-visible {
  color: var(--sayarat-brand);
  text-decoration: none;
}

/* Trust strip: bullet-separated checks under the CTAs. Reads as a row of
   reassurances for the skim-reader. */
.sayarat-apex-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--sayarat-muted-strong);
}

.sayarat-apex-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sayarat-apex-hero-trust li::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sayarat-brand);
  flex-shrink: 0;
}

/* Compact hero variant — used on the FAQ page so the page lands right at
   the question list without a giant wasted hero. */
.sayarat-apex-hero--compact {
  padding-block: 1.5rem 1.4rem;
}

@media (min-width: 768px) {
  .sayarat-apex-hero--compact {
    padding-block: 1.85rem 1.6rem;
  }
}

/* QA item now wraps title + body in a flex column so the headline reads
   first (loud) and the supporting line follows (muted). */
.sayarat-apex-qa-body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1 1 auto;
  min-width: 0;
}

.sayarat-apex-qa-title {
  color: var(--sayarat-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Features strip — small horizontal list of table-stakes (RTL, HTTPS, …)
   below the cards. Each item gets a green check before it. */
.sayarat-apex-features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(var(--bs-primary-rgb), 0.14);
  font-size: 0.85rem;
  color: var(--sayarat-muted);
}

.sayarat-apex-features-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sayarat-apex-features-strip li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--sayarat-brand);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* "كيف نبدأ؟" 3-step strip — same panel chrome as approach/qa for visual
   continuity. Numbered ordered list, each step is a flex row. */
.sayarat-apex-steps-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
  background: linear-gradient(
    180deg,
    rgba(var(--bs-primary-rgb), 0.045) 0%,
    #fff 9rem
  );
  box-shadow: var(--sayarat-shadow-sm);
  padding: 1.25rem 1.25rem 1.35rem;
}

.sayarat-apex-steps-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 50%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sayarat-apex-steps-panel > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .sayarat-apex-steps-panel {
    padding: 1.5rem 1.75rem 1.65rem;
  }
}

.sayarat-apex-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .sayarat-apex-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sayarat-apex-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  background: #fff;
}

.sayarat-apex-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    140deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 100%
  );
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sayarat-apex-step-body {
  flex: 1 1 auto;
  min-width: 0;
}

.sayarat-apex-step-body h3 {
  color: var(--sayarat-ink);
  font-size: 0.95rem;
}

/* Promise line beneath the steps: the visible commitment. Soft amber
   highlight so it reads as a confident, low-risk promise. */
.sayarat-apex-steps-promise {
  margin: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--sayarat-accent-rgb), 0.28);
  background: rgba(var(--sayarat-accent-rgb), 0.08);
  color: var(--sayarat-muted-strong);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sayarat-apex-steps-promise strong {
  color: var(--sayarat-accent);
}

.sayarat-apex-steps-promise-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* FAQ page — shared chrome with other apex panels so the brand stays
   coherent across `/` and `/faq`. */
.sayarat-apex-section--faq {
  padding-top: 1.25rem;
}

.sayarat-apex-faq-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
  background: #fff;
  box-shadow: var(--sayarat-shadow-sm);
  padding: 0.5rem 1rem 0.75rem;
}

.sayarat-apex-faq-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 50%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sayarat-apex-faq-panel > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .sayarat-apex-faq-panel {
    padding: 0.75rem 1.5rem 1rem;
  }
}

.sayarat-apex-faq-list {
  display: flex;
  flex-direction: column;
}

.sayarat-apex-faq-item {
  border-bottom: 1px solid var(--bs-border-color);
  scroll-margin-top: 5rem;
}

.sayarat-apex-faq-item:last-child {
  border-bottom: 0;
}

/* Each <summary> doubles as the question row; we hide the default marker
   and ship our own chevron that rotates when [open]. */
.sayarat-apex-faq-question {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 600;
  color: var(--sayarat-ink);
  line-height: 1.45;
  transition: color 0.15s ease;
}

.sayarat-apex-faq-question::-webkit-details-marker { display: none; }

.sayarat-apex-faq-question:hover,
.sayarat-apex-faq-question:focus-visible {
  color: var(--sayarat-brand);
  outline: none;
}

.sayarat-apex-faq-question-text {
  flex: 1 1 auto;
  min-width: 0;
}

.sayarat-apex-faq-chev {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), 0.07);
  color: var(--sayarat-brand);
  transition: transform 0.2s ease, background 0.15s ease;
}

.sayarat-apex-faq-item[open] > .sayarat-apex-faq-question .sayarat-apex-faq-chev {
  transform: rotate(180deg);
  background: rgba(var(--bs-primary-rgb), 0.12);
}

.sayarat-apex-faq-answer {
  padding: 0 0.25rem 1.1rem;
  color: var(--sayarat-muted-strong);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* Apex footer — small, low-key. Lives below `<main>` on every apex page
   and provides the secondary `/` ↔ `/faq` link discovery surface. */
.sayarat-apex-footer {
  margin-top: 1.5rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--sayarat-line);
  background: #fff;
  color: var(--sayarat-muted);
  font-size: 0.85rem;
}

.sayarat-apex-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
}

.sayarat-apex-footer-nav a {
  color: var(--sayarat-brand);
  text-decoration: none;
  font-weight: 500;
}

.sayarat-apex-footer-nav a:hover,
.sayarat-apex-footer-nav a:focus-visible {
  text-decoration: underline;
  color: var(--sayarat-brand-deep);
}

.sayarat-apex-footer-nav span[aria-hidden="true"] {
  color: var(--bs-tertiary-color);
}

/* Bottom row: copyright on the inline-start, "powered by Ebla" on the
   inline-end. Wraps to two stacked rows on narrow viewports so neither
   line gets truncated. */
.sayarat-apex-footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.sayarat-apex-footer-meta {
  margin: 0;
  color: var(--sayarat-muted);
}

.sayarat-apex-footer-powered {
  color: var(--sayarat-muted);
  font-size: 0.8rem;
}

.sayarat-apex-footer-powered a {
  color: var(--sayarat-brand);
  text-decoration: none;
  font-weight: 500;
}

.sayarat-apex-footer-powered a:hover,
.sayarat-apex-footer-powered a:focus-visible {
  text-decoration: underline;
  color: var(--sayarat-brand-deep);
}

/* Latin-script domain suffix sits next to the Arabic label; render LTR
   inline so the parens face the right way under dir=rtl and the domain
   keeps its natural reading direction. */
.sayarat-apex-footer-powered-domain {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--bs-tertiary-color);
  letter-spacing: 0;
  margin-inline-start: 0.25rem;
}

/* a.sayarat-listing-card + .sayarat-listing-thumb are defined further down
   in the public storefront polish section (with aspect-ratio media wrap). */

.sayarat-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .sayarat-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.625rem;
  }
}

.sayarat-gallery img,
.sayarat-gallery a img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid var(--bs-border-color);
}

@media (min-width: 576px) {
  .sayarat-gallery img,
  .sayarat-gallery a img {
    height: 140px;
  }
}

/* Listing detail: hero (primary) + smaller thumbs */
.sayarat-listing-hero-img {
  display: block;
  max-height: min(70vh, 520px);
  min-height: 200px;
  object-fit: cover;
  background: var(--sayarat-line);
}

.sayarat-gallery-thumbs img,
.sayarat-gallery-thumbs a img {
  height: 100px;
}

@media (min-width: 576px) {
  .sayarat-gallery-thumbs img,
  .sayarat-gallery-thumbs a img {
    height: 112px;
  }
}

/* Public listing gallery (Swiper) */
/* Gallery frame — mirrors `.sayarat-listing-hero` so the media section feels
   like a sibling of the hero card (same tint, same border, same radius). */
.sayarat-gallery-stack {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--sayarat-brand-rgb), 0.06) 0%,
    rgba(var(--sayarat-accent-rgb), 0.05) 100%
  );
  border: 1px solid rgba(var(--sayarat-brand-rgb), 0.12);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.5rem;
}

@media (min-width: 576px) {
  .sayarat-gallery-stack {
    padding: 0.75rem;
  }
}

/* Let the gradient show through loading/empty swiper slides instead of the
   pink-ish `--sayarat-line`. The swiper inner container still keeps its own
   dark bg for actual image letterboxing. */
.sayarat-swiper .swiper-slide {
  background: transparent;
}

.sayarat-swiper-main img {
  width: 100%;
  display: block;
  height: min(70vh, 520px);
  min-height: 220px;
  object-fit: cover;
}

.sayarat-swiper-main .swiper-pagination {
  bottom: 10px !important;
}

.sayarat-swiper .swiper-pagination-bullet {
  background: rgba(22, 19, 31, 0.35);
  opacity: 1;
}

.sayarat-swiper .swiper-pagination-bullet-active {
  background: rgba(var(--sayarat-brand-rgb), 0.9);
}

.sayarat-swiper-thumbs .swiper-slide {
  width: 78px;
  height: 56px;
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  opacity: 0.72;
}

.sayarat-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: rgba(var(--sayarat-brand-rgb), 0.55);
  box-shadow: 0 0 0 2px rgba(var(--sayarat-brand-rgb), 0.18);
}

.sayarat-swiper-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Navigation arrows on the main gallery — circular, tinted-glass buttons. */
.sayarat-swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(22, 19, 31, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  backdrop-filter: blur(4px);
}

.sayarat-swiper-nav:hover,
.sayarat-swiper-nav:focus-visible {
  background: rgba(var(--sayarat-brand-rgb), 0.85);
  outline: none;
}

.sayarat-swiper-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.sayarat-swiper-nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* RTL-aware positioning: "next" is on the left edge, "prev" on the right. */
.sayarat-swiper-nav--prev {
  inset-inline-start: 0.75rem;
}

.sayarat-swiper-nav--next {
  inset-inline-end: 0.75rem;
}

/* RTL: visual arrow should match text direction — flip the icon horizontally
   inside the button so the chevron always points the right way. */
[dir="rtl"] .sayarat-swiper-nav svg {
  transform: scaleX(-1);
}

/* Hide arrows on touch-first narrow viewports — rely on swipe gestures. */
@media (max-width: 575px) {
  .sayarat-swiper-nav {
    display: none;
  }
}

/* Slide counter pill: top corner of the gallery. */
.sayarat-slide-counter {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 11;
  background: rgba(22, 19, 31, 0.6);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  pointer-events: none;
  line-height: 1.4;
}

.sayarat-slide-counter .sep {
  opacity: 0.55;
  margin: 0 0.2rem;
}

/* ---------- Video slide (YouTube) ---------- */
.sayarat-video-slide {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sayarat-video-slide,
.sayarat-video-slide .sayarat-video-poster,
.sayarat-video-slide .sayarat-video-frame {
  width: 100%;
  height: min(70vh, 520px);
  min-height: 220px;
}

.sayarat-video-poster {
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
  position: relative;
  cursor: pointer;
  display: block;
}

.sayarat-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.4s ease;
}

.sayarat-video-poster:hover img,
.sayarat-video-poster:focus-visible img {
  opacity: 1;
  transform: scale(1.02);
}

.sayarat-video-poster:focus-visible {
  outline: 2px solid rgba(var(--sayarat-brand-rgb), 0.8);
  outline-offset: -2px;
}

.sayarat-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sayarat-video-play svg {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.sayarat-video-play svg .yt-bg {
  transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.sayarat-video-poster:hover .sayarat-video-play svg,
.sayarat-video-poster:focus-visible .sayarat-video-play svg {
  transform: scale(1.06);
}

.sayarat-video-poster:hover .sayarat-video-play svg .yt-bg {
  fill: var(--sayarat-brand);
  fill-opacity: 0.95;
}

.sayarat-video-frame {
  border: 0;
  display: block;
  background: #000;
}

/* Video thumbnail: darker overlay + small play badge so users know it's a video. */
.sayarat-thumb-video {
  position: relative;
}

.sayarat-thumb-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.sayarat-thumb-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.sayarat-thumb-video-play svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.sayarat-swiper-thumbs .sayarat-thumb-video.swiper-slide-thumb-active::after {
  background: linear-gradient(
    180deg,
    rgba(var(--sayarat-brand-rgb), 0) 0%,
    rgba(var(--sayarat-brand-rgb), 0.4) 100%
  );
}

.sayarat-admin-photo-pick {
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--sayarat-line);
}

/* Small square preview used in the admin listings table — keeps rows
   compact while still giving a glanceable visual of each listing. */
.sayarat-admin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sayarat-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sayarat-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sayarat-admin-thumb-empty {
  color: #8b8680;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Prices: amber — warmth / value, distinct from violet CTAs */
.sayarat-price {
  font-weight: 700;
  color: var(--sayarat-accent);
}

.form-label {
  font-weight: 500;
  color: var(--sayarat-muted);
  font-size: 0.875rem;
}

.table.sayarat-table > :not(caption) > * > * {
  vertical-align: middle;
}

.table-responsive {
  border-radius: var(--bs-border-radius-lg);
}

.btn-primary {
  --bs-btn-bg: var(--sayarat-brand);
  --bs-btn-border-color: var(--sayarat-brand);
  --bs-btn-hover-bg: var(--sayarat-brand-deep);
  --bs-btn-hover-border-color: var(--sayarat-brand-deep);
  --bs-btn-active-bg: var(--sayarat-brand-deep);
  --bs-btn-active-border-color: var(--sayarat-brand-deep);
  --bs-btn-focus-shadow-rgb: var(--sayarat-brand-rgb);
}

/* ===========================================================================
 * Sayarat — public storefront polish (listings home + detail + contact).
 * Keeps brand tokens (violet primary, amber accent, Tajawal) and extends
 * Bootstrap with small, reusable components so views stay clean.
 * =========================================================================*/

/* Section titles: small accent bar before the heading for visual rhythm. */
.sayarat-section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-weight: 600;
}

.sayarat-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-accent-bright) 100%
  );
}

/* Optional count pill next to a section title (e.g. "التفاصيل · 9 خصائص").
   Sized to read as supportive metadata, not as a competing badge. */
.sayarat-section-count {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--sayarat-brand-rgb), 0.08);
  color: var(--sayarat-brand-deep);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* Breadcrumb: chevron separator that flips automatically in RTL. */
.sayarat-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  /* Was `#6b7280` (4.7:1 on warm canvas — borderline AA). `#4b5563`
     clears 7:1 and reads as a confident step-down from the active
     `.current` ink colour. */
  color: #4b5563;
}

.sayarat-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.sayarat-breadcrumb a:hover {
  color: var(--sayarat-brand);
}

.sayarat-breadcrumb .sep {
  color: #c4b5fd;
  font-weight: 500;
}

/* Share button sits in the topbar next to the breadcrumb. Kept as a
   compact outline pill so it reads as a secondary control while still
   being discoverable. The label has its own class so JS can flip it to
   "تم النسخ" / "تعذّر النسخ" without touching the icon.

   We re-point Bootstrap's outline-button CSS variables at the tenant
   brand palette so the border + text + icon (whose SVG uses
   `stroke="currentColor"`) all match the tinted icons in
   `.sayarat-footer-info-list .ico` instead of defaulting to the blue
   primary. Overriding the --bs-btn-* custom properties keeps every
   state (rest / hover / active / focus) consistent without having to
   re-declare each rule. */
/* Shared pill-button look used by the listing share button, the
   listing "back to all cars" CTA, and any future compact brand-tinted
   actions. Both selectors are listed so existing `.sayarat-share-btn`
   markup keeps working; new buttons should prefer `.sayarat-pill-btn`
   and opt into `.sayarat-share-btn` only if they genuinely need the
   share click handler wired in from the listing page script. */
.sayarat-pill-btn,
.sayarat-share-btn {
  --bs-btn-color: var(--sayarat-brand);
  --bs-btn-border-color: var(--sayarat-brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sayarat-brand);
  --bs-btn-hover-border-color: var(--sayarat-brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sayarat-brand-deep);
  --bs-btn-active-border-color: var(--sayarat-brand-deep);
  --bs-btn-focus-shadow-rgb: var(--sayarat-brand-rgb);
  border-radius: 999px;
  font-size: 0.8125rem;
  padding-inline: 0.75rem;
  padding-block: 0.3rem;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sayarat-pill-btn:hover,
.sayarat-share-btn:hover {
  transform: translateY(-1px);
}

/* Intentionally no explicit `color` — the label inherits from the
   button so it tracks the same brand / white-on-hover state as the
   icon next to it. */
.sayarat-share-btn-label {
  font-weight: 500;
  min-width: 3.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sayarat-breadcrumb .current {
  color: var(--sayarat-ink);
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Condition / status pills — used on cards (overlay) and on detail page. */
.sayarat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  background: #fff;
  color: var(--sayarat-ink);
  box-shadow: var(--sayarat-shadow-sm);
  white-space: nowrap;
}

@media (min-width: 576px) {
  .sayarat-badge {
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
  }
}

/* Make/model pill — slightly wider, LTR-aware content may wrap on narrow
   cards so allow graceful text wrap while keeping the pill shape. */
.sayarat-badge--vehicle {
  background: rgba(var(--sayarat-brand-rgb), 0.06);
  color: var(--sayarat-brand-deep);
  border-color: rgba(var(--sayarat-brand-rgb), 0.15);
  white-space: normal;
  max-width: 100%;
  text-align: start;
}

.sayarat-badge--new {
  background: rgba(var(--sayarat-brand-rgb), 0.08);
  color: var(--sayarat-brand-deep);
  border-color: rgba(var(--sayarat-brand-rgb), 0.2);
}

.sayarat-badge--used {
  background: rgba(var(--sayarat-accent-rgb), 0.08);
  color: var(--sayarat-accent);
  border-color: rgba(var(--sayarat-accent-rgb), 0.22);
}

.sayarat-badge--muted {
  background: #f3f1ec;
  color: var(--sayarat-muted);
  border-color: #e7e2d6;
}

.sayarat-badge--year {
  background: #f3f1ec;
  color: #44403c;
  border-color: #e7e2d6;
  font-variant-numeric: tabular-nums;
}

.sayarat-badge--price {
  background: rgba(var(--sayarat-accent-rgb), 0.1);
  /* Darker than `--sayarat-accent` so bold ~13px text meets WCAG AA (4.5:1)
     on the tinted pill; global accent hue unchanged elsewhere. */
  color: #7c2d12;
  border-color: rgba(var(--sayarat-accent-rgb), 0.28);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sayarat-badge--price .currency {
  font-size: 0.7rem;
  font-weight: 500;
  /* `opacity: 0.8` softened the amber to ~3.6:1 on the tinted price-pill
     bg, failing AA. The smaller font-size + 500 weight already give the
     "USD" suffix enough hierarchy vs the price digits without diluting
     contrast — keep the colour at full strength. */
  margin-inline-start: 0.15rem;
}

/* When a listing has no set price we render "السعر عند الطلب" instead of
   a dollar amount. Keep it in the same pill family but dial back the
   font weight so it reads as informational rather than a numeric offer. */
.sayarat-badge--price-on-request {
  font-weight: 600;
  letter-spacing: 0;
}

/* Hero price block on the listing detail page. `price--on-request`
   downshifts the size a notch so the Arabic phrase fits comfortably
   where a short "$12,500" used to sit. */
.price--on-request {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sayarat-accent);
}

/* Meta pills used to show year / mileage / fuel under card titles. */
.sayarat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--sayarat-muted);
}

.sayarat-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sayarat-meta > span + span::before {
  content: "•";
  color: #c7c2b7;
  padding-inline-end: 0.35rem;
}

/* Listing card: crisper elevation + badge overlay + image aspect ratio. */
a.sayarat-listing-card {
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
  position: relative;
}

a.sayarat-listing-card:hover {
  box-shadow: var(--sayarat-shadow-brand) !important;
  transform: translateY(-3px);
  border-color: rgba(var(--sayarat-brand-rgb), 0.14);
}

a.sayarat-listing-card:focus-visible {
  outline: none;
  border-color: rgba(var(--sayarat-brand-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--sayarat-brand-rgb), 0.2) !important;
}

.sayarat-listing-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--sayarat-line);
  border-top-left-radius: var(--bs-border-radius-lg);
  border-top-right-radius: var(--bs-border-radius-lg);
}

.sayarat-listing-thumb-wrap .sayarat-listing-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

a.sayarat-listing-card:hover .sayarat-listing-thumb-wrap .sayarat-listing-thumb {
  transform: scale(1.03);
}

.sayarat-listing-thumb-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* `#8b8680` on the patterned warm bg landed at ~3.4:1 (fails AA).
     `--sayarat-muted-strong` clears 7:1 on the same surface and matches
     the darker copy used for the empty results card. */
  color: var(--sayarat-muted-strong);
  font-weight: 500;
  font-size: 0.875rem;
  background: repeating-linear-gradient(
    135deg,
    #eeeae0,
    #eeeae0 10px,
    #f5f1e6 10px,
    #f5f1e6 20px
  );
}

.sayarat-listing-badges {
  position: absolute;
  top: 0.625rem;
  inset-inline-start: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

/* Overlay badges sit on top of the photo, so the translucent tinted
   backgrounds used on white surfaces lose contrast. Force an opaque
   surface here while keeping the tinted text/border for color coding. */
.sayarat-listing-badges .sayarat-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sayarat-listing-badges .sayarat-badge--new {
  color: var(--sayarat-brand-deep);
  border-color: rgba(var(--sayarat-brand-rgb), 0.35);
}

.sayarat-listing-badges .sayarat-badge--used {
  color: var(--sayarat-accent);
  border-color: rgba(var(--sayarat-accent-rgb), 0.4);
}

.sayarat-listing-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem 1rem;
}

.sayarat-listing-title {
  font-weight: 700;
  color: var(--sayarat-ink);
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 576px) {
  .sayarat-listing-title {
    font-size: 1.15rem;
  }
}

/* Make + model: primary identifier — louder than the seller-written title. */
.sayarat-listing-vehicle {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sayarat-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Listing-detail hero subtitle: the make/model line (bilingual). */
.sayarat-listing-hero-vehicle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sayarat-ink);
  line-height: 1.35;
}

@media (min-width: 576px) {
  .sayarat-listing-hero-vehicle {
    font-size: 1.2rem;
  }
}

.sayarat-listing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--sayarat-accent);
  font-weight: 700;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.sayarat-listing-price .currency {
  font-size: 0.75rem;
  font-weight: 500;
  /* Was `#8b8680` (~3.5:1 on white, fails AA). `#6b6156` lands at 6:1
     and stays distinct from the louder accent-amber price digits next
     to it. */
  color: #6b6156;
}

/* Filters card: subtle accent strip on top, breathing room. */
.sayarat-filters {
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--sayarat-line);
}

.sayarat-filters::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 55%,
    var(--sayarat-accent-bright) 100%
  );
}

.sayarat-filters .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sayarat-muted);
  letter-spacing: 0.01em;
}

.sayarat-filters .form-control,
.sayarat-filters .form-select {
  border-color: #ece7db;
}

.sayarat-filters .form-control:focus,
.sayarat-filters .form-select:focus {
  border-color: rgba(var(--sayarat-brand-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--sayarat-brand-rgb), 0.18);
}

/* Collapsible filter panel (<details>/<summary>). The summary doubles as the
   "click to open" caption; the form body is revealed when details is open. */
.sayarat-filters-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  color: var(--sayarat-ink);
  transition: background-color 0.15s ease;
}

.sayarat-filters-trigger::-webkit-details-marker { display: none; }

.sayarat-filters-trigger:hover,
.sayarat-filters-trigger:focus-visible {
  background: rgba(var(--sayarat-brand-rgb), 0.04);
  outline: none;
}

.sayarat-filters-trigger .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sayarat-brand-rgb), 0.1);
  color: var(--sayarat-brand);
}

.sayarat-filters-trigger .ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sayarat-filters-trigger .text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--sayarat-muted);
}

.sayarat-filters-trigger .chev {
  flex-shrink: 0;
  color: #a59d91;
  transition: transform 0.2s ease;
}

.sayarat-filters[open] > .sayarat-filters-trigger .chev {
  transform: rotate(180deg);
}

.sayarat-filters[open] > form {
  border-top: 1px solid var(--sayarat-line);
}

/* Empty state card, used when there are no listings / no matches. */
.sayarat-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
  border: 1px dashed #e3ddcd;
  color: #6b6156;
}

.sayarat-empty .sayarat-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(var(--sayarat-brand-rgb), 0.08);
  color: var(--sayarat-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Listing detail: price / CTA hero card.
 *
 * Mobile-first structure (see `resources/views/tenant/listing_show.php`):
 *   .sayarat-listing-hero
 *     .sayarat-listing-hero__head         ← title + badges (scan target)
 *     .sayarat-listing-hero__byline       ← date chips (supportive)
 *     .sayarat-listing-hero__price-card   ← headline number (focal point)
 *
 * The card floats on the warm canvas with a soft violet→amber wash, then the
 * nested price card flips the contrast with an amber-tinted ring so the
 * headline number reads as "the answer" to the page.
 */
.sayarat-listing-hero {
  background: linear-gradient(
    135deg,
    rgba(var(--sayarat-brand-rgb), 0.07) 0%,
    rgba(var(--sayarat-accent-rgb), 0.05) 100%
  );
  border: 1px solid rgba(var(--sayarat-brand-rgb), 0.14);
  border-radius: var(--bs-border-radius-lg);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .sayarat-listing-hero {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
}

.sayarat-listing-hero__head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.sayarat-listing-hero__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--sayarat-ink);
  letter-spacing: -0.01em;
}

@media (min-width: 576px) {
  .sayarat-listing-hero__title {
    font-size: 1.6rem;
  }
}

@media (min-width: 768px) {
  .sayarat-listing-hero__title {
    font-size: 1.85rem;
  }
}

/* Compact, chip-shaped byline — each time gets its own outlined pill so
   date + updated-at feel like discrete metadata rather than a run-on
   sentence under the title. Icons stay 12–14px to tuck neatly inline. */
.sayarat-listing-hero__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.sayarat-listing-hero__byline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--sayarat-brand-rgb), 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  color: #4b5563;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.sayarat-listing-hero__byline-chip svg {
  color: rgba(var(--sayarat-brand-rgb), 0.7);
  flex: none;
}

/* Condition badge in the hero gets a leading dot so "جديد/مستعمل" has a
   stronger visual cue than the year/vehicle pills next to it. */
.sayarat-listing-hero .sayarat-badge--new,
.sayarat-listing-hero .sayarat-badge--used {
  gap: 0.45rem;
  font-weight: 700;
}

.sayarat-listing-hero .sayarat-badge--new::before,
.sayarat-listing-hero .sayarat-badge--used::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex: none;
}

/* Price card: the page's focal point. Amber ring + subtle inner
   shadow make the number feel "quoted" instead of just typeset. */
.sayarat-listing-hero__price-card {
  align-self: stretch;
  background: linear-gradient(
    180deg,
    #fff 0%,
    rgba(var(--sayarat-accent-rgb), 0.05) 100%
  );
  border: 1px solid rgba(var(--sayarat-accent-rgb), 0.22);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* Thin amber accent bar on the inline-start edge — subtle brand cue that
   ties the price card to the warmer side of the Sayarat palette. */
.sayarat-listing-hero__price-card::before {
  content: "";
  position: absolute;
  inset-block: 0.5rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--sayarat-accent-bright) 0%,
    var(--sayarat-accent) 100%
  );
}

.sayarat-listing-hero__price-card .price-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b6156;
  letter-spacing: 0.02em;
}

.sayarat-listing-hero__price-card .price {
  font-size: 1.75rem;
  font-weight: 800;
  /* Darker than the shared --sayarat-accent so this large number also
     meets WCAG AA on the tinted card background. */
  color: #92400e;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.sayarat-listing-hero__price-card .price-note {
  font-size: 0.75rem;
  color: #6b6156;
  margin-top: 0.15rem;
}

.sayarat-listing-hero__price-card .price--on-request {
  font-size: 1.2rem;
  color: var(--sayarat-brand-deep);
}

.sayarat-listing-hero__price-card .price-unit {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--sayarat-accent-rgb), 0.1);
  color: #7c2d12;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .sayarat-listing-hero__price-card {
    padding: 0.9rem 1.1rem;
  }
  .sayarat-listing-hero__price-card .price {
    font-size: 2.1rem;
  }
}

/* At desktop widths the head and price card sit side-by-side again, so
   the price card becomes a compact inline block rather than full-width. */
@media (min-width: 768px) {
  .sayarat-listing-hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .sayarat-listing-hero__head {
    flex: 1 1 auto;
  }
  .sayarat-listing-hero__price-card {
    flex: 0 0 auto;
    min-width: 13rem;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
    gap: 0.25rem;
  }
}

/* Quick facts strip — compact dashboard row between the hero and the
   gallery. Cells are separated by thin inline-dividers so the row reads
   like a single unified readout ("2026 · 40k km · بنزين · عادي") instead
   of four isolated pills. The whole strip is full-width on mobile so
   values don't fight for horizontal space. */
.sayarat-quick-facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--sayarat-line);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.15rem 0.25rem;
  overflow: hidden;
  box-shadow: var(--sayarat-shadow-sm);
}

.sayarat-quick-facts__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.55rem 0.4rem;
  text-align: center;
  min-width: 0;
  position: relative;
}

/* Hairline divider between cells. Uses a pseudo-element so removing a
   cell (e.g. for new cars with no mileage) doesn't leave a dangling
   border on the edge. The divider stops short of the cell top/bottom
   so it visually "floats" with the content rather than hitting the card
   border. RTL-aware via `inset-inline-start`. */
.sayarat-quick-facts__cell + .sayarat-quick-facts__cell::before {
  content: "";
  position: absolute;
  inset-block: 0.4rem;
  inset-inline-start: 0;
  width: 1px;
  background: var(--sayarat-line);
}

.sayarat-quick-facts__label {
  font-size: 0.65rem;
  color: #6b6156;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sayarat-quick-facts__value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sayarat-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .sayarat-quick-facts__cell {
    padding: 0.7rem 0.75rem;
    gap: 0.15rem;
  }
  .sayarat-quick-facts__label {
    font-size: 0.72rem;
  }
  .sayarat-quick-facts__value {
    font-size: 1rem;
  }
}

/* Sticky mini-header — condensed bar that slides over the main nav once
 * the listing hero scrolls out of view. z-index is set above Bootstrap's
 * `.sticky-top` (1020) so it visually replaces the navbar rather than
 * stacking under it. The slide uses transform (GPU-cheap) rather than
 * top/height transitions. The bar is mounted hidden at document load to
 * avoid a flash-of-unstyled-content if JS takes a moment to attach.
 */
.sayarat-listing-stickybar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--sayarat-line);
  box-shadow: 0 4px 16px rgba(var(--sayarat-ink-rgb), 0.06);
  transform: translateY(-100%);
  transition: transform 0.22s ease;
  visibility: hidden;
}

.sayarat-listing-stickybar.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.sayarat-listing-stickybar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.45rem;
}

.sayarat-listing-stickybar__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sayarat-listing-stickybar__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sayarat-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sayarat-listing-stickybar__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  font-variant-numeric: tabular-nums;
}

.sayarat-listing-stickybar__cta {
  flex: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.8rem;
}

@media (min-width: 576px) {
  .sayarat-listing-stickybar__inner {
    padding-block: 0.55rem;
    gap: 0.85rem;
  }
  .sayarat-listing-stickybar__title {
    font-size: 0.95rem;
  }
  .sayarat-listing-stickybar__price {
    font-size: 0.9rem;
  }
}

/* At desktop widths we shift the title / price onto one horizontal row
   so the bar reads like a compact toolbar. */
@media (min-width: 768px) {
  .sayarat-listing-stickybar__info {
    flex-direction: row;
    align-items: baseline;
    gap: 0.9rem;
  }
  .sayarat-listing-stickybar__price::before {
    content: "·";
    margin-inline-end: 0.6rem;
    color: var(--sayarat-line);
  }
}

/* When the bar is visible, reduce motion preference disables the slide
   so users who opted out don't see the transform animation. */
@media (prefers-reduced-motion: reduce) {
  .sayarat-listing-stickybar {
    transition: none;
  }
}

/* Spec tiles: icon (brand-tinted circle) + stacked label/value.
 *
 * The horizontal layout gives each row a predictable left anchor (RTL:
 * right anchor) so a shopper can scan the grid by icon instead of reading
 * every label. The icon tile uses the brand violet on a soft wash; the
 * text column keeps the same small→bold hierarchy as before. */
.sayarat-spec {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--sayarat-line);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.7rem 0.85rem;
  min-height: 68px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sayarat-spec:hover {
  border-color: rgba(var(--sayarat-brand-rgb), 0.22);
  box-shadow: var(--sayarat-shadow-sm);
  transform: translateY(-1px);
}

.sayarat-spec-icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(var(--sayarat-brand-rgb), 0.1) 0%,
    rgba(var(--sayarat-brand-rgb), 0.06) 100%
  );
  color: var(--sayarat-brand);
}

.sayarat-spec-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* Color swatch variant — shown instead of an SVG icon for exterior /
   interior colour rows. The fill colour is passed via the `--swatch`
   custom property from the view (e.g. `style="--swatch: #c62828"`).
   The inner hairline ring keeps white / beige / silver legible on the
   white spec-card background, and the soft outer shadow matches the
   icon-tile footprint so the grid reads as uniform. */
.sayarat-spec-swatch {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--swatch, #cbd5e1);
  box-shadow:
    inset 0 0 0 1px rgba(var(--sayarat-ink-rgb), 0.12),
    0 1px 2px rgba(var(--sayarat-ink-rgb), 0.08);
}

/* At wider widths we can afford a bigger, more presentational icon tile. */
@media (min-width: 576px) {
  .sayarat-spec-icon,
  .sayarat-spec-swatch {
    width: 2.25rem;
    height: 2.25rem;
  }
  .sayarat-spec-icon svg {
    width: 1.15rem;
    height: 1.15rem;
  }
}

/* Give the spec tile a touch less padding on very narrow mobile so the
   icon + 2-col grid doesn't squeeze long Arabic labels (e.g. رقم الهيكل). */
@media (max-width: 400px) {
  .sayarat-spec {
    padding: 0.6rem 0.65rem;
    gap: 0.55rem;
  }
  .sayarat-spec-label {
    font-size: 0.68rem;
  }
  .sayarat-spec-value {
    font-size: 0.88rem;
  }
}

.sayarat-spec-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.sayarat-spec-label {
  font-size: 0.72rem;
  /* `#8b8680` was ~3.5:1 on white — fails AA for normal text and reads
     ghostly at 0.72rem. `#6b6156` (matches `.sayarat-empty`) clears 6:1
     and the bumped weight 600 keeps the glyphs crisp at this small size. */
  color: #6b6156;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.sayarat-spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sayarat-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sayarat-spec-value[dir="ltr"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Sticky bottom CTA bar on mobile for phone/WhatsApp (listing detail). */
.sayarat-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1030;
  padding: 0.65rem 0.75rem calc(env(safe-area-inset-bottom, 0) + 0.65rem);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--sayarat-line);
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: 0 -4px 16px rgba(var(--sayarat-ink-rgb), 0.08);
  display: flex;
  gap: 0.5rem;
}

.sayarat-cta-bar .btn {
  flex: 1 1 0;
  font-weight: 600;
}

/* Keep the sticky bar out of the way on desktop. */
@media (min-width: 768px) {
  .sayarat-cta-bar {
    display: none;
  }
}

/* Leave padding below <main> so the CTA bar doesn't overlap footer/content on mobile. */
body.has-sticky-cta main {
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  body.has-sticky-cta main {
    padding-bottom: 1.5rem;
  }
}

/* Contact page: icon hero tiles. */
.sayarat-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sayarat-brand-rgb), 0.08);
  color: var(--sayarat-brand);
  flex-shrink: 0;
}

.sayarat-contact-icon--accent {
  background: rgba(var(--sayarat-accent-rgb), 0.1);
  color: var(--sayarat-accent);
}

.sayarat-contact-card {
  border: 1px solid var(--sayarat-line);
  border-radius: var(--bs-border-radius-lg);
  background: #fff;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sayarat-contact-card:hover {
  border-color: rgba(var(--sayarat-brand-rgb), 0.18);
  box-shadow: var(--sayarat-shadow-sm);
}

/* ===========================================================================
 * Tenant public footer — columns layout with iconographic contact details.
 * Shared shell between all dealer pages; hosts phone/WhatsApp/social buttons.
 * =========================================================================*/
.sayarat-footer {
  margin-top: 2rem;
  background: #ffffff;
  border-top: 1px solid var(--sayarat-line);
  color: var(--sayarat-ink);
  position: relative;
}

.sayarat-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-brand-bright) 45%,
    var(--sayarat-accent-bright) 100%
  );
  pointer-events: none;
}

.sayarat-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2rem 0 1.25rem;
}

@media (min-width: 576px) {
  .sayarat-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .sayarat-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.sayarat-footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sayarat-ink);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sayarat-footer-heading::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.95em;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--sayarat-brand) 0%,
    var(--sayarat-accent-bright) 100%
  );
}

.sayarat-footer-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sayarat-ink);
  letter-spacing: -0.01em;
}

.sayarat-footer-tagline {
  font-size: 0.875rem;
  color: var(--sayarat-muted);
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.sayarat-footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #45403a;
}

.sayarat-footer-info-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.sayarat-footer-info-list .ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sayarat-brand-rgb), 0.07);
  color: var(--sayarat-brand);
}

.sayarat-footer-info-list .ico--accent {
  background: rgba(var(--sayarat-accent-rgb), 0.1);
  color: var(--sayarat-accent);
}

.sayarat-footer-info-list .content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0.2rem;
}

/* Action row — phone / WhatsApp with text + icon. */
/* Circular social icon button grid (Facebook, Instagram, TikTok, ...). */
.sayarat-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sayarat-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--sayarat-ink);
  border: 1px solid var(--sayarat-line);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.sayarat-social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sayarat-social-btn:hover,
.sayarat-social-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--sayarat-shadow-sm);
  border-color: currentColor;
}

.sayarat-social-btn--facebook:hover,
.sayarat-social-btn--facebook:focus-visible { color: #1877f2; }
.sayarat-social-btn--instagram:hover,
.sayarat-social-btn--instagram:focus-visible { color: #e1306c; }
.sayarat-social-btn--tiktok:hover,
.sayarat-social-btn--tiktok:focus-visible { color: #010101; }

/* Row-list pattern (contact page) — each list item is a full-width clickable
   row that shows a platform/channel name + readable handle and opens the
   corresponding destination. Used for both direct contact (phone/WhatsApp)
   and social profiles. */
.sayarat-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sayarat-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid var(--sayarat-line);
  background: #fff;
  color: var(--sayarat-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.sayarat-contact-row:hover,
.sayarat-contact-row:focus-visible {
  outline: none;
  border-color: currentColor;
  box-shadow: var(--sayarat-shadow-sm);
  transform: translateY(-1px);
}

.sayarat-contact-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sayarat-brand-rgb), 0.08);
  color: var(--sayarat-brand);
  transition: background 0.15s ease, color 0.15s ease;
}

.sayarat-contact-row .ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sayarat-contact-row .info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--sayarat-ink);
  line-height: 1.3;
}

.sayarat-contact-row .label {
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sayarat-contact-row .value {
  font-size: 0.9rem;
  color: #6b6156;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sayarat-contact-row .chev {
  color: #a59d91;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

/* RTL: the chevron should visually point toward inline-end ("go forward"),
   which under dir=rtl means to the left. Flip horizontally. */
[dir="rtl"] .sayarat-contact-row .chev svg {
  transform: scaleX(-1);
}

.sayarat-contact-row:hover .chev,
.sayarat-contact-row:focus-visible .chev {
  color: currentColor;
  transform: translateX(-2px);
}

[dir="rtl"] .sayarat-contact-row:hover .chev,
[dir="rtl"] .sayarat-contact-row:focus-visible .chev {
  transform: translateX(2px);
}

/* Per-channel tinting: the row adopts the brand color on hover/focus, and
   the icon tile recolors to a matching soft tint. */
.sayarat-contact-row--phone .ico {
  background: rgba(var(--sayarat-brand-rgb), 0.1);
  color: var(--sayarat-brand);
}
.sayarat-contact-row--phone:hover,
.sayarat-contact-row--phone:focus-visible { color: var(--sayarat-brand-deep); }
.sayarat-contact-row--phone:hover .ico,
.sayarat-contact-row--phone:focus-visible .ico {
  background: rgba(var(--sayarat-brand-rgb), 0.18);
  color: var(--sayarat-brand-deep);
}

.sayarat-contact-row--whatsapp:hover,
.sayarat-contact-row--whatsapp:focus-visible { color: #128c7e; }
.sayarat-contact-row--whatsapp:hover .ico,
.sayarat-contact-row--whatsapp:focus-visible .ico {
  background: rgba(18, 140, 126, 0.16);
  color: #128c7e;
}

.sayarat-contact-row--facebook:hover,
.sayarat-contact-row--facebook:focus-visible { color: #1877f2; }
.sayarat-contact-row--facebook:hover .ico,
.sayarat-contact-row--facebook:focus-visible .ico {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}

.sayarat-contact-row--instagram:hover,
.sayarat-contact-row--instagram:focus-visible { color: #c13584; }
.sayarat-contact-row--instagram:hover .ico,
.sayarat-contact-row--instagram:focus-visible .ico {
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.16), rgba(193, 53, 132, 0.16));
  color: #c13584;
}

.sayarat-contact-row--tiktok:hover,
.sayarat-contact-row--tiktok:focus-visible { color: #010101; }
.sayarat-contact-row--tiktok:hover .ico,
.sayarat-contact-row--tiktok:focus-visible .ico {
  background: rgba(0, 0, 0, 0.08);
  color: #010101;
}

/* Bottom bar: copyright / pricing note / tiny admin link. */
.sayarat-footer-bar {
  border-top: 1px solid var(--sayarat-line);
  padding: 0.9rem 0 1.25rem;
  font-size: 0.78rem;
  color: #6b6156;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.sayarat-footer-bar a {
  color: inherit;
  text-decoration: none;
}

.sayarat-footer-bar a:hover {
  color: var(--sayarat-brand);
}

/* ===========================================================================
 * Apex /services page — service catalog cards, bullet lists, and the
 * checkbox-pill row inside the inquiry form. Reuses sayarat-apex-section /
 * sayarat-apex-join-* shells; these rules add only the bits that section
 * doesn't already cover.
 * =========================================================================*/
.sayarat-services-section + .sayarat-services-section {
  padding-top: 1rem;
}

.sayarat-services-panel {
  background: #ffffff;
  border: 1px solid var(--sayarat-line);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: var(--sayarat-shadow-sm);
}

@media (min-width: 768px) {
  .sayarat-services-panel {
    padding: 1.75rem 1.5rem;
  }
}

.sayarat-services-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sayarat-accent);
  margin: 0;
}

.sayarat-services-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

@media (min-width: 576px) {
  .sayarat-services-bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sayarat-services-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--sayarat-muted-strong);
}

.sayarat-services-bullet-mark {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(var(--sayarat-brand-rgb), 0.1);
  color: var(--sayarat-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.sayarat-services-foot {
  border-top: 1px dashed var(--sayarat-line);
  padding-top: 0.75rem;
}

.sayarat-services-actions .btn {
  border-radius: 999px;
}

.sayarat-services-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* Pill-shaped checkboxes for the "الخدمات المطلوبة" group inside the form. */
.sayarat-services-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--sayarat-line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sayarat-services-check:hover {
  border-color: rgba(var(--sayarat-brand-rgb), 0.45);
}

.sayarat-services-check .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

.sayarat-services-check:has(.form-check-input:checked) {
  border-color: var(--sayarat-brand);
  background: rgba(var(--sayarat-brand-rgb), 0.06);
  box-shadow: 0 0 0 1px rgba(var(--sayarat-brand-rgb), 0.18);
}

.sayarat-services-check:focus-within {
  outline: 2px solid var(--bs-focus-ring-color);
  outline-offset: 2px;
}

/* ===========================================================================
 * Tenant home / inventory page: header, toolbar, filter chips, restructured
 * listing cards, pagination, and the floating filter button. Rendered from
 * `resources/views/tenant/home.php` — every SEO-relevant anchor (paginated
 * page links, filter-removal URLs) is kept in the DOM on every viewport;
 * CSS here only controls visual density per breakpoint.
 * =========================================================================*/

/* Page header: H1 + optional lead. Tightened typography on mobile to free
   up first-screen real estate, but the copy itself stays in the DOM so
   Google + screen readers still see the dealer-specific headline/lead. */
.sayarat-inventory-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.25rem;
}

.sayarat-inventory-header__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sayarat-ink);
  letter-spacing: -0.01em;
}

.sayarat-inventory-header__lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(var(--sayarat-ink-rgb), 0.72);
}

@media (min-width: 576px) {
  .sayarat-inventory-header__title {
    font-size: 1.6rem;
  }
  .sayarat-inventory-header__lead {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .sayarat-inventory-header {
    gap: 0.5rem;
  }
  .sayarat-inventory-header__title {
    font-size: 1.9rem;
  }
  .sayarat-inventory-header__lead {
    font-size: 1rem;
  }
}

/* Filter trigger count badge: small round pill showing how many inventory
   filters are currently active, inside the collapsed summary. Uses the
   brand violet so it reads as a "status" rather than a "count". */
.sayarat-filters-trigger__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--sayarat-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex: none;
}

/* Disabled model select: visually softer + no pointer. The inline
   placeholder text ("اختر الماركة أولاً") does the heavy lifting; this
   just makes sure the user reads it as disabled at a glance. */
.sayarat-select-disabled {
  background-color: #f8f6f0;
  cursor: not-allowed;
  color: rgba(var(--sayarat-ink-rgb), 0.55);
}

/* Inventory toolbar: total count on the start, sort form on the end.
   Wraps on very narrow widths so the sort drops onto its own row rather
   than squeezing the count to ellipsis. */
.sayarat-inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.85rem;
}

.sayarat-inventory-toolbar__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.sayarat-inventory-toolbar__count-number {
  font-weight: 800;
  color: var(--sayarat-ink);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.sayarat-inventory-toolbar__count-label {
  color: var(--sayarat-muted-strong);
  font-weight: 500;
}

.sayarat-inventory-toolbar__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--sayarat-line);
  border-radius: 999px;
  padding: 0.18rem 0.5rem 0.18rem 0.9rem;
  box-shadow: var(--sayarat-shadow-sm);
}

.sayarat-inventory-toolbar__sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sayarat-muted-strong);
  margin: 0;
  padding-inline-end: 0.1rem;
  border-inline-end: 1px solid var(--sayarat-line);
  padding-inline-end: 0.55rem;
}

.sayarat-inventory-toolbar__sort-label svg {
  color: var(--sayarat-brand);
  flex: none;
}

/* Strip the native select chrome down to just the value text inside the
   pill — no double-border, no extra background. The caret arrow stays
   because we want a visual hint that the pill is tappable. */
.sayarat-inventory-toolbar__sort-select {
  border: 0;
  background-color: transparent;
  padding: 0.15rem 1.8rem 0.15rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sayarat-ink);
  box-shadow: none !important;
  min-width: 9rem;
  cursor: pointer;
}

.sayarat-inventory-toolbar__sort-select:focus {
  outline: 2px solid var(--bs-focus-ring-color);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Density toggle (mobile-only): segmented pill with two icon buttons.
 * The active state uses the brand violet so it reads as "currently
 * applied" rather than "selectable". Hidden at `≥ sm` because the grid
 * already switches to 2/3 columns there and the toggle would be a no-op.
 */
.sayarat-inventory-density {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--sayarat-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--sayarat-shadow-sm);
  flex: none;
}

.sayarat-inventory-density__btn {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--sayarat-muted-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.sayarat-inventory-density__btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sayarat-inventory-density__btn:hover,
.sayarat-inventory-density__btn:focus-visible {
  background: rgba(var(--sayarat-brand-rgb), 0.06);
  color: var(--sayarat-brand-deep);
  outline: none;
}

.sayarat-inventory-density__btn.is-active {
  background: var(--sayarat-brand);
  color: #fff;
}

.sayarat-inventory-density__btn.is-active:hover,
.sayarat-inventory-density__btn.is-active:focus-visible {
  background: var(--sayarat-brand-deep);
  color: #fff;
}

@media (min-width: 576px) {
  .sayarat-inventory-density {
    display: none;
  }
}

/* Compact density: on mobile only, override Bootstrap's `row-cols-1` so
 * two cards sit side-by-side, and tighten card typography + padding so
 * the denser grid still reads comfortably at ~180px card widths.
 *
 * We don't touch the `≥ sm` layout — at 576px+ the grid already runs at
 * 2 cols (or 3 at `lg`), and the toggle itself is hidden above 575.98px,
 * so compact mode effectively only has any effect on mobile. */
@media (max-width: 575.98px) {
  [data-density="compact"] .sayarat-listing-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  [data-density="compact"] .sayarat-listing-grid > .col {
    flex: 0 0 auto;
    width: 50%;
  }
  [data-density="compact"] .sayarat-listing-card-body {
    padding: 0.65rem 0.75rem 0.8rem;
    gap: 0.3rem;
  }
  [data-density="compact"] .sayarat-listing-title {
    font-size: 0.92rem;
    line-height: 1.3;
  }
  [data-density="compact"] .sayarat-listing-vehicle-line {
    font-size: 0.75rem;
  }
  [data-density="compact"] .sayarat-listing-price-row {
    gap: 0.25rem 0.5rem;
    padding-top: 0.45rem;
  }
  [data-density="compact"] .sayarat-listing-price-row__amount {
    font-size: 1rem;
  }
  [data-density="compact"] .sayarat-listing-price-row__amount--on-request {
    font-size: 0.85rem;
  }
  [data-density="compact"] .sayarat-listing-price-row__currency {
    font-size: 0.62rem;
    padding: 0.08rem 0.35rem;
  }
  [data-density="compact"] .sayarat-listing-price-row__meta {
    /* At half-width we can't afford the `margin-inline-start: auto`
       push — let the meta wrap naturally under the price instead, so
       neither gets ellipsized on narrow devices. */
    font-size: 0.7rem;
    margin-inline-start: 0;
  }
  [data-density="compact"] .sayarat-listing-badges {
    top: 0.45rem;
    inset-inline-start: 0.45rem;
  }
  [data-density="compact"] .sayarat-listing-badges--end {
    inset-inline-start: auto;
    inset-inline-end: 0.45rem;
  }
  [data-density="compact"] .sayarat-listing-badges .sayarat-badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }
}

/* Active filter chips: one tap per filter to remove. Rendered as plain
   anchors (real navigation links for crawlers + keyboard users); the ×
   is decorative. The "مسح الكل" button stands out via border-only
   styling so it doesn't get tapped by mistake. */
.sayarat-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  padding: 0.5rem 0;
  border-block: 1px solid var(--sayarat-line);
  border-block-color: transparent;
  margin-top: -0.2rem;
}

.sayarat-filter-chips__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sayarat-muted-strong);
  margin-inline-end: 0.1rem;
}

.sayarat-filter-chips__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(var(--sayarat-brand-rgb), 0.08);
  color: var(--sayarat-brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(var(--sayarat-brand-rgb), 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sayarat-filter-chips__chip:hover,
.sayarat-filter-chips__chip:focus-visible {
  background: rgba(var(--sayarat-brand-rgb), 0.14);
  border-color: rgba(var(--sayarat-brand-rgb), 0.32);
  color: var(--sayarat-brand-deep);
  outline: none;
  transform: translateY(-1px);
}

.sayarat-filter-chips__chip-label {
  line-height: 1.2;
}

.sayarat-filter-chips__chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(var(--sayarat-brand-rgb), 0.15);
  color: var(--sayarat-brand-deep);
  transition: background 0.15s ease;
}

.sayarat-filter-chips__chip:hover .sayarat-filter-chips__chip-x,
.sayarat-filter-chips__chip:focus-visible .sayarat-filter-chips__chip-x {
  background: rgba(var(--sayarat-brand-rgb), 0.25);
}

.sayarat-filter-chips__clear {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  margin-inline-start: auto;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sayarat-accent);
  text-decoration: none;
  border: 1px dashed rgba(var(--sayarat-accent-rgb), 0.4);
  background: transparent;
}

.sayarat-filter-chips__clear:hover,
.sayarat-filter-chips__clear:focus-visible {
  background: rgba(var(--sayarat-accent-rgb), 0.08);
  border-style: solid;
  color: var(--sayarat-accent);
  outline: none;
}

/* Suggestions block reuses chip styling — so the empty state feels
   consistent with the chip row at the top. */
.sayarat-empty__suggestions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.25rem;
}

/* Listing card: restructured body anchors on price. Vehicle line is
   demoted from a pill to a thin subtitle under the title, and the
   price gets its own row with optional mileage pill alongside. The
   thumb now carries a second badge row (year) on the end corner so
   condition+year are both visible on the photo without the body
   competing for that information.*/
.sayarat-listing-badges--end {
  inset-inline-start: auto;
  inset-inline-end: 0.625rem;
}

.sayarat-listing-badges--end .sayarat-badge--year {
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.95);
  color: #44403c;
  border-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sayarat-listing-vehicle-line {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sayarat-muted-strong);
  line-height: 1.3;
}

.sayarat-listing-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-top: 0.15rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--sayarat-line);
}

.sayarat-listing-price-row__amount {
  font-size: 1.35rem;
  font-weight: 800;
  /* Darker than `--sayarat-accent` so the price meets WCAG AA at this
     size on the warm card background. */
  color: #92400e;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.sayarat-listing-price-row__amount--on-request {
  font-size: 1.05rem;
  color: var(--sayarat-brand-deep);
  letter-spacing: normal;
}

.sayarat-listing-price-row__currency {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c2d12;
  background: rgba(var(--sayarat-accent-rgb), 0.1);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.sayarat-listing-price-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sayarat-muted-strong);
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
}

.sayarat-listing-price-row__meta svg {
  color: var(--sayarat-brand);
  flex: none;
}

@media (min-width: 576px) {
  .sayarat-listing-price-row__amount {
    font-size: 1.45rem;
  }
}

/* Pagination: mobile shows the compact row (prev · "X / Y" · next);
   desktop shows the numeric list. Every page link is always rendered
   in the DOM — `display: none` doesn't hide links from Google, but we
   also have <link rel="prev"/"next"> in the document head so
   crawlability is belt-and-braces. */
.sayarat-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.sayarat-pagination__compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 22rem;
}

.sayarat-pagination__step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sayarat-line);
  color: var(--sayarat-brand);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sayarat-shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sayarat-pagination__step:hover,
.sayarat-pagination__step:focus-visible {
  background: rgba(var(--sayarat-brand-rgb), 0.06);
  border-color: rgba(var(--sayarat-brand-rgb), 0.32);
  outline: none;
  transform: translateY(-1px);
}

.sayarat-pagination__step.is-disabled {
  color: #a59d91;
  background: #f6f3ec;
  box-shadow: none;
  cursor: not-allowed;
}

.sayarat-pagination__indicator {
  flex: 1 1 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sayarat-muted-strong);
  font-variant-numeric: tabular-nums;
}

.sayarat-pagination__indicator .sep {
  margin-inline: 0.2rem;
  color: #a59d91;
  font-weight: 500;
}

.sayarat-pagination__indicator-current,
.sayarat-pagination__indicator-total {
  color: var(--sayarat-ink);
}

.sayarat-pagination__numbers {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.sayarat-pagination__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--sayarat-line);
  color: var(--sayarat-ink);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.sayarat-pagination__number:hover,
.sayarat-pagination__number:focus-visible {
  border-color: rgba(var(--sayarat-brand-rgb), 0.32);
  background: rgba(var(--sayarat-brand-rgb), 0.06);
  outline: none;
}

.sayarat-pagination__number.is-current {
  background: var(--sayarat-brand);
  border-color: var(--sayarat-brand);
  color: #fff;
  cursor: default;
}

@media (min-width: 576px) {
  .sayarat-pagination__numbers {
    display: flex;
  }
  /* Desktop keeps the numeric list; hide the mobile indicator so there
     is a single visible control row. Prev/Next stay around because
     they're still useful on long lists. */
  .sayarat-pagination__compact .sayarat-pagination__indicator {
    display: none;
  }
}

/* Floating filter button — slides up from the bottom-end corner once
   the filters panel is above the viewport. Sized for a comfortable
   tap target (44×44 min per WCAG) and carries an optional count
   badge that mirrors the one inside the filters panel. */
.sayarat-filters-fab {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: calc(env(safe-area-inset-bottom, 0) + 1rem);
  z-index: 1029;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--sayarat-brand);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(var(--sayarat-brand-rgb), 0.3);
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sayarat-filters-fab[hidden] {
  display: none !important;
}

.sayarat-filters-fab.is-visible {
  display: inline-flex;
  transform: translateY(0);
}

.sayarat-filters-fab:hover,
.sayarat-filters-fab:focus-visible {
  box-shadow: 0 14px 28px rgba(var(--sayarat-brand-rgb), 0.38);
  outline: none;
}

.sayarat-filters-fab__label {
  line-height: 1;
}

.sayarat-filters-fab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--sayarat-brand);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Hide the FAB from desktop — the panel is expanded by default there
   and re-reachable via the navbar. Keep it mobile-only to avoid fighting
   with the sidebar / header affordances we already have. */
@media (min-width: 992px) {
  .sayarat-filters-fab,
  .sayarat-filters-fab.is-visible {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sayarat-filters-fab {
    transition: none;
  }
}

/* ==========================================================================
   Tenant admin — dashboard + listing form polish
   --------------------------------------------------------------------------
   Used by:
   - resources/views/tenant/admin/dashboard.php
   - resources/views/tenant/admin/listing_form.php
   - resources/views/tenant/admin/listings_index.php (status badge styles
     are shared)
   Design system: reuses --sayarat-brand / --sayarat-accent tokens from
   :root so every tenant's custom primary color flows through automatically.
   ========================================================================== */

/* ------- Dashboard greeting strip ------- */
.sayarat-admin-greeting {
  position: relative;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(var(--sayarat-brand-rgb), 0.08) 0%,
      rgba(var(--sayarat-accent-rgb), 0.06) 100%
    ),
    #fff;
  border: 1px solid rgba(var(--sayarat-brand-rgb), 0.12);
  box-shadow: var(--sayarat-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.sayarat-admin-greeting__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.sayarat-admin-greeting__logo {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--sayarat-ink-rgb), 0.1);
}

.sayarat-admin-greeting__text {
  flex: 1 1 14rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sayarat-admin-greeting__eyebrow {
  font-size: 0.78rem;
  color: rgba(var(--sayarat-ink-rgb), 0.65);
  font-weight: 500;
}

.sayarat-admin-greeting__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(var(--sayarat-ink-rgb), 0.95);
  line-height: 1.2;
}

.sayarat-admin-greeting__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sayarat-brand);
  text-decoration: none;
  word-break: break-all;
}

.sayarat-admin-greeting__link:hover,
.sayarat-admin-greeting__link:focus-visible {
  text-decoration: underline;
}

.sayarat-admin-greeting__view {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--sayarat-brand);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(var(--sayarat-brand-rgb), 0.25);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sayarat-admin-greeting__view:hover,
.sayarat-admin-greeting__view:focus-visible {
  background: var(--sayarat-brand);
  color: #fff;
  border-color: var(--sayarat-brand);
}

@media (max-width: 575.98px) {
  .sayarat-admin-greeting {
    padding: 1rem;
  }
  .sayarat-admin-greeting__name {
    font-size: 1.1rem;
  }
  .sayarat-admin-greeting__view {
    width: 100%;
    justify-content: center;
  }
}

/* ------- Stat cards ------- */
.sayarat-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .sayarat-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.sayarat-stat-card {
  position: relative;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  box-shadow: var(--sayarat-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 5.25rem;
}

.sayarat-stat-card--accent {
  border-color: rgba(var(--sayarat-brand-rgb), 0.2);
  background:
    linear-gradient(
      180deg,
      rgba(var(--sayarat-brand-rgb), 0.05) 0%,
      #fff 60%
    );
}

.sayarat-stat-card--accent::before {
  content: '';
  position: absolute;
  inset-block: 0.75rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--sayarat-brand);
}

.sayarat-stat-card__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(var(--sayarat-ink-rgb), 0.65);
}

.sayarat-stat-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  color: rgba(var(--sayarat-ink-rgb), 0.95);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sayarat-stat-card__hint {
  font-size: 0.72rem;
  color: rgba(var(--sayarat-ink-rgb), 0.55);
}

/* ------- Quick actions (primary) ------- */
.sayarat-quickactions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .sayarat-quickactions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.sayarat-quickaction {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.1);
  text-decoration: none;
  color: rgba(var(--sayarat-ink-rgb), 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 5.5rem;
}

.sayarat-quickaction:hover,
.sayarat-quickaction:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(var(--sayarat-ink-rgb), 0.08);
  border-color: rgba(var(--sayarat-brand-rgb), 0.35);
  outline: none;
}

.sayarat-quickaction__icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(var(--sayarat-brand-rgb), 0.1);
  color: var(--sayarat-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sayarat-quickaction__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sayarat-quickaction__title {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(var(--sayarat-ink-rgb), 0.95);
}

.sayarat-quickaction__hint {
  font-size: 0.8rem;
  color: rgba(var(--sayarat-ink-rgb), 0.6);
  line-height: 1.35;
}

.sayarat-quickaction--primary {
  /* Solid-color fallback for browsers that reject `color-mix()` — the
     gradient below is treated as a single invalid declaration and is
     ignored in that case. */
  background: var(--sayarat-brand);
  background: linear-gradient(
    135deg,
    var(--sayarat-brand) 0%,
    color-mix(in srgb, var(--sayarat-brand) 82%, #000 18%) 100%
  );
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--sayarat-brand-rgb), 0.28);
}

.sayarat-quickaction--primary:hover,
.sayarat-quickaction--primary:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(var(--sayarat-brand-rgb), 0.36);
}

.sayarat-quickaction--primary .sayarat-quickaction__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sayarat-quickaction--primary .sayarat-quickaction__title {
  color: #fff;
}

.sayarat-quickaction--primary .sayarat-quickaction__hint {
  color: rgba(255, 255, 255, 0.85);
}

/* ------- Section heading (dashboard + settings block) ------- */
.sayarat-admin-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-inline-start: 0.65rem;
  border-inline-start: 3px solid var(--sayarat-accent);
}

.sayarat-admin-section-head__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(var(--sayarat-ink-rgb), 0.9);
}

.sayarat-admin-section-head__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sayarat-brand);
  text-decoration: none;
}

.sayarat-admin-section-head__link:hover,
.sayarat-admin-section-head__link:focus-visible {
  text-decoration: underline;
}

/* ------- Recent cars grid ------- */
.sayarat-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .sayarat-recent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.sayarat-recent-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sayarat-recent-card:hover,
.sayarat-recent-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(var(--sayarat-ink-rgb), 0.08);
  border-color: rgba(var(--sayarat-brand-rgb), 0.25);
  color: inherit;
  outline: none;
}

.sayarat-recent-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(var(--sayarat-ink-rgb), 0.04);
  overflow: hidden;
}

.sayarat-recent-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sayarat-recent-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--sayarat-ink-rgb), 0.35);
}

.sayarat-recent-card__status {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.sayarat-recent-card__body {
  padding: 0.6rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sayarat-recent-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(var(--sayarat-ink-rgb), 0.9);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sayarat-recent-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.sayarat-recent-card__price {
  font-weight: 700;
  color: var(--sayarat-accent);
  font-variant-numeric: tabular-nums;
}

.sayarat-recent-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: rgba(var(--sayarat-ink-rgb), 0.55);
  font-variant-numeric: tabular-nums;
}

/* ------- Settings cards grid ------- */
.sayarat-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

@media (min-width: 576px) {
  .sayarat-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .sayarat-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sayarat-settings-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sayarat-settings-card:hover,
.sayarat-settings-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--sayarat-ink-rgb), 0.06);
  border-color: rgba(var(--sayarat-brand-rgb), 0.25);
  color: inherit;
  outline: none;
}

.sayarat-settings-card__icon {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(var(--sayarat-accent-rgb), 0.1);
  color: var(--sayarat-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sayarat-settings-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sayarat-settings-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(var(--sayarat-ink-rgb), 0.9);
}

.sayarat-settings-card__hint {
  font-size: 0.75rem;
  color: rgba(var(--sayarat-ink-rgb), 0.55);
  line-height: 1.3;
}

/* ------- Services cross-sell card ------- */
.sayarat-admin-services-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(var(--sayarat-accent-rgb), 0.08) 0%,
      rgba(var(--sayarat-brand-rgb), 0.06) 100%
    ),
    #fff;
  border: 1px solid rgba(var(--sayarat-accent-rgb), 0.18);
  flex-wrap: wrap;
}

.sayarat-admin-services-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 18rem;
}

.sayarat-admin-services-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sayarat-accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sayarat-admin-services-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(var(--sayarat-ink-rgb), 0.9);
}

.sayarat-admin-services-card__desc {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(var(--sayarat-ink-rgb), 0.65);
  line-height: 1.4;
}

.sayarat-admin-services-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--sayarat-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  flex: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.sayarat-admin-services-card__cta:hover,
.sayarat-admin-services-card__cta:focus-visible {
  background: var(--sayarat-accent-bright);
  color: #fff;
  box-shadow: 0 6px 14px rgba(var(--sayarat-accent-rgb), 0.35);
}

/* ==========================================================================
   Listing form — section cards, status select, edit context, sticky save
   ========================================================================== */

.sayarat-admin-edit-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  box-shadow: var(--sayarat-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.sayarat-admin-edit-context__thumb {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(var(--sayarat-ink-rgb), 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sayarat-admin-edit-context__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sayarat-admin-edit-context__thumb--empty {
  color: rgba(var(--sayarat-ink-rgb), 0.4);
}

.sayarat-admin-edit-context__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sayarat-admin-edit-context__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(var(--sayarat-ink-rgb), 0.92);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sayarat-admin-edit-context__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(var(--sayarat-ink-rgb), 0.6);
}

.sayarat-admin-edit-context__views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.sayarat-admin-edit-context__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--sayarat-brand);
  font-weight: 600;
  text-decoration: none;
}

.sayarat-admin-edit-context__link:hover,
.sayarat-admin-edit-context__link:focus-visible {
  text-decoration: underline;
}

/* Form sections */
.sayarat-form-section {
  display: block;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  box-shadow: var(--sayarat-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.sayarat-form-section__head {
  padding-inline-start: 0.6rem;
  border-inline-start: 3px solid var(--sayarat-brand);
  margin-bottom: 0.85rem;
}

.sayarat-form-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(var(--sayarat-ink-rgb), 0.92);
}

.sayarat-form-section__sub {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: rgba(var(--sayarat-ink-rgb), 0.6);
  line-height: 1.4;
}

.sayarat-form-section--publish {
  border-color: rgba(var(--sayarat-brand-rgb), 0.22);
  background:
    linear-gradient(
      180deg,
      rgba(var(--sayarat-brand-rgb), 0.04) 0%,
      #fff 60%
    );
}

.sayarat-form-section--publish .sayarat-form-section__head {
  border-inline-start-color: var(--sayarat-accent);
}

/* Collapsible (<details>) variants. The summary line-block is laid out
   as the section head with a chevron that rotates on open. */
details.sayarat-form-section--collapsible {
  padding: 0;
  overflow: hidden;
}

.sayarat-form-section__head--summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-inline-start: 3px solid rgba(var(--sayarat-ink-rgb), 0.25);
}

.sayarat-form-section__head--summary::-webkit-details-marker {
  display: none;
}

details.sayarat-form-section--collapsible[open] .sayarat-form-section__head--summary {
  border-inline-start-color: var(--sayarat-brand);
  border-block-end: 1px solid rgba(var(--sayarat-ink-rgb), 0.06);
}

details.sayarat-form-section--collapsible .sayarat-form-section__body {
  padding: 1rem 1.1rem 1.15rem;
}

.sayarat-form-section__toggle {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--sayarat-ink-rgb), 0.55);
  background: rgba(var(--sayarat-ink-rgb), 0.04);
  transition: transform 0.2s ease, background 0.15s ease;
}

details.sayarat-form-section--collapsible[open] .sayarat-form-section__toggle {
  transform: rotate(180deg);
  background: rgba(var(--sayarat-brand-rgb), 0.1);
  color: var(--sayarat-brand);
}

/* Status select — colored pill-style tint per state so the current
   publish state is obvious at a glance, even before interacting. */
.sayarat-status-select {
  font-weight: 600;
  border-width: 2px;
}

.sayarat-status-select--draft {
  border-color: rgba(var(--sayarat-ink-rgb), 0.25);
  background-color: rgba(var(--sayarat-ink-rgb), 0.04);
}

.sayarat-status-select--published {
  border-color: rgba(var(--sayarat-brand-rgb), 0.45);
  background-color: rgba(var(--sayarat-brand-rgb), 0.08);
  color: rgba(var(--sayarat-ink-rgb), 0.95);
}

.sayarat-status-select--sold {
  border-color: rgba(13, 110, 253, 0.35);
  background-color: rgba(13, 110, 253, 0.06);
}

.sayarat-status-select--archived {
  border-color: rgba(var(--sayarat-ink-rgb), 0.35);
  background-color: rgba(var(--sayarat-ink-rgb), 0.08);
}

/* Sticky save bar — mobile only. Desktop keeps the flat submit button
   below the last section. We use position: sticky on the wrapper so it
   only becomes visible when the user scrolls past it, and layer a light
   backdrop + shadow so the form content shows through without noise. */
.sayarat-form-save {
  display: flex;
}

.sayarat-form-save .btn {
  flex: 1;
}

@media (max-width: 767.98px) {
  .sayarat-form-save {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 0.75rem 0;
    margin-bottom: -0.25rem;
    background: linear-gradient(
      to top,
      #fff 70%,
      rgba(255, 255, 255, 0)
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .sayarat-form-save .btn {
    box-shadow: 0 6px 18px rgba(var(--sayarat-brand-rgb), 0.28);
  }
}

@media (min-width: 768px) {
  .sayarat-form-save {
    justify-content: flex-start;
  }
  .sayarat-form-save .btn {
    flex: none;
    min-width: 10rem;
  }
}

/* ==========================================================================
   Image skeleton — per-image loading placeholder
   --------------------------------------------------------------------------
   Used wherever an <img> can take noticeable time to download (home-page
   listing cards, gallery slides, admin row thumbs, dashboard recent
   cards, edit-form photo picker). Wrap the image's ancestor with
   `.sayarat-img-skel` — it paints a soft animated shimmer until the
   child image emits `load` (or `error`), at which point the JS toggle
   fades the real image in over the placeholder.
   The matching reveal handler lives in `partials/scripts.php` and uses
   captured `load`/`error` events so late-injected images (e.g. Swiper
   loop-mode slide clones) are handled automatically.
   ========================================================================== */
@keyframes sayarat-img-skel-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sayarat-img-skel {
  position: relative;
  background-color: rgba(var(--sayarat-ink-rgb), 0.06);
  background-image: linear-gradient(
    90deg,
    rgba(var(--sayarat-ink-rgb), 0) 0%,
    rgba(var(--sayarat-ink-rgb), 0.07) 45%,
    rgba(var(--sayarat-ink-rgb), 0.13) 50%,
    rgba(var(--sayarat-ink-rgb), 0.07) 55%,
    rgba(var(--sayarat-ink-rgb), 0) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: sayarat-img-skel-shimmer 1.4s ease-in-out infinite;
}

.sayarat-img-skel img {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sayarat-img-skel img.is-loaded {
  opacity: 1;
}

/* A broken image keeps opacity 0 so the element effectively vanishes and
   whatever fallback the surrounding layout provides (alt text / empty
   placeholder box) becomes visible through it. */
.sayarat-img-skel img.is-broken {
  opacity: 0;
}

/* `is-done` is applied by the reveal JS once *any* child img has settled
   (loaded or errored). We stop the shimmer at that point so the wrapper
   becomes inert — the loaded image (or fallback) fully takes over. */
.sayarat-img-skel.is-done {
  animation: none;
  background-image: none;
}

@media (prefers-reduced-motion: reduce) {
  .sayarat-img-skel {
    animation: none;
  }
  .sayarat-img-skel img {
    transition: none;
  }
}

/* ==========================================================================
   Status pill — shared across tenant admin (listing rows, dashboard recent
   cars, edit-context strip). Replaces the stock Bootstrap `badge` + raw
   `text-bg-success` / `text-bg-secondary` colors that read as generic and
   clashed visually with the brand palette.
   --------------------------------------------------------------------------
   Anatomy: a rounded-pill chip with
     - a soft tinted background (low-saturation of the state's hue)
     - a darker text color for AA contrast on that tint
     - a small filled leading dot in a saturated version of the state's
       hue, so the chip is still recognisable at a glance even for readers
       who struggle with subtle color differences.
   The dot is driven by a per-state `--sayarat-status-dot` custom prop so
   the pill shell rule never needs per-state duplication.
   ========================================================================== */
.sayarat-status-pill {
  --sayarat-status-dot: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  /* Tight line-height keeps the pill visually slim so it reads as a chip
     rather than a button. Flex `align-items: center` ensures Arabic
     glyphs still sit vertically centered even with line-height < 1. */
  line-height: 0.85;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.sayarat-status-pill::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sayarat-status-dot);
}

.sayarat-status-pill--published {
  background: #dcfce7;
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.2);
  --sayarat-status-dot: #22c55e;
}

.sayarat-status-pill--draft {
  background: #f1f5f9;
  color: #475569;
  border-color: rgba(100, 116, 139, 0.22);
  --sayarat-status-dot: #94a3b8;
}

.sayarat-status-pill--sold {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
  --sayarat-status-dot: #3b82f6;
}

.sayarat-status-pill--archived {
  background: rgba(var(--sayarat-ink-rgb), 0.08);
  color: rgba(var(--sayarat-ink-rgb), 0.75);
  border-color: rgba(var(--sayarat-ink-rgb), 0.18);
  --sayarat-status-dot: rgba(var(--sayarat-ink-rgb), 0.55);
}

.sayarat-status-pill--pending {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.22);
  --sayarat-status-dot: #f59e0b;
}

.sayarat-status-pill--rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.22);
  --sayarat-status-dot: #ef4444;
}

/* ==========================================================================
   Tenant admin — cars list (row cards replacing the old table)
   --------------------------------------------------------------------------
   Used by: resources/views/tenant/admin/listings_index.php
   - Each car is a flex row-card.
   - `.sayarat-listing-row__link` is a Bootstrap stretched-link that covers
     the card so clicking anywhere (except an inline action) goes to edit.
   - Inline actions use `.sayarat-icon-btn` with tight 36×36 touch targets
     on mobile, 40×40 on desktop, lifted above the stretched link via
     position: relative; z-index: 2.
   ========================================================================== */

.sayarat-listing-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sayarat-listing-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  box-shadow: var(--sayarat-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  /* Contain focus-visible outline from the stretched link inside the card
     radius instead of a rectangular overshoot. */
  isolation: isolate;
}

.sayarat-listing-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--sayarat-ink-rgb), 0.08);
  border-color: rgba(var(--sayarat-brand-rgb), 0.2);
}

/* Focus ring lights up the whole card when the stretched-link receives
   keyboard focus. `:focus-visible` keeps the ring off for mouse clicks. */
.sayarat-listing-row:focus-within:not(:hover) {
  box-shadow: 0 0 0 3px rgba(var(--sayarat-brand-rgb), 0.25);
  border-color: rgba(var(--sayarat-brand-rgb), 0.4);
}

.sayarat-listing-row__link {
  /* Anchor itself collapses; Bootstrap's `.stretched-link::after` creates
     the actual click target spanning the whole positioned parent. We hide
     the focus outline on the anchor and let the card-level ring above
     show focus state instead — otherwise you get a tiny outline on a
     zero-sized anchor. */
  color: transparent;
  outline: none;
}

.sayarat-listing-row__link::after {
  border-radius: inherit;
}

.sayarat-listing-row__thumb {
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(var(--sayarat-ink-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sayarat-listing-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sayarat-listing-row__thumb-empty {
  color: rgba(var(--sayarat-ink-rgb), 0.3);
}

.sayarat-listing-row__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sayarat-listing-row__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(var(--sayarat-ink-rgb), 0.92);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sayarat-listing-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(var(--sayarat-ink-rgb), 0.6);
  min-width: 0;
}

.sayarat-listing-row__price {
  font-weight: 700;
  color: var(--sayarat-accent);
  font-variant-numeric: tabular-nums;
}

.sayarat-listing-row__dot {
  color: rgba(var(--sayarat-ink-rgb), 0.3);
}

.sayarat-listing-row__views {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-variant-numeric: tabular-nums;
}

.sayarat-listing-row__pubid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: rgba(var(--sayarat-ink-rgb), 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.sayarat-listing-row__actions {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: auto;
}

.sayarat-listing-row__action-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

/* Icon-only action button shared across admin contexts. */
.sayarat-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 10px;
  background: rgba(var(--sayarat-ink-rgb), 0.04);
  color: rgba(var(--sayarat-ink-rgb), 0.7);
  border: 1px solid rgba(var(--sayarat-ink-rgb), 0.08);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.sayarat-icon-btn:hover,
.sayarat-icon-btn:focus-visible {
  background: #fff;
  color: var(--sayarat-brand);
  border-color: rgba(var(--sayarat-brand-rgb), 0.35);
  outline: none;
}

.sayarat-icon-btn:active {
  transform: scale(0.96);
}

.sayarat-icon-btn--primary {
  background: rgba(var(--sayarat-brand-rgb), 0.1);
  color: var(--sayarat-brand);
  border-color: rgba(var(--sayarat-brand-rgb), 0.25);
}

.sayarat-icon-btn--primary:hover,
.sayarat-icon-btn--primary:focus-visible {
  background: var(--sayarat-brand);
  color: #fff;
  border-color: var(--sayarat-brand);
}

.sayarat-icon-btn--danger {
  color: rgba(185, 28, 28, 0.75);
  border-color: rgba(185, 28, 28, 0.2);
  background: rgba(185, 28, 28, 0.04);
}

.sayarat-icon-btn--danger:hover,
.sayarat-icon-btn--danger:focus-visible {
  background: rgba(185, 28, 28, 0.1);
  color: rgb(185, 28, 28);
  border-color: rgba(185, 28, 28, 0.5);
}

/* Floating "Copied / failed" feedback bubble for icon-only copy button.
   Positioned above the button so icon-only admins still see success. */
.sayarat-icon-btn[data-flash]::before {
  content: attr(data-flash);
  position: absolute;
  bottom: calc(100% + 6px);
  inset-inline-end: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(var(--sayarat-ink-rgb), 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: sayaratIconBtnFlash 1.8s ease forwards;
  z-index: 3;
}

@keyframes sayaratIconBtnFlash {
  0% { opacity: 0; transform: translateY(3px); }
  10%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2px); }
}

/* Narrow-mobile tuning: tighten padding, shrink thumb, hide the public-id
   chip (still available in the URL bar on edit), and keep the action
   cluster on the same row as the body by sizing buttons down. */
@media (max-width: 575.98px) {
  .sayarat-listing-row {
    padding: 0.6rem 0.65rem;
    gap: 0.55rem;
  }
  .sayarat-listing-row__thumb {
    width: 3.25rem;
    height: 3.25rem;
  }
  .sayarat-listing-row__title {
    font-size: 0.9rem;
  }
  .sayarat-listing-row__meta {
    font-size: 0.75rem;
    gap: 0.25rem;
  }
  .sayarat-listing-row__pubid {
    display: none;
  }
  .sayarat-status-pill {
    font-size: 0.65rem;
    padding-inline: 0.45rem;
  }
  .sayarat-icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
  }
}

/* At desktop, give the card a tiny bit more breathing room and a
   subtle chevron hint on hover so the row reads as a link. */
@media (min-width: 768px) {
  .sayarat-listing-row {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }
  .sayarat-listing-row__thumb {
    width: 4.25rem;
    height: 4.25rem;
  }
  .sayarat-icon-btn {
    width: 2.4rem;
    height: 2.4rem;
  }
}

