.search-form-container {
  margin-top: 62px;
  margin-bottom: 62px;
  max-width: 840px;
  background-color: #f8c16f;
  position: relative;
  padding-bottom: 22px;
  -webkit-box-shadow: 3px 3px 48px 3px rgba(0,0,0,0.21);
  -moz-box-shadow: 3px 3px 48px 3px rgba(0,0,0,0.21);
  box-shadow: 3px 3px 48px 3px rgba(0,0,0,0.21);
}

.search-form .submit-container {
  position: absolute;
  bottom: -28px;
  left: calc(50% - 101px);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-color: white;
  color: var(--primary);
  font-size: 28px;
}

.search-btn:hover {
  background: #4c70a5;
  color: white;
}

.search-btn i {
    margin-left: 8px;
}

.search-form .form-row {
  margin-bottom: 6px;
}

::placeholder {
  color: #b1b1b1 !important;
}

.main-text {
  margin-top: 50px;
  font-size: 33px;
}

.itemsList {
  margin-top: 45px;
  margin-bottom: 15px;
  max-width: 1240px;
}

.realty-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.realty-item-image {
  background-image: url('../images/home_1.jpg');
/*  background-size: cover; */
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 180px;
}

.realty-item-body {
  display: flex;
  flex-direction: column;
}

.realty-item-price {
  margin-bottom: 0;
}

.realty-item-place {
  margin-bottom: 18px;
  font-size: 20px;
  background-color: #607d8b;
  color: white;
  padding: 5px 10px;
  text-align: center;
}

.realty-item-surface {
  font-size: 18px;
}

.realty-item-button {
  background-color: var(--primary);
  border-color: var(--primary);
}

.realty-item-button:hover {
  background-color: #f8c06f;
  border-color:  #f8c06f;
}

.realty-item-button i {
    margin-left: 8px;
}

.realty-item {
  position: relative;
  height: calc(100% - 1.5rem);
  -webkit-box-shadow: -2px 9px 18px -10px rgba(0,0,0,0.46);
  -moz-box-shadow: -2px 9px 18px -10px rgba(0,0,0,0.46);
  box-shadow: -2px 9px 18px -10px rgba(0,0,0,0.46);
}

.realty-item-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms ease;
}

.realty-item-hover .btn {
  font-size: 20px;
}

.realty-item-title {
  font-size: 22px;
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.realty-item-date {
  font-size: 14px;
  text-align: right;
  font-style: italic;
}

.realty-item-views {
  text-align: right;
}

.realty-item:hover .realty-item-hover {
  opacity: 1;
}

.realty-item-description {
  margin-bottom: 1rem;
  color: #3e3e3e;
  font-size: 15px;
}

.realty-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.realty-item-footer div:last-child {
  margin-left: auto;
}

.itemsListPagination {
  margin: 20px auto 0;
}

.page-link {
  color: #4e70a5;
  font-size: 25px;
  margin-top: 12px;
}

.rating-section {
  background: #f8f9fa;
  padding: 52px;
}

.rating-section h3 {
  margin-bottom: 23px;
}

.rating-comment, .rating-answer {
  font-style: italic;
}

.rating-author {
  margin-bottom: 15px;
}

.rating-answer {
  margin-left: 40px;
}

.rating-answer-author {
  color: #4e70a5;
  font-weight: 500;
  margin-bottom: 35px;
}

.ratings-button {
  text-align: center;
}

.ratings-button button {
  border-color: var(--primary);
  background-color: var(--primary);
  color: white;
}

.ratings-button button:hover {
  background-color: #f8c06f;
  border-color:  #f8c06f;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
}

.dropdown-item {
  padding: .25rem 0.5rem;
  white-space: normal;
}