@import url(https://cdn.javanan.org/fonts/IRANSansX/IRANSansXFaNum.css);
@import url(https://cdn.javanan.org/lib/fontawesome/css/all.min.css);

.aqr-city-selector {
  direction: rtl;
  font-family: IRANSansXFaNum;
  position: relative;
  display: inline-block;
  width: 100%;
}

.aqr-city-display {
 display: flex;
    align-items: center;
    border: 1px solid #e7e8f3;
    border-radius: 6px;
    padding: 0 .75rem;
    padding-left: 0px;
    background-color: #FBFBFE;
    height: 2.2rem;
    gap: .2rem;
}

.aqr-city-display i {
  color: #8E9CB2;
}

.aqr-city-input {
     border: none;
    width: 100%;
    font-size: .9rem;
    color: #495057;
    outline: none;
    background: transparent;
    font-family: IRANSansXFaNum;
    padding-right: 10px;
}

.aqr-selector-container {
  display: none;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #e7e8f3;
  border-radius: 6px;
  z-index: 1000;
  margin-top: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aqr-selector-container.visible {
  display: block;
}

.aqr-search-container {
  position: relative;
  background-color: rgb(251, 251, 254);
  border: 1px solid rgb(231, 232, 243);
  border-radius: 6px;
  display: none;
}

.aqr-search-container i {
  position: absolute;
  top: 50%;
  right: 16px;
  color: rgb(142, 156, 178);
  transform: translateY(-50%);
}

.aqr-search-input {
  border: none;
  width: 100%;
  font-size: .8rem;
  outline: none;
  height: 2rem;
  padding: 0 2.3rem 0 0;
  font-family: IRANSansXFaNum;
  box-sizing: border-box;
  border-radius: 10px;
}

.aqr-items-list {
  max-height: 250px;
  overflow-y: auto;
}

.aqr-items-list::-webkit-scrollbar {
  width: 0;
}

.aqr-item {
  padding: .5rem 1rem;
  cursor: pointer;
}

.aqr-item:hover {
  background-color: #e3eff7;
}

.aqr-province-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: #28333d;
}

.aqr-province-item>i {
  color: #888;
  font-size: .6rem;
}

.aqr-city-item {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: 0.9rem;
  color: #8e9cb2;
}

.aqr-city-name {
  margin-left: auto;
  color: #28333d;
}

.aqr-city-state {
  color: #8E9CB2;
  font-size: .7rem;
}

.aqr-delete-selection {
 background: none;
    border: none;
    cursor: pointer;
    color: #5F647E;
    font-size: 1rem;
    display: flex;
	}

.aqr-no-city {
  padding: .5rem 1rem;
  color: #888;
  text-align: center;
  font-size: .8rem;
}

.aqr-modal {
  position: fixed;
  width: var(--width);
  top: var(--top);
  left: var(--left);
  background-color: #fff;
  z-index: 999;
}

.aqr-modal-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background-color: #e8e8ff;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0e1a39;
}

.aqr-modal-header {
  display: none;
}

.aqr-modal-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 6px;
  border: 1px solid #e7e8f3;
  padding: 0;
}

/* Responsive styles */
@media (max-width: 767px) {
  .aqr-selector-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: none;
  }

  .aqr-selector-container.visible {
    display: flex;
    flex-direction: column;
  }

  .aqr-modal-body {
    padding: 1rem;
    border: none;
  }

  .aqr-items-list {
    max-height: calc(100vh - 140px);
  }

  .aqr-modal {
    inset: 0;
    background-color: #fff;
    z-index: 999;
    width: 100%;
  }

  .aqr-modal-header {
    display: flex;
  }

  .aqr-search-container {
    display: block;
  }
}