/* Homepage discovery sections, including the next-stop strip. */
.ns-home-sections {
  background: #fff;
  color: var(--mp-gray-900, #211a32);
  padding: 0 clamp(20px, 5vw, 60px) 24px;
}
.ns-home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 0 28px;
  scroll-margin-top: 74px;
  border-bottom: 1px solid var(--mp-border-soft, #eeeaf4);
}
.ns-home-section:first-child { padding-top: 18px; }
.ns-home-section:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.ns-home-section-heading > div {
  display: flex;
  flex: 1 1 600px;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 6px;
}
.ns-home-section-heading h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--mp-gray-900, #211a32);
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -.7px;
  font-weight: 800;
  line-height: 1.25;
}
.ns-home-section-heading p:not(.ns-home-eyebrow) {
  margin: 0;
  color: var(--mp-gray-500, #7d768c);
  font-size: 14px;
  line-height: 1.6;
}
.ns-home-eyebrow {
  flex-basis: 100%;
  margin: 0 0 3px;
  color: var(--mp-teal, #0f7d86);
  font-family: var(--mp-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.ns-home-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-purple-700, #6246a6);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 5px;
}
.ns-home-viewall:hover { text-decoration: underline; text-underline-offset: 4px; }
.ns-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ns-home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid #eae7ef;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 20px rgba(27, 18, 48, .065);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ns-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(27, 18, 48, .12);
}
.ns-home-card:focus-visible, #ns-home-who a:focus-visible, #ns-home-who button:focus-visible {
  outline: 3px solid #0f7d86;
  outline-offset: 3px;
}
.ns-home-card-media {
  height: 148px;
  position: relative;
  background: linear-gradient(135deg, #5d49a3, #16a69c);
  overflow: hidden;
}
.ns-home-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ns-home-card-media:after {
  position: absolute;
  content: "";
  inset: 50% 0 0;
  background: linear-gradient(0deg, rgba(20, 12, 42, .4), transparent);
  pointer-events: none;
}
.ns-home-card-location {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
}
.ns-home-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 14px 15px 16px;
}
.ns-home-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #0f7d86;
  font-size: 11px;
  font-weight: 700;
}
.ns-home-card-body h3 {
  margin: 0;
  font-size: 16px;
  color: #261d38;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ns-home-card-desc {
  margin: 0;
  color: #716d7b;
  font-size: 12px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ns-home-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eeebf2;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 650;
  color: #514766;
}
.ns-home-card-footer > span:last-child { color: #5e4bac; }
/* Community cards follow the photo-led layout in the approved screenshot.
   Scoped to this panel so event cards and the Who's Here examples keep their own styles. */
#ns-home-community-grid .ns-home-community-card .ns-home-card-media { height: 170px; }
#ns-home-community-grid .ns-home-community-card .ns-home-card-media:after {
  inset: 30% 0 0;
  background: linear-gradient(to top, rgba(10, 8, 16, .80), transparent 84%);
}
.ns-home-community-pill {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 5px 11px;
  background: rgba(35, 29, 52, .57);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  backdrop-filter: blur(5px);
}
.ns-home-community-title {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 9px rgba(0,0,0,.6);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#ns-home-community-grid .ns-home-community-card .ns-home-card-body {
  gap: 12px;
  padding: 14px 16px 15px;
}
#ns-home-community-grid .ns-home-community-card .ns-home-card-desc {
  color: #777188;
  font-size: 13px;
  line-height: 1.6;
  min-height: 42px;
}
#ns-home-community-grid .ns-home-community-card .ns-home-card-footer {
  padding-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #292337;
  flex-wrap: nowrap;
}
.ns-home-community-link { white-space: nowrap; color: #7049ba !important; }
.ns-home-community-link > span { margin-left: 3px; }
.ns-home-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 0;
  color: var(--mp-gray-500, #7d768c);
  font-size: 13px;
}
#ns-home-who {
  padding-bottom: 6px;
}
.ns-home-who-heading {
  margin-bottom: 14px;
}
.ns-home-who-heading .ns-home-eyebrow {
  color: #6e42e0;
}
.ns-home-who-intro {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 750;
  color: #76608d;
}
.ns-home-who-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.ns-home-who-live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #3c2c56;
  font-size: 12px;
  line-height: 1.5;
}
.ns-home-who-live > span:last-child {
  color: #9e94ad;
}
.ns-home-who-dot {
  width: 8px;
  height: 8px;
  background: #9162f0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(143, 90, 235, .16);
  margin-right: 3px;
}
.ns-home-meetup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 18px;
  min-height: 40px;
  background: #7043e6;
  border: 0;
  color: #fff !important;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 17px rgba(107, 64, 207, .14);
}
.ns-home-meetup-button:hover { background: #5f34cb; }
.ns-home-who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}
.ns-home-who-featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  min-width: 0;
}
.ns-home-who-event {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #eae5f0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(49, 30, 79, .055);
}
.ns-home-who-event-cover {
  position: relative;
  height: 153px;
  background-color: #41306f;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.ns-home-who-art-mountain {
  background-image: linear-gradient(180deg, rgba(18, 8, 43, .06) 8%, rgba(15, 8, 40, .78) 100%), url('/assets/events/dali-november-2026.webp');
}
.ns-home-who-art-maker {
  background-image: linear-gradient(180deg, rgba(18, 8, 43, .08) 8%, rgba(15, 8, 40, .80) 100%), url('/assets/who-here/cowork.webp');
}
.ns-home-who-art-social {
  background-image: linear-gradient(180deg, rgba(18, 8, 43, .03) 8%, rgba(15, 8, 40, .80) 100%), url('/assets/city/shanghai.webp');
}
.ns-home-who-art-gather {
  background-image: linear-gradient(180deg, rgba(18, 8, 43, .04) 8%, rgba(15, 8, 40, .78) 100%), url('/assets/who-here/meetup.webp');
}
.ns-home-who-event-label,
.ns-home-who-mini-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 100px;
  background: #f6efff;
  color: #6435b7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}
