/* Properties listing + detail pages (loaded after pages.css). */
.ns-wide { max-width: 1280px; }
.ns-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ns-count { color: #444; }
.ns-bar select { padding: 9px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font-size: .95rem; }
.ns-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ns-pcard { display: flex; flex-direction: column; border: 1px solid #e2e2e2; border-radius: 10px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ns-pcard:hover { box-shadow: 0 10px 26px rgba(0,0,0,.14); transform: translateY(-2px); text-decoration: none; }
.ns-pcard__img { position: relative; aspect-ratio: 4 / 3; background: #ececf1; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #b5b5c2; font-size: 2.5rem; }
.ns-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ns-badge { background: #000; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.ns-badge--light { background: #fff; color: #111; border: 1px solid #ddd; }
.ns-badge--amber { background: #b7791f; }
.ns-pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ns-price { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0; }
.ns-price small { font-size: .85rem; font-weight: 400; color: #666; }
.ns-pcard__title { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1.3; color: #111; }
.ns-pcard__addr { color: #555; font-size: .9rem; margin: 0; }
.ns-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: .88rem; color: #333; }
.ns-facts i { color: #888; margin-right: 5px; }
.ns-webid { margin-top: auto; padding-top: 8px; font-size: .78rem; color: #888; }
.ns-skel { height: 380px; border-radius: 10px; background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%); background-size: 400% 100%; animation: ns-shimmer 1.3s ease infinite; }
@keyframes ns-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.ns-pager-num { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.ns-pager-num button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; font-size: .95rem; }
.ns-pager-num button[aria-current="page"] { background: #111; color: #fff; border-color: #111; }
.ns-pager-num button[disabled] { opacity: .45; cursor: default; }

/* Detail */
.ns-crumbs { font-size: .85rem; color: #666; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ns-crumbs a { color: #666; text-decoration: none; }
.ns-crumbs a:hover { text-decoration: underline; }
.ns-detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .ns-detail { grid-template-columns: 1fr; } .ns-detail__main { order: -1; } }
.ns-detail h1 { text-align: left; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: none; letter-spacing: 0; margin: 0 0 14px; }
.ns-side h2, .ns-main-sec h2 { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid #ddd; padding-bottom: 6px; margin: 24px 0 10px; font-family: "Futura PT Light", Helvetica, Arial, sans-serif; }
.ns-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: .92rem; margin: 0; }
.ns-dl dt { color: #666; }
.ns-dl dd { margin: 0; color: #111; }
.ns-gallery__main { position: relative; background: #111; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.ns-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ns-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 1rem; }
.ns-gallery__nav--prev { left: 12px; }
.ns-gallery__nav--next { right: 12px; }
.ns-gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 12px; }
.ns-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.ns-thumbs button { flex: 0 0 auto; width: 84px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #eee; opacity: .75; }
.ns-thumbs button[aria-current="true"] { border-color: #111; opacity: 1; }
.ns-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-map { width: 100%; height: 340px; border: 0; border-radius: 10px; background: #eee; }
.ns-desc { line-height: 1.65; white-space: pre-line; color: #222; }
.ns-amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.ns-amen i { color: #2f855a; margin-right: 8px; }
.ns-agent { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.ns-agent__photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #eee; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 1.6rem; }
.ns-agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.ns-agent__name { font-weight: 700; margin: 0; font-family: "Vanitas Black", Georgia, serif; }
.ns-agent__meta { font-size: .85rem; color: #444; margin: 2px 0 0; }
.ns-agent__meta a { color: inherit; }
.ns-form { border: 1px solid #ddd; border-radius: 10px; padding: 16px; margin-top: 24px; background: #fff; }
.ns-form h2 { margin-top: 0 !important; }
.ns-form label { display: block; font-size: .85rem; margin: 10px 0 4px; font-weight: 700; }
.ns-form input[type=text], .ns-form input[type=email], .ns-form input[type=tel], .ns-form textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #bbb; border-radius: 6px; font-size: .95rem; }
.ns-form .ns-radio { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 0; }
.ns-form .ns-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ns-form .ns-btn { width: 100%; margin-top: 14px; }
.ns-msg { margin-top: 12px; font-size: .9rem; padding: 10px 12px; border-radius: 6px; }
.ns-msg--ok { background: #e6f6ec; color: #1b5e3a; }
.ns-msg--err { background: #fdecec; color: #a12121; }

/* ---------- Hero: video background + search card ---------- */
.ns-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(1200px 500px at 20% -10%, #2b2b45 0%, transparent 60%), linear-gradient(135deg, #07070d 0%, #14141f 55%, #1f1f33 100%); }
.ns-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .8s ease; }
.ns-hero__video.is-playing { opacity: 1; }
.ns-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,5,10,.55) 0%, rgba(5,5,10,.35) 45%, rgba(5,5,10,.7) 100%); }
.ns-hero__inner { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 20px clamp(32px, 5vw, 56px); text-align: center; }
.ns-eyebrow { margin: 0 0 10px; font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: #d6d9e6; }
.ns-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.25rem); line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 14px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.ns-hero__sub { margin: 0 auto 26px; max-width: 560px; color: #e4e6f0; font-size: 1.05rem; }

.ns-seg { display: inline-flex; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); }
.ns-tab { border: 0; background: transparent; color: #e9ebf5; padding: 9px 22px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s; }
.ns-tab:hover { background: rgba(255,255,255,.12); }
.ns-tab[aria-selected="true"] { background: #fff; color: #0c0c14; }
.ns-tab:focus-visible, .ns-hs__go:focus-visible, .ns-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ns-hs { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; align-items: end; text-align: left; padding: 18px; border-radius: 16px; background: rgba(14,14,24,.58); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 18px 60px rgba(0,0,0,.4); }
.ns-field { min-width: 0; }
.ns-field label { display: block; margin: 0 0 6px 2px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfd3e4; }
.ns-field label i { margin-right: 5px; opacity: .8; }
.ns-hs select, .ns-hs input[type=search] { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: #fff; color: #11111a; font-size: .95rem; }
.ns-hs select:focus, .ns-hs input[type=search]:focus { outline: 2px solid #8ab4ff; outline-offset: 1px; }
.ns-field--kw { grid-column: span 4; }
.ns-hs__go { height: 46px; border: 0; border-radius: 10px; background: #fff; color: #0c0c14; font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .05s; }
.ns-hs__go:hover { background: #e6e8f2; }
.ns-hs__go:active { transform: translateY(1px); }

.ns-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.ns-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; font-size: .82rem; cursor: pointer; }
.ns-chip:hover { background: rgba(255,255,255,.26); }
.ns-chip i { font-size: .7rem; opacity: .85; }
.ns-chip--clear { background: transparent; text-decoration: underline; border-color: transparent; }

@media (max-width: 960px) {
  .ns-hs { grid-template-columns: repeat(2, 1fr); }
  .ns-field--loc, .ns-field--kw { grid-column: span 2; }
}
@media (max-width: 480px) {
  .ns-hs { padding: 14px; gap: 10px; }
  .ns-tab { padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ns-hero__video { display: none; } }

/* ---------- Hero fixes: full-bleed background, label icons, card width, heading spacing ---------- */
/* full-bleed hero uses 100vw; keep a visible scrollbar from adding sideways scroll */
html { overflow-x: hidden; }
.ns-hero { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; }
.ns-hero h1 { margin: 0 0 16px !important; line-height: 1.15 !important; padding: 0 !important; }
.ns-hero .ns-hero__sub { margin: 0 auto 28px !important; line-height: 1.5; position: static; }
.ns-hero .ns-eyebrow { position: static; }
.ns-hs { width: 100%; max-width: 1040px; margin: 0 auto; box-sizing: border-box; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); }
/* pages.css positions `.ns-field i` absolutely for the sign-in forms; the hero label icons must stay inline */
.ns-hs .ns-field label i { position: static; transform: none; pointer-events: none; color: inherit; }
.ns-hs select { appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2311111a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.ns-hs input[type=search] { -webkit-appearance: none; appearance: none; }
.ns-hs input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.ns-field--kw { grid-column: span 4; }
@media (max-width: 960px) { .ns-hs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ns-field--loc, .ns-field--kw { grid-column: span 2; } }
@media (max-width: 480px) { .ns-hs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ns-hs__go { grid-column: span 2; } }
.ns-hero__inner { width: 100%; box-sizing: border-box; }

/* the hero starts directly under the sticky menu: remove the theme's top padding on this page */
main.main.ns-main-flush { padding-top: 0; }
/* the theme clips the page column (overflow-x:hidden); release it so the hero can span the whole viewport */
.ns-container:has(> main.ns-main-flush), main.main.ns-main-flush { overflow: visible; }
