/* Styles for the API-driven pages (Agents, Sign in, Register). Scoped with .ns- prefix. */
.ns-page { max-width: 1100px; margin: 0 auto; padding: 32px 20px 64px; }
.ns-page h1 { font-size: 2.25rem; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 8px; text-align: center; }
.ns-lead { text-align: center; color: #555; margin: 0 0 28px; }

/* Agents */
.ns-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 32px; position: relative; }
.ns-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.ns-search input { width: 100%; box-sizing: border-box; padding: 12px 14px 12px 40px; border: 1px solid #bbb; border-radius: 6px; font-size: 1rem; }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.ns-card { display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.ns-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); text-decoration: none; }
.ns-card__photo { aspect-ratio: 4 / 5; background: #eee; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 3rem; overflow: hidden; }
.ns-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-card__body { padding: 14px 16px 18px; }
.ns-card__name { font-family: "Vanitas Black", Georgia, serif; font-size: 1.1rem; margin: 0 0 2px; }
.ns-card__title { color: #666; font-size: .9rem; margin: 0 0 10px; }
.ns-card__meta { font-size: .85rem; color: #444; display: flex; flex-direction: column; gap: 4px; }
.ns-card__meta i { width: 16px; color: #888; margin-right: 4px; }
.ns-state { text-align: center; padding: 48px 0; color: #666; }
.ns-pager { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* Profile */
.ns-profile { display: flex; flex-wrap: wrap; gap: 32px; }
.ns-profile__photo { flex: 0 0 280px; max-width: 100%; }
.ns-profile__photo img, .ns-profile__ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #eee; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 4rem; }
.ns-profile__info { flex: 1 1 320px; }
.ns-profile__info h1 { text-align: left; }
.ns-profile__title { color: #666; margin: 0 0 18px; }
.ns-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.ns-list i { width: 20px; color: #888; margin-right: 6px; }
.ns-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.ns-tag { border: 1px solid #ccc; border-radius: 999px; padding: 2px 12px; font-size: .85rem; }
.ns-bio { line-height: 1.6; white-space: pre-line; }

/* Buttons */
.ns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border: 1px solid #111; background: #111; color: #fff; border-radius: 6px; cursor: pointer; font-size: .95rem; text-decoration: none; }
.ns-btn:hover { background: #333; text-decoration: none; color: #fff; }
.ns-btn[disabled] { opacity: .5; cursor: default; }
.ns-btn--ghost { background: transparent; color: #111; }
.ns-btn--ghost:hover { background: #f2f2f2; color: #111; }

/* Auth */
.ns-auth { max-width: 440px; margin: 0 auto; padding: 28px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.ns-auth h1 { font-size: 1.75rem; }
.ns-auth form { display: flex; flex-direction: column; gap: 14px; }
.ns-field { position: relative; }
.ns-field i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.ns-field input[type=text], .ns-field input[type=email], .ns-field input[type=password], .ns-field input[type=tel] { width: 100%; box-sizing: border-box; padding: 11px 12px 11px 38px; border: 1px solid #bbb; border-radius: 6px; font-size: 1rem; }
.ns-row { display: flex; gap: 12px; }
.ns-row > * { flex: 1; min-width: 0; }
.ns-check { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; }
.ns-check input { margin-top: 4px; }
.ns-alt { text-align: center; margin-top: 18px; font-size: .95rem; }
.ns-alt a { text-decoration: underline; }
