@font-face {
  font-family: 'yekan';
  src: url('fonts/yekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'vazir';
  src: url('fonts/vazir.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


  html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }
      

.geocontainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 80vh;
  align-items: start;
  direction: ltr;
  font-family: 'vazir', sans-serif !important;
}

.iran-map,
.provinces-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  direction: rtl;
}

.iran-map {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.iran-svg {
  width: 100%;
  height: auto;
  max-width: 550px;
  transition: opacity 0.5s ease;
}

.provinces-info {
  z-index: 2;
}

.provinces-info h5 {
    font-size: 20px !important;
    margin-bottom: 1rem !important;
    color: #2d2d2d !important;
    font-weight: 500 !important;
    text-align: right !important;
    border-bottom: 2px solid #e0e0e073 !important;
    padding-bottom: 1rem !important;
    font-family: 'yekan', sans-serif !important;
    margin-top: 0px !important;
    line-height: 1.5 !important;
}

.geoback-button {
  padding: 8px 7px 8px 12px !important;
  font-size: 16px !important; 
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
  background: linear-gradient(45deg, #03A9F4, #3F51B5) !important;
  display: flex !important;
  font-family: 'vazir' !important;
  font-weight: 500 !important;
  align-items: center !important;
   height: 40px !important;
       width: max-content !important;
}

.back-icon {
  width: 20px !important;
}

.iran-svg text {
  font-family: 'vazir', sans-serif !important;
  fill: #454545 !important;
  text-anchor: middle !important;
  dominant-baseline: middle !important;
  pointer-events: none !important;
}

.react-map-water {
  fill: #7bdaff !important;
}

.province-list,
.branch-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 440px !important;
  overflow-y: auto !important;
  padding: 0rem !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.province-list::-webkit-scrollbar,
.branch-list::-webkit-scrollbar {
  display: none !important;
}

.province-name {
  padding: 0rem 1.2rem !important;
  font-size: 17.6px !important;
  background-color: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  text-align: right !important;
  color: #333 !important;
  position: relative !important;
  animation: slideIn 0.5s ease forwards !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
  font-family: 'vazir' !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
   height: 55px !important;
}


.province-name:hover {
    background-color: #f1f1f1  !important;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.branch-list {
  gap: 1rem;
}

.branch-item {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  animation: slideIn 0.5s ease forwards;
  transition: box-shadow 0.3s ease;
}

.branch-header {
  margin-bottom: 0.8rem;
}

.branch-name {
  font-size: 19.2px;
  font-weight: 500;
  color: #2d2d2d;
  font-family: 'vazir';
      margin: 0px !important;
}

.branch-buttons {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.view-button {
    padding: 0px 10px;
    cursor: pointer !important;
    text-align: center !important;
    color: rgb(52, 52, 52) !important;
    border: 3px solid transparent !important;
    border-radius: 8px !important;
    background-image: linear-gradient(#f5fff7, #f5fff5), linear-gradient(to right, #8BC34A, #4CAF50) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    font-size: 15px !important;
    font-family: 'vazir', sans-serif !important;
    font-weight: 500 !important;
    width: fit-content !important;
    white-space: nowrap !important;
    transition: background 0.3s 
ease, transform 0.2s 
ease !important;
    text-decoration: none !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
}
.view-button:active {
  background-image: linear-gradient(#e8f5e9, #e8f5e9), linear-gradient(to right, #7CB342, #43A047) !important;
  transform: translateY(1px) !important;
}
.call-button {
  padding: 2px 12px !important;
  cursor: pointer !important;
  text-align: center !important;
  color: rgb(255, 255, 255) !important;
  border: none !important;
  border-radius: 8px !important;
  background: linear-gradient(to right, #8BC34A, #4CAF50) !important;
  font-size: 15px !important;
  font-family: 'vazir', sans-serif !important;
  font-weight: 500 !important;
  width: fit-content !important;
  white-space: nowrap !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
  text-decoration: none !important;
  height: 35px !important;
  display: flex !important;
  align-items: center !important;
      box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1) !important;
}
.call-button:active {
  background: linear-gradient(to right, #7CB342, #43A047) !important;
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 0px rgba(255, 255, 255, 0.2) !important;
}


.branch-description {
  font-size: 15.2px !important;
  color: #555 !important;
  line-height: 1.6 !important;
  font-family: 'vazir' !important;
      margin-bottom: 10px !important;
}

.no-data {
  font-size: 16px !important;
  color: #888 !important;
  text-align: center !important;
  padding: 1rem !important;
  animation: slideIn 0.5s ease forwards !important;
  font-family: 'vazir' !important;
}

.text-gilan { font-size: 20px; }
.text-alborz { font-size: 18px; }
.text-khorasan-razavi { font-size: 21px; }
.text-khorasan-shomali { font-size: 18px; }
.text-golestan { font-size: 21px; }
.text-mazandaran { font-size: 20px; }
.text-ardabil { font-size: 15px; }
.text-azarbayjan-sharghi { font-size: 18px; }
.text-azarbayjan-gharbi { font-size: 19px; }
.text-zanjan { font-size: 20px; }
.text-kordestan { font-size: 20px; }
.text-kermanshah { font-size: 20px; }
.text-ilam { font-size: 20px; }
.text-hamedan { font-size: 19px; }
.text-qazvin { font-size: 20px; }
.text-lorestan { font-size: 21px; }
.text-khuzestan { font-size: 21px; }
.text-kohgiluyeh { font-size: 12px; }
.text-chaharmahal { font-size: 13px; }
.text-markazi { font-size: 19px; }
.text-qom { font-size: 18px; }
.text-esfahan { font-size: 21px; }
.text-tehran { font-size: 21px; }
.text-semnan { font-size: 21px; }
.text-khorasan-jonobi { font-size: 21px; }
.text-yazd { font-size: 21px; }
.text-fars { font-size: 21px; }
.text-kerman { font-size: 21px; }
.text-sistan-baluchistan { font-size: 21px; }
.text-bushehr { font-size: 21px; }
.text-hormozgan { font-size: 21px; }

@media (max-width: 1000px) {
  .geocontainer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .iran-map,
  .provinces-info {
    grid-column: 1;
    width: 100%;
  }

  .iran-svg {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .iran-map {
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .province-list,
  .branch-list {
    max-width: 100%;
  }
}

.iran-map svg .tooltip,
.iran-map svg text[class^="text-"] {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 1 !important;
  color: #5a5a5a !important;
}

.iran-map svg .tooltip div {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
  opacity: 1 !important;
  color: #5a5a5a !important;
}



.tooltip {
    position: fixed !important;
    padding: 5px !important;
    font-size: 12px !important;
    font-family: 'vazir', Arial, sans-serif !important;
    color: #333 !important;
    line-height: 1.4 !important;
    max-width: 300px !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    display: block !important;
    opacity:1 !important;
}



.iran-map svg image[data-marker-id] {
  pointer-events: none;
}

#legend-container {
  margin-top: 0px;
}

.legend-content {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
}

.legend-text {
  font-size: 14px;
  font-family: 'Vazir', Arial, sans-serif;
  color: #333;
}

.geomap-error {
    color: red;
    font-weight: bold;
    text-align: center;
    margin: 20px;
}