:root {
  /* These values come directly from Cafeneti's supplied RTL bundle. */
  --brand: var(--bs-primary, #3E97FF);
  --brand-700: var(--bs-primary-active, #0095e8);
  --brand-50: var(--bs-primary-light, #f1faff);
  --navy: var(--bs-gray-900, #071437);
  --success: var(--bs-success, #50cd89);
  --success-50: var(--bs-success-light, #e8fff3);
  --warning: var(--bs-warning, #ffc700);
  --warning-50: var(--bs-warning-light, #fff8dd);
  --danger: var(--bs-danger, #f1416c);
  --danger-50: var(--bs-danger-light, #fff5f8);
  --ink: var(--bs-gray-900, #071437);
  --muted: var(--bs-gray-600, #78829D);
  --line: var(--bs-gray-200, #F1F1F2);
  --surface: var(--bs-body-bg, #fff);
  --page: var(--bs-app-bg-color, #fcfcfc);
  --shadow: 0 4px 12px rgba(0, 0, 0, .03);
  --radius: .625rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "IRANSansWeb", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1320px, calc(100% - 32px)); max-width: none; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hide { display: none !important; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.full { width: 100%; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.space-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.topbar { background: var(--navy); color: #DBDFE9; font-size: 12px; padding: 5px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 15px; }
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.header-row { min-height: 70px; display: flex; align-items: center; gap: 27px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; border-radius: .625rem; display: grid; place-items: center; background: var(--brand); color: var(--bs-primary-inverse, #fff); box-shadow: var(--shadow); }
.main-nav { display: flex; gap: 20px; font-size: 13px; color: var(--bs-gray-700, #4B5675); }
.main-nav a:hover { color: var(--brand); }
.header-actions { margin-right: auto; display: flex; align-items: center; gap: 8px; }
.user-pill { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid var(--line); background: #fff; border-radius: .625rem; }
.avatar { width: 35px; height: 35px; border-radius: .475rem; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 900; }

.btn {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: .475rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}
.btn:hover { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: var(--bs-primary-inverse, #fff); box-shadow: none; }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { background: #fff; color: var(--bs-gray-700, #4B5675); border-color: var(--bs-gray-300, #DBDFE9); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-success { background: var(--success); color: var(--bs-success-inverse, #fff); }
.btn-danger { background: var(--danger-50); border-color: var(--bs-danger-light, #fff5f8); color: var(--danger); }
.btn-sm { min-height: 35px; padding: 6px 10px; font-size: 12px; }
.icon-btn { width: 40px; min-width: 40px; padding: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: .425rem; padding: .325rem .5rem; font-size: 11px; font-weight: 700; line-height: 1.3; }
.badge-info { color: var(--brand-700); background: var(--brand-50); }
.badge-success { color: #087650; background: var(--success-50); }
.badge-warning { color: #9a5b00; background: var(--warning-50); }
.badge-danger { color: var(--danger); background: var(--danger-50); }
.badge-neutral { color: var(--bs-gray-700, #4B5675); background: var(--bs-gray-100, #F9F9F9); }

.breadcrumb { padding: 15px 0 7px; color: var(--muted); font-size: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "←"; margin-right: 8px; color: #98a2b3; }

.page-hero { padding: 22px 0; }
.hero-card { background: linear-gradient(120deg, #fff, var(--brand-50)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 8%, transparent); left: -60px; top: -120px; }
.hero-card > * { position: relative; z-index: 1; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 900; }
h1 { margin: 4px 0 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1.4; }
h2 { line-height: 1.5; }
.hero-card p { margin: 0; max-width: 760px; color: var(--bs-gray-700, #4B5675); font-size: 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 17px 19px; border-bottom: 1px solid #edf0f5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; }
.card-body { padding: 19px; }
.notice { border-radius: var(--radius); padding: 13px 15px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice-info { background: var(--brand-50); border: 1px solid #cfdbfa; color: #294580; }
.notice-warning { background: var(--warning-50); border: 1px solid #f4d89d; color: #754c10; }
.notice-success { background: var(--success-50); border: 1px solid #b9ead7; color: #176048; }
.notice-danger { background: var(--danger-50); border: 1px solid #f7c3be; color: #84241d; }

.tabs { display: flex; gap: 6px; background: var(--bs-gray-100, #F9F9F9); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px; width: max-content; max-width: 100%; }
.tab { border: 0; background: transparent; color: var(--bs-gray-700, #4B5675); padding: 9px 15px; border-radius: .475rem; cursor: pointer; font-weight: 800; font-size: 13px; white-space: nowrap; }
.tab.active { color: var(--brand); background: #fff; box-shadow: 0 4px 12px rgba(16,34,80,.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field.full-span { grid-column: 1 / -1; }
.field label { display: block; margin: 0 3px 5px; font-weight: 700; font-size: 12px; color: var(--bs-gray-700, #4B5675); }
.field label .required { color: var(--danger); }
.field label .required::after { content: none !important; }
.field small { display: block; color: var(--muted); font-size: 11px; margin: 4px 4px 0; }
.control { width: 100%; min-height: 46px; border: 1px solid var(--bs-gray-300, #DBDFE9); background: #fff; color: var(--bs-gray-700, #4B5675); border-radius: .475rem; padding: .775rem 1rem; outline: none; font-weight: 500; }
.control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand) 20%, transparent); }
textarea.control { min-height: 105px; resize: vertical; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.check-card { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: .475rem; padding: 10px; cursor: pointer; font-size: 12px; background: #fff; }
.check-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.check-card input { width: 17px; height: 17px; accent-color: var(--brand); }
.upload-box { border: 1px dashed #aeb8c7; background: #fafbfe; border-radius: 13px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; }
.upload-box strong { color: var(--brand); display: block; }
.map-placeholder { min-height: 220px; border-radius: 14px; position: relative; overflow: hidden; background: #e8edf5; border: 1px solid #d8dee9; }
.map-placeholder::before { content: ""; position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(#cbd4e0 1px, transparent 1px), linear-gradient(90deg, #cbd4e0 1px, transparent 1px); background-size: 45px 45px; transform: rotate(-6deg) scale(1.2); }
.map-pin { position: absolute; top: 46%; right: 53%; width: 38px; height: 38px; display: grid; place-items: center; background: var(--brand); color: #fff; border: 3px solid #fff; border-radius: 50% 50% 50% 7px; transform: rotate(-45deg); box-shadow: 0 7px 15px rgba(36,87,230,.25); }
.map-pin span { transform: rotate(45deg); }
.map-label { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94); border-radius: 9px; padding: 7px 10px; font-size: 11px; color: var(--muted); }
.form-actions { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 13px 0; margin-top: 22px; backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.step { background: #edf0f5; height: 6px; border-radius: 99px; }
.step.done, .step.active { background: var(--brand); }

/* Private owner/admin applications — matched to the supplied light-sidebar theme. */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 265px minmax(0, 1fr); }
.sidebar { background: var(--bs-app-sidebar-light-bg-color, #fff); color: var(--bs-gray-800, #252F4A); padding: 22px 15px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-left: 1px solid var(--bs-app-sidebar-base-border-color, #F1F1F2); box-shadow: var(--bs-app-sidebar-light-box-shadow, 0 0 28px rgba(82,63,105,.05)); }
.sidebar .logo { color: var(--ink); padding: 0 8px 20px; }
.sidebar-label { color: var(--bs-app-sidebar-light-menu-heading-color, #B5B5C3); font-size: 10px; font-weight: 900; margin: 18px 10px 7px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; border-radius: .475rem; padding: 10px 11px; font-size: 13px; color: var(--bs-app-sidebar-light-menu-link-color, #252F4A); }
.side-nav a b { color: var(--bs-app-sidebar-light-menu-link-icon-color, #99A1B7); }
.side-nav a:hover, .side-nav a.active { background: var(--bs-app-sidebar-light-menu-link-bg-color-active, #F7F8FB); color: var(--brand); }
.side-nav a:hover b, .side-nav a.active b { color: var(--brand); }
.side-nav .count { margin-right: auto; background: var(--danger); color: var(--bs-danger-inverse, #fff); min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: .425rem; font-size: 10px; }
.sidebar-bottom { margin-top: 28px; border-top: 1px solid var(--bs-app-sidebar-light-separator-color, #E4E6EF); padding-top: 14px; }
.app-main {
  /* The supplied bundle uses .app-main as a flex wrapper. In these standalone
     prototypes it is the page column, so explicitly neutralize that rule. */
  display: block;
  min-width: 0;
}
.app-topbar { min-height: 70px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(82,63,105,.05); display: flex; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
.app-title h1 { margin: 0; font-size: 19px; }
.app-title p { margin: 0; color: var(--muted); font-size: 11px; }
.app-actions { margin-right: auto; display: flex; align-items: center; gap: 8px; }
.app-content { padding: 22px 24px 40px; max-width: 1440px; }
.mobile-menu { display: none; }
.status-banner { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: var(--radius); margin-bottom: 17px; }
.status-banner .status-icon { width: 42px; height: 42px; border-radius: .625rem; display: grid; place-items: center; font-size: 19px; flex: 0 0 42px; }
.status-banner h2 { margin: 0; font-size: 15px; }
.status-banner p { margin: 2px 0 0; font-size: 12px; }
.status-banner .btn { margin-right: auto; white-space: nowrap; }
.status-published { background: var(--success-50); border: 1px solid #bde8d8; }
.status-published .status-icon { background: #d5f5e8; color: var(--success); }
.status-pending { background: var(--warning-50); border: 1px solid #f2d6a0; }
.status-pending .status-icon { background: #ffedca; color: var(--warning); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 17px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); }
.stat-icon { width: 36px; height: 36px; border-radius: .475rem; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 9px; }
.stat-card strong { display: block; font-size: 23px; line-height: 1.35; }
.stat-card span { color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 17px; align-items: start; }
.progress-wrap { display: flex; align-items: center; gap: 14px; }
.progress-ring { --p: 85; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #e9edf4 0); position: relative; flex: 0 0 76px; }
.progress-ring::after { content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%; background: #fff; }
.progress-ring b { position: relative; z-index: 1; font-size: 14px; }
.checklist { display: grid; gap: 9px; margin-top: 14px; }
.checklist-item { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.checkmark { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--success-50); color: var(--success); font-size: 11px; }
.checkmark.todo { background: #f1f3f7; color: #98a2b3; }
.activity-list { display: grid; gap: 0; }
.activity { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.activity:last-child { border-bottom: 0; }
.activity-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f1f4fa; font-size: 12px; }
.activity p { margin: 0; font-size: 12px; }
.activity time { color: var(--muted); font-size: 10px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-action { border: 1px solid var(--line); border-radius: .475rem; padding: 12px; background: #fff; font-size: 12px; text-align: center; }
.quick-action span { display: block; font-size: 21px; margin-bottom: 4px; }

/* City directory */
.city-page { background: #fff; }
.city-page .main-nav a.active { color: var(--brand); font-weight: 800; }
.city-hero { padding: 8px 0 26px; }
.city-hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: end;
  padding: 28px;
  background: linear-gradient(125deg, #fff 25%, var(--brand-50));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.city-hero > .container::after { content: ""; width: 260px; height: 260px; position: absolute; left: -90px; top: -130px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 7%, transparent); }
.city-hero__content { position: relative; z-index: 1; }
.city-hero h1 { margin: 4px 0 8px; font-size: clamp(25px, 3.2vw, 38px); }
.city-hero p { margin: 0; color: var(--bs-gray-700, #4B5675); font-size: 14px; max-width: 760px; }
.city-search { display: grid; grid-template-columns: minmax(270px, 1.4fr) minmax(220px, .8fr) auto; gap: 9px; margin-top: 22px; }
.search-field { min-height: 48px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--bs-gray-300, #DBDFE9); background: #fff; border-radius: .475rem; padding: 0 13px; }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand) 15%, transparent); }
.search-field > span { color: var(--brand); font-size: 18px; }
.search-field input, .search-field select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.quick-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.filter-chip { border: 1px solid var(--line); background: #fff; color: var(--bs-gray-700, #4B5675); border-radius: .475rem; min-height: 34px; padding: 5px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.filter-chip:hover, .filter-chip.active { border-color: color-mix(in srgb, var(--brand) 45%, #fff); background: var(--brand-50); color: var(--brand-700); }
.city-hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 1; background: rgba(255,255,255,.84); border: 1px solid rgba(219,223,233,.85); border-radius: var(--radius); backdrop-filter: blur(8px); }
.city-hero__facts div { padding: 18px 8px; text-align: center; border-left: 1px solid var(--line); }
.city-hero__facts div:last-child { border-left: 0; }
.city-hero__facts strong { display: block; color: var(--brand); font-size: 23px; line-height: 1.2; }
.city-hero__facts span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }

.city-results-section { padding-top: 12px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 15px; }
.results-toolbar h2 { margin: 0; font-size: 21px; }
.results-toolbar p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.results-toolbar p span { color: var(--ink); font-weight: 800; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.sort-select { min-height: 42px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--bs-gray-300, #DBDFE9); border-radius: .475rem; background: #fff; padding: 0 12px; font-size: 11px; color: var(--muted); }
.sort-select select { border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.city-directory-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .65fr); gap: 18px; align-items: start; }
.center-list { display: grid; gap: 12px; }
.center-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; background: #fff; box-shadow: var(--shadow); transition: border-color .18s ease, box-shadow .18s ease; }
.center-card:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); box-shadow: 0 8px 24px rgba(7,20,55,.06); }
.center-card.featured { border-right: 3px solid var(--brand); }
.center-card__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.center-avatar { width: 48px; height: 48px; border-radius: .625rem; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 18px; font-weight: 900; }
.center-title h3 { margin: 0; font-size: 16px; }
.center-title h3 a:hover { color: var(--brand); }
.center-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.open-state { text-align: left; min-width: 95px; }
.open-state b, .open-state span { display: block; }
.open-state b { font-size: 11px; }
.open-state span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.open-state.is-open b { color: #087650; }
.open-state.is-closed b { color: var(--danger); }
.center-services { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 60px 0 0; }
.center-services span { padding: 4px 8px; border-radius: .425rem; background: var(--bs-gray-100, #F9F9F9); color: var(--bs-gray-700, #4B5675); font-size: 10px; }
.center-note { display: flex; align-items: center; gap: 6px; margin: 11px 60px 0 0; color: var(--muted); font-size: 10px; }
.center-note > span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--success-50); color: var(--success); }
.center-note.is-warning > span { background: var(--warning-50); color: #9a5b00; }
.center-card__actions { display: flex; gap: 7px; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.center-card__actions .btn { min-height: 37px; padding: 6px 12px; }
.center-card__actions .btn-soft { margin-right: auto; }
.load-more { width: 100%; }
.empty-results { padding: 45px 18px; text-align: center; border: 1px dashed var(--bs-gray-300, #DBDFE9); border-radius: var(--radius); }
.empty-results > span { font-size: 34px; color: var(--brand); }
.empty-results h3 { margin: 5px 0; font-size: 16px; }
.empty-results p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }

.city-map-column { display: grid; gap: 12px; }
.sticky-map-card { position: sticky; top: 86px; overflow: hidden; }
.city-map { height: 410px; position: relative; overflow: hidden; background: #edf2f7; border-bottom: 1px solid var(--line); }
.city-map::before, .city-map::after { content: ""; position: absolute; inset: 0; opacity: .65; }
.city-map::before { background-image: linear-gradient(#d8e0e9 1px, transparent 1px), linear-gradient(90deg, #d8e0e9 1px, transparent 1px); background-size: 46px 46px; transform: rotate(-8deg) scale(1.25); }
.city-map::after { background: radial-gradient(circle at 65% 30%, rgba(62,151,255,.13), transparent 20%), radial-gradient(circle at 23% 70%, rgba(80,205,137,.12), transparent 18%); }
.map-road { position: absolute; z-index: 1; display: block; height: 13px; width: 130%; background: #fff; border: 1px solid #d8e0e9; transform-origin: center; }
.road-a { top: 34%; right: -15%; transform: rotate(19deg); }
.road-b { top: 62%; right: -15%; transform: rotate(-13deg); }
.road-c { top: 47%; right: -15%; transform: rotate(74deg); }
.city-pin { position: absolute; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--bs-gray-700, #4B5675); color: #fff; box-shadow: 0 6px 16px rgba(7,20,55,.2); font-weight: 900; cursor: pointer; }
.city-pin.active { background: var(--brand); }
.pin-1 { top: 25%; right: 27%; }.pin-2 { top: 50%; right: 66%; }.pin-3 { top: 60%; right: 31%; }.pin-4 { top: 31%; right: 72%; }
.map-center-preview { position: absolute; z-index: 4; right: 14px; left: 14px; bottom: 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 11px 12px; border: 1px solid rgba(219,223,233,.9); background: rgba(255,255,255,.94); border-radius: .625rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.map-center-preview strong { font-size: 12px; }
.map-center-preview span { color: var(--muted); font-size: 9px; }
.map-center-preview button { grid-column: 2; grid-row: 1 / span 2; border: 0; background: var(--brand-50); color: var(--brand); border-radius: .475rem; padding: 8px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.map-legend { display: flex; gap: 14px; padding: 10px 14px; color: var(--muted); font-size: 9px; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--bs-gray-700, #4B5675); }
.map-legend i.verified-dot { background: var(--brand); }
.directory-tip .card-body { display: flex; gap: 10px; align-items: flex-start; }
.directory-tip .tip-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: .475rem; background: var(--warning-50); }
.directory-tip strong { font-size: 12px; }
.directory-tip p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 15px; }
.section-heading h2 { margin: 1px 0 0; font-size: 21px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.neighborhood-section { margin: 38px 0; padding: 32px 0; background: var(--bs-gray-100, #F9F9F9); border-block: 1px solid var(--line); }
.neighborhood-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.neighborhood-grid a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.neighborhood-grid a:hover { border-color: var(--brand); }
.neighborhood-grid strong { display: block; font-size: 12px; }
.neighborhood-grid span { display: block; color: var(--brand); font-size: 10px; margin-top: 5px; }
.city-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.city-service-grid button { display: grid; gap: 5px; text-align: right; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 17px; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.city-service-grid button:hover { border-color: var(--brand); background: var(--brand-50); }
.city-service-grid button > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: .475rem; background: var(--brand-50); color: var(--brand); font-size: 17px; }
.city-service-grid strong { font-size: 12px; }
.city-service-grid small { color: var(--muted); font-size: 9px; }
.online-city-cta, .register-city-cta { margin-top: 28px; padding: 23px 25px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.online-city-cta { background: linear-gradient(120deg, var(--brand-50), #fff); }
.online-city-cta h2, .register-city-cta h2 { margin: 7px 0 2px; font-size: 19px; }
.online-city-cta p, .register-city-cta p { margin: 0; color: var(--muted); font-size: 11px; }
.register-city-cta > div { display: flex; align-items: center; gap: 13px; }
.register-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: .625rem; background: var(--brand); color: #fff; font-size: 23px; }
.city-faq { padding-top: 36px; padding-bottom: 36px; max-width: 960px; }
.city-faq details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.city-faq summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 13px; }
.city-faq summary::-webkit-details-marker { display: none; }
.city-faq summary::before { content: "+"; float: left; width: 24px; height: 24px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border-radius: .425rem; }
.city-faq details[open] summary::before { content: "−"; }
.city-faq details p { margin: 10px 0 0; color: var(--muted); font-size: 11px; max-width: 820px; }

.route-sheet { display: none; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center; padding: 18px; }
.route-sheet.open { display: flex; }
.route-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,20,55,.52); backdrop-filter: blur(3px); }
.route-dialog { width: min(470px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; position: relative; z-index: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--bs-box-shadow-lg); padding: 18px; }
.route-handle { display: none; width: 38px; height: 4px; margin: -7px auto 10px; border-radius: 99px; background: var(--bs-gray-300, #DBDFE9); }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.route-head h2 { margin: 1px 0 0; font-size: 17px; }
.route-options { display: grid; gap: 7px; margin-top: 12px; }
.route-option { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: .475rem; }
.route-option:hover { border-color: var(--brand); background: var(--brand-50); }
.route-app-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: .475rem; background: var(--brand); color: #fff; font-weight: 900; }
.neshan-icon { background: #e6472d; }.google-icon { background: #4285f4; }.waze-icon { background: #33ccff; color: #071437; }.apple-icon { background: #071437; }
.route-option strong, .route-option small { display: block; }
.route-option strong { font-size: 12px; }.route-option small { color: var(--muted); font-size: 9px; }
.route-option > b { color: var(--brand); }
.route-privacy { margin: 11px 0 0; padding: 9px; background: var(--success-50); color: #176048; border-radius: .475rem; font-size: 9px; text-align: center; }

/* Main /city/ directory */
.directory-home { background: #fff; }
.directory-home .main-nav a.active { color: var(--brand); font-weight: 800; }
.directory-hero { padding: 8px 0 26px; }
.directory-hero > .container { min-height: 430px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); gap: 34px; align-items: center; padding: 38px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, #fff 30%, var(--brand-50)); box-shadow: var(--shadow); }
.directory-hero > .container::before { content: ""; position: absolute; width: 310px; height: 310px; border-radius: 50%; left: -130px; top: -160px; background: color-mix(in srgb, var(--brand) 7%, transparent); }
.directory-hero__content { position: relative; z-index: 2; }
.directory-hero h1 { margin: 5px 0 10px; font-size: clamp(28px, 4vw, 42px); max-width: 730px; }
.directory-hero p { margin: 0; max-width: 700px; color: var(--bs-gray-700, #4B5675); font-size: 14px; }
.directory-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 23px; max-width: 730px; }
.directory-search__input { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--bs-gray-300, #DBDFE9); border-radius: .475rem; background: #fff; }
.directory-search__input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand) 15%, transparent); }
.directory-search__input span { color: var(--brand); font-size: 20px; }
.directory-search__input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.directory-hero__actions { display: flex; align-items: center; gap: 11px; margin-top: 10px; }
.directory-hero__actions .btn { min-height: 37px; }
.directory-hero__actions > span { color: var(--muted); font-size: 9px; }
.directory-quick-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 10px; }
.directory-quick-links a { color: var(--brand); background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: .425rem; }

.directory-map-visual { height: 350px; position: relative; overflow: hidden; border: 1px solid rgba(219,223,233,.9); border-radius: var(--radius); background: #eef4f8; box-shadow: 0 12px 30px rgba(7,20,55,.06); }
.directory-map-visual::before { content: ""; position: absolute; inset: 0; opacity: .65; background-image: linear-gradient(#d6e0e8 1px, transparent 1px), linear-gradient(90deg, #d6e0e8 1px, transparent 1px); background-size: 42px 42px; transform: rotate(-7deg) scale(1.2); }
.directory-map-visual::after { content: ""; position: absolute; width: 260px; height: 190px; right: 80px; top: 78px; border-radius: 45% 55% 52% 48%; border: 18px solid rgba(62,151,255,.06); transform: rotate(-14deg); }
.coverage-card, .coverage-status { position: absolute; z-index: 4; right: 14px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 11px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: .625rem; backdrop-filter: blur(8px); }
.coverage-card { top: 14px; }
.coverage-status { bottom: 14px; }
.coverage-icon, .coverage-status > span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: .475rem; background: var(--brand-50); color: var(--brand); font-size: 17px; }
.coverage-status > span { background: var(--success-50); color: var(--success); }
.coverage-card strong, .coverage-card small, .coverage-status strong, .coverage-status small { display: block; }
.coverage-card strong, .coverage-status strong { font-size: 11px; }
.coverage-card small, .coverage-status small { color: var(--muted); font-size: 9px; }
.coverage-line { position: absolute; z-index: 1; height: 3px; border-radius: 99px; background: rgba(62,151,255,.22); transform-origin: right center; }
.line-one { width: 170px; top: 160px; right: 95px; transform: rotate(13deg); }
.line-two { width: 155px; top: 195px; right: 165px; transform: rotate(-18deg); }
.line-three { width: 120px; top: 150px; right: 235px; transform: rotate(37deg); }
.coverage-pin { position: absolute; z-index: 3; min-width: 54px; padding: 6px 8px; border: 3px solid #fff; border-radius: .625rem; background: var(--bs-gray-700, #4B5675); color: #fff; box-shadow: 0 6px 16px rgba(7,20,55,.2); font: inherit; cursor: pointer; }
.coverage-pin.active { background: var(--brand); }
.coverage-pin b, .coverage-pin small { display: block; }
.coverage-pin b { font-size: 10px; }.coverage-pin small { margin-top: 1px; font-size: 7px; opacity: .84; }
.pin-karaj { top: 135px; right: 130px; }.pin-tehran { top: 115px; right: 230px; }.pin-mashhad { top: 175px; left: 45px; }.pin-shiraz { top: 235px; right: 210px; }

.directory-trust { margin-top: -8px; border-block: 1px solid var(--line); background: var(--bs-gray-100, #F9F9F9); }
.directory-trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.directory-trust .container > div { display: grid; grid-template-columns: auto 1fr; gap: 1px 9px; padding: 17px 14px; border-left: 1px solid var(--line); }
.directory-trust .container > div:last-child { border-left: 0; }
.directory-trust span { grid-row: 1 / span 2; width: 35px; height: 35px; display: grid; place-items: center; border-radius: .475rem; background: var(--brand-50); color: var(--brand); }
.directory-trust strong { font-size: 11px; }
.directory-trust small { color: var(--muted); font-size: 8px; }

.popular-cities { padding-top: 38px; padding-bottom: 38px; }
.popular-city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.popular-city-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.popular-city-card:hover { border-color: var(--brand); }
.popular-city-card.featured { border-right: 3px solid var(--brand); background: linear-gradient(120deg, #fff, var(--brand-50)); }
.city-letter { width: 42px; height: 42px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: .625rem; background: var(--brand-50); color: var(--brand); font-size: 16px; font-weight: 900; }
.popular-city-card strong, .popular-city-card small { display: block; }
.popular-city-card strong { font-size: 12px; }.popular-city-card small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.popular-city-card > b { grid-column: 2; color: var(--brand); font-size: 9px; }

.province-directory { padding: 34px 0; border-block: 1px solid var(--line); background: var(--bs-gray-100, #F9F9F9); }
.province-search { min-height: 42px; width: min(310px, 100%); display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--bs-gray-300, #DBDFE9); border-radius: .475rem; background: #fff; }
.province-search span { color: var(--brand); }.province-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; }
.province-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.province-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.province-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.province-card__head > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: .475rem; background: var(--brand-50); color: var(--brand); font-weight: 900; }
.province-card h3 { margin: 0; font-size: 13px; }.province-card small { color: var(--muted); font-size: 8px; }
.province-cities { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 15px 12px; }
.province-cities a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 10px; }
.province-cities a:nth-last-child(-n+2) { border-bottom: 0; }
.province-cities a:hover, .province-cities a:hover b { color: var(--brand); }
.province-cities b { color: var(--muted); }
.province-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }

.nearby-explainer { margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, var(--success-50), #fff); }
.nearby-explainer__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: .625rem; background: #fff; color: var(--success); font-size: 24px; box-shadow: var(--shadow); }
.nearby-explainer h2 { margin: 2px 0; font-size: 18px; }.nearby-explainer p { margin: 0; color: var(--muted); font-size: 10px; }
.directory-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 32px; }
.directory-service-grid a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.directory-service-grid a:hover { border-color: var(--brand); background: var(--brand-50); }
.directory-service-grid a > span { width: 39px; height: 39px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: .475rem; background: var(--brand-50); color: var(--brand); font-size: 17px; }
.directory-service-grid strong { font-size: 11px; }.directory-service-grid small { color: var(--muted); font-size: 8px; }
.online-directory-cta, .directory-owner-cta { margin-top: 26px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.online-directory-cta { background: linear-gradient(120deg, var(--brand-50), #fff); }
.online-directory-cta h2, .directory-owner-cta h2 { margin: 7px 0 3px; font-size: 19px; }
.online-directory-cta p, .directory-owner-cta p { margin: 0; color: var(--muted); font-size: 10px; }
.online-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: #176048; font-size: 9px; }
.directory-owner-cta > div { display: flex; align-items: center; gap: 13px; }

/* Public profile */
.profile-cover { height: 180px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--line); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.profile-cover::before, .profile-cover::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--brand) 8%, transparent); }
.profile-cover::before { width: 260px; height: 260px; left: -30px; top: -110px; }
.profile-cover::after { width: 150px; height: 150px; right: 15%; bottom: -80px; }
.cover-label { position: absolute; left: 16px; bottom: 13px; background: rgba(255,255,255,.9); border-radius: 9px; padding: 6px 9px; font-size: 10px; color: var(--muted); }
.profile-summary { margin: -46px 22px 0; position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: end; }
.profile-logo { width: 92px; height: 92px; border: 5px solid #fff; background: var(--brand-50); color: var(--brand); border-radius: var(--radius); display: grid; place-items: center; font-size: 37px; box-shadow: var(--shadow); }
.profile-title { padding-bottom: 6px; }
.profile-title h1 { font-size: 26px; margin: 0 0 2px; }
.profile-title p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-actions { display: flex; gap: 8px; padding-bottom: 7px; }
.public-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 17px; margin-top: 20px; align-items: start; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.service-item { display: flex; gap: 9px; align-items: center; background: var(--bs-gray-100, #F9F9F9); border: 1px solid var(--line); border-radius: .475rem; padding: 10px; font-size: 12px; }
.service-item span { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-50); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hours-table td { padding: 8px 2px; border-bottom: 1px solid #edf0f5; }
.hours-table td:last-child { text-align: left; }
.contact-list { display: grid; gap: 10px; }
.contact-row { display: flex; gap: 9px; align-items: flex-start; }
.contact-row .contact-icon { width: 33px; height: 33px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: 0 0 33px; }
.contact-row strong { display: block; font-size: 12px; }
.contact-row span { color: var(--muted); font-size: 11px; }
.photo-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 9px; }
.photo { min-height: 145px; border-radius: var(--radius); display: grid; place-items: center; background: linear-gradient(145deg, var(--bs-gray-100, #F9F9F9), var(--bs-gray-200, #F1F1F2)); color: var(--muted); font-size: 12px; border: 1px solid var(--line); }
.claim-box { border: 1px dashed #aeb9ca; background: #fbfcfe; border-radius: 13px; padding: 14px; text-align: center; }

/* Admin */
.admin-filters { display: grid; grid-template-columns: 1.7fr 1fr 1fr auto; gap: 10px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 12px; }
.data-table th { color: var(--muted); font-size: 10px; text-align: right; background: #fafbfc; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.data-table tr:hover td { background: #fbfcff; }
.business-cell { display: flex; align-items: center; gap: 9px; }
.mini-avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.business-cell strong { display: block; }
.business-cell span { color: var(--muted); font-size: 10px; }
.review-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(10,20,43,.5); padding: 25px; align-items: center; justify-content: center; }
.review-panel.open { display: flex; }
.review-dialog { width: min(960px, 100%); max-height: calc(100vh - 50px); overflow-y: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--bs-box-shadow-lg, 0 1rem 2rem 1rem rgba(0,0,0,.1)); }
.dialog-head { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 17px; }
.dialog-body { padding: 19px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.compare-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare-box h3 { margin: 0; font-size: 11px; padding: 8px 11px; background: #f5f7fa; color: var(--muted); }
.compare-box dl { margin: 0; padding: 11px; display: grid; gap: 9px; }
.compare-box dt { color: var(--muted); font-size: 10px; }
.compare-box dd { margin: 0; font-size: 12px; }
.changed { background: #fff7e8; border-radius: 7px; padding: 5px 7px; }
.dialog-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 13px 19px; display: flex; flex-wrap: wrap; gap: 8px; }

.flow-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.flow-item { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 14px; position: relative; }
.flow-item:not(:last-child)::after { content: "←"; position: absolute; left: -16px; top: 42%; color: var(--brand); font-weight: 900; }
.flow-item b { display: block; color: var(--brand); font-size: 12px; }
.flow-item span { color: var(--muted); font-size: 10px; }

.toast { position: fixed; left: 18px; bottom: 18px; z-index: 200; padding: 11px 14px; border-radius: 11px; background: #172033; color: #fff; box-shadow: var(--shadow); font-size: 12px; transform: translateY(90px); opacity: 0; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }

footer { margin-top: 35px; background: #101828; color: #c8d0dc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 25px; padding: 32px 0; }
footer h3 { color: #fff; margin: 0 0 8px; font-size: 14px; }
footer p, footer a { color: #b6c0d0; font-size: 12px; }
.footer-links { display: grid; gap: 6px; }
.copyright { border-top: 1px solid #28334a; padding: 12px 0; color: #98a2b3; font-size: 10px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 80px minmax(0, 1fr); }
  .sidebar .logo span:last-child, .sidebar-label, .side-nav a span:not(.count), .sidebar-bottom span { display: none; }
  .sidebar .logo { justify-content: center; }
  .side-nav a { justify-content: center; }
  .side-nav .count { position: absolute; margin: -25px 25px 0 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .city-hero > .container { grid-template-columns: 1fr; }
  .city-hero__facts { max-width: 520px; }
  .city-directory-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .neighborhood-grid { grid-template-columns: repeat(3, 1fr); }
  .directory-hero > .container { grid-template-columns: 1fr 350px; padding: 28px; }
  .popular-city-grid, .province-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .form-grid, .dashboard-grid, .public-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .flow-strip { grid-template-columns: 1fr 1fr; }
  .flow-item::after { display: none; }
  .profile-summary { grid-template-columns: auto 1fr; align-items: center; }
  .profile-actions { grid-column: 1 / -1; }
  .profile-actions .btn { flex: 1; }
  .compare-grid { grid-template-columns: 1fr; }
  .city-search { grid-template-columns: 1fr 1fr; }
  .city-search .btn { grid-column: 1 / -1; }
  .city-directory-layout { grid-template-columns: 1fr; }
  .sticky-map-card { position: static; }
  .city-map { height: 330px; }
  .city-map-column { grid-row: 1; }
  .city-service-grid { grid-template-columns: 1fr 1fr; }
  .directory-hero > .container { grid-template-columns: 1fr; }
  .directory-map-visual { height: 310px; }
  .directory-trust .container { grid-template-columns: 1fr 1fr; }
  .directory-trust .container > div:nth-child(2) { border-left: 0; }
  .directory-trust .container > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .directory-service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 22px, 1160px); }
  .topbar .container span:last-child { display: none; }
  .topbar .container { justify-content: center; }
  .header-row { min-height: 61px; gap: 10px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-actions .btn, .header-actions .user-pill span { display: none; }
  .hero-card { padding: 21px 16px; border-radius: 18px; }
  .form-grid, .check-grid, .service-list, .photo-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .row { display: grid; grid-template-columns: 1fr 1fr; }
  .app-shell { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: 245px; z-index: 90; }
  .sidebar.open { display: block; }
  .sidebar .logo span:last-child, .sidebar-label, .side-nav a span:not(.count), .sidebar-bottom span { display: initial; }
  .side-nav a { justify-content: flex-start; }
  .side-nav .count { position: static; margin-right: auto; }
  .mobile-menu { display: inline-flex; }
  .app-topbar { padding: 0 12px; min-height: 62px; }
  .app-title h1 { font-size: 15px; }
  .app-actions .btn span { display: none; }
  .app-content { padding: 14px 11px 30px; }
  .status-banner { align-items: flex-start; flex-wrap: wrap; }
  .status-banner .btn { margin-right: 55px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 19px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .profile-cover { height: 135px; border-radius: 16px; }
  .profile-summary { margin: -35px 10px 0; gap: 9px; }
  .profile-logo { width: 72px; height: 72px; font-size: 28px; border-radius: 17px; }
  .profile-title h1 { font-size: 19px; }
  .profile-title .row-wrap { gap: 4px; }
  .profile-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .public-grid { margin-top: 14px; }
  .admin-filters { grid-template-columns: 1fr; }
  .review-panel { padding: 0; align-items: stretch; }
  .review-dialog { max-height: 100vh; border-radius: 0; }
  .flow-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 17px; }
  .city-page .header-actions .btn-primary { display: inline-flex; font-size: 0; width: 40px; min-width: 40px; padding: 0; }
  .city-page .header-actions .btn-primary::before { content: "↗"; font-size: 16px; }
  .city-page .header-actions .btn-outline { display: none; }
  .city-hero { padding-bottom: 18px; }
  .city-hero > .container { width: 100%; border-inline: 0; border-radius: 0; padding: 22px 12px; }
  .city-hero h1 { font-size: 23px; }
  .city-search { grid-template-columns: 1fr; margin-top: 17px; }
  .city-search .btn { grid-column: auto; }
  .quick-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .quick-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .city-hero__facts { width: 100%; }
  .city-hero__facts div { padding: 13px 5px; }
  .city-hero__facts strong { font-size: 19px; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-actions .btn { padding-inline: 7px; }
  .sort-select { justify-content: center; }
  .center-card { padding: 13px; }
  .center-card__top { grid-template-columns: auto 1fr; align-items: start; }
  .center-avatar { width: 43px; height: 43px; }
  .open-state { grid-column: 2; text-align: right; display: flex; gap: 6px; align-items: center; }
  .center-services, .center-note { margin-right: 0; }
  .center-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .center-card__actions .btn-soft { grid-column: 1 / -1; margin: 0; }
  .city-map-column { grid-row: auto; }
  .city-map { height: 290px; }
  .neighborhood-section { margin: 28px 0; padding: 25px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 5px; }
  .neighborhood-grid { grid-template-columns: 1fr 1fr; }
  .city-service-grid { grid-template-columns: 1fr 1fr; }
  .city-service-grid button { padding: 13px; }
  .online-city-cta, .register-city-cta { margin-top: 20px; padding: 18px 15px; flex-direction: column; align-items: stretch; }
  .register-city-cta > div { align-items: flex-start; }
  .route-sheet { align-items: end; padding: 0; }
  .route-dialog { width: 100%; max-height: 88vh; border-radius: 1rem 1rem 0 0; padding: 17px 13px calc(17px + env(safe-area-inset-bottom)); }
  .route-handle { display: block; }
  .directory-home .header-actions .btn-primary { display: inline-flex; font-size: 0; width: 40px; min-width: 40px; padding: 0; }
  .directory-home .header-actions .btn-primary::before { content: "↗"; font-size: 16px; }
  .directory-home .header-actions .btn-outline { display: none; }
  .directory-hero { padding-bottom: 18px; }
  .directory-hero > .container { width: 100%; min-height: 0; padding: 23px 12px; border-inline: 0; border-radius: 0; }
  .directory-hero h1 { font-size: 25px; }
  .directory-search { grid-template-columns: 1fr; }
  .directory-search .btn { width: 100%; }
  .directory-hero__actions { align-items: flex-start; flex-direction: column; }
  .directory-map-visual { height: 300px; }
  .pin-karaj { right: 80px; }.pin-tehran { right: 175px; }.pin-mashhad { left: 25px; }.pin-shiraz { right: 160px; }
  .directory-trust .container { width: 100%; }
  .directory-trust .container > div { padding: 13px 10px; }
  .directory-trust strong { font-size: 9px; }.directory-trust small { font-size: 7px; }
  .popular-cities { padding-top: 28px; padding-bottom: 28px; }
  .popular-city-grid, .province-grid { grid-template-columns: 1fr; }
  .province-directory .section-heading { display: grid; gap: 12px; }
  .province-search { width: 100%; }
  .nearby-explainer { grid-template-columns: auto 1fr; padding: 17px 14px; }
  .nearby-explainer .btn { grid-column: 1 / -1; width: 100%; }
  .directory-service-grid { grid-template-columns: 1fr; }
  .online-directory-cta, .directory-owner-cta { margin-top: 20px; padding: 18px 15px; flex-direction: column; align-items: stretch; }
  .directory-owner-cta > div { align-items: flex-start; }
}

/* Live Django directory additions: keep the supplied visual system and real site fonts. */
.directory-app { min-height: 65vh; }
.directory-app .directory-flashes { padding-block: 12px 0; }
.directory-app .directory-flashes .notice { margin-bottom: 8px; }
.directory-app .directory-hero__visual { display: flex; align-items: center; justify-content: center; min-height: 220px; }
.directory-app .coverage-map { width: min(340px,100%); aspect-ratio: 4 / 3; border: 1px solid #DBDFE9; border-radius: 28px; background: radial-gradient(circle at 34% 36%, #cbe7ff, transparent 38%), linear-gradient(145deg,#f1faff,#fff); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 20px 45px rgba(42,99,166,.08); }
.directory-app .coverage-map strong { font-size: 38px; color: #3E97FF; line-height: 1.2; }
.directory-app .coverage-map small { color: #78829D; }
.directory-app .coverage-map__label { font-size: 13px; color: #4B5675; }
.directory-app .popular-city-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.directory-app .popular-city-card { display: flex; flex-direction: column; min-height: 118px; padding: 18px; border: 1px solid #DBDFE9; border-radius: .625rem; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.03); }
.directory-app .popular-city-card strong { font-size: 18px; }
.directory-app .popular-city-card span { color: #78829D; font-size: 13px; }
.directory-app .popular-city-card small { margin-top: auto; color: #3E97FF; }
.directory-app .province-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.directory-app .province-card { border: 1px solid #DBDFE9; border-radius: .625rem; background: #fff; overflow: hidden; }
.directory-app .province-card summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 16px; list-style: none; }
.directory-app .province-card summary::after { content: "⌄"; color: #3E97FF; margin-right: 6px; }
.directory-app .province-card summary span { color: #78829D; font-size: 12px; }
.directory-app .province-city-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 16px; max-height: 260px; overflow: auto; }
.directory-app .province-city-list a { padding: 5px 9px; border-radius: .425rem; background: #F7F8FB; font-size: 12px; }
.directory-app .province-city-list a:hover { color: #0095E8; background: #F1FAFF; }
.directory-app .directory-map { min-height: 330px; border-radius: .625rem; background: #F1FAFF; z-index: 0; }
.directory-app .center-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.directory-app .profile-cover { overflow: hidden; min-height: 175px; }
.directory-app .profile-cover img { width: 100%; height: 250px; object-fit: cover; }
.directory-app .directory-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 20px; }
.directory-app .directory-pagination a { background: #F1FAFF; color: #0095E8; padding: 8px 12px; border-radius: .475rem; }
.directory-app .empty-state { padding: 35px 24px; text-align: center; background: #fff; border: 1px dashed #DBDFE9; border-radius: .625rem; }
.directory-app .empty-state h3 { margin: 0 0 8px; font-size: 18px; }
.directory-app .empty-state p { color: #78829D; }
.directory-app .registration-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,1fr); gap: 22px; align-items: start; padding-bottom: 60px; }
.directory-app .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.directory-app .form-field.full { grid-column: 1 / -1; }
.directory-app .form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.directory-app .form-field label { font-weight: 700; font-size: 13px; color: #071437; }
.directory-app .form-field label b { color: #F1416C; }
.directory-app .form-field input,
.directory-app .form-field select,
.directory-app .form-field textarea,
.directory-app .review-filters input,
.directory-app .review-filters select { width: 100%; min-height: 43px; padding: 10px 13px; border: 1px solid #DBDFE9; border-radius: .475rem; background: #fff; color: #071437; }
.directory-app .form-field select[multiple] { min-height: 145px; }
.directory-app .form-field textarea { min-height: 85px; }
.directory-app .form-field input:focus,
.directory-app .form-field select:focus,
.directory-app .form-field textarea:focus { border-color: #3E97FF; outline: 3px solid #F1FAFF; }
.directory-app .form-field small { color: #78829D; font-size: 11px; }
.directory-app .form-field .errorlist { color: #F1416C; margin: 0; padding-right: 18px; }
.directory-app .form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.directory-app .step-list { line-height: 2.5; padding-right: 20px; }
.directory-app .owner-dashboard, .directory-app .review-layout { padding-bottom: 60px; }
.directory-app .owner-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.directory-app .stat-card { background: #fff; border: 1px solid #DBDFE9; border-radius: .625rem; padding: 22px; display: flex; flex-direction: column; }
.directory-app .stat-card strong { font-size: 28px; color: #3E97FF; }
.directory-app .stat-card span { color: #78829D; }
.directory-app .owner-center-row { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #F1F1F2; }
.directory-app .owner-center-row:last-child { border-bottom: 0; }
.directory-app .table-wrap { overflow-x: auto; }
.directory-app .directory-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.directory-app .directory-table th, .directory-app .directory-table td { padding: 13px 10px; text-align: right; border-bottom: 1px solid #F1F1F2; vertical-align: top; }
.directory-app .directory-table th { color: #4B5675; background: #F7F8FB; white-space: nowrap; }
.directory-app .review-filters { display: flex; gap: 12px; align-items: end; margin-bottom: 18px; }
.directory-app .review-filters label { display: grid; gap: 5px; flex: 1; font-size: 12px; }
.directory-app .review-data { margin: 0; }
.directory-app .review-data div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F1F1F2; }
.directory-app .review-data dt { color: #78829D; }
.directory-app .review-data dd { margin: 0; overflow-wrap: anywhere; }
.directory-app .notice-danger { background: #FFF5F8; color: #B02248; border: 1px solid #F8BDD0; }
.directory-app .notice-warning { background: #FFF8DD; color: #745C00; border: 1px solid #FFE9A1; }
.directory-app .leaflet-container { font-family: "IRANSansWeb", Tahoma, sans-serif; }
@media (max-width: 1000px) {
  .directory-app .popular-city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-app .province-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .directory-app .registration-layout { grid-template-columns: 1fr; }
  .directory-app .form-grid { grid-template-columns: 1fr; }
  .directory-app .popular-city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-app .province-grid { grid-template-columns: 1fr; }
  .directory-app .review-filters { flex-wrap: wrap; }
  .directory-app .review-filters label { min-width: 140px; }
  .directory-app .owner-center-row { flex-direction: column; }
  .directory-app .review-data div { grid-template-columns: 95px 1fr; }
}

.directory-source-credit{font-size:11px;text-align:center;padding:10px 16px;color:#68748a}.directory-source-credit a{color:inherit;text-decoration:underline}.directory-nearby-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.directory-nearby-links a{display:inline-flex;align-items:center;gap:4px;padding:7px 11px;border-radius:999px;background:#eef4ff;color:#1d4ed8;text-decoration:none;font-size:13px}.directory-nearby-links a:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
