* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7fb;
  color: #172033;
}

body:has(.europe-map-page) {
  overflow: hidden;
}

body:has(.europe-map-page) main {
  max-width: none;
  height: calc(100vh - 72px);
  overflow: hidden;
  padding: 12px 18px;
}

body:has(.europe-map-page) .site-footer {
  display: none;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 22px;
  background: #ffffff;
  border-bottom: 1px solid #dfe7f1;
  box-shadow: 0 2px 12px rgba(27, 42, 67, 0.06);
}

.brand,
.top a {
  color: #172033;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.brand-mark img,
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: .42rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #172033;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.brand-wordmark-text {
  display: inline-flex;
  align-items: baseline;
  color: #062247;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: lowercase;
}

.brand-i {
  position: relative;
  display: inline-block;
  color: #062247;
  min-width: .28em;
  margin-inline: 0;
  text-align: center;
}

.brand-i-dot {
  position: absolute;
  top: .18em;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: .12em;
  height: .12em;
  border-radius: 999px;
  transform: translateX(.035em);
}

.brand-i-dot-teal {
  background: #18b9b2;
}

.brand-i-dot-green {
  background: #42cf21;
}

.brand-darija-word {
  color: #062247;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .78em;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}


.brand-text small {
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 2px;
  vertical-align: super;
  color: #14b8a6;
}

.nav-panel {
  display: contents;
}

.nav-toggle {
  display: none;
}

.main-menu,
.account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.main-menu {
  justify-content: center;
  flex-wrap: nowrap;
}

.account-menu {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.account-menu .language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 3px 6px 3px 10px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #fff;
  color: #5f6368;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.account-menu .language-switcher select {
  width: auto;
  min-width: 52px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f8fafd;
  padding: 4px 8px;
  color: #202124;
  font: inherit;
}

.account-menu .language-switcher b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e6f4ea;
  color: #137333;
  font-size: 12px;
  font-weight: 800;
}

.account-menu .language-switcher b[hidden] {
  display: none;
}

.language-flag-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-flag-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 62px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid #d4dce8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
  cursor: pointer;
  list-style: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.language-flag-menu summary::-webkit-details-marker {
  display: none;
}

.language-flag-menu summary:hover,
.language-flag-menu summary:focus-visible,
.language-flag-menu[open] summary {
  border-color: #b9c9e5;
  background: #f8fbff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, .10);
  outline: 0;
}

.language-flag-menu summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.language-flag-menu[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-flag-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1000;
  display: grid;
  gap: 3px;
  min-width: 60px;
  padding: 5px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

[dir="rtl"] .language-flag-options {
  right: auto;
  left: 0;
}

.language-flag-options button {
  position: relative;
  display: grid;
  width: 48px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.language-flag-options button:hover,
.language-flag-options button:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
  outline: 0;
  transform: translateY(-1px);
}

.language-flag-options button[aria-pressed="true"] {
  border-color: #c7d8f7;
  background: #f5f8ff;
  outline: 0;
}

.language-flag-options button[aria-pressed="true"]::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  content: "✓";
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.language-flag {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 3px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .12);
}

.language-flag-gb {
  background-image: url("../images/flags/gb.svg");
}

.language-flag-fr {
  background-image: url("../images/flags/fr.svg");
}

.language-flag-dz {
  background-image: url("../images/flags/dz.svg");
}

.language-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.main-menu a,
.account-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #344563;
  font-weight: 700;
  white-space: nowrap;
}

.main-menu a:hover,
.account-menu a:hover,
.main-menu a.active {
  background: #eef4ff;
  color: #1877f2;
}

.main-menu a.active {
  position: relative;
}

.main-menu a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -11px;
  height: 3px;
  border-radius: 999px;
  background: #1877f2;
}

.notification-link {
  position: relative;
  width: 38px;
  flex: 0 0 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: #344563;
  transition: background 0.18s, color 0.18s;
  font-size: 0;
  padding: 0 !important;
}

.notification-link:hover {
  background: #e0f2fe;
  color: #2563eb;
}

.notification-link svg {
  display: block;
  flex-shrink: 0;
}

.notification-link::before {
  display: none;
}

.notif-badge {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  padding: 1px 4px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  min-width: 14px !important;
  text-align: center !important;
}

main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px;
}

.site-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #4b5f7c;
}

.site-footer strong {
  display: block;
  color: #172033;
}

.site-footer span {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #1877f2;
  text-decoration: none;
  font-weight: 800;
}

.map-selector-shell {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.map-selector-head {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: end;
  width: min(100%, 920px);
  text-align: center;
}

.map-selector-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.map-selector-head p {
  margin: 6px 0 0;
  color: #586a84;
}

.region-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1420px);
}

.region-map-grid.algeria-only-grid {
  grid-template-columns: minmax(320px, 720px);
  justify-content: center;
}

.algeria-only-grid .region-map-card {
  min-height: 660px;
}

.algeria-only-grid .region-map-card .svg-map.region-designed-map {
  height: 460px;
}

.region-map-card {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(27, 42, 67, 0.08);
}

.region-map-card:hover {
  border-color: #1877f2;
  box-shadow: 0 16px 36px rgba(24, 119, 242, 0.14);
}

.region-card-head,
.region-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.region-kicker {
  color: #1877f2;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.region-card-head h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
}

.region-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1877f2;
  font-size: 0.78rem;
  font-weight: 900;
}

.region-card-foot strong {
  color: #1877f2;
}

.region-card-foot a,
.region-open-link {
  color: #1877f2;
  text-decoration: none;
  font-weight: 900;
}

.region-card-foot span {
  color: #5d6f88;
  font-size: 0.92rem;
}

.region-wilaya-control {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px);
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.region-wilaya-control span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.region-wilaya-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: #10213a;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.wilaya-directory {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, .08), transparent 36%),
    rgba(255, 255, 255, .52);
}

.wilaya-directory-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wilaya-directory-head span {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.wilaya-letter-reset,
.wilaya-alpha button,
.wilaya-button-list button {
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .76);
  color: #10213a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.wilaya-letter-reset {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #2563eb;
}

.wilaya-alpha {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.wilaya-alpha button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.wilaya-letter-reset.active,
.wilaya-alpha button.active,
.wilaya-letter-reset:hover,
.wilaya-alpha button:hover,
.wilaya-button-list button:hover {
  border-color: rgba(37, 99, 235, .38);
  background: #ffffff;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.wilaya-button-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 4px;
}

.wilaya-button-list button {
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .9rem;
}

.wilaya-button-list small {
  margin-left: 6px;
  color: #64748b;
  font-weight: 800;
}

.region-map-card.wilaya-letter-mode .region-designed-map,
.region-map-card.wilaya-letter-mode .region-card-foot {
  display: none;
}

.wilaya-button-list.is-letter-grid {
  display: grid;
  gap: 18px;
  max-height: none;
  overflow: visible;
  padding: 8px 0 0;
}

.wilaya-results-summary {
  color: #243b63;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0;
}

.wilaya-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wilaya-result-card {
  min-height: 156px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .86) !important;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.wilaya-result-card strong {
  color: #10213a;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.wilaya-result-card small {
  margin-left: 0;
  color: #2563eb;
  font-size: .95rem;
  font-weight: 800;
}

.wilaya-card-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}

.wilaya-card-icon::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  width: 16px;
  height: 16px;
  border: 3px solid #4f46e5;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.wilaya-card-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f46e5;
}

.wilaya-selection-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  font-weight: 800;
}

.wilaya-info-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: .86rem;
  line-height: 1;
}

.region-map-art,
.region-leaflet-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e1e9f4;
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
}

.region-leaflet-preview {
  min-height: 360px;
  pointer-events: none;
}

.region-leaflet-preview .leaflet-tile-pane {
  filter: saturate(0.82) contrast(0.98);
}

.region-designed-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92), rgba(241, 247, 253, 0.78) 58%, rgba(232, 240, 249, 0.95)),
    linear-gradient(180deg, #f8fbff, #edf4fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.algeria-only-grid .region-designed-map {
  pointer-events: auto;
}

.region-designed-map .map-country-layer.active {
  pointer-events: none;
}

.region-designed-map .market-total-pin {
  pointer-events: auto;
}

.region-designed-map.eu-geo-map-card,
.region-designed-map.china-geo-map-card {
  display: grid;
  place-items: center;
}

