body.community-r1-page .community-room-section {
  /* This section is mounted inside the 900px city column. Keep its
     horizontal padding relative to that column rather than the viewport;
     viewport-based padding collapses the heading on wide desktop screens. */
  padding-left: clamp(22px, 4vw, 48px);
  padding-right: clamp(22px, 4vw, 48px);
  padding-top: 28px;
  padding-bottom: 34px;
  background: linear-gradient(180deg, rgba(74, 156, 108, .035), transparent 82%);
  container: community-room / inline-size;
}

/* The booking browser is embedded in a fixed-width community column. Its
   controls must therefore size against this section, not the desktop
   viewport used by the standalone booking page. */
body.community-r1-page .community-room-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 512px);
  gap: 30px;
  align-items: end;
}

body.community-r1-page .community-room-section .section-controls {
  display: grid;
  /* Keep the date range and category entry in one visual column. On wide
     screens the old two-column grid pushed 分类筛选 to the far edge of the
     room section, while the same control became stacked at narrower ratios. */
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 512px);
  min-width: 0;
  gap: 10px;
  align-items: stretch;
}

body.community-r1-page .community-room-section .filter-trigger {
  justify-self: start;
  width: min(100%, 360px);
}

body.community-r1-page .community-room-section .stay-query {
  width: 100%;
  min-width: 0;
}

body.community-r1-page [data-r1-city-tabs][hidden],
body.community-r1-page [data-r1-yard-catalog][hidden] {
  display: none !important;
}

body.community-r1-page [data-r1-community-yard-card][hidden] {
  display: none !important;
}

body.community-r1-page [data-r1-community-yard-card].is-r1-selected {
  border-color: rgba(74, 156, 108, .62);
  box-shadow: 0 0 0 3px rgba(74, 156, 108, .1), var(--shadow);
}

body.community-r1-page .room-detail-notice {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid #b68038;
  color: #74521f;
  background: #fff8e7;
  font-size: 13px;
  font-weight: 650;
}

body.community-r1-page .dialog-backdrop { z-index: 160; }
body.community-r1-page .yard-dialog-backdrop { z-index: 162; }
body.community-r1-page .filter-backdrop { z-index: 165; }
body.community-r1-page .consultation-backdrop { z-index: 170; }
body.community-r1-page .lightbox-backdrop { z-index: 180; }

/* The room browser is embedded in the city column. Use that column's
   available width instead of the outer viewport so a small browser resize
   cannot switch the heading between two unrelated layouts. The two-column
   heading needs 512px for controls, 30px for the gap, and a readable title
   track; below 804px of inner width it stacks deliberately. */
@container community-room (max-width: 803px) {
  body.community-r1-page .community-room-section .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.community-r1-page .community-room-section .section-controls {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 512px);
    align-items: stretch;
  }

  body.community-r1-page .community-room-section .filter-trigger {
    justify-self: start;
    width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  body.community-r1-page .community-room-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 18px;
    padding-bottom: 26px;
    margin-bottom: 24px;
  }

  body.community-r1-page .community-room-section + .yg {
    margin-top: 0;
  }

  body.community-r1-page .community-room-section .section-heading h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  body.community-r1-page .community-room-section .section-controls {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body.community-r1-page .community-room-section .stay-query {
    grid-template-columns: minmax(0, 1fr);
  }

  body.community-r1-page .community-room-section .stay-query label,
  body.community-r1-page .community-room-section .stay-query .date-input-shell,
  body.community-r1-page .community-room-section .stay-query input[type="date"] {
    min-inline-size: 0;
    max-inline-size: 100%;
    inline-size: 100%;
  }

  body.community-r1-page .community-room-section .stay-query .date-input-shell {
    box-sizing: border-box;
  }

  body.community-r1-page .community-room-section .stay-query input[type="date"] {
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
  }

  body.community-r1-page .community-room-section .stay-query input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  body.community-r1-page .community-room-section .stay-query [data-r1-stay-status] {
    grid-column: auto;
  }
}

/* The short-video entry is an editorial section, not another equal-weight
   social card. The image leads on desktop and remains a single focused tap
   target on narrow screens. */
