/**
 * VCG Natural-Language Search — standalone styles.
 *
 * Loaded on /listings/ AND on the homepage (front-page.php) so the same
 * search hero looks identical in both places. Kept as a separate small
 * file (~3KB) so the homepage doesn't have to pull in the full 60KB
 * listings.css just for the search UI.
 */

.vcg-nl-form {
  margin: 8px auto 0;
  max-width: 880px;
}

.vcg-nl-form-home {
  margin-top: 24px;
  max-width: 720px;
}

.vcg-nl-label {
  display: block;
  font-family: var(--vcg-font-heading, var(--display, serif));
  font-size: 18px;
  font-weight: 500;
  color: var(--vcg-text, var(--ink, #1a1a1a));
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.01em;
}

.vcg-nl-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--vcg-white, #fff);
  border: 2px solid var(--vcg-black, var(--ink, #1a1a1a));
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.vcg-nl-input-wrap:focus-within {
  border-color: var(--vcg-accent, #c9a961);
  box-shadow: 0 6px 28px rgba(201, 169, 97, 0.18);
}

.vcg-nl-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vcg-text-light, #888);
  pointer-events: none;
}

.vcg-nl-input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  padding: 18px 24px 18px 56px;
  font-size: 17px;
  font-family: var(--vcg-font-body, var(--body, inherit));
  background: transparent;
  color: var(--vcg-text, inherit);
  min-width: 0;
}

.vcg-nl-input::placeholder {
  color: var(--vcg-text-light, #999);
  font-style: italic;
}

.vcg-nl-submit {
  flex: 0 0 auto;
  background: var(--vcg-black, var(--ink, #1a1a1a));
  color: #fff;
  border: none;
  padding: 0 28px;
  font-family: var(--vcg-font-body, var(--body, inherit));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
  border-radius: 0;
}

.vcg-nl-submit:hover {
  background: var(--vcg-accent, #c9a961);
}

.vcg-nl-submit svg {
  margin-left: 2px;
  flex-shrink: 0;
}

.vcg-nl-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  min-height: 0;
  transition: min-height 0.15s ease;
}

.vcg-nl-preview.is-active { min-height: 28px; }

.vcg-nl-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(201, 169, 97, 0.15);
  color: var(--vcg-text, var(--ink, #1a1a1a));
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--vcg-font-body, var(--body, inherit));
}

.vcg-nl-pill-text {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.vcg-nl-examples {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--vcg-text-light, #888);
  font-family: var(--vcg-font-body, var(--body, inherit));
}

.vcg-nl-example {
  background: none;
  border: none;
  padding: 2px 4px;
  color: var(--vcg-text-light, #888);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 97, 0.6);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.vcg-nl-example:hover { color: var(--vcg-accent, #c9a961); }

@media (max-width: 640px) {
  .vcg-nl-input { padding: 14px 16px 14px 48px; font-size: 15px; }
  .vcg-nl-icon { left: 16px; }
  .vcg-nl-submit { padding: 0 18px; font-size: 13px; }
  .vcg-nl-submit svg { display: none; }
  .vcg-nl-examples { font-size: 12px; }
}