.region-designed-map .map-country-layer,
.region-designed-map .geo-total-layer {
  display: block;
  z-index: 8;
}

.region-designed-map .market-total-pin {
  top: 12px;
  right: 12px;
  min-width: 112px;
  padding: 9px 11px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.region-designed-map .market-total-pin b {
  font-size: clamp(1.12rem, 2.1vw, 1.55rem);
}

.region-designed-map .market-total-pin span,
.region-designed-map .market-total-pin em {
  font-size: 0.68rem;
}

.region-map-card .svg-map.region-designed-map {
  height: 360px;
  min-height: 360px;
}

.region-map-card .alg-wrap {
  inset: 0 18px 10px;
}

.region-map-card .alg-wrap,
.region-map-card .map-count-layer,
.region-map-card .map-city-layer {
  transform: translateY(3%) scale(1.22) !important;
}

.region-map-card .map-zoom-controls {
  display: none;
}

.europe-designed-map {
  display: grid;
  place-items: center;
  padding: 18px;
}

.europe-preview-svg {
  width: min(92%, 650px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(12px 16px 0 rgba(54, 68, 85, 0.55)) drop-shadow(0 20px 28px rgba(27, 42, 67, 0.16));
}

.eu-land,
.eu-island {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 4;
  stroke-linejoin: round;
}

.eu-nordics { fill: #8b5cf6; }
.eu-britain { fill: #2563eb; }
.eu-iberia { fill: #f97316; }
.eu-france { fill: #14b8a6; }
.eu-central { fill: #0f766e; }
.eu-italy { fill: #e11d48; }
.eu-east { fill: #64748b; }
.eu-balkans { fill: #ec4899; }
.eu-ireland { fill: #22c55e; }
.eu-iceland { fill: #38bdf8; }

.design-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 38px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #1877f2;
  color: #07162d;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(27, 42, 67, 0.2);
}

.design-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.eu-pin-1 {
  left: 49%;
  top: 43%;
  background: #14b8a6;
}

.eu-pin-2 {
  left: 69%;
  top: 36%;
  background: #ec4899;
}

.eu-country,
.dz-shape {
  position: absolute;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(27, 42, 67, 0.14);
}

.eu-country {
  border-radius: 42% 58% 44% 56%;
}

.eu-uk { left: 20%; top: 33%; width: 14%; height: 18%; background: #2563eb; }
.eu-fr { left: 35%; top: 45%; width: 20%; height: 22%; background: #14b8a6; }
.eu-de { left: 51%; top: 34%; width: 16%; height: 21%; background: #0f766e; }
.eu-es { left: 30%; top: 66%; width: 19%; height: 16%; background: #f97316; }
.eu-it { left: 56%; top: 61%; width: 13%; height: 24%; background: #e11d48; transform: rotate(-18deg); }
.eu-nordic { left: 54%; top: 8%; width: 24%; height: 22%; background: #8b5cf6; }
.eu-east { left: 66%; top: 36%; width: 22%; height: 30%; background: #64748b; }

.dz-shape {
  border-radius: 8px;
  transform: rotate(11deg);
}

.dz-north { left: 32%; top: 13%; width: 40%; height: 20%; background: #ec4899; }
.dz-west { left: 22%; top: 35%; width: 30%; height: 24%; background: #14b8a6; }
.dz-south { left: 36%; top: 53%; width: 34%; height: 34%; background: #8b5cf6; }
.dz-east { left: 59%; top: 34%; width: 22%; height: 35%; background: #f59e0b; }

.europe-map-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.europe-map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #ffffff;
}

.europe-map-toolbar h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.europe-map-toolbar p {
  margin: 5px 0 0;
  color: #586a84;
}

.europe-map-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.europe-side-panel,
.europe-detail-panel,
.europe-map-canvas {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(27, 42, 67, 0.08);
}

.europe-side-panel,
.europe-detail-panel {
  padding: 14px;
  min-height: 0;
  overflow: hidden;
}

.europe-side-panel {
  display: flex;
  flex-direction: column;
}

.europe-side-panel h2,
.europe-detail-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.europe-region-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.europe-detail-panel {
  overflow-y: auto;
}

.eu-region-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #fbfdff;
  color: #172033;
  cursor: pointer;
}

.eu-region-row span {
  grid-row: span 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--region-color);
}

.eu-region-row em {
  color: #64748b;
  font-style: normal;
  font-size: 0.82rem;
}

.eu-region-row.active {
  border-color: #1877f2;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.12);
}

.europe-map-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.9), rgba(241, 247, 253, 0.78) 55%, rgba(232, 240, 249, 0.98)),
    #eef4fb;
}

.eu-geo-map {
  position: relative;
}

.eu-geo-svg,
.china-geo-svg {
  width: min(96%, 860px);
  height: auto;
  overflow: visible;
  transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.eu-geo-map-card .eu-geo-svg,
.china-geo-map-card .china-geo-svg {
  width: min(112%, 860px);
  max-width: none;
}

.eu-geo-map-card .eu-geo-svg {
  transform: translateY(6%) scale(1.34) !important;
}

.china-geo-map-card .china-geo-svg {
  transform: translateY(7%) scale(1.48) !important;
}

.eu-geo-shadow {
  transform: translate(12px, 14px);
  opacity: 0.55;
}

.eu-geo-shadow path {
  fill: #566373;
  stroke: none;
}

.eu-country-path {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.3;
  stroke-linejoin: round;
  transition: filter 0.18s ease, opacity 0.18s ease, stroke-width 0.18s ease;
}

.eu-country-path:hover,
.eu-country-path.active {
  filter: brightness(1.08);
  stroke: #ffffff;
  stroke-width: 2.8;
}

.eu-country-path.focus-muted {
  opacity: 0.2;
  filter: grayscale(0.3);
}

.scope-hidden {
  display: none !important;
}

.eu-country-path.focus-active {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 3.2;
  filter: brightness(1.08) drop-shadow(0 8px 10px rgba(15, 23, 42, 0.22));
}

.china-geo-map {
  position: relative;
}

.china-province-path {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.15;
  stroke-linejoin: round;
  transition: filter 0.18s ease, stroke-width 0.18s ease;
}

.china-province-path:hover,
.china-province-path.active {
  filter: brightness(1.08);
  stroke: #ffffff;
  stroke-width: 2.4;
}

.eu-region-path {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.36);
  stroke-width: 0.85;
  pointer-events: stroke;
  transition: fill 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease;
}

.eu-region-path.active {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.65;
  pointer-events: auto;
}

.eu-region-path.focus-muted {
  opacity: 0.08;
  pointer-events: none;
}

.eu-region-path.focus-active {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.45;
  pointer-events: auto;
}

.eu-geo-labels text {
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(7, 22, 45, 0.45);
  stroke-width: 4;
  font: 900 0.74rem "Segoe UI", Arial, sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.geo-total-layer,
.geo-pin-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
  will-change: transform, opacity;
}

.geo-total-layer.active,
.geo-pin-layer.active {
  opacity: 1;
  pointer-events: auto;
}

.geo-count-pin {
  position: absolute;
  display: grid;
  min-width: 44px;
  gap: 1px;
  transform: translate(-50%, -50%) scale(var(--pin-scale, 1));
  transform-origin: center;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 5px 8px;
  background: #10213a;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.geo-count-pin span {
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.geo-count-pin em {
  max-width: 86px;
  overflow: hidden;
  color: #dbeafe;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-region-pin {
  background: #1877f2;
}

.geo-city-pin {
  background: #0f766e;
}

.geo-zoom-controls {
  left: 18px;
  top: 18px;
}

.eu-loading {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.europe-page-svg {
  width: min(88%, 760px);
}

.eu-map-region {
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.18s ease, stroke-width 0.18s ease, transform 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.eu-map-region.active {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 6;
  transform: translateY(-3px);
}

.eu-map-pin {
  position: absolute;
  left: var(--pin-left);
  top: var(--pin-top);
  transform: translate(-50%, -50%);
  padding: 9px 13px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--pin-color);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 42, 67, 0.18);
  font: 900 0.86rem "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.eu-map-pin.active {
  outline: 4px solid rgba(24, 119, 242, 0.18);
  transform: translate(-50%, -50%) scale(1.08);
}

.eu-metric-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.eu-metric-grid div {
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.eu-metric-grid span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.eu-metric-grid b {
  display: block;
  margin-top: 3px;
}

.eu-subregion-title {
  margin: 14px 0 8px;
  font-size: 0.95rem;
}

.eu-subregion-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  margin: 0 0 14px;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.eu-subregion-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #fbfdff;
  font-weight: 700;
}

.eu-subregion-list span {
  min-width: 42px;
  color: #1877f2;
  font-size: 0.76rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-footer,
  .map-selector-head,
  .region-card-head,
  .region-card-foot,
  .europe-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .region-map-grid,
  .europe-map-layout {
    grid-template-columns: 1fr;
  }

  .region-map-card {
    min-height: 420px;
  }

  .europe-map-canvas {
    min-height: 480px;
  }

  .europe-map-board {
    min-height: 440px;
  }
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid #cfe0f5;
  background: #eef5ff;
  color: #21426f;
}

.flash-success {
  background: #eaf8ef;
  border-color: #ccefd6;
  color: #15603b;
}

.flash-warning {
  background: #fff8e7;
  border-color: #f8df9f;
  color: #815d0a;
}

.flash-error {
  background: #feeff2;
  border-color: #fccfd8;
  color: #8d1736;
}

.page-shell {
  display: grid;
  gap: 14px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}

.filters,
.booking-filter,
.top-wilayas {
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(27, 42, 67, 0.06);
}

.filters {
  padding: 12px;
}

.filters input,
.filters select,
.booking-filter input,
.booking-filter select {
  width: 100%;
  margin: 6px 0 10px;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid #c9d6e5;
  background: #fff;
  color: #172033;
}

.booking-filter {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
}

.booking-filter span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #5b6b82;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-soft {
  background: #eef4ff;
  color: #1877f2;
}

.btn.quiet,
.btn.quiet:hover {
  background: #fff1f2;
  color: #be123c;
}

.map-filter {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.switch {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.card,
.rank-row {
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  padding: 12px;
}

.card {
  color: #172033;
  text-decoration: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  margin: 8px 0;
  color: #172033;
  text-decoration: none;
}

.rank-row span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef4ff;
  color: #1877f2;
  font-weight: 900;
}

.rank-row em {
  color: #66768c;
  font-style: normal;
}

.top-wilayas {
  padding: 14px;
}

.top-wilayas h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.hidden {
  display: none;
}

@media (max-width: 960px) {
  .top,
  .home-grid,
  .layout,
  .booking-filter {
    grid-template-columns: 1fr;
  }

  .main-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* Login/auth page styles moved to login.css. */

.dash-hero {
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(24, 119, 242, 0.12), transparent 58%),
    radial-gradient(900px 220px at 100% 0%, rgba(20, 184, 166, 0.12), transparent 58%),
    #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 26px rgba(27, 42, 67, 0.08);
}

.dash-eyebrow {
  margin: 0;
  color: #1877f2;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.dash-hero h1 {
  margin: 6px 0;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  letter-spacing: -0.03em;
}

.dash-hero p {
  margin: 0;
  color: #51627c;
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-stats {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.dash-stats article {
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  padding: 14px;
}

.dash-stats p {
  margin: 0;
  color: #5e6f87;
  font-size: 0.9rem;
}

.dash-stats b {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
}

.dash-panel {
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  padding: 14px;
}

.dash-panel h2 {
  margin: 0 0 10px;
}

.dash-list {
  display: grid;
  gap: 10px;
}

.dash-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fbfdff;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  padding: 12px;
}

.dash-item p {
  margin: 4px 0 0;
  color: #667790;
}

.status-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2467c7;
  font-weight: 800;
  font-size: 0.8rem;
}

.profile-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.profile-builder {
  display: grid;
  gap: 16px;
}

.profile-section {
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(27, 42, 67, 0.06);
}

.profile-section h2 {
  margin: 0 0 14px;
  color: #10213a;
  font-size: 1.1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.profile-grid label {
  display: grid;
  gap: 7px;
  color: #44566f;
  font-weight: 800;
}

.profile-grid input,
.profile-grid select {
  width: 100%;
  border: 1px solid #d5e1ef;
  border-radius: 8px;
  background: #ffffff;
  color: #10213a;
  font: inherit;
  padding: 10px 12px;
}

.profile-grid select {
  min-height: 46px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #1877f2 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, #1877f2 50%, transparent 50%) calc(100% - 12px) 52% / 6px 6px no-repeat,
    #ffffff;
  padding-right: 36px;
}

.profile-grid input:focus,
.profile-grid select:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, .10);
  outline: 0;
}

.profile-grid .location-field {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-grid .location-field select {
  border-color: #c8d8ee;
  background:
    linear-gradient(45deg, transparent 50%, #1877f2 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, #1877f2 50%, transparent 50%) calc(100% - 12px) 52% / 6px 6px no-repeat,
    #ffffff;
}

.profile-grid .location-field small {
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
}

.profile-grid select[multiple] {
  min-height: 126px;
}

.other-input {
  display: none;
}

.other-input.is-visible {
  display: block;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.what-company-needs {
  margin: 14px 0;
}

.need-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.need-card {
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: #ffffff;
  padding: 13px;
}

.need-card span {
  color: #1877f2;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.need-card h3 {
  margin: 5px 0;
  color: #10213a;
  font-size: 1rem;
}

.need-card p {
  margin: 0;
  color: #52677f;
}

@media (max-width: 960px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .profile-grid,
  .need-card-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Modern public UI polish
   -------------------------------------------------------------------------- */
:root {
  --public-blue: #2563eb;
  --public-blue-dark: #1d4ed8;
  --public-ink: #0f172a;
  --public-muted: #64748b;
  --public-line: rgba(148, 163, 184, .26);
  --public-card: rgba(255, 255, 255, .88);
  --public-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --public-radius: 24px;
}

body:not(.app-body) {
  background:
    radial-gradient(circle at 12% -8%, rgba(37, 99, 235, .15), transparent 34%),
    radial-gradient(circle at 95% 0%, rgba(20, 184, 166, .12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: var(--public-ink);
  -webkit-font-smoothing: antialiased;
}

.top {
  min-height: 72px;
  border-bottom: 1px solid var(--public-line);
  background: rgba(255, 255, 255, .80);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.brand-mark {
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.main-menu,
.account-menu {
  gap: 6px;
}

.main-menu a,
.account-menu a {
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.main-menu a:hover,
.account-menu a:hover,
.main-menu a.active {
  background: #fff;
  color: var(--public-blue);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.main-menu a.active::after { display: none; }

main {
  padding: clamp(16px, 2vw, 30px);
}

.region-map-card,
.form-card,
.card,
.panel,
.company-card,
.rfq-card,
.search-card {
  border: 1px solid var(--public-line);
  border-radius: var(--public-radius);
  background: var(--public-card);
  box-shadow: var(--public-shadow);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.region-map-card {
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.region-map-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .25);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .14);
}

.map-selector-head h1,
.hero h1 {
  letter-spacing: -.06em;
  line-height: .96;
}

.map-selector-head p,
.hero p p {
  color: var(--public-muted);
}

button,
.btn,
input[type="submit"],
.primary-action {
  border-radius: 14px;
}

.btn:not(.quiet),
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, #2563eb, #4f46e5 58%, #7c3aed);
  color: #fff;
  border: 0;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:not(.quiet):hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 20px 45px rgba(37, 99, 235, .30);
}

input,
select,
textarea {
  border-radius: 14px !important;
  border-color: rgba(148, 163, 184, .36) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, .75) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--public-line);
}

@media (max-width: 840px) {
  .top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .main-menu,
  .account-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .region-map-grid,
  .region-map-grid.algeria-only-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Responsive home map selector
   -------------------------------------------------------------------------- */
body:has(.map-selector-shell) main {
  max-width: none;
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vw, 34px);
}

.map-selector-shell {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  gap: clamp(14px, 2vw, 24px);
}

.map-selector-shell::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 184, 166, .18), transparent 66%);
  pointer-events: none;
  transform: translate(20%, -18%);
  z-index: -1;
}

.map-selector-head {
  width: min(100%, 880px);
}

.map-selector-head h1 {
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  letter-spacing: -.075em;
}

.map-selector-head p {
  max-width: 62ch;
  margin: 10px auto 0;
  font-size: clamp(.95rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.region-map-grid.algeria-only-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.algeria-only-grid .region-map-card {
  --home-map-scale: 1.18;
  position: relative;
  width: 100%;
  min-height: 0;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: clamp(22px, 3vw, 36px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, .18), transparent 34%),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .14), transparent 38%);
}

.algeria-only-grid .region-map-card::after {
  content: "";
  position: absolute;
  inset: auto 22% -48px 22%;
  height: 96px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.algeria-only-grid .region-map-card > * {
  position: relative;
  z-index: 1;
}

.algeria-only-grid .region-card-head {
  align-items: flex-start;
}

.algeria-only-grid .region-kicker {
  letter-spacing: .18em;
}

.algeria-only-grid .region-card-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.algeria-only-grid .region-status {
  padding: 10px 16px;
  background: rgba(20, 184, 166, .12);
  color: #047857;
  font-size: clamp(.78rem, 1.2vw, .98rem);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .10);
}

.algeria-only-grid .region-map-card .svg-map.region-designed-map {
  height: clamp(260px, min(58svh, 58vw), 690px);
  min-height: 260px;
  border-radius: clamp(18px, 2.4vw, 30px);
  border-color: rgba(148, 163, 184, .30);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .98), rgba(248, 251, 255, .82) 54%, rgba(232, 240, 249, .94)),
    linear-gradient(180deg, #f8fbff, #eef4fb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 24px 58px rgba(15, 23, 42, .10);
}

.region-map-card .alg-wrap,
.region-map-card .map-count-layer,
.region-map-card .map-city-layer {
  transform: translate(var(--home-map-pan-x, 0px), var(--home-map-pan-y, 4%)) scale(var(--home-map-current-scale, var(--home-map-scale))) !important;
}

.algeria-only-grid .region-card-foot strong,
.algeria-only-grid .region-open-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.algeria-only-grid .region-card-foot strong::after,
.algeria-only-grid .region-open-link::after {
  content: "->";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #2563eb, #4f46e5),
    #2563eb;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.algeria-only-grid .region-card-foot span {
  font-size: clamp(.9rem, 1.4vw, 1rem);
  line-height: 1.45;
}

.region-designed-map .market-total-pin {
  border-radius: 18px;
}

@media (max-width: 1280px) {
  .top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand account account"
      "menu menu menu";
    gap: 8px 14px;
  }

  .brand {
    grid-area: brand;
  }

  .main-menu {
    grid-area: menu;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-menu::-webkit-scrollbar {
    display: none;
  }

  .account-menu {
    grid-area: account;
  }
}

@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(.map-selector-shell) main {
    align-items: start;
    min-height: 0;
    padding: 14px;
  }

  .top,
  body:has(.map-selector-shell) .top {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "panel panel";
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .24);
  }

  .brand,
  body:has(.map-selector-shell) .brand {
    min-width: 0;
    font-size: 1.45rem;
  }

  .brand span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark,
  body:has(.map-selector-shell) .brand-mark {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: .9rem;
  }

  .nav-toggle {
    grid-area: toggle;
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    align-self: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    color: #10213a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }

  .top.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .top.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .top.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-panel {
    grid-area: panel;
    display: grid;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .22s ease, opacity .18s ease;
  }

  .top.nav-open .nav-panel {
    max-height: calc(100svh - 88px);
    opacity: 1;
    pointer-events: auto;
  }

  .main-menu,
  .account-menu,
  body:has(.map-selector-shell) .main-menu,
  body:has(.map-selector-shell) .account-menu {
    width: 100%;
    min-width: 0;
    grid-area: auto;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    min-height: 0;
  }

  .top:not(.nav-open) .main-menu,
  .top:not(.nav-open) .account-menu {
    visibility: hidden;
  }

  .top.nav-open .main-menu,
  .top.nav-open .account-menu {
    visibility: visible;
  }

  .main-menu,
  body:has(.map-selector-shell) .main-menu {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .account-menu,
  body:has(.map-selector-shell) .account-menu {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, .18);
  }

  .main-menu a,
  .account-menu a,
  body:has(.map-selector-shell) .main-menu a,
  body:has(.map-selector-shell) .account-menu a {
    min-width: 0;
    min-height: 46px;
    justify-content: flex-start;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .70);
    font-size: 1rem;
    line-height: 1.1;
    text-align: left;
    box-shadow: none;
  }

  .main-menu a:hover,
  .account-menu a:hover,
  .main-menu a.active,
  body:has(.map-selector-shell) .main-menu a:hover,
  body:has(.map-selector-shell) .account-menu a:hover,
  body:has(.map-selector-shell) .main-menu a.active {
    transform: none;
    background: #ffffff;
  }

  .notification-link,
  body:has(.map-selector-shell) .notification-link {
    width: auto;
    flex-basis: auto;
    font-size: 1rem;
  }

  .notification-link::before {
    content: none;
  }

  .notification-link span,
  body:has(.map-selector-shell) .notification-link span {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
  }

  .map-selector-shell {
    width: 100%;
    justify-items: stretch;
  }

  .map-selector-head {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 28px;
    background:
      radial-gradient(circle at 88% 0%, rgba(20, 184, 166, .13), transparent 38%),
      rgba(255, 255, 255, .60);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    text-align: left;
  }

  .map-selector-head h1 {
    max-width: 9ch;
    font-size: clamp(2.45rem, 12vw, 4.1rem);
    line-height: .9;
  }

  .map-selector-head p {
    margin-left: 0;
    margin-right: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .algeria-only-grid .region-map-card {
    --home-map-scale: 1.42;
    width: 100%;
    max-width: 100%;
  }

  .algeria-only-grid .region-card-head,
  .region-wilaya-control,
  .algeria-only-grid .region-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .region-wilaya-control {
    grid-template-columns: 1fr;
  }

  .algeria-only-grid .region-map-card .svg-map.region-designed-map {
    height: clamp(270px, 74vw, 380px);
  }

  .wilaya-result-grid {
    grid-template-columns: 1fr;
  }

  .wilaya-result-card {
    min-height: 138px;
  }

  .region-designed-map .market-total-pin {
    top: 10px;
    right: 10px;
    min-width: 96px;
    padding: 8px 10px;
  }
}

@media (max-width: 420px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .main-menu a,
  .account-menu a,
  body:has(.map-selector-shell) .main-menu a,
  body:has(.map-selector-shell) .account-menu a {
    padding: 11px 12px;
  }

  .algeria-only-grid .region-map-card {
    --home-map-scale: 1.32;
    padding: 14px;
  }

  .algeria-only-grid .region-map-card .svg-map.region-designed-map {
    min-height: 230px;
  }
}

@media (max-width: 360px) {
  body:has(.map-selector-shell) .map-selector-head {
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   Premium wilaya directory dashboard
   -------------------------------------------------------------------------- */
body:has(.directory-dashboard) {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 48%, #f7fafc 100%);
  color: #0f172a;
}

body:has(.directory-dashboard) main,
body:has(.wilaya-companies-page) main {
  max-width: none;
  min-height: calc(100svh - 72px);
  display: block;
  padding: 24px;
}

.directory-dashboard,
.directory-dashboard *,
.wilaya-companies-page,
.wilaya-companies-page * {
  letter-spacing: 0;
}

.directory-dashboard.map-selector-shell::before {
  content: none;
}

.directory-dashboard {
  width: min(100%, 1280px);
  margin: 0 auto;
  gap: 20px;
}

.directory-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  text-align: left;
}

.directory-title-block {
  min-width: 0;
}

.directory-eyebrow,
.directory-hero-card span,
.directory-map-toolbar span,
.wilaya-list-head span,
.wilaya-filter-head span {
  display: block;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-hero h1,
.wilaya-companies-header h1 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
}

.directory-hero p,
.wilaya-companies-header p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.directory-hero-card {
  min-width: 190px;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
}

.directory-hero-card strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.directory-hero-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.directory-map-grid.region-map-grid.algeria-only-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.directory-card.region-map-card {
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78));
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.directory-card.region-map-card:hover {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.1);
}

.directory-card.region-map-card::after {
  content: none;
}

.directory-card .wilaya-directory {
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.directory-card .wilaya-directory-head {
  align-items: flex-start;
}

.directory-card .wilaya-directory-head h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
}

.directory-open-map,
.wilaya-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.wilaya-alpha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.directory-card .wilaya-alpha {
  min-width: 0;
  gap: 8px;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.directory-card .wilaya-alpha::-webkit-scrollbar {
  display: none;
}

.directory-card .wilaya-alpha button,
.directory-card .wilaya-letter-reset {
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.directory-card .wilaya-alpha button {
  width: 38px;
  height: 38px;
}

.directory-card .wilaya-alpha button[data-has-results="false"] {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.74);
}

.directory-card .wilaya-alpha button.active,
.directory-card .wilaya-letter-reset.active {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.directory-card .wilaya-alpha button:hover,
.directory-card .wilaya-letter-reset:hover {
  border-color: rgba(37, 99, 235, 0.28);
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.directory-card .wilaya-alpha button.active:hover,
.directory-card .wilaya-letter-reset.active:hover {
  color: #ffffff;
}

.directory-card .wilaya-button-list {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.wilaya-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 10px;
  max-height: 248px;
  overflow: auto;
  padding: 2px;
}

.wilaya-pill-card,
.directory-card .wilaya-result-card {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.wilaya-pill-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "dot name"
    "dot count";
  align-items: center;
  justify-items: start;
  gap: 2px 10px;
  padding: 12px;
  border-radius: 18px;
  text-align: left;
}

.wilaya-pill-card strong {
  grid-area: name;
  min-width: 0;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wilaya-pill-card small {
  grid-area: count;
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.wilaya-pill-dot {
  grid-area: dot;
  width: 10px;
  height: 38px;
  border-radius: 999px;
  background: var(--wilaya-dot, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.wilaya-pill-card:hover,
.directory-card .wilaya-result-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
}

.directory-card.wilaya-letter-mode .wilaya-button-list.is-letter-grid {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.directory-card .wilaya-results-summary {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 900;
}

.directory-card .wilaya-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.directory-card .wilaya-result-card {
  min-height: 152px;
  border-radius: 20px !important;
}

.directory-card .wilaya-result-card strong {
  color: #0f172a;
  font-size: 1.1rem;
}

.directory-card .wilaya-result-card small {
  color: #2563eb;
}

.directory-card .wilaya-card-icon {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.wilaya-empty-state,
.wilaya-company-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.44);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.78);
  color: #64748b;
  text-align: center;
}

.wilaya-empty-state strong,
.wilaya-company-empty strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.directory-map-stage {
  display: grid;
  gap: 14px;
  max-height: 760px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease, max-height 360ms ease, margin 260ms ease, border-color 260ms ease;
}

.directory-card.wilaya-letter-mode .directory-map-stage {
  max-height: 0;
  margin-top: -8px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.directory-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.directory-map-toolbar strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 1.05rem;
}

.directory-live-chip,
.wilaya-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.8);
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 900;
}

.directory-dashboard .region-designed-map.svg-map {
  height: 540px;
  min-height: 420px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 70px rgba(15, 23, 42, 0.1);
}

body:has(.directory-dashboard) .region-designed-map .market-total-pin {
  top: 18px;
  right: 18px;
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.16);
  backdrop-filter: blur(18px);
}

body:has(.directory-dashboard) .region-designed-map .market-total-pin span {
  color: #2563eb;
}

body:has(.directory-dashboard) .region-designed-map .market-total-pin b {
  font-size: 2rem;
}

.directory-mobile-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Wilaya company list page
   -------------------------------------------------------------------------- */
body:has(.wilaya-companies-page) {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  color: #0f172a;
}

.wilaya-companies-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.wilaya-companies-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.wilaya-back-button,
.wilaya-search-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #2563eb;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.wilaya-search-bar {
  position: sticky;
  top: 84px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.wilaya-search-bar label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.wilaya-search-bar label span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wilaya-search-bar input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.wilaya-search-bar input:focus {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.wilaya-search-bar button {
  align-self: end;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
}

.wilaya-companies-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.wilaya-filter-panel,
.wilaya-company-list-panel {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.wilaya-filter-panel {
  position: sticky;
  top: 174px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.wilaya-filter-head,
.wilaya-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wilaya-filter-group {
  display: grid;
  gap: 10px;
}

.wilaya-filter-group h2,
.wilaya-list-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.wilaya-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wilaya-filter-chip,
.wilaya-muted-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.84);
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.wilaya-filter-chip.active,
.wilaya-filter-chip:hover {
  border-color: transparent;
  background: #2563eb;
  color: #ffffff;
}

.wilaya-filter-chip small {
  color: inherit;
  opacity: 0.74;
  font-weight: 900;
}

.wilaya-company-list-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.wilaya-company-list {
  display: grid;
  gap: 10px;
}

.wilaya-company-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.wilaya-company-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16);
}

.company-list-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: #2563eb;
  font-weight: 950;
}

.wilaya-company-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wilaya-company-main strong {
  min-width: 0;
  color: #0f172a;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wilaya-company-main small,
.company-list-location {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 800;
}

.company-list-location {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-list-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 950;
}

@media (max-width: 900px) {
  body:has(.directory-dashboard) main,
  body:has(.wilaya-companies-page) main {
    padding: 14px;
  }

  .directory-hero,
  .wilaya-companies-header {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .directory-hero h1,
  .wilaya-companies-header h1 {
    font-size: 2.25rem;
  }

  .directory-hero-card,
  .wilaya-count-badge {
    width: 100%;
  }

  .wilaya-alpha-row {
    grid-template-columns: 1fr;
  }

  .directory-card .wilaya-letter-reset {
    justify-self: stretch;
  }

  .directory-dashboard .region-designed-map.svg-map {
    height: 360px;
    min-height: 300px;
  }

  .wilaya-pill-grid,
  .directory-card .wilaya-result-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .wilaya-companies-layout {
    grid-template-columns: 1fr;
  }

  .wilaya-search-bar {
    top: 78px;
    grid-template-columns: 1fr;
  }

  .wilaya-filter-panel {
    position: static;
  }

  .wilaya-company-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .company-list-location {
    display: none;
  }
}

@media (max-width: 700px) {
  body:has(.directory-dashboard) main {
    padding-bottom: 86px;
  }

  .directory-card.region-map-card,
  .directory-card .wilaya-directory,
  .directory-dashboard .region-designed-map.svg-map,
  .wilaya-companies-header,
  .wilaya-search-bar,
  .wilaya-filter-panel,
  .wilaya-company-list-panel {
    border-radius: 20px;
  }

  .directory-card .wilaya-alpha {
    overflow-x: auto;
  }

  body:has(.directory-dashboard) .region-designed-map .market-total-pin {
    min-width: 118px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  body:has(.directory-dashboard) .region-designed-map .market-total-pin b {
    font-size: 1.45rem;
  }

  .directory-mobile-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
  }

  .directory-mobile-nav a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 16px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
  }

  .directory-mobile-nav a:first-child {
    background: #2563eb;
    color: #ffffff;
  }
}

/* --------------------------------------------------------------------------
   Algeria market coverage dashboard home
   -------------------------------------------------------------------------- */
body:has(.market-home) {
  background:
    radial-gradient(circle at 10% 4%, rgba(167, 139, 250, 0.14), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(45, 212, 191, 0.2), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 42%, #f8fafc 100%);
  color: #101936;
}

body:has(.market-home) main {
  max-width: none;
  padding: 16px clamp(16px, 2.5vw, 34px) 34px;
}

body:has(.market-home) .site-footer {
  display: none;
}

body:has(.market-home) .top {
  width: min(calc(100% - 40px), 1360px);
  margin: 12px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

body:has(.market-home) .brand {
  width: auto;
  overflow: visible;
}

body:has(.market-home) .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: none;
}

body:has(.market-home) .brand-text {
  display: inline;
  font-size: 1.1rem;
  font-weight: 900;
}

body:has(.market-home) .main-menu a,
body:has(.market-home) .account-menu a {
  color: #263856;
  font-size: 0.96rem;
  font-weight: 850;
}

body:has(.market-home) .main-menu a[href="/dashboard/"],
body:has(.market-home) .main-menu a:hover {
  color: #2563eb;
  background: transparent;
}

body:has(.market-home) .main-menu a[href="/dashboard/"] {
  position: relative;
}

body:has(.market-home) .main-menu a[href="/dashboard/"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -11px;
  height: 3px;
  border-radius: 999px;
  background: #2563eb;
}

body:has(.market-home) .notification-link {
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.8);
  color: #263856;
}

body:has(.market-home) .notification-link::before {
  display: none;
}

body:has(.market-home) .notif-badge {
  display: inline-block;
}

.home-profile-avatar {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe) !important;
  color: #334155 !important;
  font-weight: 950 !important;
}

.home-admin-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.market-home.region-map-card {
  --home-map-scale: 1.02;
  width: min(100%, 1360px);
  margin: 18px auto 0;
  display: grid;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #101936;
}

.market-home.region-map-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.market-home.region-map-card::after {
  content: none;
}

.market-home,
.market-home * {
  letter-spacing: 0;
}

.market-hero,
.dashboard-panel,
.market-filter-card,
.kpi-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px);
}

.market-hero {
  position: relative;
  isolation: isolate;
  min-height: 252px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 18px;
}

.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.66) 62%, rgba(224, 242, 254, 0.48) 100%),
    radial-gradient(circle at 83% 18%, rgba(45, 212, 191, 0.22), transparent 34%),
    radial-gradient(circle at 97% 92%, rgba(168, 85, 247, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(241, 245, 249, 0.4), rgba(236, 254, 255, 0.36));
  pointer-events: none;
}

.market-hero::after {
  content: "";
  position: absolute;
  inset: 14px 16px 0 auto;
  z-index: 0;
  width: min(55%, 680px);
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  opacity: 0.68;
  pointer-events: none;
}

.hero-copy,
.hero-period {
  position: relative;
  z-index: 2;
}

.market-eyebrow,
.panel-head span,
.filter-tabs > span,
.market-filter-card label span,
.alphabet-wrap > span,
.insights-card > span {
  display: block;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.market-eyebrow {
  color: #64748b;
}

.market-hero h1 {
  max-width: 660px;
  margin: 14px 0 0;
  color: #101936;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.95;
  font-weight: 950;
}

.market-hero p {
  max-width: 48ch;
  margin: 18px 0 0;
  color: #60708b;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.hero-period {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.hero-period span {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-period button,
.trend-card button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #263856;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.hero-period button::after,
.trend-card button::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.algeria-landmarks {
  position: absolute;
  right: clamp(-110px, -5vw, -34px);
  bottom: -14px;
  z-index: 1;
  width: min(64%, 880px);
  height: auto;
  opacity: 0.96;
  pointer-events: none;
}

.algeria-landmarks .hero-terrain {
  fill: url(#heroVisualWash);
  opacity: 0.3;
}

.algeria-landmarks .hero-map-shape {
  fill: url(#heroVisualWash);
  opacity: 0.24;
  stroke: #2563eb;
  stroke-width: 1.4;
  stroke-opacity: 0.16;
}

.algeria-landmarks .hero-flow-line {
  fill: none;
  stroke: url(#heroVisualInk);
  stroke-linecap: round;
  stroke-width: 2.2;
  opacity: 0.18;
}

.algeria-landmarks .hero-flow-line-alt {
  stroke-width: 1.6;
  opacity: 0.12;
}

.algeria-landmarks .hero-dot-field {
  fill: url(#heroDotMatrix);
  opacity: 0.64;
}

.algeria-landmarks .hero-data-rings {
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-width: 1.5;
  opacity: 0.18;
}

.algeria-landmarks .hero-data-nodes {
  fill: #0f766e;
  opacity: 0.36;
}

.algeria-landmarks .hero-real-landmark {
  color: #155e75;
}

.algeria-landmarks .hero-maqam-echahid {
  fill: url(#heroVisualInk);
  opacity: 0.76;
}

.algeria-landmarks .hero-landmark-plinth {
  fill: url(#heroVisualWash);
  opacity: 0.58;
  stroke: #2563eb;
  stroke-width: 1.2;
  stroke-opacity: 0.14;
}

.algeria-landmarks .hero-landmark-detail {
  stroke: #155e75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.3;
}

/* Monument slideshow */
.monument-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.monument-slide.active {
  display: block;
  opacity: 1;
}

.monument-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 6px 16px 8px;
  position: absolute;
  bottom: 8px;
  right: 12px;
}

.monument-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2563eb;
  opacity: 0.75;
  white-space: nowrap;
}

.monument-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.monument-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #bfdbfe;
  transition: background 0.3s, transform 0.3s;
}

.monument-dots button.active {
  background: #2563eb;
  transform: scale(1.35);
}

.monument-dots button:hover {
  background: #93c5fd;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 138px;
  padding: 22px;
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 80px rgba(37, 99, 235, 0.14);
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.55rem;
  font-weight: 950;
}

.kpi-icon.blue { color: #2563eb; background: #e0e7ff; }
.kpi-icon.teal { color: #0f9f8f; background: #d5f7ef; }
.kpi-icon.purple { color: #8b5cf6; background: #f1e7ff; }
.kpi-icon.amber { color: #c77700; background: #fff0da; }

.kpi-card strong {
  display: block;
  color: #101936;
  font-size: 1.62rem;
  line-height: 1;
}

.kpi-card small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.94rem;
  font-weight: 800;
}

.kpi-card em {
  grid-column: 2;
  color: #079669;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
}

.kpi-card em span {
  margin-left: 8px;
  color: #64748b;
  font-weight: 750;
}

.kpi-card svg {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 116px;
  height: 34px;
}

.kpi-card svg path {
  fill: none;
  stroke: rgba(20, 184, 166, 0.72);
  stroke-width: 4;
  stroke-linecap: round;
}

.market-filter-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) repeat(3, minmax(150px, 0.9fr)) minmax(180px, 1.1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 22px;
  border-radius: 16px;
}

.filter-tabs,
.market-filter-card label,
.alphabet-wrap {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.filter-tabs > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background: #f8fafc;
}

.filter-tabs button {
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: #30415f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.filter-tabs button:last-child {
  border-right: 0;
}

.filter-tabs button.active {
  background: #eaf1ff;
  color: #2563eb;
}

.market-filter-card select,
.market-filter-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 11px;
  background: #ffffff;
  color: #263856;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  outline: none;
}

.market-filter-card input:focus,
.market-filter-card select:focus {
  border-color: rgba(37, 99, 235, 0.44);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.more-filters {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 11px;
  background: #ffffff;
  color: #2563eb;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.more-filters::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 10px;
  margin-left: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: inset 0 4px 0 currentColor;
  opacity: 0.72;
}

.alphabet-wrap {
  grid-column: 1 / -1;
}

.alphabet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.market-home .wilaya-alpha {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.market-home .wilaya-alpha::-webkit-scrollbar {
  display: none;
}

.market-home .wilaya-alpha button,
.market-home .wilaya-letter-reset {
  flex: 0 0 auto;
  min-width: 38px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #ffffff;
  color: #101936;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.market-home .wilaya-letter-reset {
  min-width: 54px;
  color: #2563eb;
}

.market-home .wilaya-alpha button[data-has-results="false"] {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.8);
}

.market-home .wilaya-alpha button.active,
.market-home .wilaya-letter-reset.active,
.market-home .wilaya-alpha button:hover,
.market-home .wilaya-letter-reset:hover {
  border-color: rgba(37, 99, 235, 0.36);
  background: #eaf1ff;
  color: #2563eb;
  transform: translateY(-1px);
}

.market-home:not(.wilaya-letter-mode) .dashboard-wilaya-results {
  display: none;
}

.dashboard-wilaya-results {
  display: grid;
  gap: 18px;
  max-height: 680px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px);
}

.market-home .wilaya-results-summary {
  color: #101936;
  font-size: 1.18rem;
  font-weight: 950;
}

.market-home .wilaya-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.market-home .wilaya-result-card,
.market-home .wilaya-pill-card {
  min-height: 136px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #101936;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-home .wilaya-result-card:hover,
.market-home .wilaya-pill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.16);
}

.market-home .wilaya-result-card strong,
.market-home .wilaya-pill-card strong {
  color: #101936;
  font-size: 1.08rem;
}

.market-home .wilaya-result-card small,
.market-home .wilaya-pill-card small {
  color: #2563eb;
  font-weight: 900;
}

.market-home.wilaya-letter-mode .market-map-grid {
  max-height: 0;
  margin-top: -22px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.market-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.95fr);
  gap: 18px;
  max-height: 1100px;
  opacity: 1;
  transition: opacity 260ms ease, max-height 360ms ease, margin 260ms ease;
}

.dashboard-panel {
  border-radius: 16px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.panel-head.compact {
  padding-bottom: 0;
}

.panel-head h2 {
  margin: 5px 0 0;
  color: #101936;
  font-size: 1.15rem;
  line-height: 1.2;
}

.panel-head a {
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.coverage-shell {
  position: relative;
  min-height: 580px;
  margin: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 20%, rgba(216, 180, 254, 0.14), transparent 26%),
    linear-gradient(145deg, #f8fbff, #eef6fb);
}

.coverage-shell::before {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 9%;
  width: min(42%, 360px);
  height: 180px;
  opacity: 0.12;
  background:
    linear-gradient(#14b8a6, #14b8a6) 8% 64% / 42px 76px no-repeat,
    radial-gradient(circle at 50% 60%, #8b5cf6 0 36%, transparent 37%) 23% 46% / 112px 78px no-repeat,
    linear-gradient(#0f766e, #0f766e) 46% 10% / 28px 132px no-repeat,
    linear-gradient(70deg, transparent 0 42%, #ec4899 43% 58%, transparent 59%) 72% 18% / 136px 130px no-repeat;
  filter: blur(0.2px);
  pointer-events: none;
}

.map-legend-list {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 8;
  display: grid;
  gap: 12px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
}

.map-legend-list span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-legend-list i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.map-legend-list .high { background: #2dd4bf; }
.map-legend-list .medium { background: #d88bd4; }
.map-legend-list .low { background: #f472b6; }
.map-legend-list .none { background: #cbd5e1; }

.dashboard-coverage-map.region-designed-map.svg-map {
  height: 560px;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.market-home .region-designed-map .market-total-pin {
  top: 28px;
  right: 28px;
  min-width: 124px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.market-home .dashboard-coverage-map .market-total-pin {
  display: none;
}

.market-home .region-designed-map .market-total-pin span {
  color: #2563eb;
}

.mock-zoom-controls {
  position: absolute;
  top: 32px;
  right: 22px;
  z-index: 9;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.mock-zoom-controls button {
  width: 40px;
  height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  color: #101936;
  font: inherit;
  font-weight: 950;
}

.mock-zoom-controls button:last-child {
  border-bottom: 0;
}

.analytics-sidebar {
  display: grid;
  gap: 18px;
}

.top-wilayas-card,
.trend-card {
  min-height: 0;
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.ranking-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.ranking-list b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #d9f7ef;
  color: #0f766e;
  font-size: 0.9rem;
}

.ranking-list div:nth-child(2) b { background: #ede9fe; color: #7c3aed; }
.ranking-list div:nth-child(3) b { background: #fce7f3; color: #db2777; }
.ranking-list div:nth-child(4) b { background: #ffedd5; color: #c2410c; }
.ranking-list div:nth-child(5) b { background: #f3e8ff; color: #8b5cf6; }

.ranking-list span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ranking-list strong {
  color: #101936;
  font-size: 0.94rem;
}

.ranking-list small {
  color: #64748b;
  font-weight: 800;
}

.ranking-list i {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ranking-list i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f9f8f);
}

.ranking-list em {
  color: #64748b;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
}

.line-chart {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px 20px;
}

.lower-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 18px;
}

.sector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.sector-list {
  display: grid;
  gap: 15px;
}

.sector-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 90px;
  gap: 12px;
  align-items: center;
}

.sector-list i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #eef2ff;
  color: #2563eb;
  font-style: normal;
  font-weight: 950;
}

.sector-list span,
.sector-list strong {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 850;
}

.sector-list strong {
  justify-self: end;
  color: #64748b;
}

.sector-list b {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

.sector-list b::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: #14b8a6;
}

.donut-widget {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.donut-chart {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#2dd4bf 0 29.6%, #8b5cf6 29.6% 52.8%, #ec4899 52.8% 70.8%, #f59e0b 70.8% 85.5%, #60a5fa 85.5% 91%, #cbd5e1 91% 100%);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.donut-chart span {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: inherit;
  background: #ffffff;
  color: #101936;
}

.donut-chart strong {
  font-size: 1.45rem;
}

.donut-chart small {
  color: #64748b;
  font-weight: 900;
}

.donut-widget ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donut-widget li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 850;
}

.donut-widget li i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.donut-widget .c1 { background: #2dd4bf; }
.donut-widget .c2 { background: #8b5cf6; }
.donut-widget .c3 { background: #ec4899; }
.donut-widget .c4 { background: #f59e0b; }
.donut-widget .c5 { background: #60a5fa; }

.insights-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(240, 253, 250, 0.86), rgba(255, 255, 255, 0.78));
}

.insights-card::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 110px;
  height: 110px;
  opacity: 0.13;
  background:
    linear-gradient(45deg, transparent 0 46%, #8b5cf6 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 0 46%, #14b8a6 47% 53%, transparent 54%);
}

.insights-card > span {
  color: #263856;
}

.insights-card div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.insights-card div:last-child {
  border-bottom: 0;
}

.insights-card small {
  color: #475569;
  font-weight: 900;
}

.insights-card strong {
  color: #0f9f8f;
  font-size: 1.05rem;
}

.insights-card em {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 750;
}

.recent-table-panel {
  padding-bottom: 18px;
}

.recent-table {
  display: grid;
  margin: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(110px, 0.7fr) minmax(150px, 0.9fr) minmax(120px, 0.8fr) minmax(95px, 0.55fr);
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row:hover {
  background: rgba(248, 250, 252, 0.74);
}

.table-row.table-head {
  min-height: 44px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.table-row span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.table-row i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.table-row em {
  justify-self: start;
  min-width: 76px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.table-row em.verified {
  background: #dff8ee;
  color: #0f766e;
}

.table-row em.pending {
  background: #ffedd5;
  color: #b45309;
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .more-filters {
    justify-self: start;
  }

  .market-map-grid,
  .lower-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body:has(.market-home) .top {
    width: calc(100% - 24px);
    margin-top: 8px;
  }

  .market-hero,
  .market-filter-card {
    grid-template-columns: 1fr;
  }

  .algeria-landmarks {
    right: -24%;
    bottom: -10px;
    width: 112%;
    opacity: 0.36;
  }

  .kpi-grid,
  .sector-layout,
  .donut-widget {
    grid-template-columns: 1fr;
  }

  .coverage-shell {
    min-height: 430px;
    margin: 16px;
  }

  .dashboard-coverage-map.region-designed-map.svg-map {
    height: 430px;
    min-height: 390px;
  }

  .table-row {
    grid-template-columns: minmax(180px, 1.5fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr);
  }

  .table-row span:nth-child(4),
  .table-row em {
    display: none;
  }
}

@media (max-width: 620px) {
  body:has(.market-home) main {
    padding: 12px;
  }

  .market-home.region-map-card {
    margin-top: 12px;
    gap: 16px;
  }

  .market-hero,
  .market-filter-card,
  .dashboard-panel,
  .kpi-card {
    border-radius: 18px;
  }

  .market-hero {
    min-height: 260px;
    padding: 22px;
  }

  .market-hero::after {
    width: 100%;
    opacity: 0.3;
  }

  .market-hero h1 {
    font-size: 2.55rem;
  }

  .algeria-landmarks {
    right: -54%;
    bottom: -6px;
    width: 150%;
    opacity: 0.24;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .alphabet-row {
    grid-template-columns: 1fr;
  }

  .market-home .wilaya-letter-reset {
    justify-self: stretch;
  }

  .map-legend-list,
  .mock-zoom-controls {
    display: none;
  }

  .coverage-shell {
    min-height: 360px;
  }

  .dashboard-coverage-map.region-designed-map.svg-map {
    height: 360px;
    min-height: 320px;
  }

  .table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    padding: 14px;
  }

  .table-row.table-head {
    display: none;
  }
}

/* Focused public homepage */
body:has(.home-page) {
  --home-ink: #111827;
  --home-muted: #607089;
  --home-line: #dbe3ef;
  --home-surface: #ffffff;
  --home-soft: #f5f8fc;
  --home-teal: #0f9f8f;
  --home-blue: #2563eb;
  --home-amber: #d97706;
  background:
    radial-gradient(circle at 78% 2%, rgba(20, 184, 166, 0.14), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
  color: var(--home-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(.home-page) main {
  padding: 28px clamp(18px, 4vw, 56px) 64px;
}

body:has(.home-page) .top {
  width: min(1760px, calc(100% - 56px));
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body:has(.home-page) .brand-text,
body:has(.home-page) .main-menu a,
body:has(.home-page) .account-menu a {
  color: var(--home-ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
}

body:has(.home-page) .main-menu {
  gap: 4px;
}

body:has(.home-page) .main-menu a,
body:has(.home-page) .account-menu a {
  padding: 9px 11px;
  border-radius: 8px;
  text-decoration: none;
}

body:has(.home-page) .main-menu a:hover,
body:has(.home-page) .account-menu a:hover {
  background: #eef6ff;
  color: var(--home-blue);
}

body:has(.home-page) .site-footer {
  display: none;
}

.home-page {
  width: min(1760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  font-size: 16px;
}

.home-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 86px);
  border: 1px solid rgba(219, 227, 239, 0.86);
  border-radius: 24px;
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 45%, #eaf8f7 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.15) 100%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
  pointer-events: none;
}

.home-hero-map {
  position: absolute;
  inset: 24px 0 0 auto;
  width: min(58%, 860px);
  height: calc(100% - 34px);
  min-height: 420px;
  opacity: 0.22;
  pointer-events: none;
  filter: saturate(0.88);
}

.home-hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.9;
  pointer-events: none;
  filter: saturate(1.05);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
}

.home-kicker,
.home-section-head p {
  margin: 0 0 12px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 560px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
}

.home-lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  font-weight: 450;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.home-actions a,
.home-next-step a,
.home-section-head a {
  text-decoration: none;
}

.home-primary,
.home-secondary,
.home-link,
.home-next-step a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.home-primary {
  background: var(--home-ink);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.18);
}

.home-secondary {
  border: 1px solid var(--home-line);
  background: #ffffff;
  color: var(--home-ink);
}

.home-link {
  color: var(--home-blue);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-stats article {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(219, 227, 239, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.home-stats strong {
  display: block;
  color: var(--home-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.home-stats span {
  display: block;
  margin-top: 10px;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 700;
}

.home-filter-panel,
.home-chart-card,
.home-recent-card {
  border: 1px solid rgba(219, 227, 239, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
}

.home-filter-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 20px 24px 24px;
}

.home-filter-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.home-filter-form label span {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-filter-form input,
.home-filter-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--home-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  outline: none;
}

.home-filter-form input:focus,
.home-filter-form select:focus {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.home-filter-form button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--home-blue);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.home-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.home-section-head.compact {
  padding-bottom: 0;
}

.home-sector-bars {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
}

.home-sector-bars a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  color: var(--home-ink);
  text-decoration: none;
}

.home-sector-bars a span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
}

.home-sector-bars i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot);
}

.home-sector-bars b {
  color: var(--home-muted);
  font-size: 14px;
}

.home-sector-bars em {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.home-sector-bars small {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-teal), var(--home-blue));
}

.home-recent-list {
  display: grid;
  padding: 12px 18px 18px;
}

.home-recent-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--home-ink);
  text-decoration: none;
}

.home-recent-list a:hover {
  background: var(--home-soft);
}

.home-recent-list > a > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-recent-list strong,
.home-recent-list small {
  display: block;
}

.home-recent-list strong {
  font-size: 15px;
  line-height: 1.25;
}

.home-recent-list small {
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 650;
}

.home-recent-list em {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f8f2;
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.home-empty {
  margin: 0;
  padding: 18px 24px 24px;
  color: var(--home-muted);
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.home-map-panel,
.home-side-panel {
  min-width: 0;
  border: 1px solid rgba(219, 227, 239, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.home-section-head h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-section-head a {
  color: var(--home-blue);
  font-size: 15px;
  font-weight: 800;
}

.home-map {
  position: relative;
  height: 570px;
  margin: 16px 20px 20px;
  border: 1px solid rgba(219, 227, 239, 0.88);
  border-radius: 10px;
  background:
    radial-gradient(circle at 74% 18%, rgba(20, 184, 166, 0.13), transparent 28%),
    linear-gradient(145deg, #f8fbff, #eef5fa);
  overflow: hidden;
}

.home-map .market-total-pin,
.home-hero-map .market-total-pin {
  display: none;
}

.home-map[data-home-map] .market-total-pin {
  display: grid;
}

.home-side-panel {
  display: flex;
  flex-direction: column;
}

.home-wilaya-list {
  display: grid;
  gap: 4px;
  padding: 18px 18px 0;
}

.home-wilaya-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--home-ink);
  text-decoration: none;
}

.home-wilaya-list a:hover {
  background: var(--home-soft);
}

.home-wilaya-list b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #dff8ee;
  color: #0f766e;
  font-size: 14px;
}

.home-wilaya-list a:nth-child(2) b { background: #eaf1ff; color: var(--home-blue); }
.home-wilaya-list a:nth-child(3) b { background: #fff1d6; color: var(--home-amber); }
.home-wilaya-list a:nth-child(4) b { background: #eef2ff; color: #4f46e5; }
.home-wilaya-list a:nth-child(5) b { background: #f1f5f9; color: #475569; }

.home-wilaya-list span {
  display: grid;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
}

.home-wilaya-list small {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.home-wilaya-list small i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-teal), var(--home-blue));
}

.home-wilaya-list em {
  color: var(--home-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.home-next-step {
  margin: auto 18px 18px;
  padding: 20px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--home-line);
}

.home-next-step strong {
  color: var(--home-ink);
  font-size: 18px;
}

.home-next-step p {
  margin: 8px 0 16px;
  color: var(--home-muted);
  line-height: 1.5;
}

.home-next-step a {
  width: 100%;
  background: #ffffff;
  color: var(--home-blue);
  border: 1px solid var(--home-line);
}

@media (max-width: 1080px) {
  body:has(.home-page) .top {
    width: min(100% - 28px, 1760px);
  }

  .home-stats,
  .home-data-grid,
  .home-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-map-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .home-hero-image {
    width: 74%;
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  body:has(.home-page) main {
    padding: 16px 14px 42px;
  }

  body:has(.home-page) .top {
    margin-top: 12px;
    padding: 12px;
  }

  .home-page {
    gap: 16px;
  }

  .home-hero {
    min-height: 470px;
    padding: 28px;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.45) 100%);
  }

  .home-hero-image {
    inset: auto -18% 0 auto;
    width: 118%;
    height: 56%;
    opacity: 0.42;
    object-fit: cover;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-stats,
  .home-data-grid,
  .home-filter-form,
  .home-overview {
    grid-template-columns: 1fr;
  }

  .home-map {
    height: 420px;
    margin: 14px;
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px 0;
  }
}

/* Google-simple public layer */
:root {
  --g-blue: #1a73e8;
  --g-green: #188038;
  --g-yellow: #f9ab00;
  --g-red: #d93025;
  --g-ink: #202124;
  --g-muted: #5f6368;
  --g-line: #dadce0;
  --g-soft: #f8fafd;
  --g-shadow: 0 1px 3px rgba(60, 64, 67, .18);
}

body {
  background: var(--g-soft);
  color: var(--g-ink);
  font-family: "Google Sans", "Product Sans", "Segoe UI", sans-serif;
}

.top {
  min-height: 64px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--g-line);
  box-shadow: none;
}

.brand-text,
.brand,
.top a {
  color: var(--g-ink);
}

.brand-mark {
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.main-menu a,
.account-menu a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #3c4043;
  font-weight: 500;
}

.main-menu a:hover,
.account-menu a:hover,
.main-menu a.active {
  background: #e8f0fe;
  color: #174ea6;
}

.main-menu a.active::after {
  display: none;
}

.notification-link {
  background: transparent;
  color: #3c4043;
}

main {
  max-width: 1440px;
  padding: 24px;
}

.site-footer {
  max-width: 1440px;
  color: var(--g-muted);
}

.site-footer a {
  color: var(--g-blue);
  font-weight: 600;
}

.home-page,
.home-data-grid,
.home-overview {
  gap: 16px;
}

.home-filter-panel,
.home-chart-card,
.home-recent-card,
.home-map-panel,
.home-side-panel,
.home-stats article,
.home-next-step {
  border: 1px solid var(--g-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--g-shadow);
}

.home-primary,
.home-secondary,
.home-link,
.home-filter-form button,
.home-next-step a {
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
}

.home-primary,
.home-filter-form button,
.home-next-step a {
  background: var(--g-blue);
}

.home-secondary,
.home-link {
  border: 1px solid var(--g-line);
  background: #fff;
  color: var(--g-blue);
}

.home-section-head p {
  color: var(--g-muted);
  letter-spacing: 0;
}

input,
select,
textarea {
  border-radius: 8px;
  border-color: var(--g-line);
}
