body {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
}

.legend-styling {
  font-size: 20px;
  font-weight: bold;
  color: whitesmoke;
}

#searchForm {
  width: 100%;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  background: linear-gradient(
    to right,
    rgba(150, 193, 31, 1),
    rgba(150, 193, 31, 0)
  );
}

#searchForm button {
  width: auto;
}

#searchForm label {
  display: block;
  margin-bottom: 1px;
  margin-bottom: 3px;
  margin-left: 5px;
  font-size: 13px;
}

/*New Here */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.custom-select {
  position: relative;
  display: inline-block;
  width: 200px;
}

.custom-select.active .dropdown-content {
  display: block;
}

.dropdown-content label {
  display: block;
  padding: 5px;
  cursor: pointer;
}

.dropdown-content input {
  margin-right: 5px;
}

.filter-submit {
  align-self: flex-end;
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: auto;
  flex-wrap: wrap;
  padding: 10px;
}

.select-btn {
  min-width: auto;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  color: grey;
}

.dropdown-content {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  flex-direction: column;
  width: 150px;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 8px;
  overflow: hidden;
}

button[type="submit"] {
  padding: 8px 15px;
  background: green;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: auto !important;
}

button:hover {
  background-color: rgb(6, 95, 158);
  color: white;
}

/*For the Waitinglist  elements while looping*/
body {
  margin: 20px;
  background-color: #f8f8f8;
}
.listing-container {
  max-width: 800px;
  margin: auto;
}
.listing-card {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s ease-in-out;
}

.listing-content {
  padding: 10px;
  flex: 1;
}
.listing-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}
.listing-description {
  font-size: 14px;
  color: #555;
}
.listing-meta {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}
.listing-footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 10px;
}
.reactions {
  color: green;
}

.listing-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.listing-card:hover {
  background: #ddd;
  border: 1px solid rgba(74, 143, 10, 0.897);
  cursor: pointer;
  text-decoration: none;
}

.listing-link:hover {
  text-decoration: none;
}

.listing-card:hover #title,
.listing-card:hover #distance {
  color: rgba(74, 143, 10, 0.897);
}

.listing-card:hover #notLoggedIn {
  color: rgb(185, 77, 27);
}

.listing-image {
  width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

/*Details WaitingList CSS */
.listing-details {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s ease-in-out;
  border-radius: 12px 12px 0 0; /* match card bottom corners */
  margin-bottom: 1px !important;
}

.image-details {
  width: 350px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
}

.corporation-image {
  width: auto !important;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 5px !important;
}

.details-container {
  max-width: auto !important;
  margin: auto;
}

.details-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.details-description {
  font-size: 14px;
  color: #555;
}

.details-meta {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.details-footer {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  /*margin-top: 10px;*/
  margin-top: auto;
  padding-top: auto;
}

.details-textarea {
  max-width: 385px !important;
  max-height: 50px !important;
  border-radius: 5px;
  /*margin-top: 40px !important;*/
  margin-bottom: 5px !important;
  resize: none !important;
}

.details-commentButton {
  width: 390px !important;
  /*margin-top: 60px !important;*/
  margin-right: 5px !important;
  padding: 8px 15px;
  background: green;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#editComment {
  width: 395px !important;
  text-align: center;
  flex-direction: column;
  margin-top: auto;
}

#SubmitPreference {
  width: 395px !important;
  text-align: left !important;
}

#BeforeComments {
  width: 395px !important;
  text-align: left !important;
}

.details-commentEdit {
  width: 140px !important;
  /*margin-top: 60px !important;*/
  padding: 8px 15px;
  background: green;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 5px !important;
}

#cancelModifications {
  width: 103px !important;
  background-color: sienna;
}

#cancelModifications:hover {
  background-color: rgb(126, 41, 2);
}

#CancelProcess {
  width: auto !important;
  background-color: sienna;
}

#CancelProcess:hover {
  background-color: rgb(126, 41, 2);
}

#deleteComment {
  width: auto !important;
  background-color: rgb(172, 28, 28);
}

#deleteComment:hover {
  background-color: rgb(131, 3, 3);
}

#editPreferences {
  width: auto !important;
}

.card-message {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  color: #b00020;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 12px 12px;
  transition: 0.2s ease-in-out;
  margin-top: 1px !important;

  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.left-side,
.right-side {
  flex: 1;
}

.left-side {
  padding-right: 15px;
  border-right: 1px solid #585858;
}

.details-title-message {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  color: black !important;

  white-space: normal;
  margin: 0;
  line-height: 1.4;
  text-transform: none;
  word-break: break-word;
}

.details-description-message {
  font-size: 13px;
  color: #3a3737;
  margin-left: 10px;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

.details-textarea::placeholder {
  color: #838282;
  opacity: 1;
}

.btn-sienna {
  background: sienna;
}

.btn-sienna:hover {
  background: #e07c4d; /* slightly darker sienna */
}

.btn-green {
  background: rgba(74, 143, 10, 0.897);
}

.btn-green:hover {
  background: rgba(117, 198, 36, 0.95); /* slightly darker green */
}
