.details-map {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-bottom: 30px;
}

.details {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-text);
  color: var(--text-dark);
  padding: 40px 5px;
  box-sizing: content-box;
}

.details h1 {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
  width: fit-content;
  color: var(--accent-color);
}

.details>div {
  width: fit-content;
}

.details>div>div {
  background-color: var(--secondary-text);
  border-radius: 25px;
  padding: 10px;
  width: fit-content;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
  margin: 0 auto;
  width: 100%;
}

.details table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  font-size: 16px;
  border-radius: 25px;
  overflow: hidden;
}

.details table tr {
  border-bottom: 1px solid #7E8AA440;
  padding: 0 20px;
}

.details table th {
  padding: 8px 0 8px 10px;
}

.details table td {
  padding: 8px 10px 8px 0;
}

.details table tr:last-of-type {
  border-bottom: none;
}

.details table tr:hover {
  background-color: #335482;
}


.details .price {
  font-size: 24px;
  color: var(--accent-color);
  font-weight: 700;
}

#real-estate-map {
  width: 100%;
  height: 450px;
  max-height: 60vh;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--secondary-text);
  color: white;
  max-width: 500px;
  margin: 80px auto 40px auto;
  border-radius: 25px;
  padding: 20px 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

#form-response {
  text-align: center;
  background-color: var(--text-dark);
  border-radius: 15px;
  width: fit-content;
  margin: 0 auto;
  color: var(--primary-text);
}

#contact-form h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

#contact-form label span {
  margin-bottom: 4px;
  display: block;
}

#contact-form input,
#contact-form textarea {
  background-color: white;
  border: none;
  width: 100%;
  padding: 12px 10px;
  border-radius: 15px;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: 3px solid var(--accent-color);
}

#contact-form button {
  border: none;
  border-radius: 15px;
  padding: 12px 10px;
  width: fit-content;
  background-color: var(--accent-color);
  color: white;
  align-self: center;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
}

#contact-form button:hover {
  background-color: var(--accent-color-hover);
}

@media (min-width: 500px) {
  #contact-form {
    padding: 30px;
  }
}

@media (min-width: 1024px) {
  .details-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details h1 {
    text-align: left;
  }

  .details {
    justify-content: end;
    padding: 0 10px 0 10px;
  }

  .details>div {
    max-width: 768px;
    width: 100%;
  }

  .details>div>div {
    margin: 0;
  }

  #real-estate-map {
    max-height: unset;
  }
}

@media (min-width: 1280px) {
  .details h1 {
    font-size: 32px;
  }
}

@media (min-width: 1536px) {
  .details {
    padding: 0 30px 0 0;
  }

  .details>div {
    max-width: 738px;
  }
}