.ns-home-who-event-cover h3 {
  position: absolute;
  left: 14px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 7px rgba(6, 6, 15, .45);
}
.ns-home-who-event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 14px 15px;
  gap: 14px;
}
.ns-home-who-event-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #655875;
}
.ns-home-who-event-meta span:last-child {
  color: #8c7b9c;
}
.ns-home-who-event-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee9f2;
  color: #7e748c;
  font-size: 11px;
  line-height: 1.4;
}
.ns-home-who-event-bottom > span { min-width: 0; }
.ns-home-who-event-bottom a {
  flex-shrink: 0;
  color: #693ee1;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.ns-home-purple-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 303px;
  box-sizing: border-box;
  padding: 25px 21px 19px;
  color: #fff;
  background: linear-gradient(145deg, #2b1758 0%, #432682 46%, #7444c9 100%);
  border-radius: 15px;
  overflow: hidden;
}
.ns-home-purple-cta::after {
  content: "✳";
  position: absolute;
  top: 8px;
  right: -37px;
  font-size: 206px;
  font-weight: 100;
  line-height: 1;
  color: rgba(190, 151, 255, .12);
  pointer-events: none;
}
.ns-home-purple-star {
  position: relative;
  z-index: 1;
  font-size: 27px;
  line-height: 1;
  color: #eee3ff;
  margin-bottom: 15px;
}
.ns-home-purple-rays { display: none; }
.ns-home-purple-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  color: #d5c2f9;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
}
.ns-home-purple-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.22;
  font-weight: 850;
  white-space: pre-line;
}
.ns-home-purple-cta > p {
  position: relative;
  z-index: 1;
  color: #ece2ff;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 15px;
}
.ns-home-purple-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 20px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #6437cf;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ns-home-purple-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(11, 5, 28, .16);
}
.ns-home-purple-cta > small {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 12px;
  color: #d6c7f4;
  font-size: 10px;
  line-height: 1.35;
}
.ns-home-who-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.ns-home-who-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 172px;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 15px;
  overflow: hidden;
  padding: 15px;
  background-color: #41306f;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
  transition: transform .2s ease;
}
.ns-home-who-mini:hover { transform: translateY(-3px); }
.ns-home-who-mini-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 2px 7px rgba(8, 8, 30, .4);
}
.ns-home-who-mini-copy strong {
  font-size: 16px;
  line-height: 1.3;
}
.ns-home-who-mini-copy small {
  font-size: 11px;
  line-height: 1.4;
}
.ns-home-who-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 17px;
  padding: 21px 24px;
  border: 1px solid #e9dcff;
  background: #f7f3ff;
  border-radius: 15px;
}
.ns-home-who-banner strong {
  font-size: 18px;
  font-weight: 800;
  color: #241a3f;
}
.ns-home-who-banner p {
  margin: 5px 0 0;
  color: #867a99;
  font-size: 12px;
  line-height: 1.55;
}
.ns-home-who-banner a {
  flex-shrink: 0;
  padding: 11px 20px;
  border-radius: 100px;
  background: #7043e6;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.ns-home-who-banner a:hover { background: #5d34c2; }

/* The homepage opens the same plan publishing workflow in-place. Scope the
   layout to its overlay so existing city/community plan dialogs do not change. */
[data-ns-home-plan-overlay] [data-plan-panel] {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
[data-ns-home-plan-overlay] [data-plan-header] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
[data-ns-home-plan-overlay] .ns-home-plan-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid #d8e2e1;
  border-radius: 50%;
  background: white;
  color: #53676d;
  font-size: 24px;
  cursor: pointer;
}
[data-ns-home-plan-overlay] [data-plan-body] {
  overflow-y: auto;
  min-height: 0;
}
[data-ns-home-plan-overlay] [data-plan-body] > input:not([type="file"]),
[data-ns-home-plan-overlay] [data-plan-body] > select,
[data-ns-home-plan-overlay] [data-plan-body] > textarea,
[data-ns-home-plan-overlay] .ns-home-plan-pair input,
[data-ns-home-plan-overlay] .ns-home-plan-pair select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d8e2e1;
  border-radius: 10px;
  background: white;
  font-size: 14px;
  font-family: inherit;
  color: #26343a;
}
[data-ns-home-plan-overlay] [data-plan-body] > textarea {
  min-height: 76px;
  resize: vertical;
}
.ns-home-plan-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
}
.ns-home-plan-pair > div { min-width: 0; }
.ns-home-plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.ns-home-plan-chip {
  border: 1px solid #d8e2e1;
  border-radius: 9px;
  background: white;
  color: #58676b;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ns-home-plan-chip.is-selected {
  border-color: #a1c5c8;
  background: #e9f2f2;
  color: #0f7d86;
}
.ns-home-plan-alert {
  margin: -6px 0 14px;
  color: #a73439;
  font-size: 12px;
}
.ns-home-plan-help {
  margin: -5px 0 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
[data-ns-home-plan-overlay] [data-plan-footer] .ns-home-plan-help {
  margin: 10px 0 0;
}
.ns-home-plan-image {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.ns-home-plan-image input { max-width: 100%; font-size: 12px; }
.ns-home-plan-image img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.ns-home-plan-image button {
  border: 0;
  background: transparent;
  color: #0f7d86;
  cursor: pointer;
}
[data-ns-home-plan-overlay] [data-plan-actions] button:first-child {
  background: #fff;
  color: #58676b;
  border: 1px solid #d8e2e1;
}
[data-ns-home-plan-overlay] [data-plan-actions] button:last-child {
  flex: 1;
  background: #347d86;
  border: 1px solid #347d86;
  color: white;
  font-weight: 700;
}
#ns-home-next-grid.ns-next-split, #ns-dest-grid.ns-next-split {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ns-next-row h3 {
  margin: 0 0 8px;
  color: #7d768c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.ns-next-row .ns-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ns-next-bar { margin: 0 0 14px; }
.ns-next-switch, .ns-next-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ns-next-switch {
  width: fit-content;
  padding: 4px;
  border: 1px solid #e6e1ee;
  border-radius: 999px;
  background: #f4f1f8;
}
.ns-next-switch button, .ns-next-themes button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #514766;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.ns-next-switch button[aria-selected="true"], .ns-next-themes button[aria-pressed="true"] {
  background: #fff;
  color: #6246a6;
  box-shadow: 0 1px 4px rgba(27, 18, 48, .12);
}
.ns-next-themes { margin-top: 10px; }
.ns-next-themes button {
  border: 1px solid #e6e1ee;
  background: #fff;
}
.ns-next-switch button:focus-visible, .ns-next-themes button:focus-visible {
  outline: 3px solid #0f7d86;
  outline-offset: 2px;
}
.ns-next-note {
  margin: 10px 0 0;
  color: #7d768c;
  font-size: 13px;
  line-height: 1.5;
}
.ns-next-clear {
  margin-top: 8px;
  border: 1px solid #d9d3e4;
  background: #fff;
  color: #6246a6;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.ns-next-clear:focus-visible, .ns-dest-lang:focus-visible {
  outline: 3px solid #0f7d86;
  outline-offset: 2px;
}
.ns-next-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ns-next-empty p { margin: 0; }
.ns-next-empty button {
  border: 1px solid #d9d3e4;
  background: #fff;
  color: #6246a6;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
#ns-home-next-grid .ns-home-card-media,
#ns-dest-grid .ns-home-card-media { height: 178px; }
#ns-home-next-grid .ns-home-card-media:after,
#ns-dest-grid .ns-home-card-media:after {
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .28) 100%);
}
#ns-home-next-grid .ns-home-card-body,
#ns-dest-grid .ns-home-card-body { padding: 16px 18px 18px; gap: 0; }
.ns-next-name, .ns-next-region {
  position: absolute;
  left: 14px;
  z-index: 1;
  max-width: calc(100% - 28px);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.ns-next-name {
  bottom: 28px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.ns-home-card-media .ns-next-name:last-child { bottom: 12px; }
.ns-next-region { bottom: 12px; font-size: 12px; font-weight: 650; }
.ns-next-line {
  margin: 0;
  color: #261d38;
  font-size: 14px;
  font-weight: 700;
}
.ns-next-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: #8a8a92;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ns-next-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--mp-radius-pill, 999px);
  background: rgba(20, 12, 40, .4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(6px);
}
#ns-home-next-grid .ns-next-caption,
#ns-dest-grid .ns-next-caption {
  position: absolute;
  left: 16px;
  bottom: 13px;
  z-index: 1;
  max-width: calc(100% - 32px);
}
#ns-home-next-grid .ns-next-caption .ns-next-name,
#ns-home-next-grid .ns-next-caption .ns-next-region,
#ns-dest-grid .ns-next-caption .ns-next-name,
#ns-dest-grid .ns-next-caption .ns-next-region {
  position: static;
  display: block;
  max-width: none;
}
#ns-home-next-grid .ns-next-name,
#ns-dest-grid .ns-next-name {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.5px;
}
#ns-home-next-grid .ns-next-region,
#ns-dest-grid .ns-next-region {
  margin-top: 4px;
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  letter-spacing: .4px;
}
.ns-next-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}
.ns-next-tag {
  padding: 4px 10px;
  border-radius: var(--mp-radius-pill, 999px);
  background: var(--mp-gray-100, #f1f3f5);
  color: var(--mp-gray-600, #495057);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}
.ns-next-metrics {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--mp-border-soft, #e9ecef);
}
.ns-next-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ns-next-metric strong {
  color: var(--mp-gray-900, #212529);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.ns-next-metric strong span {
  color: var(--mp-fg-3, #868e96);
  font-size: 11px;
  font-weight: 500;
}
.ns-next-ico-cost { color: var(--mp-purple-700, #764ba2); }
.ns-next-ico-wifi { color: var(--mp-teal, #4ecdc4); }
.ns-next-ico-climate { color: #f5a623; }
.ns-dest-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 60px);
  background: #1c1530;
}
.ns-dest-top a { color: #fff; font-weight: 700; text-decoration: none; }
.ns-dest-tools { display: flex; align-items: center; gap: 16px; }
.ns-dest-lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
#ns-destinations { padding: 28px clamp(20px, 5vw, 60px) 48px; }
#ns-destinations h1 {
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--mp-gray-900, #211a32);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.7px;
}
@media (max-width: 900px) {
  .ns-home-grid, .ns-next-row .ns-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ns-home-who-grid { grid-template-columns: 1fr; }
  .ns-home-who-featured { grid-column: 1; }
  .ns-home-purple-cta { min-height: 240px; }
  .ns-home-who-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ns-home-section { padding: 18px 0 24px; }
  .ns-home-section:first-child { padding-top: 14px; }
  .ns-home-grid { gap: 12px; }
  .ns-home-card-media { height: 114px; }
  #ns-home-next-grid,
  #ns-home-next-grid .ns-home-grid,
  #ns-dest-grid,
  #ns-dest-grid .ns-home-grid { grid-template-columns: 1fr; }
  #ns-home-next-grid .ns-home-card-media,
  #ns-dest-grid .ns-home-card-media { height: 178px; }
  .ns-next-name { font-size: 16px; }
  #ns-home-next-grid .ns-next-name,
  #ns-dest-grid .ns-next-name { font-size: 26px; }
  #ns-home-next-grid .ns-next-metric strong,
  #ns-dest-grid .ns-next-metric strong { white-space: nowrap; }
  .ns-home-card-body { padding: 12px; }
  .ns-home-card-body h3 { font-size: 14px; }
  .ns-home-card-desc { font-size: 11px; }
  #ns-home-community-grid .ns-home-community-card .ns-home-card-media { height: 125px; }
  .ns-home-community-pill { top: 8px; left: 8px; max-width: calc(100% - 16px); font-size: 10px; padding: 4px 7px; }
  .ns-home-community-title { left: 9px; right: 8px; bottom: 9px; font-size: 13px; }
  #ns-home-community-grid .ns-home-community-card .ns-home-card-body { padding: 10px; gap: 9px; }
  #ns-home-community-grid .ns-home-community-card .ns-home-card-desc { font-size: 11px; min-height: 36px; }
  #ns-home-community-grid .ns-home-community-card .ns-home-card-footer { font-size: 11px; gap: 4px; padding-top: 8px; }
  .ns-home-who-featured { grid-template-columns: 1fr; }
  .ns-home-who-event { flex-direction: row; min-height: 148px; }
  .ns-home-who-event-cover { width: 43%; min-width: 43%; height: auto; min-height: 148px; }
  .ns-home-who-event-cover h3 { font-size: 13px; }
  .ns-home-who-event-body { padding: 12px; }
  .ns-home-who-event-meta { flex-direction: column; gap: 4px; }
  .ns-home-who-event-bottom { flex-wrap: wrap; }
  .ns-home-who-mini-grid { gap: 11px; }
  .ns-home-who-mini { height: 150px; padding: 12px; }
  .ns-home-who-mini-copy strong { font-size: 14px; }
  .ns-home-purple-cta { min-height: 275px; padding: 23px; }
  .ns-home-who-banner { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-home-card, .ns-home-who-mini, .ns-home-purple-button { transition: none; }
  .ns-home-card:hover, .ns-home-who-mini:hover, .ns-home-purple-button:hover { transform: none; }
}

/* 社区地图 (homepage-community-map.js). Leaflet's own CSS is loaded with the map. */
.ns-home-map {
  position: relative;
  z-index: 0; /* keep Leaflet's panes (z-index 400+) under the site header and dialogs */
  height: clamp(320px, 46vw, 520px);
  border: 1px solid var(--mp-border, #e6e1ee);
  border-radius: 18px;
  overflow: hidden;
  background: #a9cbe6;
}
.ns-home-map .ns-home-status { margin: 0; padding: 24px; }
/* Inside 加入一个真实的社区: the map above the cards; on phones the cards come first. */
.ns-home-map-block { margin: 0 0 24px; }
.ns-home-map-summary { margin: 0 0 10px; color: #7d768c; font-size: 14px; }
.ns-home-map-toggle { display: none; }
/* Filters to the right of the map; above it, in a wrapping row, on narrow screens. */
.ns-home-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: start;
}
.ns-home-map-stage { position: relative; min-width: 0; }
.ns-home-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 500;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 16px rgba(33, 26, 50, .16);
  color: #4a4160;
  font-size: 14px;
  text-align: center;
}
.ns-home-map-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ns-home-map-filters[hidden] { display: none; }
.ns-home-map-filter,
.ns-home-map-clear {
  appearance: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #ddd5ec;
  border-radius: 999px;
  background: #fff;
  color: #3d3452;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.ns-home-map-filter:hover { border-color: #7043e6; color: #6246a6; }
.ns-home-map-filter[aria-pressed="true"] { border-color: #7043e6; background: #7043e6; color: #fff; }
.ns-home-map-filter:focus-visible,
.ns-home-map-clear:focus-visible { outline: 2px solid #7043e6; outline-offset: 2px; }
.ns-home-map-clear { border-style: dashed; color: #7d768c; font-weight: 500; }
.ns-home-map-clear[hidden] { display: none; }
.ns-home-map-note { margin: 4px 2px 0; color: #9a93a8; font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) {
  #ns-home-communities { display: flex; flex-direction: column; }
  #ns-home-communities > .ns-home-section-heading { order: 0; }
  #ns-home-communities > .ns-home-grid { order: 1; }
  #ns-home-communities > .ns-home-map-block { order: 2; margin: 24px 0 0; }
  .ns-home-map-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ns-home-map-filters { order: -1; flex-direction: row; flex-wrap: wrap; }
  /* One 筛选 button; the chips open under it. */
  .ns-home-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #7043e6;
    border-radius: 999px;
    background: #fff;
    color: #6246a6;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .ns-home-map-filters:not(.is-open) > :not(.ns-home-map-toggle) { display: none; }
  .ns-home-map-filter, .ns-home-map-clear { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .ns-home-map-note { width: 100%; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-home-map-filter { transition: none; }
}
.ns-map-label {
  display: block;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: #6a5a86;
  font-size: 12px;
  font-style: italic;
  letter-spacing: .3px;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff;
  pointer-events: none;
}
.ns-map-label.is-major { font-size: 13px; }
.ns-map-cluster {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(112, 67, 230, .22);
}
.ns-map-cluster > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7043e6;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(33, 26, 50, .35);
}
.ns-map-pop h4 { margin: 0 0 6px; font-size: 15px; color: #211a32; }
.ns-map-pop ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; }
.ns-map-pop li { padding: 5px 0; border-top: 1px solid #f0edf5; font-size: 13px; line-height: 1.45; }
.ns-home-map .ns-map-pop a { color: #6246a6; font-weight: 700; text-decoration: none; }
.ns-home-map .ns-map-pop a:hover { text-decoration: underline; }
.ns-map-pop em { display: block; color: #7d768c; font-size: 12px; font-style: normal; }
