.nw-space-discovery{padding-block:24px 48px}
.nw-space-discovery .nw-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.nw-space-discovery .nw-section-head h1{font-size:clamp(1.65rem,2.5vw,2.35rem);line-height:1.25;margin:.25em 0}
.nw-space-discovery .nw-section-head p{max-width:58ch;margin:.4em 0;color:#526077}
.nw-space-intents,.nw-space-related{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 14px;font-size:.9rem}
.nw-space-intents span,.nw-space-related strong{color:#526077;font-weight:700}
.nw-space-intents a,.nw-space-related a{display:inline-flex;align-items:center;min-height:36px;padding:6px 11px;border:1px solid #c9d8ee;border-radius:8px;background:#fff;color:#1649aa;font-weight:700;text-decoration:none}
.nw-space-intents a:hover,.nw-space-related a:hover{background:#edf4ff}
.nw-space-intents a:focus-visible,.nw-space-related a:focus-visible{outline:3px solid #f6b62d;outline-offset:2px}
.nw-space-related{margin:22px 0 0;padding-top:16px;border-top:1px solid #d9e3f2}
.nw-space-filters{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr));gap:12px;align-items:end;padding:18px;border:1px solid #d9e3f2;border-radius:16px;background:#fff}
.nw-space-filters label{display:grid;gap:6px;font-size:.9rem;font-weight:600;min-width:0}
.nw-space-filters input,.nw-space-filters select{box-sizing:border-box;min-width:0;min-height:42px;max-width:100%;width:100%;font:inherit;padding:8px 10px;border:1px solid #b9cce7;border-radius:9px;background:#fff;color:#14254a}
.nw-space-filters .nw-space-advanced{grid-column:1/-1;border-top:1px solid #e4ebf5;padding-top:10px}
.nw-space-filters .nw-space-advanced summary{cursor:pointer;font-weight:700;min-height:36px}
.nw-space-filters .nw-space-advanced summary:focus-visible{outline:3px solid #f6b62d;outline-offset:2px}
.nw-space-advanced-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.nw-space-filters .nw-space-amenities{grid-column:1/-1;border:0;margin:0;padding:0}
.nw-space-filters .nw-space-amenities legend{font-size:.9rem;font-weight:700}
.nw-space-filters .nw-space-amenities label{display:inline-flex;align-items:center;gap:6px;margin:8px 12px 0 0;font-weight:400}
.nw-space-filters .nw-space-amenities input{width:auto;min-height:0}
.nw-space-filter-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
.nw-space-filter-actions .nw-text-link{font-size:.85rem;white-space:nowrap}
.nw-space-filters .nw-button{justify-self:start;min-height:42px}
.nw-space-active{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:14px;font-size:.85rem}
.nw-space-active strong{margin-inline-end:4px;color:#526077}
.nw-space-active a{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 10px;border:1px solid #c9d8ee;border-radius:8px;background:#fff;color:#1649aa;text-decoration:none;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.nw-space-active a:hover{background:#edf4ff}
.nw-space-active a:focus-visible{outline:3px solid #f6b62d;outline-offset:2px}
.nw-space-active .nw-space-clear{border-color:transparent;background:transparent;text-decoration:underline}
.nw-space-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.nw-space-card{padding:18px;min-width:0;display:grid;align-content:start;gap:8px}
.nw-space-card h2{font-size:1.12rem;line-height:1.4;margin:0}
.nw-space-card p{font-size:.92rem;line-height:1.6;margin:0;color:#526077}
.nw-space-card .nw-space-card-facts{font-size:.85rem;font-weight:700;color:#1649aa}
.nw-space-card .nw-text-link{align-self:end;margin-top:8px}
.nw-space-results .nw-empty{grid-column:1/-1;padding:28px}
.nw-space-pages{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:20px}.nw-space-pages a{color:#1649aa;font-weight:700}.nw-space-pages span{color:#526077}
.nw-space-provider{margin-block:22px;padding:20px}
.nw-space-provider h2{font-size:1.35rem;margin:.35em 0}
.nw-space-provider details{margin-top:14px}
.nw-space-provider fieldset{border:1px solid #d9e3f2;border-radius:10px;padding:12px;display:flex;flex-wrap:wrap;gap:10px}
.nw-space-provider fieldset label{display:inline-flex;align-items:center;gap:6px}
.nw-space-detail{max-width:960px;padding:24px;margin-block:28px}
.nw-space-detail h1{font-size:clamp(1.6rem,2.5vw,2.3rem);line-height:1.25}
@media(max-width:1000px){.nw-space-filters,.nw-space-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nw-space-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.nw-space-discovery .nw-section-head{display:block}.nw-space-filters,.nw-space-advanced-grid,.nw-space-results{grid-template-columns:minmax(0,1fr)}.nw-space-filters{padding:14px}.nw-space-provider{padding:16px}.nw-space-detail{padding:18px}.nw-space-intents,.nw-space-related{gap:7px;font-size:.86rem}}

/* R39: compact discovery without reducing control legibility. */
.nw-space-discovery{padding-block:14px 32px}
.nw-space-discovery .nw-section-head{align-items:center;gap:14px;margin-bottom:14px}
.nw-space-discovery .nw-section-head h1{font-size:clamp(1.45rem,2vw,1.9rem);line-height:1.28}
.nw-space-discovery .nw-section-head p{font-size:.9rem;line-height:1.55}
.nw-space-intents{margin-bottom:12px;gap:6px}
.nw-space-intents a{min-height:34px;padding:5px 10px;font-size:.88rem}
.nw-space-intents a[aria-current="true"]{background:#e8f0ff;border-color:#2c5dd9;color:#103a91}
.nw-space-filters{gap:9px;padding:14px;border-radius:12px}
.nw-space-filters label{font-size:.86rem}
.nw-space-filters input,.nw-space-filters select{min-height:40px}
.nw-space-results{gap:12px;margin-top:14px}
.nw-space-card{padding:15px;gap:6px}
.nw-space-card h2{font-size:1.05rem}
.nw-space-card p{font-size:.88rem;line-height:1.5}
.nw-space-results .nw-empty{padding:22px;gap:10px}
.nw-space-results .nw-empty h2{font-size:1.2rem}
.nw-space-results .nw-empty .nw-button{justify-self:start}
@media(max-width:640px){.nw-space-discovery .nw-section-head h1{font-size:1.5rem}.nw-space-discovery .nw-section-head>p[role="status"]{margin-top:10px}.nw-space-intents{gap:6px}.nw-space-filters{padding:12px}}.nw-space-discovery .nw-section-head>p[role="status"]{align-self:flex-start;flex:none;padding:5px 9px;margin:0;border:1px solid #d9e3f2;border-radius:7px;background:#f6f9fd;color:#526077;font-size:.82rem;font-weight:700}
@media(max-width:640px){.nw-space-discovery .nw-section-head>p[role="status"]{width:max-content;max-width:100%}}

/* The type selector immediately below offers the same choices on narrow phones. */
@media(max-width:480px){.nw-space-intents{display:none}}

/* Admin-reviewed photos only: the card and detail stay unchanged without one. */
.nw-space-card-media,.nw-space-detail-media{aspect-ratio:16/9;overflow:hidden;border:1px solid #d9e3f2;border-radius:10px;background:#f4f7fc}
.nw-space-card-media img,.nw-space-detail-media img{display:block;width:100%;height:100%;object-fit:cover}
.nw-space-detail-media{margin:12px 0 18px}
