/* VT Estates – search form */

/* Two sub-columns inside the form */
.vt-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-bottom: 12px;
}
.vt-form-left,
.vt-form-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Field group */
.vt-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vt-form-group > label {
  font-size: 12px;
  font-weight: 700;
  color: var(--vt-text-light);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Range row (Plotas nuo/iki, Kaina nuo/iki) */
.vt-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Selects and inputs */
.vt-select,
.vt-input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius);
  background: #fff;
  font-size: 14px;
  color: var(--vt-text);
  width: 100%;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}
.vt-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.vt-select:focus,
.vt-input:focus {
  outline: none;
  border-color: var(--vt-accent);
  box-shadow: 0 0 0 2px rgba(3,104,195,.15);
}

/* Purpose toggle buttons */
.vt-purpose-btns {
  display: flex;
  gap: 0;
  margin-top: 2px;
}
.vt-purpose-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--vt-border);
  background: #fff;
  color: var(--vt-text);
  transition: background .12s, color .12s, border-color .12s;
  text-align: center;
  line-height: 1;
}
.vt-purpose-btn:first-child {
  border-radius: var(--vt-radius) 0 0 var(--vt-radius);
  border-right: none;
}
.vt-purpose-btn:last-child {
  border-radius: 0 var(--vt-radius) var(--vt-radius) 0;
}
.vt-purpose-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.vt-purpose-btn.is-active,
.vt-purpose-btn:has(input:checked) {
  background: var(--vt-accent);
  color: #fff;
  border-color: var(--vt-accent);
}
.vt-purpose-btn:hover:not(.is-active) { background: #f0f4f8; }

/* Full-width search button */
.vt-btn-search {
  display: block;
  width: 100%;
  height: 42px;
  background: var(--vt-accent);
  color: #fff;
  border: none;
  border-radius: var(--vt-radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.vt-btn-search:hover { background: var(--vt-accent-dark); }


/* The purpose toggle has no caption of its own, so an invisible one keeps
   the two sub-columns starting on the same line. */
.vt-label-spacer { visibility: hidden; }
.vt-form-right .vt-purpose-btns { margin-top: 0; }

/* Mobile: keep 2-column grid but collapse gracefully */
@media (max-width: 560px) {
  .vt-form-cols {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  /* Purpose buttons stack to 1 each since they're already side-by-side */
  .vt-purpose-btn { font-size: 12px; padding: 0 6px; height: 34px; }
  .vt-range-row { grid-template-columns: 1fr 1fr; }
  .vt-select, .vt-input { height: 34px; font-size: 13px; }
  .vt-btn-search { height: 40px; font-size: 14px; }
}
/* Very narrow screens */
@media (max-width: 380px) {
  .vt-form-cols { grid-template-columns: 1fr; }
  .vt-label-spacer { display: none; }
}
