/* ── Map Layout ────────────────────────────────── */
.map-layout {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.map-layout .map-panel {
  flex: 0 0 340px;
  position: sticky;
  top: 1.5rem;
}

.map-layout .map-wrapper {
  flex: 1;
  min-width: 0;
}

.map-wrapper svg.iran-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
}

@media (max-width: 1024px) {
  .map-layout .map-panel { flex-basis: 280px; }
}

@media (max-width: 768px) {
  .map-layout {
    flex-direction: column-reverse;
  }
  .map-layout .map-panel {
    flex: none;
    width: 100%;
    position: static;
  }
  .map-wrapper svg.iran-map { max-height: 50vh; }
}

@media (max-width: 480px) {
  .map-wrapper { padding: 0.4rem; }
  .map-wrapper svg.iran-map { max-height: 40vh; }
}

/* ── Branch Info Card ──────────────────────────── */
.branch-info-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 0.75rem);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.07));
  overflow: hidden;
}

.branch-info-card .card-header {
  background: linear-gradient(135deg, var(--primary, #0284c7), var(--primary-dark, #0369a1));
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.branch-info-card .card-header::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}

.branch-info-card .card-body-info {
  padding: 0.5rem 1.25rem 1rem;
}

.branch-info-card .info-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border, #e2e8f0);
}

.branch-info-card .info-row:last-child {
  border-bottom: none;
}

.branch-info-card .info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

.branch-info-card .info-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text, #0f172a);
  line-height: 1.5;
}

.branch-info-card .info-value.ltr {
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
  font-weight: 600;
  color: var(--accent, #0d9488);
}

/* ── Empty Card ────────────────────────────────── */
.empty-card {
  background: var(--bg, #fff);
  border: 1px dashed var(--border, #e2e8f0);
  border-radius: var(--radius, 0.75rem);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-size: 1rem;
  font-weight: 500;
}

/* ── Province SVG styles ────────────────────────── */
.province {
  fill: #e8f4f8;
  stroke: #2c3e50;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.province:hover {
  fill: #b3d9e8;
  stroke-width: 2;
  cursor: pointer;
}

.province.selected {
  fill: #bfdbfe;
  stroke: var(--primary, #0284c7);
  stroke-width: 2.5;
}

/* ── Section override for map ──────────────────── */
.section-map {
  padding: 1.5rem;
  width: 95%;
}

@media (min-width: 768px) {
  .section-map { padding: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
}
