.search-form {
  display: flex;
  text-align: center;
}

.search-form-inline {
    display: flex;
    justify-content: center;    
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;

}

.search-form-control {
  height: 43px;
  width: 450px;
  padding-left: 45px;
  padding-right: 10px;
  margin-top: 12px;
  font-size: .875rem;
  font-family: Poppins,sans-serif;
  border-radius: 15px;
  border: 1px solid #ddd;
}

.form-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 2.5px;
  margin-right: 2.5px;

}


@media (max-width: 600px) {
  .search-form-inline {
    flex-direction: column;
  }
}

.mainlogo {
  width: 200px;
}

@media (max-width: 767px) {
.mainlogo {
  width: 150px;
}
}



.mainlogo img {
  width: 100%;
}

/* Badge styles for estate comparison */
.badge-comparison {
  background-color: #9C9AE5;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Ensure badge-block maintains its existing styling for current estate */
.badge-block {
  background-color: #4747A1;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Loading overlay and spinner for room type selection */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4747A1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: white;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  margin-top: 20px;
  text-align: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 63%;
  transform: translateY(-50%);
  color: #666;
  font-size: 23px;
  z-index: 10;
}

.search-icon:hover {
  color: #4747A1;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  border: none;
  background: white;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: #f5f5f5;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.highlight {
  color: #8e44ad;
  font-weight: bold;
}

/* Styles for the room type buttons */
.room-type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.room-type-btn {
  background-color: #ffffff;
  border: 2px solid #4747A1;
  color: #4747A1;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 100px;
}

.room-type-btn:hover {
  background-color: #4747A1;
  border-color: #4747A1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(71, 71, 161, 0.3);
}

.room-type-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(71, 71, 161, 0.3);
}