/* Nestiky identity tokens — 2026-11-22. Do not introduce other hues. */
:root {
  --violet: #7956D8;
  --lavender: #F4F0FC;
  --ink: #171717;
  --muted: #8D899B;
  --paper: #FFFFFF;
  --cream: #F4F0FC;
  --line: rgba(121, 86, 216, 0.20);
  --gold: #7956D8;
  --gold-light: rgba(121, 86, 216, 0.35);
  --gold-soft: #F4F0FC;
  --gold-d: #7956D8;
  --brand-purple: #7956D8;
  --brand-mauve: #7956D8;
  --brand-rose: rgba(121, 86, 216, 0.35);
  --brand-gradient: #7956D8;
  --brand-violet: #7956D8;
  --text-price: #171717;
  --text-hours: #8D899B;
  --dark: #171717;
  --burgundy: #171717;
  --burgundy-deep: #171717;
  --burgundy-soft: #171717;
  --shadow: 0 10px 28px rgba(121, 86, 216, 0.10);
  --radius: 18px;
  --green: #16844b;
  --closed: #ea4335;
  --err: #9b2744;
  --ok: var(--green);
  --font-display: "Poppins", "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-body: "Poppins", "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-ar: "Poppins", "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-wordmark: "Poppins", "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --fs-title: 28px;
  --fw-title: 600;
  --fs-section: 22px;
  --fw-section: 500;
  --fs-card: 18px;
  --fw-card: 500;
  --fs-body: 14px;
  --fw-body: 400;
  --fs-secondary: 12px;
  --fw-secondary: 400;
}

/* NESTIKY public mobile nav — visible at max-width 980px */
.nav-toggle,
.mobile-nav-close,
.mobile-nav-search__input,
.mobile-nav-panel button,
.mobile-nav-panel input,
.mobile-nav-panel select,
.mobile-nav-panel textarea {
  font-family: var(--font-body);
}
.nav-toggle {
  display: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #171717);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(121, 86, 216, 0.1);
  outline: none;
}
.nav-toggle__icon {
  display: block;
  pointer-events: none;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2390;
  background: rgba(23, 23, 23, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}
html {
  overflow-x: hidden;
}
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2400;
  width: min(360px, 88vw);
  background: #FFFFFF;
  color: var(--ink, #171717);
  box-shadow: -12px 0 32px rgba(121, 86, 216, 0.12);
  transform: translateX(110%);
  transition: transform 0.22s ease;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  visibility: hidden;
}
.mobile-nav-open .mobile-nav-backdrop {
  display: block;
}
.mobile-nav-open .mobile-nav-panel {
  transform: translateX(0);
  visibility: visible;
}
html[dir="rtl"] .mobile-nav-panel {
  right: auto;
  left: 0;
  box-shadow: 12px 0 32px rgba(121, 86, 216, 0.12);
  transform: translateX(-110%);
}
html[dir="rtl"] .mobile-nav-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 0 8px auto;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #171717);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  background: rgba(121, 86, 216, 0.1);
  outline: none;
}

.mobile-nav-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
.mobile-nav-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--line, rgba(121, 86, 216, 0.20));
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: inherit;
}
.mobile-nav-search__btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-purple, #7956D8);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0 0 8px;
}
.mobile-nav-group__title {
  margin: 8px 0 4px;
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #8D899B);
}
.mobile-nav-group--pros {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line, rgba(121, 86, 216, 0.20));
}

.mobile-nav-panel .nav-links,
.mobile-nav-panel .mobile-nav-group {
  font-size: 16px;
  color: inherit;
}
.mobile-nav-panel .nav-links {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0 !important;
}
.mobile-nav-panel .nav-links a,
.mobile-nav-panel .mobile-nav-group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
}
.mobile-nav-panel .nav-links a:hover,
.mobile-nav-panel .nav-links a:focus-visible,
.mobile-nav-panel .mobile-nav-group a:hover,
.mobile-nav-panel .mobile-nav-group a:focus-visible {
  background: rgba(121, 86, 216, 0.1);
  color: var(--brand-purple, #7956D8);
}

.mobile-nav-panel .lang-switch {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line, rgba(121, 86, 216, 0.20));
}
.mobile-nav-panel .lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}

/* Install banner: compact, dismissible on mobile; sits in the header row on desktop */
.install-app-banner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.install-app-banner[hidden],
.install-app-banner[data-dismissed="1"] {
  display: none !important;
}
.install-app-banner__close {
  display: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #171717);
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  header.nav,
  .nav {
    height: auto !important;
    min-height: 0 !important;
  }
  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: calc(100% - 28px);
    min-height: 56px;
    height: auto;
    gap: 8px;
  }
  .nav-inner > .logo,
  .nav-inner > .logo--brand {
    flex: 0 0 auto;
  }
  .nav-actions {
    display: contents;
  }
  .nav-actions .lang-switch,
  .nav-actions .heart,
  .nav-actions .add-btn,
  .nav-actions .nav-social,
  .nav-actions .languages {
    display: none !important;
  }
  .nav-toggle {
    margin-inline-start: auto;
  }
  .install-app-banner {
    display: flex;
    flex: 1 1 100%;
    order: 20;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 0 8px;
    border-top: 1px solid var(--line, rgba(121, 86, 216, 0.20));
  }
  .install-app-banner .install-app-btn {
    flex: 1 1 auto;
    display: inline-flex !important;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .install-app-banner__close {
    display: inline-flex;
  }

  /* Tap targets + typography on the public site */
  .filter,
  .filter-clear-btn,
  .filter-input,
  .filter-select,
  .filters .map-open-btn,
  .map-open-btn {
    min-height: 44px !important;
    height: auto;
    font-size: 13px !important;
  }
  .filter-field__label {
    font-size: 12px !important;
  }
  .salon-pagination button {
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13px !important;
  }
  .salon-pagination__meta {
    font-size: 12px !important;
  }
  .salon-card .rating,
  .salon-card .services,
  .salon-card .location,
  .salon-card .price,
  .salon-card .open {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  .salon-card .favorite,
  .favorite,
  .fav-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-sizing: border-box;
  }
  .salon-map-close {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
}

body.mobile-nav-open,
html.mobile-nav-lock {
  overflow: hidden !important;
}


@media (min-width: 981px) {
  .nav-inner {
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px;
  }
  .nav-links {
    gap: 0.65rem;
  }
  .nav-actions {
    flex: 0 1 auto;
    min-width: 0;
  }
  .install-app-btn {
    padding-inline: 12px;
  }
  .mobile-nav-panel,
  .mobile-nav-backdrop {
    display: none !important;
  }
  /* Blog stays in the mobile menu + footer; extra header item overflowed the 1280 header. */
  .nav-links a[href="/blog/"] {
    display: none;
  }
}

.mobile-nav-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-nav-search__input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
}
.mobile-nav-search__btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  font-size: 13px;
  padding: 0 12px;
}

/* 23/11/2026 — 4 verticales: keep header items on one line on wide desktop (Salle de sport added) */
@media (min-width: 1200px) {
  .nav-links { gap: 0.35rem; }
  .nav-links a { white-space: nowrap; padding-inline: 6px; }
}


/* Pull-to-refresh: keep the page from triggering the browser refresh as well (mobile only). */
@media (max-width: 680px) {
  html, body {
    overscroll-behavior-y: contain;
  }
}
