.l1-property-search {
  width: 100%;
  max-width: 100%;
  --l1-ps-height: clamp(56px, 8vw, 66px);
  --l1-ps-pad-x: clamp(14px, 2.4vw, 18px);
  --l1-ps-leftIconBox: clamp(20px, 3vw, 20px);
  --l1-ps-leftGap: 7px;
  --l1-ps-action: clamp(40px, 6.2vw, 46px);
  --l1-ps-font: clamp(16px, 2.4vw, 18px);
  --l1-ps-line-height: clamp(22px, 3.2vw, 26px);
  --l1-ps-text-color: #35363C;
  --l1-ps-blue-primary: #031633;
  --l1-ps-green: #D4F378;
  --l1-ps-leftSlot: calc(var(--l1-ps-leftIconBox) + var(--l1-ps-leftGap) + 8px);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.l1-property-search,
.l1-property-search * {
  box-sizing: border-box;
}

.l1-ps-inputWrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--l1-ps-height);
  overflow: hidden;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: none;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.l1-ps-inputWrap:hover {
  border-color: rgba(17, 24, 39, 0.18);
}

.l1-ps-leftIcon {
  position: absolute;
  left: var(--l1-ps-pad-x);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  height: var(--l1-ps-leftIconBox);
  width: var(--l1-ps-leftIconBox);
  align-items: center;
  justify-content: center;
  color: var(--l1-ps-blue-primary);
  line-height: 0;
  pointer-events: none;
}

.l1-ps-leftIconSvg {
  height: var(--l1-ps-leftIconBox);
  width: var(--l1-ps-leftIconBox);
}

.l1-ps-input {
  flex: 1;
  border: 0 !important;
  outline: none;
  background: transparent;
  padding: calc((var(--l1-ps-height) - var(--l1-ps-line-height)) / 2) calc(var(--l1-ps-action) + (var(--l1-ps-pad-x) * 2)) calc((var(--l1-ps-height) - var(--l1-ps-line-height)) / 2) calc(var(--l1-ps-pad-x) + var(--l1-ps-leftSlot) + 8px);
  font-size: var(--l1-ps-font);
  font-weight: 400;
  line-height: var(--l1-ps-line-height);
  color: var(--l1-ps-text-color);
  font-family: Indivisible, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-appearance: none;
  appearance: none;
}

.l1-ps-input::placeholder {
  color: var(--l1-ps-text-color);
  font-weight: 400;
}

.l1-ps-input:focus {
  outline: none;
}

.l1-ps-inputWrap:focus-within {
  border-color: rgba(17, 24, 39, 0.22);
  box-shadow: 0 0 0 3px rgba(212, 243, 120, 0.35);
}

.l1-ps-action {
  position: absolute;
  right: var(--l1-ps-pad-x);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  height: var(--l1-ps-action);
  width: var(--l1-ps-action);
  align-items: center;
  justify-content: center;
}

.l1-ps-actionInner {
  display: flex;
  height: var(--l1-ps-action);
  width: var(--l1-ps-action);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--l1-ps-green);
  color: var(--l1-ps-blue-primary);
  box-shadow: inset 0 0 0 1px rgba(3, 22, 51, 0.05);
}

.l1-ps-actionInner {
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.l1-ps-inputWrap:hover .l1-ps-actionInner {
  transform: translateY(-0.5px);
}

.l1-ps-actionSvg {
  height: clamp(16px, 2.2vw, 18px);
  width: clamp(16px, 2.2vw, 18px);
}

.l1-property-search.is-pending .l1-ps-actionInner {
  opacity: 0.6;
}

/* Spinner animation */
.l1-ps-spinnerIcon {
  animation: l1-ps-spin 1s linear infinite;
}

.l1-ps-spinnerBg {
  opacity: 0.2;
}

.l1-ps-spinnerFg {
  opacity: 0.75;
}

@keyframes l1-ps-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.l1-ps-clear {
  position: absolute;
  right: calc(var(--l1-ps-action) + (var(--l1-ps-pad-x) + 8px));
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.l1-ps-clear:hover {
  background: #e5e7eb;
  color: #374151;
}

.l1-ps-error {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fef2f2;
  color: #ef4444;
  font-size: 14px;
}

.l1-ps-error:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.l1-ps-results {
  position: absolute;
  z-index: 9999;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.06);
}

.l1-ps-results {
  max-height: 320px;
  overflow-y: auto;
}

@media (max-width: 420px) {
  .l1-property-search {
    --l1-ps-pad-x: 12px;
  }

  .l1-ps-input {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .l1-ps-item {
    padding: 14px 14px;
  }
}

.l1-ps-wrap {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.l1-ps-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
}

.l1-ps-item:hover {
  background: rgba(25, 114, 203, 0.08);
}

.l1-ps-item:focus {
  outline: none;
  background: rgba(25, 114, 203, 0.08);
}

.l1-ps-pin {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  margin-top: 4px;
}

.l1-ps-pinSvg {
  height: 16px;
  width: 16px;
}

.l1-ps-text {
  flex: 1;
}

.l1-ps-main {
  font-weight: 500;
  color: #111827;
}

.l1-ps-secondary {
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .l1-property-search {
    max-width: 448px; /* closer to max-w-md on mobile */
  }
}