body.community-r1-page .community-video-section {
  display: grid;
  gap: 18px;
  margin: 28px 0 34px;
  padding: 26px;
  border: 1px solid rgba(57, 124, 88, .16);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(33, 55, 43, .08);
}
body.community-r1-page .community-social-features {
  display: grid;
  gap: 34px;
  margin: 42px auto 56px;
}
body.community-r1-page .community-social-features .community-video-section { margin: 0; }
body.community-r1-page .community-social-feature {
  --social-accent: #397c58;
  --social-soft: #f5f3e8;
  --social-line: rgba(57, 124, 88, .18);
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.community-r1-page .community-social-feature--xhs { --social-accent: #ff2442; }
body.community-r1-page .community-social-feature--xhs { --social-soft: #fffaf7; --social-line: rgba(255, 36, 66, .18); }
body.community-r1-page .community-social-feature--dy { --social-accent: #010101; --social-soft: #f4f5f5; --social-line: rgba(1, 1, 1, .18); }
body.community-r1-page .community-social-feature--bz { --social-accent: #07c160; }
body.community-r1-page .community-social-feature--bz { --social-soft: #f0faf4; --social-line: rgba(7, 193, 96, .2); }
body.community-r1-page .community-social-feature--dy .community-video-media::after { background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.72)); }
body.community-r1-page .community-social-feature .community-video-eyebrow,
body.community-r1-page .community-social-feature .community-video-kicker { color: var(--social-accent); }
body.community-r1-page .community-social-feature .community-video-cta { border-color: var(--social-accent); color: var(--social-accent); }
body.community-r1-page .community-social-feature--dy .community-video-badge { background: rgba(0,0,0,.72); }
body.community-r1-page .community-social-copy-status { color: var(--social-accent); font-size: 12px; line-height: 1.5; }
body.community-r1-page .community-social-feature .community-video-heading { display: none; }

body.community-r1-page .community-social-platform-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 24px 28px 18px;
  color: var(--ink, #24302a);
  background: var(--social-soft);
}
body.community-r1-page .community-social-platform-icon {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}
body.community-r1-page .community-social-platform-icon-frame {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #fff;
}
body.community-r1-page .community-social-platform-icon-frame--xhs { box-shadow: 0 0 0 1px rgba(255, 36, 66, .16); }
body.community-r1-page .community-social-platform-icon-frame--dy { box-shadow: 2px 2px 0 rgba(37, 244, 238, .8), -2px -2px 0 rgba(254, 44, 85, .75); }
body.community-r1-page .community-social-platform-icon-frame--bz { box-shadow: 0 0 0 1px rgba(7, 193, 96, .16); }
body.community-r1-page .community-social-platform-name { font-size: 16px; font-weight: 850; }
body.community-r1-page .community-social-platform-divider {
  width: 1px;
  height: 18px;
  background: var(--social-line);
}
body.community-r1-page .community-social-platform-descriptor {
  color: var(--muted, #6c776f);
  font-size: 14px;
}
body.community-r1-page .community-social-feature--dy .community-social-platform-row { border-top: 2px solid #010101; }
body.community-r1-page .community-social-feature--xhs .community-social-platform-row { border-top: 2px solid #ff2442; }
body.community-r1-page .community-social-feature--bz .community-social-platform-row { border-top: 2px solid #07c160; }

body.community-r1-page .community-video-heading { max-width: 660px; }
body.community-r1-page .community-video-eyebrow {
  margin: 0 0 8px;
  color: var(--accent, #397c58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.community-r1-page .community-video-heading h3 {
  margin: 0;
  color: var(--ink, #24302a);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}
body.community-r1-page .community-video-heading p:last-child {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted, #6c776f);
  font-size: 14px;
  line-height: 1.7;
}
body.community-r1-page .community-video-feature {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--social-line);
  border-radius: 28px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(33, 55, 43, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.community-r1-page .community-video-feature:hover,
body.community-r1-page .community-video-feature:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(33, 55, 43, .14);
}
body.community-r1-page .community-video-feature:focus-visible {
  outline: 3px solid rgba(57, 124, 88, .3);
  outline-offset: 3px;
}
body.community-r1-page .community-social-feature--xhs {
  width: min(100%, 980px);
  margin-inline: auto;
}
body.community-r1-page .community-social-feature--xhs .community-video-feature {
  padding: 24px 28px 32px;
  border-color: rgba(36, 48, 42, .1);
  border-radius: 32px;
  background: #fffdf8;
  box-shadow: 0 22px 60px rgba(33, 55, 43, .09);
}
body.community-r1-page .community-social-feature--xhs .community-video-feature:hover,
body.community-r1-page .community-social-feature--xhs .community-video-feature:focus-visible {
  transform: none;
  box-shadow: 0 22px 60px rgba(33, 55, 43, .09);
}
body.community-r1-page .community-social-feature--xhs .community-social-platform-row {
  padding: 0 0 26px;
  border-top: 0;
  background: transparent;
}
body.community-r1-page .community-social-feature--xhs .community-social-platform-icon-frame {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 0;
  background: #ff2442;
  box-shadow: none;
}
body.community-r1-page .community-social-feature--xhs .community-social-platform-icon {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}
body.community-r1-page .community-social-feature--xhs .community-social-platform-name {
  font-size: 17px;
  letter-spacing: .01em;
}
body.community-r1-page .community-social-feature--xhs .community-social-platform-divider {
  height: 21px;
  background: rgba(255, 36, 66, .3);
}
body.community-r1-page .community-social-feature--xhs .community-social-platform-descriptor {
  color: rgba(255, 36, 66, .62);
  font-size: 15px;
}
body.community-r1-page .community-social-feature--xhs .community-video-feature-body {
  display: block;
}
body.community-r1-page .community-video-feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  min-width: 0;
}
body.community-r1-page .community-video-media {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  background: #d8dfd7;
}
body.community-r1-page .community-video-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 28, 20, .04), rgba(12, 28, 20, .56));
  content: '';
}
body.community-r1-page .community-social-feature--xhs .community-video-media::after {
  background: linear-gradient(180deg, rgba(12, 28, 20, .02), rgba(12, 28, 20, .16));
}
body.community-r1-page .community-social-feature--xhs .community-video-media {
  aspect-ratio: 1.62;
  border-radius: 24px;
  background: #f3ebe5;
  box-shadow: 0 12px 28px rgba(33, 55, 43, .08);
}
body.community-r1-page .community-video-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
/* Dali social entries use one complete art-directed visual, not a platform
   screenshot pasted over a second scene.  The web card only frames that image
   and keeps the account handoff/copy outside of it. */
body.community-r1-page .community-video-media[data-r1-social-editorial="true"] {
  aspect-ratio: 4 / 3;
  background: #f1ede5;
}
body.community-r1-page .community-video-media[data-r1-social-editorial="true"]::after { display: none; }
body.community-r1-page .community-social-card-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f1ede5;
}
body.community-r1-page .community-social-feature--xhs .community-video-media[data-r1-social-editorial="true"] {
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(117, 81, 64, .12);
}
body.community-r1-page .community-social-feature--dy .community-video-media[data-r1-social-editorial="true"] {
  background: #121212;
}
body.community-r1-page .community-social-feature--bz .community-video-media[data-r1-social-editorial="true"] {
  background: #eff3ea;
}
body.community-r1-page .community-video-feature:hover .community-video-media[data-r1-social-editorial="true"] img,
body.community-r1-page .community-video-feature:focus-visible .community-video-media[data-r1-social-editorial="true"] img { transform: scale(1.018); }
body.community-r1-page .community-video-feature:hover .community-video-media img,
body.community-r1-page .community-video-feature:focus-visible .community-video-media img { transform: scale(1.045); }
body.community-r1-page .community-video-badge,
body.community-r1-page .community-video-media-caption,
body.community-r1-page .community-video-play { position: absolute; z-index: 2; }
body.community-r1-page .community-video-badge {
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 38, 30, .58);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}
body.community-r1-page .community-video-play {
  top: 50%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 38, 30, .65);
  box-shadow: 0 8px 24px rgba(20, 38, 30, .2);
  font-size: 18px;
  transform: translate(-50%, -50%);
}
body.community-r1-page .community-video-media-caption {
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
body.community-r1-page .community-social-feature--xhs .community-video-media-caption { display: none; }
body.community-r1-page .community-video-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 30px;
}
body.community-r1-page .community-social-feature--xhs .community-video-copy { background: #fffdfb; }
body.community-r1-page .community-social-feature--dy .community-video-copy { background: #fafafa; }
body.community-r1-page .community-social-feature--bz .community-video-copy { background: #fbfffc; }
body.community-r1-page .community-social-feature--xhs .community-video-copy {
  margin-top: 28px;
  padding: 26px 2px 0;
  border-top: 1px solid rgba(255, 36, 66, .2);
  background: transparent;
  gap: 16px;
}
body.community-r1-page .community-video-kicker {
  color: var(--accent, #397c58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.community-r1-page .community-video-copy strong {
  color: var(--ink, #24302a);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
}
body.community-r1-page .community-social-feature--xhs .community-video-kicker {
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: none;
}
body.community-r1-page .community-social-feature--xhs .community-video-copy strong {
  max-width: 22ch;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.24;
  letter-spacing: -.025em;
}
body.community-r1-page .community-social-feature--xhs .community-video-description {
  max-width: 42rem;
  font-size: 16px;
  line-height: 1.9;
}
body.community-r1-page .community-social-feature--xhs .community-video-cta {
  margin-top: 2px;
  padding: 12px 22px;
  border-width: 1.5px;
  font-size: 14px;
}
body.community-r1-page .community-video-description {
  color: var(--muted, #6c776f);
  font-size: 14px;
  line-height: 1.8;
}
body.community-r1-page .community-video-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent, #397c58);
  border-radius: 999px;
  color: var(--accent, #397c58);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  body.community-r1-page .community-video-section { margin: 24px 0 28px; padding: 18px; border-radius: 22px; }
  body.community-r1-page .community-social-feature { padding: 0; }
  body.community-r1-page .community-social-platform-row { padding: 22px 22px 17px; }
  body.community-r1-page .community-video-feature-body { grid-template-columns: minmax(0, 1fr); }
  body.community-r1-page .community-video-media { min-height: 0; aspect-ratio: 16 / 10; }
  body.community-r1-page .community-video-media[data-r1-social-editorial="true"] { aspect-ratio: 4 / 3; }
  body.community-r1-page .community-video-copy { padding: 22px; }
  body.community-r1-page .community-social-features { gap: 30px; margin: 34px 0 44px; }
  body.community-r1-page .community-social-feature--xhs .community-video-feature {
    padding: 24px 20px 30px;
    border-radius: 30px;
  }
  body.community-r1-page .community-social-feature--xhs .community-social-platform-row {
    padding: 0 0 22px;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-media {
    aspect-ratio: 1.56;
    border-radius: 20px;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-media[data-r1-social-editorial="true"] {
    aspect-ratio: 4 / 3;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-copy {
    margin-top: 24px;
    padding: 24px 0 0;
    gap: 15px;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-copy strong {
    font-size: 26px;
    line-height: 1.25;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-description {
    font-size: 15px;
    line-height: 1.9;
  }
}

@media (max-width: 420px) {
  body.community-r1-page .community-video-section { margin-right: -2px; margin-left: -2px; padding: 14px; }
  body.community-r1-page .community-social-feature { margin-right: 0; margin-left: 0; }
  body.community-r1-page .community-social-platform-row { padding: 20px 20px 16px; }
  body.community-r1-page .community-video-media-caption { right: 14px; bottom: 13px; left: 14px; font-size: 12px; }
  body.community-r1-page .community-video-copy { gap: 10px; padding: 18px; }
  body.community-r1-page .community-video-copy strong { font-size: 22px; }
  body.community-r1-page .community-social-feature--xhs .community-video-feature {
    padding: 22px 18px 28px;
    border-radius: 28px;
  }
  body.community-r1-page .community-social-feature--xhs .community-social-platform-row {
    padding: 0 0 20px;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-media {
    aspect-ratio: 1.54;
    border-radius: 18px;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-media[data-r1-social-editorial="true"] {
    aspect-ratio: 4 / 3;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-copy {
    margin-top: 22px;
    padding-top: 22px;
    gap: 14px;
  }
  body.community-r1-page .community-social-feature--xhs .community-video-copy strong { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  body.community-r1-page .community-video-feature,
  body.community-r1-page .community-video-media img { transition: none; }
}
body.community-r1-page .shared-library-entry {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 28px;
  border: 1px solid rgba(74, 156, 108, .25);
  border-radius: 20px;
  color: #244431;
  background: linear-gradient(135deg, #eef7ee, #fffdf5);
  box-shadow: 0 10px 30px rgba(38, 73, 48, .06);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.community-r1-page .shared-library-entry:hover,
body.community-r1-page .shared-library-entry:focus-visible {
  border-color: rgba(74, 156, 108, .6);
  box-shadow: 0 16px 36px rgba(38, 73, 48, .12);
  transform: translateY(-2px);
}

body.community-r1-page .shared-library-entry-kicker {
  color: #39845a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}

body.community-r1-page .shared-library-entry strong {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -.06em;
}

body.community-r1-page .shared-library-entry span:not(.shared-library-entry-kicker) {
  max-width: 620px;
  color: #68746c;
  font-size: 14px;
  line-height: 1.8;
}

body.community-r1-page .shared-library-entry b {
  color: #24543c;
  font-size: 13px;
}
