@font-face {
  font-family: 'vazir';
  src: url('fonts/vazir.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'yekan';
  src: url('fonts/yekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.geocontainer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: max-content;
  align-items: start;
  direction: ltr;
  font-family: 'vazir', sans-serif;
}

.iran-map,
.provinces-info {
   width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    direction: rtl !important;
    align-items: normal !important;
}

.iran-map {
  position: relative;
  width: 100%;
  max-width: -webkit-fill-available;
  margin: 0 auto;
}

.iran-svg,
#province-svg-container svg {
  width: 100%;
  height: auto;
  max-width: 500px;
  transition: opacity 0.5s ease;
}

#province-svg-container {
  position: unset;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}

.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: 7px 7px 7px 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;
  align-items: center !important;
  font-family: 'vazir' !important;
  box-shadow: none !important;
  font-weight: 500 !important;
      height: 40px !important;
}

.back-icon {
  width: 20px;
}

.iran-map 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;
}

.city-path {
  cursor: pointer;
}

.province-list,
.city-list,
.branch-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 390px !important;
  overflow-y: auto !important;
  padding: 0rem !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.province-list::-webkit-scrollbar,
.city-list::-webkit-scrollbar,
.branch-list::-webkit-scrollbar {
  display: none !important;
}

.province-list::-webkit-scrollbar,
.city-list::-webkit-scrollbar,
.branch-list::-webkit-scrollbar {
  width: 8px;
}

.province-list::-webkit-scrollbar-track,
.city-list::-webkit-scrollbar-track,
.branch-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.province-list::-webkit-scrollbar-thumb,
.city-list::-webkit-scrollbar-thumb,
.branch-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.province-name,
.city-name {
   padding: 0.5rem 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: auto !important;
}


.province-name:hover, .city-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.5rem;
}

.branch-name {
  font-size: 16px;
  font-weight: 500;
  color: #2d2d2d;
}

.branch-buttons {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
  justify-content: flex-end;
}



.geoview-button  {
  padding: 0px 7px !important;
  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;
         justify-content: center !important;
}
.geoview-button:active {
  background-image: linear-gradient(#e8f5e9, #e8f5e9), linear-gradient(to right, #7CB342, #43A047) !important;
  transform: translateY(1px) !important;
}
.geocall-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;
        justify-content: center !important;
}
.geocall-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;
    margin: 0px !important;
    padding: 0px !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,
  #province-svg-container svg {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .iran-map {
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .province-list,
  .city-list,
  .branch-list {
    max-width: 100%;
  }
}

.iran-map svg .tooltip,
.iran-map svg text[class^="text-"],
#province-svg-container 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;
}

.iran-map svg image[data-marker-id],
#province-svg-container svg image[data-marker-id] {
  pointer-events: none;
}

#leaflet-map-container {
  width: 100%;
  height: 100%;
  min-height: 500px;
  direction: ltr;
  border: 1px solid #c5c5c5;
  border-radius: 15px;
  position: relative;
}

.leaflet-popup-content .view-button,
.leaflet-popup-content .call-button {
  padding: 5px 10px;
  margin: 5px;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
  display: inline-block;
}

.leaflet-popup-content .geoview-button {
  flex: 2;
  padding: 2px 8px;
  cursor: pointer;
  text-align: center;
  color: rgb(52, 52, 52);
  border: 3px solid transparent;
  border-radius: 8px;
  background-image: linear-gradient(#f5fff7, #f5fff5), linear-gradient(to right, #8BC34A, #4CAF50);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  height: 30px;
  letter-spacing: normal;
  font-size: 15px;
  width: max-content;
  margin: 0px;
}

.leaflet-popup-content .geocall-button {
  flex: 1;
  padding: 4px 10px;
  cursor: pointer;
  text-align: center;
  width: max-content;
  height: 30px;
  color: rgb(255 255 255);
  border: none;
  border-radius: 8px;
  background: -webkit-linear-gradient(top, #8BC34A, #4CAF50);
  box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2), 0px 0px 5px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  letter-spacing: normal;
  margin: 0;
}

.leaflet-popup-content .branch-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 4px;
}

.leaflet-control-attribution {
  display: none;
}

.geosearch-container {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1000;
  width: 250px;
  direction: rtl;
}

#branch-search {
  width: 100% !important;
  padding: 10px !important;
  font-size: 14px !important;
  border: 1px solid #c3c3c3 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
  font-family: 'vazir', sans-serif !important;
  color: #414141 !important;
      text-align: right !important;
          height: auto !important;
}

#branch-search:focus {
  border-color: #007bff;
}

.search-results {
  list-style: none !important;
  margin: 5px 0 !important;
  padding: 0 !important;
  background-color: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  max-height: 210px !important;
  overflow-y: auto !important;
  position: absolute;
  width: 100%;
  z-index: 1001;
}

.search-results li {
  padding: 10px 15px !important;
  font-size: 14px !important;
  color: #333 !important;
  cursor: pointer !important;
  border-bottom: 1px solid #eee !important;
  transition: background-color 0.3s ease !important;
  font-family: 'vazir', sans-serif !important;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li:hover {
  background-color: #f0f9ff !important;
}

@media (max-width: 600px) {
  .geosearch-container {
    width: 90%;
    left: 5%;
    right: 5%;
    top: 10px;
  }

  #branch-search {
    font-size: 12px !important;
    padding: 8px !important;
  }

  .search-results li {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
}

.geotitlep {
  margin-top: 7px !important;
  text-decoration: none !important;
  text-align: right !important;
  font-size: 15px !important;
  font-family: 'vazir' !important;
  color: #3e3e3e !important;
  max-width: 200px !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
  letter-spacing: normal !important;
  margin-block-end: 0em !important;
  font-family: 'yekan', sans-serif !important;
}

.geopara {
  font-size: 14px !important;
  color: #666 !important;
  margin-top: 8px !important;
  text-align: right !important;
  font-family: 'vazir' !important;
  max-width: 200px !important;
  width: 200px !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
  margin-bottom: 8px !important;
  letter-spacing: normal !important;
}

.geopopup-buttons {
  display: flex !important;
  gap: 8px !important;
  margin-top: 5px !important;
}

   .geomap-error {
            color: red;
            font-weight: bold;
            text-align: center;
            margin: 20px;
        }