#address-selector{
  width: 100%;
  display: block;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile-specific styles for better visibility */
@media (max-width: 768px) {
  #address-selector {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: auto;
    -webkit-appearance: none;
    appearance: none;
  }
  
  #address-selector option {
    padding: 10px 12px;
    font-size: 16px;
  }
}

/* Custom dropdown for mobile devices */
.address-selector-custom {
  z-index: 1000;
  position: relative;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overflow-y: auto;
  overscroll-behavior: contain; /* Prevent scroll chaining */
}

.address-selector-item {
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
  touch-action: manipulation; /* Improve touch responsiveness */
}

.address-selector-item:active {
  background-color: #0073AA !important;
  color: #fff;
}

.address-selector-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.address-selector-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
  .address-selector-custom {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
  
  .address-selector-item {
    touch-action: pan-y; /* Allow vertical scrolling */
  }
}

#address-selector option {
  padding: 8px 12px;
  cursor: pointer;
}

#address-selector option:hover {
  background-color: #f0f0f0;
}

#address-selector option:checked {
  background-color: #0073AA;
  color: #fff;
}

/* Spinner animation for loading states */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search_properties_msg-tips {
  margin-top: 5px;
  font-size: 12px;
  min-height: 16px;
}

.search_properties_msg-tips .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073AA;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 5px;
  vertical-align: middle;
}

.search_properties_msg-tips.ajax-going {
  color: #000;
}

.search_properties_msg-tips.ajax-success {
  color: #0073AA;
}

.search_properties_msg-tips.ajax-no-match,
.search_properties_msg-tips.ajax-error {
  color: #f00;
}
