.iran-map-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 24px auto;
  gap: 5px;
  padding: 0 12px;
   align-items: stretch;
}

.iran-map-left {
  flex: 1 1 60%;
  min-width: 500px;
  position: relative;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 18px;
  min-height: 500px;
}

#iran-map-holder svg {
  width: 100%;
  height: auto;
  display: block;
}

#iran-map-holder svg path.province {
  fill: #e9eef6;
  stroke: #666;
  stroke-width: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  shape-rendering: geometricPrecision;
}

#iran-map-holder svg path.province.hovered,
#iran-map-holder svg path.province:hover {
  fill: #4aa3ff !important;
  stroke: #1c64f2;
}

.iran-map-right {
  flex: 1 1 30%;
  max-width: 300px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  height: auto;
   overflow: visible;
  padding: 16px;
}


.iran-province-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 8px 12px; 
}


.iran-province-list li {
 padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  color: #333;
  user-select: none;
  text-align: center;
}

/* هاور یا فوکوس روی استان */
.iran-province-list li.hovered,
.iran-province-list li:hover{
  background-color: #4aa3ff;
  color: #fff;
  box-shadow: 0 0 8px rgba(74, 163, 255, 0.6);
}

.iran-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 20, 0.46);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
}

.iran-modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* ======== کارت مدال ریسپانسیو ======== */
.iran-modal-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;       /* به صورت درصدی برای واکنش‌گرایی */
    position: relative;
    color: #1a1a1a;
    line-height: 1.6;
    border: 1px solid #e1e7f0;
    box-sizing: border-box;
    text-align: left; /* متن پیش‌فرض چپ‌چین */
}

/* عنوان کارت */
.iran-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 26px;
    text-align: center;
    color: #0b2e53;
    border-bottom: 1px solid #e9eff7;
    padding-bottom: 12px;
}

.map-page-title,
.map-page-sub {
    text-align: center;   /* وسط چین کردن متن */
    margin-left: auto;    /* فاصله خودکار */
    margin-right: auto;   /* فاصله خودکار */
    display: block;       /* اطمینان از بلاک بودن */
}

#modal-province-name ,h2 {text-align: center;}  
#modal-province-name  {
  background: #4aa3ff;
  color: #fff;
  padding: 5px;
border-radius: 8px;

}
/* محتوای اطلاعات */
.iran-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15.5px;
    color: #333;
}

.iran-modal-info div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
    line-height: 1.6;
}

.iran-modal-info div::before {
    content: "🟢";
    font-size: 10px;
    margin-top: 6px;
}
.iran-modal-title p {
       text-align: center;
 
}
.iran-modal-info a {
    color: #0a73d9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.iran-modal-info a:hover {
    color: #1a5fd2;
    text-decoration: underline;
}

/* دکمه بستن */
.iran-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
}
/* =================== Responsive =================== */
@media (max-width: 1024px) {
  /* مخفی کردن نقشه */
  .iran-map-left {
    display: none;
  }

  .iran-map-right {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    margin-top: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
  }

  /* لیست استان‌ها */
  .iran-province-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px 6px;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .iran-province-list li {
    font-size: 15px; 
    padding: 10px 8px;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* مدال */
  .iran-modal-card {
    padding: 24px 20px;
    width: 95%;
    max-width: 420px;
    margin: 0 auto;
  }

  /* عنوان و زیرعنوان */
  .map-page-title {
    font-size: 12px; 
    margin-bottom: 10px;
  }

  .map-page-sub {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

/* موبایل کوچک‌تر از 768px */
@media (max-width: 768px) {
  .iran-map-right {
    padding: 12px 10px;
  }

  /* لیست استان‌ها: سه ستون در موبایل */
  .iran-province-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 6px;
  }

  .iran-province-list li {
    font-size: 13px;
    padding: 8px 8px;
  }
  
  #modal-province-name ,h2 {
    text-align: center;
    font-size: 15px; 
    font-weight: 600; 
}

  #iran-modal-title {
    font-size: 15px; 
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.iran-modal-info strong,.iran-modal-info a  {
        font-size: 13px;

}}
