.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: #fff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.08);
  cursor: pointer;
  text-decoration: none;
}
.city-chip i { color: #1d4ed8; }
.city-chip-label { color: #64748b; font-weight: 500; }
.city-chip-change {
  color: #059669;
  font-weight: 800;
  margin-right: 0.15rem;
}
.city-chip-mobile {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

body.is-city-gate {
  background: #e4edf8;
  background-image: none;
}
body.is-city-gate .site-sticky-header,
body.is-city-gate .mobile-nav-offcanvas,
body.is-city-gate .site-footer,
body.is-city-gate .trial-banner,
body.is-city-gate .fab-ads-float {
  display: none !important;
}
body.is-city-gate main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.city-gate {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.15rem 1.25rem 1.75rem;
  background:
    radial-gradient(ellipse 58% 46% at 50% 42%, rgba(37, 99, 235, 0.18), transparent 68%),
    radial-gradient(ellipse 36% 28% at 50% 92%, rgba(14, 165, 233, 0.1), transparent 72%);
}

.city-picker {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
}

.city-stage-head {
  text-align: center;
  margin-bottom: 0.15rem;
}
.city-stage-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.25;
}
.city-stage-head h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 0.72rem auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.city-map-stage {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.city-map-host {
  display: flex;
  justify-content: center;
}
.city-map-host .ap-iran-map {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 190px);
  display: block;
  margin-inline: auto;
  overflow: visible;
}
.city-map-host #apProvinceLayer {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.city-map-host .ap-prov {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s ease, filter 0.4s ease, stroke 0.25s ease, stroke-width 0.25s ease;
}
.city-map-host.is-focus .ap-prov {
  opacity: 0.38;
  filter: saturate(0.55) brightness(0.92);
}
.city-map-host.is-focus .ap-prov.is-active {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 2.6;
  filter:
    saturate(1.25)
    brightness(1.16)
    drop-shadow(0 0 7px rgba(125, 211, 252, 0.95))
    drop-shadow(0 12px 16px rgba(15, 39, 92, 0.38));
}
.city-map-error { text-align: center; color: #64748b; padding: 2rem; }

body.is-city-loading { cursor: progress; }
.city-loading {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(228, 237, 248, 0.78);
  backdrop-filter: blur(8px);
}
.city-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 220px;
  padding: 1.35rem 1.6rem 1.2rem;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}
.city-loading-card strong {
  color: #0f172a;
  font-size: 1rem;
}
.city-loading-card span {
  color: #1d4ed8;
  font-weight: 800;
}
.city-loading-spin {
  width: 36px;
  height: 36px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  border: 3px solid #dbeafe;
  border-top-color: #1d4ed8;
  animation: city-spin 0.7s linear infinite;
}
@keyframes city-spin { to { transform: rotate(360deg); } }

.city-tooltip {
  position: fixed;
  z-index: 40;
  min-width: 132px;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  border-radius: 16px;
  padding: 0.7rem 0.9rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, calc(-100% - 14px));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
}
.city-tooltip strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}
.city-tooltip span {
  display: block;
  margin-top: 0.08rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
}
.city-tooltip span:empty,
.city-tooltip span[hidden] { display: none; }
.city-tooltip em {
  display: inline-flex;
  margin-top: 0.48rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
}

.island-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  width: min(860px, 100%);
  margin: 0.45rem auto 0;
}
.island-card {
  position: relative;
  min-height: 0;
  padding: 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(30, 58, 138, 0.07);
  color: #1e3a8a;
  cursor: pointer;
  font: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.island-name {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
}
.island-card:hover,
.island-card:focus-visible {
  background: #fff;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.14);
  outline: none;
}

.city-directory {
  display: none;
}
.city-dir-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: right;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(30, 58, 138, 0.05);
  cursor: pointer;
  font: inherit;
}
.city-dir-row:hover,
.city-dir-row:focus-visible {
  background: #fff;
  outline: none;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.12);
}
.city-dir-main {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.city-dir-main strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.city-dir-main em {
  font-style: normal;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.city-dir-count {
  flex-shrink: 0;
  min-width: 2rem;
  text-align: center;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.92rem;
}

.city-modal[hidden] { display: none !important; }
.city-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.city-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}
.city-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background:
    radial-gradient(ellipse 60% 48% at 50% 38%, rgba(37, 99, 235, 0.16), transparent 70%),
    #e4edf8;
  border-radius: 24px;
  padding: 1.6rem 1rem 1.15rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}
.city-modal-close {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
}

@media (max-width: 991px) {
  .navbar .city-chip { display: none; }
  .navbar-inner { flex-wrap: wrap; }
  .city-gate {
    align-items: flex-start;
    padding: 1.25rem 0.9rem 2rem;
  }
  .island-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.4rem;
  }
  .city-directory {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.15rem;
  }
}
@media (min-width: 992px) {
  .city-chip-mobile { display: none; }
}
@media (max-width: 420px) {
  .city-stage-head h1 { font-size: 1.45rem; }
  .island-card { border-radius: 10px; }
  .island-name { font-size: 0.78rem; }
}
