@font-face {
  font-family: "Vazirmatn FD";
  src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn FD";
  src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn FD";
  src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f7f7f7;
  --text: #333;
  --muted: #555;
  --border: #e8e8e8;
  --surface: #fff;
  --chip: #eee;
  --primary: #2684ff;
  --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-family: "Vazirmatn FD", sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.swloc {
  min-height: 100vh;
  position: relative;
}

.swloc::before {
  background: linear-gradient(135deg, #78be1e, #0094ff);
  content: "";
  height: 195px;
  inset: 0 0 auto;
  position: absolute;
  z-index: -1;
}

.swloc-shell {
  margin: 0 auto;
  max-width: 1360px;
  padding: 0 12px 24px;
}

.swloc-header {
  align-items: center;
  color: #fff;
  display: flex;
  justify-content: flex-end;
  min-height: 130px;
  overflow: hidden;
  padding: 28px 0 24px;
  position: relative;
}

.swloc-header__copy {
  margin-inline-end: auto;
  max-width: min(100%, 28rem);
  padding-inline-end: 1rem;
  position: relative;
  text-align: right;
  z-index: 1;
}

.swloc-header__copy h1 {
  font-size: 1.5rem;
  margin-right: 32px;
}

.swloc-header__copy p {
  font-size: 1rem;
  font-weight: 300;
  margin-top: 0.3rem;
  margin-right: 32px;
}

.swloc-header__map {
  height: 118px;
  inset-inline-start: 0;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  z-index: 0;
}

.swloc-box {
  background: var(--surface);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.swloc-layout {
  align-items: stretch;
  display: grid;
  direction: ltr;
  gap: 1rem;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
}

.swloc-sidebar {
  direction: rtl;
  min-width: 0;
}

.swloc-stage {
  direction: rtl;
  min-width: 0;
}

.swloc-filter {
  margin-bottom: 1rem;
}

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

.swloc-select-wrap {
  position: relative;
}

.swloc-input {
  background: var(--chip);
  border: 1px solid transparent;
  border-radius: 2rem;
  color: #444;
  height: 38px;
  padding: 0 0.85rem;
  width: 100%;
}

.swloc-select {
  position: relative;
}

.swloc-select__trigger {
  align-items: center;
  background: var(--chip);
  border: 1px solid transparent;
  border-radius: 2rem;
  color: #444;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  height: 38px;
  justify-content: space-between;
  padding: 0 0.85rem;
  text-align: right;
  width: 100%;
}

.swloc-select__label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swloc-select__icon {
  flex: 0 0 auto;
  height: 1rem;
  transition: transform 0.2s ease;
  width: 1rem;
}

.swloc-select.is-open .swloc-select__icon {
  transform: rotate(180deg);
}

.swloc-select__menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 0.15rem;
  inset-inline: 0;
  margin-top: 0.35rem;
  max-height: 15rem;
  overflow: auto;
  padding: 0.3rem;
  position: absolute;
  top: 100%;
  z-index: 30;
}

.swloc-select__menu[hidden] {
  display: none;
}

.swloc-select__option {
  background: transparent;
  border: none;
  border-radius: 0.8rem;
  color: #444;
  cursor: pointer;
  padding: 0.65rem 0.8rem;
  text-align: right;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.swloc-select__option:hover {
  background: #eef8e2;
}

.swloc-select__option.is-selected {
  background: #e4f7cb;
  color: #1f2d1a;
  font-weight: 500;
}

.swloc-select__trigger:focus,
.swloc-input:focus {
  border-color: var(--primary);
  outline: none;
}

.swloc-select__trigger:disabled,
.swloc-input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.swloc-search {
  margin-top: 0.5rem;
  position: relative;
}

.swloc-search button {
  background: #eee;
  border: none;
  border-radius: 50%;
  bottom: 0.45rem;
  color: #555;
  cursor: pointer;
  font-size: 1.5rem;
  height: 1.5rem;
  left: 0.5rem;
  line-height: 1.5rem;
  padding: 0;
  position: absolute;
  transition: all 0.3s;
  width: 1.5rem;
}

.swloc-search button:hover {
  background: #fff;
}

.swloc-divider {
  border-top: 1px solid #eee;
  height: 1px;
  margin: 1rem 0;
}

.swloc-map-wrap {
  position: relative;
}

.swloc-map {
  border-radius: 1.5rem;
  height: 600px;
  overflow: hidden;
  width: 100%;
}

.swloc-map__find {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 1.5rem;
  bottom: 0.7rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
  justify-content: center;
  right: 0.7rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  /* Hint mobile browsers to treat taps as direct activation, not gestures. */
  touch-action: manipulation;
  transition: all 0.3s;
  /* Remove the default iOS tap flash because the button sits over the map. */
  -webkit-tap-highlight-color: transparent;
  z-index: 1000;
}

.swloc-map__find img {
  height: 24px;
  width: 24px;
}

.swloc-map__find:hover {
  background: #fff;
}

.swloc-result-list {
  max-height: 483px;
  min-height: 483px;
  overflow: auto;
  position: relative;
}

.swloc-result-list--mobile {
  max-height: calc(100vh - 120px);
  min-height: calc(100vh - 120px);
  padding: 0 0.7rem 0.7rem;
}

.swloc-result__item {
  border-radius: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1rem;
  min-height: 9rem;
  overflow: hidden;
}

.swloc-result__item button {
  align-items: center;
  background: #eee;
  border: none;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  text-align: right;
  transition: all 0.3s;
  width: 100%;
}

.swloc-result__item button:hover {
  background: #e4f7cb;
}

.swloc-result__item button img {
  height: 2.5rem;
  width: 2.5rem;
}

.swloc-result__item--content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.swloc-result__item--content h2 {
  font-size: 1rem;
}

.swloc-result__item--content p {
  color: var(--muted);
  font-size: 0.84rem;
}

.swloc-result__item--phone {
  background: #e6e6e6;
  color: var(--text);
  direction: ltr;
  display: block;
  font-weight: 700;
  padding: 0.35rem 0;
  text-align: center;
  text-indent: -1.5rem;
  transition: all 0.3s;
}

.swloc-result__item--phone:hover {
  background: #b3dfff;
}

.swloc-result__item--phone img {
  display: inline-block;
  margin-bottom: -0.2rem;
  margin-right: 0.3rem;
}

.swloc-result__phone {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2rem;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
  padding: 0.45rem 0.7rem;
  transition: background 0.3s;
  width: 100%;
}

.swloc-result__phone:hover {
  background: #effae1;
}

.swloc-result__phone span {
  color: #ff4500;
}

.map-loading {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 3rem 0;
  text-align: center;
  width: 100%;
}

.map-loading p {
  margin-top: 1rem;
}

.swloc-no-result {
  font-weight: 300;
  left: 0;
  padding: 0 2rem;
  position: absolute;
  right: 0;
  text-align: center;
  top: 20%;
}

.swloc-no-result img {
  display: block;
  margin: 0 auto 1rem;
  max-width: 100%;
  width: 9rem;
}

.swloc-popup {
  min-width: 250px;
  padding: 0.5rem 0;
}

.swloc-popup h3 {
  text-align: center;
}

.swloc-popup > * {
  padding: 0 0.5rem;
}

.swloc-popup__place {
  align-items: center;
  background: #eee;
  display: flex;
  gap: 0.4rem;
  margin: 0.5rem 0;
  padding: 0.2rem 0.5rem;
}

.swloc-popup__place svg {
  fill: #555;
  flex: 0 0 auto;
}

.swloc-popup p {
  color: #555;
  text-align: justify;
}

.swloc-popup em {
  color: #657180;
  display: block;
  font-style: normal;
  margin-top: 0.5rem;
}

.swloc-popup .row {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 1fr 2fr;
}

.swloc-popup__locate {
  background: linear-gradient(90deg, #0094ff, #0076cc);
  border-radius: 0.5rem;
  color: #fff;
  display: block;
  font-weight: 900;
  margin: 0.5rem 0.5rem 0;
  opacity: 0.85;
  padding: 0.5rem 0;
  text-align: center;
  transition: opacity 0.2s;
}

.swloc-popup__locate:hover {
  opacity: 1;
}

.ns-map-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.5rem;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: absolute;
  text-align: center;
  z-index: 1001;
}

.ns-map-overlay[hidden] {
  display: none;
}

.ns-map-overlay__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 100%;
  overflow: auto;
}

.ns-map-overlay p {
  color: #555;
  line-height: 1.9;
  margin: 0;
  max-width: 28rem;
}

.ns-map-overlay__action {
  background: #0f6a5b;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ns-map-overlay__action:hover {
  background: #0c584b;
}

.ns-map-overlay__action:active {
  transform: translateY(1px);
}

.ns-map-overlay__action[hidden] {
  display: none;
}

.ns-ios-help {
  direction: ltr;
  max-width: min(100%, 21rem);
  width: 100%;
}

.ns-ios-help[hidden] {
  display: none;
}

.ns-ios-help__device {
  background:
    linear-gradient(180deg, rgba(248, 248, 250, 0.96), rgba(237, 238, 243, 0.98));
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 2rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  overflow: hidden;
  padding: 0.75rem;
  text-align: left;
}

.ns-ios-help__status {
  align-items: center;
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  justify-content: space-between;
  padding: 0.1rem 0.55rem 0.7rem;
}

.ns-ios-help__status-icons {
  letter-spacing: 0;
}

.ns-ios-help__header {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 1fr auto 1fr;
  padding: 0.2rem 0.35rem 0.85rem;
}

.ns-ios-help__header strong {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.ns-ios-help__back {
  color: #007aff;
  font-size: 0.88rem;
}

.ns-ios-help__back::before {
  content: "‹ ";
  font-size: 1.15rem;
  line-height: 0;
}

.ns-ios-help__group {
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
  overflow: hidden;
}

.ns-ios-help__row {
  align-items: center;
  display: flex;
  font-size: 0.95rem;
  font-weight: 500;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0 0.9rem;
}

.ns-ios-help__switch {
  animation: ns-ios-switch-track 2.4s ease-in-out infinite;
  background: #c7c7cc;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.95rem;
  position: relative;
  width: 3.25rem;
}

.ns-ios-help__switch::before {
  animation: ns-ios-switch-knob 2.4s ease-in-out infinite;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0.12rem 0.35rem rgba(0, 0, 0, 0.22);
  content: "";
  height: 1.65rem;
  left: 0.15rem;
  position: absolute;
  top: 0.15rem;
  width: 1.65rem;
}

.ns-ios-help__path {
  color: #6e6e73;
  font-size: 0.76rem;
  line-height: 1.5;
  padding: 0.65rem 0.4rem 0.15rem;
  text-align: center;
}

@keyframes ns-ios-switch-track {
  0%,
  22% {
    background: #c7c7cc;
  }

  42%,
  100% {
    background: #34c759;
  }
}

@keyframes ns-ios-switch-knob {
  0%,
  22% {
    transform: translateX(0);
  }

  42%,
  100% {
    transform: translateX(1.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-ios-help__switch,
  .ns-ios-help__switch::before {
    animation: none;
  }

  .ns-ios-help__switch {
    background: #34c759;
  }

  .ns-ios-help__switch::before {
    transform: translateX(1.3rem);
  }
}

.ns-mapbox-status {
  display: none !important;
}

.ns-marker {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  display: block;
  padding: 0;
}

.ns-marker--province {
  background-image: url("../icons/flag-icon.svg");
  height: 28px;
  width: 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ns-marker--province:hover {
  height: 34px;
  width: 23px;
}

.ns-marker--store {
  background-image: url("../icons/marker-normal.svg");
  height: 35px;
  width: 24px;
}

.ns-marker--nearby {
  background-image: url("../icons/marker-drag.svg");
  height: 43px;
  width: 28px;
}

.ns-results-meta {
  color: #777;
  font-size: 0.88rem;
  margin: 0.2rem 0 0.7rem;
  text-align: center;
}

.mapboxgl-popup {
  top: -10px;
  direction: rtl;
}

.mapboxgl-popup-content {
  border-radius: 8px;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.25);
  padding: 0 5px;
  text-align: right;
}

.mapboxgl-popup-tip {
  border: 4px solid transparent;
}

.mapboxgl-popup-close-button {
  font-size: 18px;
  left: 0;
  right: auto;
}

.mapboxgl-ctrl-top-left {
  left: 10px;
  top: 10px;
}

.mapboxgl-ctrl-group {
  border: none !important;
  border-radius: 1rem !important;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

.mapboxgl-ctrl-group button {
  height: 30px;
  width: 30px;
}

.ns-mobile-drawer {
  inset: 0;
  position: fixed;
  z-index: 9999;
}

.ns-mobile-drawer[hidden] {
  display: none;
}

.ns-mobile-drawer__backdrop {
  background: rgba(0, 0, 0, 0.25);
  inset: 0;
  position: absolute;
}

.ns-mobile-drawer__panel {
  background: #fff;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  bottom: 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  left: 0;
  max-height: 82vh;
  padding-top: 2.6rem;
  position: absolute;
  right: 0;
}

.ns-mobile-drawer__content {
  overflow: auto;
}

.btn-close-drawer {
  background: #fff;
  border: none;
  border-bottom-left-radius: 0.5rem;
  border-top-left-radius: 0.5rem;
  cursor: pointer;
  height: 2rem;
  left: 0;
  line-height: 0;
  position: absolute;
  top: 2rem;
  transform: translateX(-2.3rem);
  width: 2.5rem;
}

.map-type-control .toggle-button {
  display: none;
}

@media (max-width: 991px) {
  .swloc-layout {
    grid-template-columns: 1fr;
  }

  .swloc-sidebar {
    order: 1;
  }

  .swloc-stage {
    order: 2;
  }

  .swloc-divider {
    display: none;
  }

  .swloc-result__phone {
    display: block;
    margin-top: 1rem;
  }

  #results-panel {
    display: none;
  }
}

@media (max-width: 767px) {
  .swloc-shell {
    padding-inline: 10px;
  }

  .swloc::before {
    height: 140px;
  }

  .swloc-header {
    min-height: 82px;
    padding: 16px 0 14px;
  }

  .swloc-header__copy {
    padding-inline-end: 0.4rem;
  }

  .swloc-header__copy h1 {
    font-size: 1.1rem;
  }

  .swloc-header__copy p {
    display: none;
  }

  .swloc-header__map {
    height: 54px;
  }

  .swloc-box {
    padding: 0.7rem;
  }

  .swloc-filter__grid {
    gap: 0.4rem;
  }

  .swloc-select,
  .swloc-input {
    font-size: 0.85rem;
  }

  .swloc-map {
    height: 350px;
  }

  .swloc-map__find span {
    font-size: 12px;
  }

  .swloc-result__item button img {
    height: 2rem;
    width: 2rem;
  }

  .swloc-result__item--content h2,
  .swloc-result__item--content p {
    font-size: 0.72rem;
  }

}