.poel-search {
  --poel-search-orange: var(--poel-orange, #f45b0b);
  --poel-search-orange-dark: #d94b00;
  --poel-search-navy: var(--poel-navy, #102b3d);
  --poel-search-blue: #234d68;
  --poel-search-sand: #f6f2ea;
  --poel-search-border: #dfe6ea;
  color: var(--poel-search-navy);
  font-family: "Source Sans 3", Arial, sans-serif;
  width: 100%;
}

.poel-search *,
.poel-search *::before,
.poel-search *::after {
  box-sizing: border-box;
}

.poel-search__header {
  margin: 0 0 22px;
}

.poel-search__heading {
  color: var(--poel-search-navy);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.poel-search__intro {
  color: #52636e;
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.poel-search__form {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(16, 43, 61, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 43, 61, 0.13);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(145px, 0.75fr) repeat(2, minmax(180px, 1fr)) minmax(210px, auto);
  padding: 18px;
}

.poel-search__field {
  min-width: 0;
}

.poel-search__field label {
  color: var(--poel-search-blue);
  display: block;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.poel-search__field input,
.poel-search__field select {
  appearance: none;
  background-color: #f7f9fa;
  border: 1px solid var(--poel-search-border);
  border-radius: 10px;
  color: var(--poel-search-navy);
  font: inherit;
  height: 52px;
  line-height: 1.2;
  outline: 0;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.poel-search__field select {
  background-image: linear-gradient(45deg, transparent 50%, #567 50%), linear-gradient(135deg, #567 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

.poel-search__field input:focus,
.poel-search__field select:focus {
  background-color: #fff;
  border-color: var(--poel-search-orange);
  box-shadow: 0 0 0 3px rgba(244, 91, 11, 0.14);
}

.poel-search__submit {
  align-items: center;
  background: var(--poel-search-orange);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 12px;
  height: 54px;
  justify-content: center;
  letter-spacing: 0.035em;
  line-height: 1;
  padding: 0 25px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.poel-search__submit:hover,
.poel-search__submit:focus-visible {
  background: var(--poel-search-orange-dark);
  box-shadow: 0 10px 24px rgba(217, 75, 0, 0.24);
  transform: translateY(-1px);
}

.poel-search__submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.poel-search__status {
  background: var(--poel-search-sand);
  border-left: 4px solid var(--poel-search-orange);
  border-radius: 8px;
  margin-top: 22px;
  padding: 14px 16px;
}

.poel-search__status.is-error {
  background: #fff0ed;
  border-left-color: #c53b27;
  color: #852718;
}

.poel-search__results {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.poel-search-result {
  background: #fff;
  border: 1px solid var(--poel-search-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.poel-search-result__media {
  aspect-ratio: 2.35 / 1;
  background: var(--poel-search-sand);
  overflow: hidden;
}

.poel-search-result__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: transform 0.45s ease;
  width: 100%;
}

.poel-search-result:hover .poel-search-result__media img {
  transform: scale(1.025);
}

.poel-search-result__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
}

.poel-search-result__top {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.poel-search-result__title {
  color: var(--poel-search-navy);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.poel-search-result__houses {
  color: #60717b;
  margin: 0;
}

.poel-search-result__price {
  color: var(--poel-search-orange);
  flex: 0 0 auto;
  text-align: right;
}

.poel-search-result__price strong {
  display: block;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.85rem;
  line-height: 1;
}

.poel-search-result__price span {
  color: #71808a;
  display: block;
  font-size: 0.78rem;
  margin-top: 5px;
}

.poel-search-result__facts {
  border-top: 1px solid var(--poel-search-border);
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
}

.poel-search-result__facts li {
  color: #465b68;
  font-size: 0.92rem;
}

.poel-search-result__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.poel-search-result__action {
  align-items: center;
  border: 1px solid var(--poel-search-orange);
  border-radius: 999px;
  color: var(--poel-search-orange-dark);
  display: inline-flex;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.025em;
  line-height: 1;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.poel-search-result__action:hover,
.poel-search-result__action:focus-visible {
  background: var(--poel-search-orange);
  color: #fff;
}

.poel-search-result__action--request {
  border-color: var(--poel-search-navy);
  color: var(--poel-search-navy);
}

.poel-search-result__action--request:hover,
.poel-search-result__action--request:focus-visible {
  background: var(--poel-search-navy);
  color: #fff;
}

@media (max-width: 980px) {
  .poel-search__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poel-search__submit {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .poel-search__form,
  .poel-search__results {
    grid-template-columns: 1fr;
  }

  .poel-search__form {
    border-radius: 14px;
    gap: 12px;
    padding: 15px;
  }

  .poel-search__heading {
    font-size: clamp(1.9rem, 10vw, 2.65rem);
  }

  .poel-search-result {
    border-radius: 14px;
  }

  .poel-search-result__media {
    aspect-ratio: 16 / 9;
  }

  .poel-search-result__body {
    padding: 20px;
  }

  .poel-search-result__top {
    display: block;
  }

  .poel-search-result__price {
    margin-top: 18px;
    text-align: left;
  }

  .poel-search-result__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poel-search__submit,
  .poel-search__field input,
  .poel-search__field select,
  .poel-search-result__action {
    transition: none;
  }

  .poel-search-result__media img {
    transition: none;
  }
}
