/* New projects (harmony-ops#713 slice 3): the list's filter grid and the project page. Built on easyproperty-listing.css (lp-) and
   easyproperty-search.css (sr-); only what those do not cover is here. Phone first; no horizontal scroll at 390px. */

.npj-filters { background: #fff; border: 1px solid #e1e8eb; border-radius: 16px; padding: 16px; margin: 0 0 14px; }
.npj-fgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 576px) { .npj-fgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .npj-fgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.npj-f { display: flex; flex-direction: column; min-width: 0; }
.npj-f label { font-size: 14px; font-weight: 700; color: #12303a; margin: 0 0 6px; }
.npj-f input, .npj-f select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #c9d6db; border-radius: 10px; background: #fff; font-size: 16px; color: #12303a; }
.npj-factions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.npj-factions .lp-btn { min-height: 46px; }

.npj-safety { background: #fff4dc; color: #6b4600; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.npj-safety strong { color: #5a3a00; }
.npj-safety-sm { font-size: 14px; padding: 10px 12px; }

.sr-b-dev { background: #e6f2f3; color: #146c75; font-weight: 700; }
.npj-by { background: transparent; color: #4b6670; padding-left: 0; }
.npj-card .sr-card-tag.npj-status-offplan { background: #12303a; }
.npj-card .sr-card-tag.npj-status-construction { background: #9a5b00; }
.npj-card .sr-card-tag.npj-status-completed { background: #1e6b37; }
.npj-empty .sr-empty-actions { flex-wrap: wrap; }

/* the project page */
.npj-crumbs { font-size: 14px; color: #4b6670; margin: 4px 0 12px; overflow-wrap: anywhere; }
.npj-crumbs a { color: #146c75; }
.npj-status { white-space: nowrap; }
.npj-note { font-size: 13px; color: #5c747e; }
.npj-facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0; margin: 14px 0 0; }
.npj-facts li { background: #f3f7f8; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.npj-facts span { display: block; font-size: 13px; color: #4b6670; }
.npj-facts strong { display: block; font-size: 16px; color: #12303a; overflow-wrap: anywhere; }
.npj-units { width: 100%; border-collapse: collapse; font-size: 15px; }
.npj-units th, .npj-units td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e1e8eb; vertical-align: top; }
.npj-units thead th { font-size: 13px; color: #4b6670; font-weight: 700; text-transform: none; }
.npj-av { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.npj-av-available { background: #e3f4ea; color: #1e6b37; }
.npj-av-few { background: #fff4dc; color: #7a4f00; }
.npj-av-sold_out { background: #f6e3e3; color: #8a1c12; }
@media (max-width: 767.98px) {
	/* the units table becomes cards on phones */
	.npj-units thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.npj-units, .npj-units tbody, .npj-units tr, .npj-units th, .npj-units td { display: block; width: 100%; }
	.npj-units tr { border: 1px solid #e1e8eb; border-radius: 12px; padding: 6px 12px; margin: 0 0 10px; }
	.npj-units th, .npj-units td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
	.npj-units th[data-label]::before, .npj-units td[data-label]::before { content: attr(data-label); color: #4b6670; font-weight: 400; }
	.npj-units th { font-size: 16px; font-weight: 800; }
}
.npj-declared { display: inline-block; font-size: 12px; font-weight: 700; color: #7a4f00; background: #fff4dc; border-radius: 20px; padding: 1px 8px; vertical-align: middle; text-transform: none; }
.npj-titles dt { font-weight: 700; color: #12303a; margin-top: 8px; }
.npj-titles dd { margin: 2px 0 0; color: #33505a; overflow-wrap: anywhere; }
.npj-amen { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.npj-amen li { background: #eef5f6; color: #146c75; border-radius: 20px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.npj-brochure { min-height: 46px; }
.npj-report { font-size: 14px; color: #4b6670; margin: 18px 0 8px; }
.npj-report a { color: #8a1c12; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

.npj-dev-row { display: flex; align-items: center; gap: 12px; }
.npj-dev-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #f3f6f7; border: 1px solid #e1e8eb; flex: 0 0 auto; }
.npj-dev-ph { display: flex; align-items: center; justify-content: center; background: #e6f2f3; color: #146c75; font-size: 26px; font-weight: 800; }
.npj-dev-name { font-weight: 800; font-size: 17px; margin: 0 0 4px; overflow-wrap: anywhere; }
.npj-dev-name a { color: #12303a; }
.npj-dev-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #146c75; font-weight: 700; }

.npj-form label { display: block; font-weight: 700; color: #12303a; margin: 10px 0 6px; font-size: 14px; }
.npj-form input:not([type=checkbox]), .npj-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d6db; border-radius: 10px; font-size: 16px; }
.npj-form [aria-invalid="true"] { border-color: #b3261e; }
.npj-form .npj-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: #33505a; }
.npj-form .npj-consent input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; appearance: auto; -webkit-appearance: checkbox; opacity: 1; position: static; }
.npj-send { width: 100%; min-height: 48px; margin-top: 12px; }
.npj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.npj-ok { background: #e3f4ea; color: #1e6b37; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.npj-bad { background: #fdecea; color: #8a1c12; border-radius: 12px; padding: 12px 14px; font-weight: 600; }

/* the developer profile's project list */
.dp-projects { list-style: none; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0; margin: 0; }
@media (min-width: 768px) { .dp-projects { grid-template-columns: 1fr 1fr; } }
