/* Public-site polish. Brand colours continue to come from the published CMS theme.
   The existing video, gallery and calendar behaviour stays in its original modules. */

/* Libenest shares the root No.88 linter, but not its square-corner design rules.
   Keep the same compact CSS convention as libenest.css and existing BEM gallery hooks. */
/* stylelint-disable declaration-block-single-line-max-declarations, no-descending-specificity, declaration-property-value-allowed-list, selector-class-pattern */
:root {
  --paper-deep: color-mix(in srgb, var(--ink) 3%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 74%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1240px;
  --display: var(--body);
}

body { line-height: 1.65; }

/* Favorites keep the same content grid as the platform header and footer. */
.favorites-body .page-shell { display: flex; flex-direction: column; min-height: 100dvh; }
.favorites-body .page-shell > main { flex: 1; }
.favorites-page { padding-block: clamp(32px, 4vw, 56px) 64px; }
.favorites-page h1 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.4; }
.favorites-page > p { max-width: 65ch; color: var(--muted); font-size: 16px; }
.favorites-page [data-favorite-status]:not(:empty) { margin-top: 16px; }
.favorites-page .favorite-list { margin-block: 32px 24px; }
.favorites-page .favorite-list article { align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.favorites-page .favorite-list a { min-width: 0; flex: 1; }
.favorites-page .favorite-list button, .favorites-page > .text-link { min-height: 44px; }

/* Search-first platform pages only. Tenant and old published home stay unchanged. */
.platform-page-body .platform-discover { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; padding-block: 28px 48px; }
.platform-page-body .platform-discover h1 { margin-block: 8px 20px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.4; }
.platform-page-body .platform-discover > p { max-width: 55em; margin-top: -8px; margin-bottom: 20px; color: var(--muted); font-size: 15px; }

/* One clean search bar; region and type live in the folded filter panel. */
.platform-page-body .platform-search { position: relative; margin-bottom: 16px; }
.platform-page-body .platform-search-bar { display: flex; align-items: center; min-height: 56px; padding-inline: 6px 64px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 5%); }
.platform-page-body .platform-search-bar:focus-within { border-color: var(--ink); }
.platform-page-body .platform-search-submit { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; }
.platform-page-body .platform-search-submit svg, .platform-page-body .platform-search-filters summary svg { width: 22px; height: 22px; }
.platform-page-body .platform-search-field { flex: 1; min-width: 0; }
.platform-page-body .platform-search-field input { width: 100%; min-height: 48px; padding: 0 8px; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: 16px; outline: none; }
.platform-page-body .platform-search-filters summary { position: absolute; top: 6px; right: 6px; display: grid; width: 52px; height: 44px; place-items: center; border-left: 1px solid var(--line); color: var(--ink); cursor: pointer; list-style: none; }
.platform-page-body .platform-search-filters summary::-webkit-details-marker { display: none; }
.platform-page-body .platform-search-filters summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.platform-page-body .platform-search-filter-panel { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-deep); }
.platform-page-body .platform-search-filter-panel > label { display: grid; gap: 6px; min-width: min(240px, 100%); font-size: 14px; }
.platform-page-body .platform-search-filter-panel select { min-width: 0; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font: inherit; font-size: 16px; }
.platform-page-body .platform-search-filter-panel > button { min-height: 48px; cursor: pointer; }
.platform-page-body .platform-type-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.platform-page-body .platform-type-filters legend { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.platform-page-body .platform-type-filters label { display: inline-flex; min-height: 44px; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.platform-page-body .platform-type-filters label:has(input:checked) { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.platform-page-body .platform-type-filters input { accent-color: var(--ink); }
.platform-page-body .platform-search :is(input, select):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.platform-page-body .platform-region-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.platform-page-body .platform-region-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; }
.platform-page-body .platform-region-chips a[aria-current="page"] { border-color: transparent; background: color-mix(in srgb, var(--moss) 14%, var(--paper)); font-weight: 600; }
.platform-page-body .platform-partner-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 8px auto 56px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--paper-deep); }
.platform-page-body .platform-partner-cta h2 { margin: 0 0 6px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; line-height: 1.4; }
.platform-page-body .platform-partner-cta p { margin: 0; color: var(--muted); font-size: 15px; }
.platform-page-body .platform-partner-cta a { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--ink); background: color-mix(in srgb, var(--moss) 14%, var(--paper)); }
.platform-page-body .platform-partner-cta a svg { width: 22px; height: 22px; }

/* Clean header: thin divider and icon-only menu; navigation stays folded at 1100px and below. */
.platform-page-body .site-header { border-bottom: 1px solid var(--line); }
.platform-page-body .menu-toggle { justify-content: center; min-width: 44px; padding: 8px; border: 0; }
.platform-page-body .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.platform-page-body .menu-toggle svg { width: 24px; height: 24px; }
.platform-page-body .platform-search-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; background: var(--paper-deep); }
.platform-page-body .platform-search-empty :is(h2, p) { margin-bottom: 8px; }
.platform-page-body .platform-search-empty .text-link { display: inline-flex; margin-right: 24px; }
.platform-page-body .platform-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.platform-page-body .platform-pagination a { display: grid; min-height: 44px; min-width: 44px; place-items: center; text-decoration: underline; }
.platform-page-body [data-search-result-card] { position: relative; display: block; grid-column: auto; border: 0; border-radius: 0; background: transparent; }
.platform-page-body [data-search-result-card] .listing-card-copy { padding: 12px 2px 0; }
.platform-page-body [data-search-result-card] h3 { font-size: 19px; }
.platform-page-body [data-search-result-card] .listing-card-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; }
.platform-page-body [data-search-result-card] .listing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.platform-page-body [data-search-result-card] .listing-card-media::after { position: absolute; inset: 0; content: ""; background: black; opacity: 0; transition: opacity 200ms; pointer-events: none; }
.platform-page-body [data-search-result-card] .listing-card-media:hover::after { opacity: .12; }
.platform-page-body .platform-favorite { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: var(--paper); box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.platform-page-body .platform-favorite svg { width: 22px; height: 22px; }
.platform-page-body .platform-page-heading { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 32px auto; }
.platform-page-body .publisher-hero { display: block; padding-block: 24px 32px; }
.platform-page-body .publisher-hero-copy { max-width: 760px; }
.platform-page-body .publisher-hero-copy h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; margin-block: 16px; }
.platform-page-body .publisher-hero-copy > p { max-width: 45em; font-size: 16px; }
.platform-page-body .publisher-flow { max-width: 850px; padding-bottom: 64px; }
.platform-page-body .publisher-flow-heading { display: block; margin-bottom: 24px; }
.platform-page-body .publisher-flow-heading h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; }
.platform-page-body .publisher-flow-heading p { max-width: 45em; font-size: 16px; }
.platform-page-body .publisher-panel { border-radius: 16px; padding: 24px; }
.platform-page-body .publisher-panel :is(input, textarea, select) { font-size: 16px; border-radius: 10px; background: var(--paper); }
.platform-page-body .publisher-panel label { font-size: 14px; }
.platform-page-body .platform-footer { flex-flow: row wrap; align-items: center; gap: 8px 24px; min-height: 0; padding-block: 24px 32px; font-size: 13px; }
.platform-page-body .platform-footer-note { margin: 0; color: var(--muted); }
.platform-page-body .platform-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
.platform-page-body .platform-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (width <= 820px) {
  .platform-page-body .platform-search-bar { min-height: 52px; }
  .platform-page-body .platform-search-filters summary { top: 4px; }
  .platform-page-body .platform-search-filter-panel { padding: 16px; }
  .platform-page-body .platform-region-chips { margin-bottom: 20px; }
  .platform-page-body .platform-footer nav { margin-left: 0; }
  .platform-page-body .platform-discover { padding-top: 16px; }
  .platform-page-body .platform-discover .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .platform-page-body .publisher-panel { padding: 20px; }
}

@media (width <= 480px) {
  .platform-page-body .platform-discover .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-page-body .platform-partner-cta { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav[data-glass-nav], .bottom-nav[data-glass-nav]::before, .bottom-nav[data-glass-nav] a { transition: none; }
  .platform-page-body *, .platform-page-body *::before, .platform-page-body *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
}
html.has-reveal-js [data-reveal] { filter: none; transition-duration: .25s; }
html.has-reveal-js .platform-page-body [data-search-result-card] { opacity: 1; transform: none; }

html.has-reveal-js .market-hero[data-reveal],
html.has-reveal-js .market-hero [data-reveal],
html.has-reveal-js .tenant-hero[data-reveal],
html.has-reveal-js .space-detail__media[data-reveal] { opacity: 1; transform: none; filter: none; }
h1, h2, h3 { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 60; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { color: var(--paper); transform: none; }
#main-content:focus { outline: none; }
.site-header { height: 80px; gap: 24px; }
.brand { font-size: 15px; letter-spacing: .035em; }

/* Platform-only controls; independent-site logos keep their existing size. */
.marketplace-body .site-header { height: auto; min-height: 80px; padding-block: 16px; }
.marketplace-body [data-platform-brand] { min-width: 0; max-width: 100%; text-transform: none; }
.marketplace-body .site-header [data-platform-brand] { flex: 1; }
.marketplace-body [data-platform-brand] .brand-logo-slot { width: auto; height: var(--logo-desktop-height, 34px); max-width: 160px; }
.marketplace-body [data-platform-brand] .brand-logo { width: auto; height: var(--logo-desktop-height, 34px); max-width: 160px; border-radius: 0; object-fit: contain; }
.marketplace-body .platform-brand-copy { display: grid; min-width: 0; gap: 4px; line-height: 1.4; overflow-wrap: anywhere; }
.marketplace-body .site-header [data-platform-brand] [data-site-brand-name] { font-size: var(--brand-name-desktop-size, 1em); font-weight: var(--brand-name-weight, 400); }
.marketplace-body .platform-brand-copy small { display: block; margin: 0; align-self: auto; font-size: 12px; letter-spacing: .08em; text-transform: none; }
.marketplace-body .menu-toggle { flex: 0 0 auto; }
.marketplace-body .mobile-menu { top: calc(100% - 4px); }

@media (width <= 1100px) {
  .marketplace-body .desktop-nav { display: none; }
}

@media (width <= 820px) {
  .marketplace-body .site-header { min-height: 68px; padding-block: 12px; gap: 12px; }
  .marketplace-body [data-platform-brand] .brand-logo-slot { height: var(--logo-mobile-height, 34px); max-width: 112px; }
  .marketplace-body [data-platform-brand] .brand-logo { height: var(--logo-mobile-height, 34px); max-width: 112px; }
  .marketplace-body .platform-brand-copy small { font-size: 12px; }
  .marketplace-body .site-header [data-platform-brand] [data-site-brand-name] { font-size: var(--brand-name-mobile-size, 1em); }
}
.desktop-nav { gap: 28px; margin-right: 8px; color: var(--ink); font-size: 14px; letter-spacing: 0; }
.desktop-nav a, .brand { min-height: 44px; display: inline-flex; align-items: center; }
.menu-toggle { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: 0; }
.mobile-menu { top: 72px; padding: 8px; border-radius: 16px; box-shadow: 0 12px 32px rgb(0 0 0 / 10%); }
.mobile-menu a { min-height: 48px; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.mobile-menu a:hover { background: var(--paper-deep); color: var(--ink); }

/* Menu panel in liquid glass, like the bottom bar: light glass with dark text over the page, and
   dark glass with white text where it opens over a hero photo (.has-video-hero). */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  /* stylelint-disable-next-line property-no-vendor-prefix -- iOS 17 and earlier only read the prefixed backdrop filter. */
  :is(.tenant-page, .detail-page) .mobile-menu { border: 1px solid rgb(255 255 255 / 70%); border-radius: 20px; background: linear-gradient(180deg, rgb(255 255 255 / 55%), rgb(255 255 255 / 22%) 60%), rgb(250 247 242 / 42%); box-shadow: 0 0 0 .5px rgb(0 0 0 / 10%), 0 18px 44px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(255 255 255 / 85%), inset 0 -1px 0 rgb(255 255 255 / 30%); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
  :is(.tenant-page, .detail-page) .mobile-menu a { border-bottom-color: rgb(0 0 0 / 8%); }
  :is(.tenant-page, .detail-page) .mobile-menu a:hover { background: rgb(255 255 255 / 45%); }
  .tenant-page.has-video-hero > .site-header .mobile-menu { border-color: rgb(255 255 255 / 34%); background: linear-gradient(180deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 0%) 55%), rgb(20 20 22 / 30%); color: white; box-shadow: 0 0 0 .5px rgb(0 0 0 / 22%), 0 18px 44px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(255 255 255 / 12%); }
  .tenant-page.has-video-hero > .site-header .mobile-menu a { border-bottom-color: rgb(255 255 255 / 18%); color: white; text-shadow: 0 1px 6px rgb(0 0 0 / 35%); }
  .tenant-page.has-video-hero > .site-header .mobile-menu a:hover { background: rgb(255 255 255 / 14%); }
  .tenant-page.has-video-hero > .site-header .mobile-menu a:focus-visible { outline-color: white; }
}
.eyebrow { font-size: 12px; letter-spacing: .12em; }
.text-link { min-height: 44px; gap: 12px; font-size: 14px; letter-spacing: 0; }
.button { min-height: 48px; padding: 12px 22px; border-radius: 999px; font-size: 15px; letter-spacing: 0; }
.market-hero { min-height: 0; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); padding-block: 32px 64px; }
.market-hero-copy { padding: 0; }
.market-hero-copy h1 { max-width: 11em; margin: 16px 0 24px; font-size: clamp(34px, 4.2vw, 58px); font-weight: 600; line-height: 1.22; letter-spacing: -.045em; text-wrap: pretty; }
.market-hero-copy > p { max-width: 30em; margin-bottom: 28px; font-size: 16px; line-height: 1.85; }
.market-hero-copy > .eyebrow { margin-bottom: 0; font-size: 11px; }
.market-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.market-hero-actions .button { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.market-hero-actions .button:hover { opacity: .85; }
.market-hero-actions .text-link { display: inline-flex; }
.market-hero-media { min-height: 0; aspect-ratio: 4 / 3; border-radius: 28px; }
.market-hero-media::after { display: none; }
.discover-section { padding-block: 48px 88px; }
.section-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(26px, 2.5vw, 34px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.section-heading > p { font-size: 14px; letter-spacing: 0; }
.section-description { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.listing-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.listing-card-media { aspect-ratio: 4 / 3; }
.listing-card-media img { transition: transform .3s ease-out; }
.listing-card:hover .listing-card-media img { transform: scale(1.025); }
.listing-card-copy { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px; }
.card-kicker { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; font-size: 13px; letter-spacing: .01em; }
.listing-card h3 { font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
.listing-card h3 a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.listing-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; line-height: 1.7; text-align: left; }
.listing-card-type { justify-self: start; padding: 3px 10px; border-radius: 6px; background: var(--paper-deep); color: var(--muted); font-size: 12px; }
.listing-card-placeholder { display: grid; height: 100%; place-items: center; color: var(--muted); font-size: 15px; }

/* The city on the photo, and an icon before the place, guests, bedrooms and beds, as on other booking sites. */
.listing-card-city { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px; background: rgb(255 255 255 / 92%); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.listing-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-kicker svg, .listing-card-meta svg { flex: none; width: 15px; height: 15px; }
.listing-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.listing-card:only-child .listing-card-copy { align-content: center; gap: 16px; padding: clamp(24px, 4vw, 48px); }
.listing-card:only-child h3 { max-width: 26em; font-size: clamp(21px, 2vw, 28px); }
.collection-empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: 20px; background: var(--paper-deep); text-align: center; }
.collection-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--paper); }
.collection-empty-icon svg { width: 24px; height: 24px; }
.collection-empty h3 { margin-bottom: 8px; font-size: 20px; font-weight: 500; }
.empty-state { padding: 24px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.collection-empty .empty-state { padding: 0; }
.editorial-band { grid-template-columns: minmax(0, 1fr); padding-block: 64px; background: var(--sand); }
.editorial-band > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.editorial-band h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.45; }
.editorial-band p { max-width: 42em; color: var(--muted); font-size: 16px; line-height: 1.9; }
.partner-section { align-items: center; gap: 32px; padding-block: 72px; }
.partner-section h2 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; line-height: 1.4; }
.partner-description { max-width: 42em; margin-top: 14px; font-size: 15px; }
.site-footer { gap: 24px; padding-block: 32px; min-height: 112px; font-size: 12px; letter-spacing: 0; }
.site-footer .brand { flex-wrap: wrap; }

/* Every Libenest footer ends with two columns of platform links: 探索 and 合作. */
.site-footer-platform { display: flex; flex-wrap: wrap; gap: 16px 48px; font-size: 13px; }
.site-footer-column { display: grid; gap: 8px; align-content: start; }
.site-footer-column p { margin: 0 0 2px; color: var(--ink); font-weight: 600; }
.site-footer-platform a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.site-footer-platform a:hover, .site-footer-platform a:focus-visible { color: var(--ink); text-decoration-color: currentcolor; }
.platform-page-body .platform-footer .site-footer-platform a { min-height: 0; }

/* Keep the links clear of the floating LINE button (24px from the edge, 48px wide): on wide screens move them in
   by whatever the footer's side margin lacks, on phones leave room on the right. */
@media (width > 820px) { body:has(.support) .site-footer-platform { margin-right: max(0px, calc(84px - (100vw - min(var(--max), 100vw - var(--gutter) * 2)) / 2)); } }

@media (width <= 820px) { .site-footer-platform { gap: 16px 40px; } body:has(.support) .site-footer-platform { padding-right: 64px; } }

/* Home pages invite hosts and creators just above the footer: two cards, side by side on wide screens. */
.partner-invite { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 72px auto 0; padding-block: 56px 16px; border-top: 1px solid var(--line); text-align: center; }
.partner-invite > p { max-width: 36em; margin: 12px auto 0; color: var(--muted); line-height: 1.7; }
.partner-invite > .partner-invite-eyebrow { margin: 0 auto 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.partner-invite h2 { margin: 0; color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; text-wrap: balance; }
.partner-invite-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 32px auto 0; text-align: left; }
.partner-invite-card { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--paper) 60%, white); color: var(--ink); text-decoration: none; transition: translate .3s ease, box-shadow .3s ease, border-color .3s ease; }
.partner-invite-card svg { width: 26px; height: 26px; }
.partner-invite-card strong { font-size: 18px; }
.partner-invite-card span { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* The card's call to action is an outlined pill like the header's 選單 button, with the hero button's → (the whole card is the link). */
.partner-invite-card em { display: inline-flex; gap: 10px; align-items: center; justify-self: start; min-height: 44px; margin-top: 8px; padding: 9px 22px; border: 1.5px solid color-mix(in srgb, var(--ink) 70%, transparent); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: .02em; transition: gap .3s ease, border-color .3s ease, background-color .3s ease; }
.partner-invite-card em span { font-size: 16px; line-height: 1; }
.partner-invite-card:hover em, .partner-invite-card:focus-visible em { gap: 16px; border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.partner-invite-card:hover, .partner-invite-card:focus-visible { translate: 0 -3px; border-color: color-mix(in srgb, var(--ink) 28%, transparent); box-shadow: 0 16px 36px rgb(0 0 0 / 10%); }

@media (width <= 820px) { .partner-invite { margin-top: 48px; padding-top: 40px; } .partner-invite-cards { grid-template-columns: minmax(0, 1fr); } }
.tenant-hero:not(.tenant-hero--video) { min-height: 480px; overflow: hidden; border-radius: 24px; }
.tenant-hero:not(.tenant-hero--video) .tenant-hero-image { min-height: 480px; }
.tenant-hero:not(.tenant-hero--video) h1 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; line-height: 1.3; }
.tenant-hero:not(.tenant-hero--video) .tenant-hero-copy > p { font-size: 16px; line-height: 1.8; }
.has-video-hero > .site-header .menu-toggle { border-color: rgb(255 255 255 / 45%); }
.has-video-hero > .site-header a:focus-visible, .has-video-hero > .site-header button:focus-visible { outline-color: white; }
.has-video-hero > .site-header .mobile-menu { color: var(--ink); }
.has-video-hero > .site-header .mobile-menu a:focus-visible { outline-color: var(--ink); }
.tenant-hero--video .tenant-hero-copy { width: min(100%, calc(max(var(--gutter), (100vw - var(--max)) / 2) + 720px)); padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: var(--gutter); }
.tenant-hero--video .tenant-hero-copy h1 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.35; }
.tenant-hero--video .tenant-hero-copy > p { max-width: 40em; font-size: 15px; line-height: 1.8; }
.tenant-intro { grid-template-columns: clamp(280px, 22vw, 320px) minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 72px; }
.tenant-intro:not(:has(> .intro-mark:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.tenant-intro > .intro-mark { max-width: 100%; margin: 0; font-family: var(--body); font-size: 30px; font-weight: 500; line-height: 1.5; letter-spacing: -.015em; white-space: pre-line; overflow-wrap: break-word; text-wrap: balance; }
.tenant-intro-copy { min-width: 0; max-width: 700px; }
.tenant-intro-copy p { margin: 0 0 16px; font-size: clamp(18px, 1.4vw, 20px); font-weight: 400; line-height: 1.75; overflow-wrap: anywhere; }
.tenant-intro-copy p:last-child { margin-bottom: 0; }
.tenant-listings { padding-block: 64px 80px; }
.tenant-note { grid-template-columns: minmax(120px, .5fr) minmax(0, 1.5fr) auto; gap: 32px; align-items: center; padding-block: 64px; background: var(--sand); }
.tenant-note h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.55; letter-spacing: -.025em; }
.tenant-location { padding-bottom: 64px; }
.location-map { overflow: hidden; border-radius: 20px; }
.tenant-location > p { margin-block: 12px 24px; font-size: 15px; }
.tenant-feature-stage { position: relative; }
.tenant-feature-main { position: relative; isolation: isolate; aspect-ratio: 4 / 3; }
.tenant-feature-backdrop { position: absolute; inset: 0; background-position: center; background-size: cover; filter: blur(20px) brightness(.75); transform: scale(1.12); pointer-events: none; }
.tenant-feature-main img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.page-module-card .tenant-feature-main { width: 100%; overflow: hidden; border-radius: 16px; }

/* Published legacy cards and V1 cards share this photo wrapper. */
.tenant-feature .tenant-feature-main img, .page-module-listings .listing-card-media img { transition: transform 600ms ease; }
.tenant-feature .tenant-feature-main::after, .page-module-listings .listing-card-media::after { position: absolute; z-index: 1; inset: 0; content: ""; background: black; opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.page-module-listings .listing-card-media { position: relative; isolation: isolate; }
.page-module-listings .listing-card:hover .listing-card-media img { transform: none; }
.page-module-hero { position: relative; overflow: hidden; background: var(--paper-deep); }

/* The media hero opens the page under the overlaid header (.has-video-hero) and never exceeds the first screen. */
.page-module-hero:has(picture) { height: min(100svh, 56.25vw); min-height: 460px; }
.page-module-hero:has(picture)::before { position: absolute; inset: 0 0 auto; z-index: 1; height: 120px; content: ""; background: linear-gradient(rgb(0 0 0 / 34%), transparent); pointer-events: none; }

/* Wider screens crop the 16:9 media; crop mostly from the bottom so the building top and the street steps both stay in view. */
.page-module-hero:has(picture) :is(picture img, video) { object-position: 50% 25%; }
.page-module-hero picture, .page-module-hero img, .page-module-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-module-hero video { opacity: 0; pointer-events: none; }
.page-module-hero.is-video-ready video { opacity: 1; }
.page-module-hero-copy { position: relative; z-index: 1; padding: clamp(24px, 5vw, 64px); }
.page-module-hero:has(picture) .page-module-hero-copy { position: absolute; inset: auto 0 0; padding: 140px max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(32px, 6vh, 72px); color: white; background: linear-gradient(transparent, rgb(0 0 0 / 62%)); }
.page-module-hero-copy h1 { margin: 0 0 16px; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.35; }
.page-module-hero-copy p { max-width: 42em; font-size: 15px; line-height: 1.8; }

/* The hero button reads as white over the video; the brand accent is too dark there. */

/* Calls to action read as buttons: the home hero's 探索房源 (white over the video) and each room card's 查看房源. */
.page-module-hero-copy .text-link, .listing-card-copy .text-link { gap: 10px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: gap .3s ease, translate .3s ease, box-shadow .3s ease; }
.page-module-hero-copy .text-link { margin-top: 8px; background: var(--ink); color: var(--paper); }
.page-module-hero-copy .text-link::after { content: "→"; }
.listing-card-copy .text-link { margin-top: 12px; background: var(--ink); color: var(--paper); }
:is(.page-module-hero-copy, .listing-card-copy) .text-link:hover, :is(.page-module-hero-copy, .listing-card-copy) .text-link:focus-visible { gap: 16px; translate: 0 -2px; box-shadow: 0 12px 28px rgb(0 0 0 / 22%); }
.page-module-hero:has(picture) .page-module-hero-copy .text-link { background: white; color: var(--ink); text-shadow: none; box-shadow: 0 10px 30px rgb(0 0 0 / 28%); }
.page-module-hero [data-module-playback] { position: absolute; z-index: 2; top: 20px; right: 20px; width: 44px; height: 44px; border: 1px solid white; border-radius: 50%; color: white; background: rgb(0 0 0 / 45%); }
.page-module-cards { display: grid; gap: 32px; width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto 96px; }
.page-module-cards > .page-module-card { width: 100%; padding-block: 24px; }
.page-module-card.tenant-feature--image-only { grid-template-columns: minmax(0, 1fr); }
.page-module-intro:not(:has(.intro-mark)) { grid-template-columns: minmax(0, 1fr); }
.page-module-card .tenant-feature-copy p, .page-module-contact p, .page-module-footer p { white-space: pre-wrap; }

/* Module card copy: an optional brand logo above a readable subtitle and a calmer title; one <p> per paragraph. */
.tenant-feature-copy > .tenant-feature-logo { display: block; width: auto; max-width: min(420px, 92%); height: auto; max-height: 170px; margin-bottom: 24px; object-fit: contain; object-position: left center; transform-origin: 0 50%; }

@media (width <= 820px) { .tenant-feature-copy > .tenant-feature-logo { max-width: min(300px, 88%); max-height: 112px; margin-bottom: 18px; } }

/* Brand logos arrive with emphasis each time their card comes into view (scroll-motion.js adds .is-logo-in):
   they rise out of a blur, overshoot and settle, then keep breathing — a slow lift with a soft glow — while in view. */
@keyframes logo-reveal {
  0% { opacity: 0; filter: blur(10px); scale: .5; translate: 0 24px; }
  55% { opacity: 1; filter: blur(0) drop-shadow(0 14px 26px rgb(0 0 0 / 20%)); scale: 1.12; translate: 0 -4px; }
  78% { scale: .97; translate: 0 0; }
  100% { opacity: 1; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 8%)); scale: 1; translate: 0 0; }
}

@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 4px 10px rgb(0 0 0 / 8%)); scale: 1; translate: 0 0; }
  50% { filter: drop-shadow(0 12px 22px rgb(0 0 0 / 16%)) drop-shadow(0 0 16px rgb(255 255 255 / 90%)); scale: 1.05; translate: 0 -5px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.has-scroll-motion .page-module-cards .tenant-feature-logo { opacity: 0; }
  html.has-scroll-motion .page-module-cards .tenant-feature-logo.is-logo-in { animation: logo-reveal 1.1s cubic-bezier(.2, .7, .2, 1) both, logo-breathe 3.6s 1.2s ease-in-out infinite; }
}
:is(.page-module-card, .motion-rail-dialog) .tenant-feature-copy .eyebrow { font-size: 14px; letter-spacing: .08em; }
:is(.page-module-card, .motion-rail-dialog) .tenant-feature-copy h2 { margin-block: 10px 16px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.35; }
:is(.page-module-card, .motion-rail-dialog) .tenant-feature-copy p { margin: 0; }
:is(.page-module-card, .motion-rail-dialog) .tenant-feature-copy p + p { margin-top: .9em; }

/* With scroll motion on, cards show their opening paragraphs; 閱讀全文 opens the rest. */
html.has-scroll-motion .page-module-cards .tenant-feature-copy > p[data-more] { display: none; }
.page-module-footer .text-link { display: inline-flex; margin-right: 24px; }
/* Contact links are buttons like the hero's: the first filled, the rest outlined. */
.page-module-contact .text-link { gap: 10px; min-height: 48px; margin: 16px 12px 0 0; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: gap .3s ease, background-color .2s ease, color .2s ease; }
.page-module-contact .text-link::after { content: "→"; }
.page-module-contact .text-link:first-of-type { background: var(--ink); color: var(--paper); }
.page-module-contact .text-link:hover, .page-module-contact .text-link:focus-visible { background: var(--ink); color: var(--paper); }
.page-module-contact .text-link:first-of-type:hover, .page-module-contact .text-link:first-of-type:focus-visible { opacity: .85; }
.page-module-location, .page-module-listings, .page-module-contact, .page-module-footer { padding-block: 40px; }

/* 周邊指南: the guide page heading, and the home entry with photos of the guide's first cards. */
.page-module-guide-head { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-block: clamp(40px, 8vh, 88px) 32px; }
.guide-breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.guide-breadcrumb a { color: inherit; }
.page-module-guide-head h1 { margin: 16px 0 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.2; text-wrap: balance; }
.page-module-guide-head p { max-width: 62ch; margin: 16px 0 0; color: var(--muted); white-space: pre-wrap; }
.page-module-guide-entry { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto 96px; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--paper-deep); }
.guide-entry-copy h2 { margin: 8px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.guide-entry-copy > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); white-space: pre-wrap; }
.guide-entry-button { display: inline-flex; gap: 10px; align-items: center; min-height: 48px; margin-top: 24px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: gap .3s ease; }
.guide-entry-button:hover, .guide-entry-button:focus-visible { gap: 16px; }
.guide-entry-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.guide-entry-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide-entry-preview a { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; max-width: 100%; color: white; text-decoration: none; }
.guide-entry-preview img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.guide-entry-preview a::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 45%, rgb(0 0 0 / 55%)); }
.guide-entry-preview span { position: absolute; right: 12px; bottom: 10px; left: 12px; z-index: 1; font-size: 14px; font-weight: 600; line-height: 1.4; }
.guide-entry-preview a:hover img, .guide-entry-preview a:focus-visible img { scale: 1.05; }

@media (width <= 820px) {
  .page-module-guide-entry { grid-template-columns: minmax(0, 1fr); margin-bottom: 64px; }
  .guide-entry-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guide-entry-preview span { font-size: 13px; }
}

/* Inner-page hero (全部房源, 關於我們, 周邊指南): the same frame as the home video, from the very top with the
   header laid over it (.has-video-hero), and the title over its lower edge. */
.page-banner { position: relative; overflow: hidden; height: min(100svh, 56.25vw); min-height: 460px; background: var(--ink); color: white; }
.page-banner::before { position: absolute; inset: 0 0 auto; z-index: 1; height: 120px; content: ""; background: linear-gradient(rgb(0 0 0 / 34%), transparent); pointer-events: none; }
.page-banner-media { position: absolute; inset: 0; }
.page-banner-media picture { display: block; width: 100%; height: 100%; }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgb(0 0 0 / 0%) 45%, rgb(0 0 0 / 55%)); pointer-events: none; }
.page-banner-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-bottom: clamp(32px, 7vh, 80px); }
.page-banner-copy h1 { max-width: 24ch; margin: 0; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.3; text-shadow: 0 2px 24px rgb(0 0 0 / 35%); text-wrap: balance; }
.has-banner { padding-top: clamp(32px, 6vh, 64px); }

@keyframes banner-in {
  from { opacity: 0; scale: 1.14; }
}

@keyframes banner-title-in {
  from { opacity: 0; translate: 0 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-banner-media img { animation: banner-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .page-banner-copy > * { animation: banner-title-in 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .page-banner-copy > h1 { animation-delay: .4s; }

  /* While the hero scrolls away the photo pushes in and drifts, and the title rises and fades. */
  html.has-scroll-motion .page-banner-media { translate: 0 calc(22% * var(--motion-exit, 0)); }
  html.has-scroll-motion .page-banner-media img { scale: calc(1.04 + .14 * var(--motion-exit, 0)); }
  html.has-scroll-motion .page-banner-copy { opacity: calc(1 - 1.4 * var(--motion-exit, 0)); translate: 0 calc(-60px * var(--motion-exit, 0)); }
}

@media (width <= 820px) {
  /* Phones get the home video's full-screen portrait frame; the title clears the bottom bar. */
  .page-banner { height: min(100svh, 177.78vw); min-height: 0; }
  .page-banner-copy { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .page-banner-copy h1 { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
}

.tenant-spaces-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 72px); align-items: start; }
.tenant-spaces-copy .guide-breadcrumb { grid-column: 1 / -1; }
.has-banner .tenant-spaces-copy { grid-template-columns: minmax(0, 1fr); }
.has-banner .tenant-spaces-lead { max-width: 62ch; }
.tenant-spaces-copy h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.25; text-wrap: balance; }
.tenant-spaces-lead { color: var(--muted); }
.tenant-spaces-lead p:first-child { margin-top: 0; }
.tenant-spaces-page .page-module-listings > p { color: var(--muted); }

@media (width <= 820px) {
  .tenant-spaces-copy { grid-template-columns: minmax(0, 1fr); }
}

/* Brand wall: logo tiles on white so any logo reads; a marquee loops two copies of each row. */
.page-module-brands { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-block: 56px 72px; text-align: center; }
.page-module-brands > h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; text-wrap: balance; }
.page-module-brands > p { max-width: 60ch; margin: 10px auto 0; color: var(--muted); white-space: pre-wrap; }
.brand-wall { display: grid; gap: 18px; margin-top: 36px; }
.brand-wall--marquee { gap: 0; width: 100vw; margin-top: 24px; margin-inline: calc(50% - 50vw); }
.brand-wall-grid, .brand-wall-track { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.brand-wall-grid { flex-wrap: wrap; justify-content: center; }
.brand-wall-row { display: flex; overflow: hidden; padding-block: 12px 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-wall-track { flex: none; justify-content: space-around; min-width: 100%; padding-right: 18px; }
.brand-wall-item > :is(a, span) { display: grid; place-items: center; width: clamp(150px, 16vw, 210px); height: clamp(90px, 9vw, 120px); padding: 16px 22px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 6px 18px rgb(0 0 0 / 5%); transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.brand-wall-item img { width: 100%; height: 100%; object-fit: contain; }
.brand-wall-item a:hover, .brand-wall-item a:focus-visible { translate: 0 -4px; box-shadow: 0 12px 28px rgb(0 0 0 / 10%); }
.brand-wall-item a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@keyframes brand-marquee {
  to { translate: -100% 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-wall-row .brand-wall-track { animation: brand-marquee calc(var(--brand-count, 6) * 4s) linear infinite; }
  .brand-wall-row[data-reverse] .brand-wall-track { animation-direction: reverse; }
  .brand-wall-row:is(:hover, :focus-within) .brand-wall-track { animation-play-state: paused; }

  /* The wall rises in and each row slides from its own side the first time it comes into view. */
  html.has-scroll-motion .page-module-brands > h2 { transform-origin: 50% 50%; }
  html.has-scroll-motion .brand-wall-row { opacity: calc(.15 + .85 * var(--motion-enter, 1)); translate: calc(80px * (1 - var(--motion-enter, 1))) 0; }
  html.has-scroll-motion .brand-wall-row[data-reverse] { translate: calc(-80px * (1 - var(--motion-enter, 1))) 0; }
}

/* Reduced motion: one static, wrapping grid without the loop copies. */
@media (prefers-reduced-motion: reduce) {
  .brand-wall--marquee { width: auto; margin-inline: 0; }
  .brand-wall-row { flex-wrap: wrap; justify-content: center; mask-image: none; }
  .brand-wall-track { flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0; }
  .brand-wall-track[aria-hidden] { display: none; }
}

@media (width <= 820px) {
  .brand-wall-item > :is(a, span) { width: 132px; height: 80px; padding: 12px 16px; border-radius: 14px; }
  .brand-wall-grid, .brand-wall-track { gap: 12px; }
  .brand-wall-track { padding-right: 12px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tenant-feature .tenant-feature-main:hover img, .page-module-listings .listing-card:hover .listing-card-media:hover img { transform: scale(1.025); }
  .tenant-feature .tenant-feature-main:hover::after, .page-module-listings .listing-card-media:hover::after { opacity: .08; }
}

@media (prefers-reduced-motion: reduce) {
  .tenant-feature .tenant-feature-main img, .tenant-feature .tenant-feature-main::after, .page-module-listings .listing-card-media img, .page-module-listings .listing-card-media::after { transition: none; transform: none; }
}

@media (width <= 820px) {
  .page-module-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-module-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-module-note { grid-template-columns: minmax(0, 1fr); }
  .page-module-hero-copy { padding: 20px; }
  .page-module-hero-copy h1 { font-size: 26px; }

  /* Phones show the whole video at its own shape (no cropping) and put the copy below it in dark text. */
  .page-module-hero:has(picture) { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .page-module-hero:has(picture) > picture, .page-module-hero:has(picture) > video { position: relative; grid-area: 1 / 1; inset: auto; width: 100%; }
  .page-module-hero:has(picture) > picture img { position: relative; height: auto; }
  .page-module-hero:has(picture) > video { height: 100%; }
  .page-module-hero:has(picture)::before { height: 120px; }
  .page-module-hero:has(picture) .page-module-hero-copy { position: relative; grid-area: 2 / 1; padding: 24px var(--gutter) 8px; color: var(--ink); background: none; }
  .page-module-hero:has(picture):not([data-portrait]) .page-module-hero-copy .text-link { background: var(--ink); color: var(--paper); box-shadow: none; }
  .page-module-hero:has(picture) .page-module-hero-copy h1 { font-size: 24px; }

  /* A portrait poster/video fills the first screen; the copy sits over its lower part, clear of the bottom bar. */
  .page-module-hero[data-portrait]:has(picture) { display: block; height: min(100svh, 177.78vw); }
  .page-module-hero[data-portrait]:has(picture) > picture, .page-module-hero[data-portrait]:has(picture) > video { position: absolute; inset: 0; height: 100%; }
  .page-module-hero[data-portrait]:has(picture) > picture img { position: absolute; inset: 0; height: 100%; }
  .page-module-hero[data-portrait]:has(picture) .page-module-hero-copy { position: absolute; inset: auto 0 0; padding: 96px var(--gutter) calc(104px + env(safe-area-inset-bottom)); color: white; background: linear-gradient(transparent, rgb(0 0 0 / 66%) 40%); }
  .page-module-hero[data-portrait]:has(picture) .page-module-hero-copy h1 { margin-bottom: 10px; font-size: 22px; }
  .page-module-hero[data-portrait]:has(picture) .page-module-hero-copy p { font-size: 14px; line-height: 1.7; }
  .page-module-cards { gap: 24px; margin-bottom: 64px; }
}
.tenant-feature-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(0 0 0 / 45%); color: white; cursor: pointer; transform: translateY(-50%); touch-action: manipulation; }
.tenant-feature-arrow--previous { left: 10px; }
.tenant-feature-arrow--next { right: 10px; }
.tenant-feature-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.tenant-feature-arrow:hover { background: rgb(0 0 0 / 60%); }
.tenant-feature-gallery .tenant-feature-arrow:focus-visible { outline: 3px solid white; outline-offset: -5px; background: rgb(0 0 0 / 60%); }
.detail-page { overflow: clip; }
.detail-topline { padding-block: 16px 24px; }
.breadcrumbs { font-size: 13px; line-height: 1.7; }

/* Independent-site room pages take the brand template's palette, as its brand pages do, not the tenant theme;
   libenest.com's own room pages (platform-page-body) keep the platform theme. */
body.detail-body:not(.platform-page-body) { --paper: #fff; --paper-deep: #f5f5f7; --surface: #f5f5f7; --sand: #f5f5f7; --ink: #1d1d1f; --forest: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --moss: #0071e3; --accent: #0077ed; background: #fff; color: #1d1d1f; }
.detail-body .detail-layout { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr); gap: 48px; margin-top: 36px; padding: 12px 24px 72px; background: transparent; }
.detail-copy h1 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.45; letter-spacing: -.025em; }
.detail-location { font-size: 15px; }
.facts-row { gap: 10px 0; font-size: 15px; }
.lead-copy { max-width: 40em; font-size: 18px; line-height: 1.85; }
.body-copy { max-width: 46em; font-size: 16px; line-height: 1.9; }
.detail-body .booking-rail { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.detail-body .detail-information { grid-column: 1; min-width: 0; }
.detail-body .detail-information .amenity-block ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-body .detail-information .amenity-block li > div { min-width: 0; overflow-wrap: anywhere; }
.detail-body .detail-location-section:has(.location-block) { padding-block: 0 64px; }
.detail-body .detail-location-section:not(:has(.location-block)) { display: none; }
.detail-body .booking-panel { position: static; top: 24px; padding: 28px; border-color: var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 28px rgb(0 0 0 / 5%); }

@media (width >= 1025px) {
  .detail-body .booking-panel.is-sticky-eligible { position: sticky; }
}
.booking-panel-heading h2 { font-size: 24px; font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.booking-panel-heading > p:last-child { font-size: 13px; line-height: 1.8; }
.calendar-header { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
.calendar-header > button { width: 44px; height: 44px; }
.calendar-month-control { height: 44px; }
.calendar-day { min-height: 42px; font-size: 13px; }
.calendar-weekdays { font-size: 12px; }
.calendar-source, .calendar-status, .calendar-legend, .calendar-minimum-stay { font-size: 12px; line-height: 1.7; }
.booking-footnote { font-size: 12px; line-height: 1.8; }
.is-calendar-off .booking-panel-heading, .is-calendar-off [data-calendar], .is-calendar-off .booking-footnote { display: none; }
/* 日曆定價: nightly prices in the calendar and the price estimate below it. */
.calendar-day.has-price { min-height: 50px; padding: 2px 0; align-content: center; gap: 1px; border-radius: 10px; font: inherit; cursor: pointer; }
.calendar-day.has-price::after { display: none; }
.calendar-day.has-price:hover, .calendar-day.has-price:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
/* Selected nights: a light accent so they never look like the black booked bars. */
.calendar-day.has-price.is-selected { background: color-mix(in srgb, var(--moss) 16%, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--moss); color: var(--ink); }
.calendar-price { position: relative; z-index: 1; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calendar-day.is-selected .calendar-price { color: var(--ink); }
.calendar-price-note { margin-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
/* Picking dates on the calendar, like booking apps: a prompt, then check-in and check-out ends. */
.calendar-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper-deep); font-size: 13px; line-height: 1.5; }
.calendar-pick p { margin: 0; font-weight: 600; }
.calendar-clear { flex: none; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
/* Chosen ends use the brand colour so they never read as the dark booked bars. */
.calendar-day.has-price.is-checkin, .calendar-day.has-price.is-checkout { background: var(--moss); box-shadow: none; color: #fff; }
.calendar-day.is-checkin .calendar-price, .calendar-day.is-checkout .calendar-price { color: #fff; }
.calendar-day.is-checkout-option { min-height: 50px; padding: 2px 0; align-content: center; gap: 1px; border: 1px dashed var(--moss); border-radius: 10px; background: var(--paper); font: inherit; cursor: pointer; }
.calendar-day.is-checkout-option.is-checkout { border-style: solid; background: var(--moss); color: #fff; }
.booking-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; }
.booking-date { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.booking-date + .booking-date { border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; }
.booking-date span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.booking-date strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-date.is-active { box-shadow: inset 0 0 0 2px var(--moss); }
.booking-quote { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.booking-quote h3 { margin: 2px 0 12px; font-size: 18px; font-weight: 600; }
.booking-quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-quote-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.booking-quote-fields :is(input, select) { min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.button-quote { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 14px; }
.booking-quote-result dl { display: grid; gap: 8px; margin: 16px 0 0; }
.booking-quote-result dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.booking-quote-result dt { color: var(--muted); }
.booking-quote-result dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.booking-quote-result .is-discount dd { color: var(--moss); }
.booking-quote-result .is-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.booking-quote-result .is-total dt { color: var(--ink); }
.booking-quote-result .is-discount-total { font-weight: 600; }
.booking-quote-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-deep); font-size: 14px; }
.booking-quote-summary s { color: var(--muted); }
.booking-quote-summary strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.booking-quote-hint, .booking-quote-note, .booking-quote-error { margin-top: 10px; font-size: 12px; line-height: 1.7; }
.booking-quote-note { color: var(--muted); }
.booking-quote-error { color: #b42318; }
.button-airbnb { width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--paper-deep); color: var(--ink); font-size: 15px; }
.button-airbnb:hover { background: var(--ink); color: var(--paper); }
.lodging-section { padding-block: 32px; border-color: var(--line); }
.lodging-section h2 { margin-bottom: 24px; font-size: 23px; font-weight: 600; }
.lodging-section p, .lodging-section dd { line-height: 1.85; }
.amenity-icon { color: var(--ink); }
.arrival-operation-icon { color: var(--ink); }
.photo-browser__category { min-height: 44px; }

@media (width <= 1100px) {
  .desktop-nav { gap: 20px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-body .detail-layout { gap: 40px; padding-inline: 8px; grid-template-columns: minmax(0, 1fr) 340px; }
  .detail-body .booking-panel { padding: 24px 20px; }
}

@media (width <= 1024px) {
  .detail-body .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-body .booking-rail { grid-column: auto; grid-row: auto; width: 100%; }
  .detail-body .detail-information { grid-column: auto; }
}

@media (width <= 820px) {
  .site-header { height: 68px; gap: 16px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand small { display: none; }
  .desktop-nav { display: none; }
  .mobile-menu { top: 64px; }
  .market-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 40px; }
  .market-hero-copy h1 { max-width: 11em; font-size: clamp(32px, 6vw, 42px); margin-block: 12px 20px; }
  .market-hero-copy > p { max-width: 40em; font-size: 15px; margin-bottom: 24px; }
  .market-hero-media { border-radius: 20px; max-height: 380px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 24px; }
  .section-heading > p { justify-self: start; font-size: 13px; }
  .section-heading h2 { font-size: 26px; }
  .discover-section { padding-block: 32px 56px; }
  .listing-grid { gap: 24px; }
  .listing-card:only-child { display: block; }
  .listing-card:only-child .listing-card-copy { padding: 22px; gap: 12px; }
  .listing-card:only-child h3 { font-size: 21px; }
  .editorial-band { padding-block: 48px; }
  .editorial-band > div { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .editorial-band h2, .partner-section h2 { font-size: 28px; }
  .partner-section { align-items: start; padding-block: 48px; }
  .site-footer { align-items: start; gap: 16px; padding-block: 28px; }

  /* Room below the last footer line for the floating bottom bar (12px + 64px) and some air above it. */
  .marketplace-body .page-shell, .tenant-body .page-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .bottom-nav { min-height: 72px; padding-block: 8px calc(8px + env(safe-area-inset-bottom)); border-color: var(--line); background: var(--paper); }
  .bottom-nav a { min-width: 64px; min-height: 48px; gap: 4px; font-size: 12px; color: var(--muted); }
  .bottom-nav-icon { height: 24px; font-size: 22px; }
  .bottom-nav-icon svg { width: 22px; height: 22px; }

  /* Aggregate and tenant sites: liquid glass tab bar. A clear lens travels with the finger and settles into the tinted highlight. */
  /* stylelint-disable-next-line property-no-vendor-prefix -- iOS 17 and earlier only read the prefixed backdrop filter. */
  .bottom-nav[data-glass-nav] { right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 16px; min-height: 64px; padding: 6px; justify-content: stretch; border: 1px solid rgb(255 255 255 / 34%); border-radius: 999px; background: linear-gradient(180deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 0%) 55%), rgb(20 20 22 / 20%); box-shadow: 0 0 0 .5px rgb(0 0 0 / 22%), 0 12px 32px rgb(0 0 0 / 26%), inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(255 255 255 / 12%), inset 0 0 20px rgb(255 255 255 / 8%); -webkit-backdrop-filter: blur(2px) brightness(.82) saturate(180%); backdrop-filter: blur(2px) brightness(.82) saturate(180%); transform-origin: 50% 100%; touch-action: none; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .32s cubic-bezier(.25, 1.25, .4, 1); }
  .bottom-nav[data-glass-nav]::before { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--tab-count)); content: ""; border-radius: 999px; background: rgb(255 255 255 / 28%); box-shadow: 0 0 0 .5px rgb(0 0 0 / 12%), inset 0 1px 0 rgb(255 255 255 / 50%); transform: translateX(calc(var(--active-index) * 100%)); transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), opacity .2s; }
  .bottom-nav[data-glass-nav][data-active="false"]::before, .bottom-nav[data-glass-nav].is-lensing::before { opacity: 0; }
  .bottom-nav[data-glass-nav].is-lensing::before { transition: opacity .2s; }
  /* A held tab must not turn into iOS's link preview (a square dimmed block, then a share menu); native tab bars have none. */
  /* stylelint-disable-next-line property-no-vendor-prefix, property-no-unknown -- WebKit-only touch and drag properties. */
  .bottom-nav[data-glass-nav] a { position: relative; z-index: 3; flex: 1; min-width: 0; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 65%); transition: transform .25s cubic-bezier(.25, 1.3, .4, 1); -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; }
  /* Like the native tab bar, only the item under the finger swells a little; the bar itself never moves. */
  .bottom-nav[data-glass-nav] a.is-under-lens { transform: scale(1.12); }
  .bottom-nav[data-glass-nav] a.is-settling { animation: glass-settle .36s ease-out; }
  .bottom-nav[data-glass-nav] a[aria-current="page"] { font-weight: 600; }
  .bottom-nav[data-glass-nav] .bottom-nav-icon { color: inherit; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 60%)); }
  /* Like the iOS tab bar the bubble only ever spreads sideways, staying inside the bar.
     It has no backdrop filter: WebKit drops the rounded corners of a transformed backdrop and shows a square block. */
  .bottom-nav[data-glass-nav] .glass-lens { position: absolute; z-index: 2; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--tab-count)); border: 1px solid rgb(255 255 255 / 80%); border-radius: 999px; background: linear-gradient(180deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 12%) 50%, rgb(255 255 255 / 22%)); box-shadow: 0 0 0 .5px rgb(0 0 0 / 12%), inset 0 1px 3px rgb(255 255 255 / 55%), inset 0 -2px 6px rgb(255 255 255 / 20%); opacity: 0; pointer-events: none; transition: opacity .14s; }
  .bottom-nav[data-glass-nav].is-lensing .glass-lens { opacity: 1; }
  .bottom-nav[data-glass-nav] .glass-filter { position: absolute; width: 0; height: 0; overflow: hidden; }

  /* Over light sections the glass turns light with dark icons, like the native adaptive tab bar. */
  /* stylelint-disable-next-line property-no-vendor-prefix -- iOS 17 and earlier only read the prefixed backdrop filter. */
  .bottom-nav[data-glass-nav][data-tone="light"] { border-color: rgb(255 255 255 / 75%); background: linear-gradient(180deg, rgb(255 255 255 / 40%), rgb(255 255 255 / 10%) 60%), rgb(255 255 255 / 16%); box-shadow: 0 0 0 .5px rgb(0 0 0 / 12%), 0 10px 28px rgb(0 0 0 / 14%), inset 0 1px 0 rgb(255 255 255 / 90%), inset 0 -1px 0 rgb(255 255 255 / 40%); -webkit-backdrop-filter: blur(2px) saturate(180%) brightness(1.06); backdrop-filter: blur(2px) saturate(180%) brightness(1.06); }
  .bottom-nav[data-glass-nav][data-tone="light"][data-refract] { backdrop-filter: url("#libenest-glass-distort") blur(2px) saturate(180%) brightness(1.06); }
  .bottom-nav[data-glass-nav][data-tone="light"] a { color: #1d2420; text-shadow: 0 1px 1px rgb(255 255 255 / 55%); }
  .bottom-nav[data-glass-nav][data-tone="light"] .bottom-nav-icon { filter: none; }
  .bottom-nav[data-glass-nav][data-tone="light"]::before { background: rgb(0 0 0 / 8%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); }
  /* On light glass a brightening bubble disappears; tint it slightly darker, like the light-mode iOS tab bar. */
  .bottom-nav[data-glass-nav][data-tone="light"] .glass-lens { border-color: rgb(255 255 255 / 95%); background: rgb(0 0 0 / 9%); box-shadow: 0 0 0 .5px rgb(0 0 0 / 14%), 0 2px 8px rgb(0 0 0 / 12%), inset 0 1px 2px rgb(255 255 255 / 85%); }
  .bottom-nav[data-glass-nav], .bottom-nav[data-glass-nav] a { transition-property: transform, background, border-color, box-shadow, color; transition-duration: .32s; }

  /* Keep the hero video's pause button clear of the floating bar, beside the LINE button. */
  .tenant-hero--video .tenant-hero-playback { bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Refraction only where bottom-nav.js confirmed a Chromium engine: WebKit accepts url() in
     backdrop-filter but then drops the whole filter, leaving no blur or dimming at all. */
  .bottom-nav[data-glass-nav][data-refract] { backdrop-filter: url("#libenest-glass-distort") blur(2px) brightness(.82) saturate(180%); }

  .tenant-hero:not(.tenant-hero--video) { min-height: 0; border-radius: 20px; }
  .tenant-hero:not(.tenant-hero--video) .tenant-hero-image { min-height: 320px; }
  .tenant-hero--video .tenant-hero-copy { padding-inline: 24px; }
  .tenant-hero--video .tenant-hero-copy h1 { font-size: clamp(26px, 6vw, 32px); }
  .tenant-hero--video .tenant-hero-copy > p { font-size: 14px; }
  .tenant-hero--video.tenant-hero--landscape .tenant-hero-copy { background: var(--paper); color: var(--ink); }
  .tenant-hero--landscape .tenant-hero-copy .eyebrow, .tenant-hero--landscape .tenant-hero-copy > p { color: var(--muted); }
  .tenant-hero--landscape .tenant-hero-cta { background: var(--ink); color: var(--paper); }
  .tenant-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 48px; }
  .tenant-intro > .intro-mark { max-width: 10em; font-size: 24px; }
  .tenant-intro-copy p { font-size: clamp(16px, 4.25vw, 17px); }
  .tenant-listings { padding-block: 32px 48px; }
  .tenant-note { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 48px; }
  .tenant-note h2 { max-width: 18em; font-size: 28px; }
  .tenant-note .text-link { justify-self: start; }
  .tenant-location { padding-bottom: 40px; }
  .detail-body .detail-layout { display: flex; flex-direction: column; gap: 28px; width: 100%; margin-top: -24px; padding: 28px 24px calc(96px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--paper); }
  .detail-copy h1 { font-size: 27px; line-height: 1.45; }
  .facts-row { font-size: 14px; }
  .lead-copy { font-size: 17px; }
  .body-copy { font-size: 15px; }
  .detail-body .booking-panel { width: 100%; padding: 24px 16px; border-radius: 20px; }
  .detail-full-width { min-width: 0; width: 100%; }
  .mobile-booking-bar { gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-color: var(--line); background: var(--paper); }
  .mobile-booking-bar strong { font-size: 13px; }
  .mobile-booking-bar small { font-size: 11px; }
  .mobile-booking-bar .button { min-height: 48px; padding-inline: 16px; white-space: nowrap; font-size: 14px; }
}

@media (width <= 540px) {
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-section { flex-direction: column; gap: 20px; }
  .site-footer { flex-direction: column; }
  .collection-empty { padding: 32px 20px; }
  .collection-empty h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-card-media img { transition: none; }
  .listing-card:hover .listing-card-media img { transform: none; }
}
.tenant-note[data-home-note] > h2 { grid-column: 2; }
.tenant-note[data-home-note] > .text-link { grid-column: 3; }

@media (width <= 820px) {
  .tenant-note[data-home-note] > h2,
  .tenant-note[data-home-note] > .text-link { grid-column: 1; }
}

/* Designed About and Partners pages (platform only). */
.platform-page-body .designed-page { display: grid; gap: clamp(36px, 5vw, 56px); width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px); }
.platform-page-body .designed-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 0; }
.platform-page-body .designed-hero-copy { max-width: none; }
.platform-page-body .designed-eyebrow { margin: 0 0 16px; color: var(--moss); font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.platform-page-body .designed-hero-copy h1 { margin: 0 0 20px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.platform-page-body .designed-hero-copy > p { max-width: 32em; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.platform-page-body .designed-hero-media { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--paper-deep); }
.platform-page-body .designed-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.platform-page-body .designed-hero-media--logo { display: grid; place-content: center; justify-items: center; gap: 8px; background: color-mix(in srgb, var(--moss) 5%, var(--paper)); text-align: center; }
.platform-page-body .designed-hero-media--logo .designed-hero-logo { width: clamp(96px, 14vw, 150px); height: auto; aspect-ratio: 1; object-fit: contain; }
.platform-page-body .designed-hero-media--logo strong { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; }
.platform-page-body .designed-hero-media--logo small { color: var(--muted); font-size: 13px; letter-spacing: .2em; }
.platform-page-body .designed-logo-fallback { display: grid; place-items: center; border: 1px solid currentcolor; border-radius: 50%; color: var(--moss); font-family: Georgia, serif; font-size: 2rem; font-style: italic; }
.platform-page-body .designed-section { display: grid; gap: 16px; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.platform-page-body .designed-section h2, .platform-page-body .designed-steps h2 { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; line-height: 1.4; }
.platform-page-body .designed-lead { margin: -8px 0 4px; color: var(--muted); font-size: 16px; }
.platform-page-body .privacy-page { width: min(760px, calc(100% - var(--gutter) * 2)); }
.platform-page-body .privacy-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.3; }
.platform-page-body .privacy-hero > p:not(.designed-eyebrow) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.platform-page-body .privacy-hero .privacy-updated { margin-top: 12px; font-size: 14px; }
.platform-page-body .privacy-page .designed-section p { margin: 0; line-height: 1.8; }
.platform-page-body .privacy-list { display: grid; gap: 10px; margin: 0; padding-left: 1.2em; line-height: 1.8; }
.platform-page-body .privacy-page a { overflow-wrap: anywhere; }
.platform-page-body .designed-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform-page-body .designed-features--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-page-body .designed-feature { display: flex; gap: 16px; align-items: center; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.platform-page-body .designed-feature h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.platform-page-body .designed-feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.platform-page-body .designed-feature small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; }
.platform-page-body .designed-icon { display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: var(--moss); background: color-mix(in srgb, var(--moss) 9%, var(--paper)); }
.platform-page-body .designed-icon svg { width: 26px; height: 26px; }
.platform-page-body .designed-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.platform-page-body .designed-story > div:first-child { display: grid; gap: 16px; }
.platform-page-body .designed-story p { margin: 0; color: var(--muted); font-size: 15px; line-height: 2; }
.platform-page-body .designed-story-mark { display: flex; gap: clamp(20px, 4vw, 48px); align-items: center; justify-content: center; }
.platform-page-body .designed-story-logo { width: clamp(110px, 14vw, 160px); height: auto; aspect-ratio: 1; object-fit: contain; }
.platform-page-body .designed-story-mark p { color: var(--moss); font-size: 14px; letter-spacing: .3em; line-height: 2.2; }
.platform-page-body .designed-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; overflow: hidden; padding: 32px clamp(20px, 4vw, 40px) 56px; border-radius: 16px; background: linear-gradient(180deg, #f4eee4, #e9e4d6); }
.platform-page-body .designed-banner p { position: relative; z-index: 1; margin: 0; font-size: clamp(15px, 1.8vw, 18px); letter-spacing: .3em; }
.platform-page-body .designed-banner span { position: relative; z-index: 1; color: var(--muted); font-family: Georgia, serif; font-size: 15px; font-style: italic; line-height: 1.5; text-align: right; }
.platform-page-body .designed-banner svg { position: absolute; inset: auto 0 0; width: 100%; height: 70px; fill: color-mix(in srgb, var(--moss) 22%, #e9e4d6); }
.platform-page-body .designed-banner svg path + path { fill: color-mix(in srgb, var(--moss) 38%, #e9e4d6); }

/* An uploaded banner photo replaces the mountain lines; a soft shade keeps the copy legible. */
.platform-page-body .designed-banner--photo { min-height: clamp(180px, 22vw, 260px); background: #2d2f2a; color: #fff; }
.platform-page-body .designed-banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.platform-page-body .designed-banner--photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(0 0 0 / 48%), rgb(0 0 0 / 12%) 60%, rgb(0 0 0 / 38%)); pointer-events: none; }
.platform-page-body .designed-banner--photo span { color: rgb(255 255 255 / 88%); }
.platform-page-body .designed-onboarding { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.platform-page-body .designed-steps { display: grid; gap: 28px; }
.platform-page-body .designed-steps ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.platform-page-body .designed-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 28px; }
.platform-page-body .designed-steps li:not(:last-child)::before { position: absolute; top: 44px; bottom: 6px; left: 19px; width: 1px; content: ""; background: var(--line); }
.platform-page-body .designed-steps li > span { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--paper-deep); font-size: 14px; }
.platform-page-body .designed-steps strong { display: block; font-size: 16px; }
.platform-page-body .designed-steps small { color: var(--muted); font-size: 13px; }
.platform-page-body .partner-pricing-link { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
/* 房東資料 and the LINE verification box on 房東合作. */
.publisher-panel select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--white, #fff); color: var(--ink); font: inherit; font-size: .85rem; letter-spacing: 0; }
.publisher-host-verify { display: grid; gap: 8px; margin-bottom: 16px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--moss) 6%, var(--paper)); }
.publisher-host-verify [data-publisher-host-line-status] { color: var(--muted); font-size: 14px; }
.publisher-host-whatsapp { display: flex; flex-wrap: wrap; gap: 8px; }
.publisher-host-whatsapp[hidden], [data-publisher-line-id][hidden] { display: none; }
.publisher-contact { margin: 0; padding: 0; border: 0; }
.publisher-contact legend { margin-bottom: 8px; font-weight: 600; }
.publisher-line-button { justify-self: start; padding: 10px 18px; border-radius: 999px; color: #fff; background: #06c755; font-weight: 600; text-decoration: none; }
.publisher-line-button:hover, .publisher-line-button:focus-visible { color: #fff; background: #05a948; }
.publisher-line-button[hidden] { display: none; }
.publisher-profile-errors:empty { display: none; }
.publisher-profile-errors { margin: 0; color: #b42318; font-size: 14px; font-weight: 600; }
.platform-page-body .partner-property-kind { align-items: flex-start; }
.platform-page-body .partner-property-kind ul { display: grid; gap: 4px; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.platform-page-body .partner-pricing-link a { color: var(--moss); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.platform-page-body .designed-onboarding [data-partner-step="1"] > span,
.platform-page-body .designed-onboarding:has([data-publisher-onboarding-form]:not([hidden])) [data-partner-step="2"] > span,
.platform-page-body .designed-onboarding:has([data-publisher-profile-form]:not([hidden])) [data-partner-step="2"] > span,
.platform-page-body .designed-onboarding:has([data-publisher-workspace]:not([hidden])) [data-partner-step="3"] > span { color: var(--paper); background: var(--moss); }
.platform-page-body .designed-onboarding:has([data-publisher-onboarding-form]:not([hidden]), [data-publisher-profile-form]:not([hidden]), [data-publisher-workspace]:not([hidden])) [data-partner-step="1"] > span { color: var(--ink); background: var(--paper-deep); }
.platform-page-body .designed-flow { max-width: none; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.platform-page-body .designed-flow .publisher-flow-heading { margin-bottom: 8px; }
.platform-page-body .designed-flow .publisher-flow-heading h2 { font-size: 22px; font-weight: 700; }
.platform-page-body .designed-flow .publisher-status:empty { min-height: 0; margin: 0; }
.platform-page-body .designed-flow .publisher-panel { padding: 0; border: 0; background: transparent; }
.platform-page-body .designed-flow .publisher-panel-label { font-size: 12px; letter-spacing: .2em; }
.platform-page-body .designed-flow .publisher-panel h3 { font-size: 20px; font-weight: 700; }
.platform-page-body .designed-flow .publisher-panel > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.platform-page-body .designed-flow .publisher-panel .button { justify-content: center; min-height: 48px; border-color: var(--moss); background: var(--moss); color: var(--paper); }
.platform-page-body .designed-flow .publisher-login-note { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.platform-page-body .designed-brand-banner { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 32px); padding: 28px 24px; border-radius: 16px; background: var(--paper-deep); }
.platform-page-body .designed-banner-logo { width: 64px; height: 64px; object-fit: contain; }
.platform-page-body .designed-brand-banner > div { padding-left: clamp(16px, 3vw, 32px); border-left: 1px solid var(--line); }
.platform-page-body .designed-brand-banner p { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.platform-page-body .designed-brand-banner small { color: var(--muted); font-size: 13px; }

@media (width <= 820px) {
  .platform-page-body .designed-hero, .platform-page-body .designed-onboarding, .platform-page-body .designed-story { grid-template-columns: minmax(0, 1fr); }
  .platform-page-body .designed-features, .platform-page-body .designed-features--two { grid-template-columns: minmax(0, 1fr); }
  .platform-page-body .designed-banner { flex-direction: column; align-items: flex-start; }
  .platform-page-body .designed-banner span { text-align: left; }

  /* Phones reach the sign-up form in the first screen: hero copy, form, then steps and benefits. */
  .platform-page-body .designed-partners { gap: 28px; }
  /* A short photo banner sits above the title; the text-only logo stand-in stays hidden. */
  .platform-page-body .designed-partners .designed-hero { gap: 20px; }
  .platform-page-body .designed-partners .designed-hero-media { order: -1; aspect-ratio: 16 / 7; border-radius: 14px; }
  .platform-page-body .designed-partners .designed-hero-media--logo { display: none; }
  .platform-page-body .designed-partners .designed-onboarding { order: -1; grid-row: 2; }
  .platform-page-body .designed-partners .designed-flow { order: -1; }
  .platform-page-body .designed-brand-banner { flex-direction: column; text-align: center; }
  .platform-page-body .designed-brand-banner > div { padding-left: 0; border-left: 0; }
}

/* The newly selected icon refracts briefly as the lens dissolves, then settles. */
@keyframes glass-settle {
  0% { filter: blur(1.4px) drop-shadow(-2px 0 0 rgb(255 80 120 / 45%)) drop-shadow(2px 0 0 rgb(80 180 255 / 45%)); transform: scale(1.08); }
  60% { filter: blur(.3px); transform: scale(.98); }
  100% { filter: none; transform: scale(1); }
}

/* Tenant 關於我們: portrait beside the page title, then the profile and contact lines. */
.tenant-about-hero { display: grid; grid-template-columns: minmax(120px, var(--about-portrait-size, 320px)) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 8vw, 112px) 48px; }
.tenant-about-hero:not(:has(.tenant-about-portrait)) { grid-template-columns: minmax(0, 1fr); }
.tenant-about-portrait { width: min(100%, var(--about-portrait-size, 320px)); overflow: hidden; aspect-ratio: 1; border-radius: 50%; background: var(--paper-deep); }
.tenant-about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tenant-about-copy h1 { margin: 12px 0 20px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.tenant-about-lead { max-width: 40em; margin: 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.9; }
.tenant-about-profile { display: grid; grid-template-columns: clamp(220px, 24vw, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: 48px clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.tenant-about-name h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; }
.tenant-about-name p { margin: 0; color: var(--muted); }
.tenant-about-bio { display: grid; gap: 16px; max-width: 700px; }
.tenant-about-bio p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.tenant-about-contact { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; color: var(--muted); list-style: none; }
.tenant-about-bio .text-link { justify-self: start; margin-top: 8px; }

@media (width <= 820px) {
  .tenant-about-hero, .tenant-about-profile { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  /* Phones center the portrait; its width is the admin's phone size, else 75% of the desktop size. */
  .tenant-about-portrait { justify-self: center; width: min(var(--about-portrait-size-mobile, calc(var(--about-portrait-size, 320px) * .75)), 80vw); }
}

/* Scroll-linked motion. scroll-motion.js sets --motion-exit / -enter / -read / -through (0–1)
   on each target and adds html.has-scroll-motion only when motion is allowed. Individual
   scale/translate properties compose with the existing hover and reveal transforms. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero media recedes into a rounded card as the page scrolls past it. */
  html.has-scroll-motion .tenant-hero--video { --motion-shrink: .08; }
  html.has-scroll-motion .tenant-hero--video:not([data-hero-pending]) { background: transparent; }

  html.has-scroll-motion .tenant-hero--video .tenant-hero-image {
    clip-path: inset(0 round calc(32px * var(--motion-exit, 0)));
    filter: brightness(calc(1 - .35 * var(--motion-exit, 0)));
    scale: calc(1 - var(--motion-shrink) * var(--motion-exit, 0));
    transform-origin: 50% 100%;
    will-change: scale;
  }

  html.has-scroll-motion .tenant-hero--video .tenant-hero-copy { opacity: calc(1 - 1.6 * var(--motion-exit, 0)); }

  /* Page-module hero (the layout saved from the module editor) recedes the same way. */
  html.has-scroll-motion .page-module-hero:has(picture) {
    clip-path: inset(0 round calc(32px * var(--motion-exit, 0)));
    scale: calc(1 - var(--motion-shrink, .08) * var(--motion-exit, 0));
    transform-origin: 50% 100%;
    will-change: scale;
  }

  html.has-scroll-motion .page-module-hero :is(picture, video) { filter: brightness(calc(1 - .35 * var(--motion-exit, 0))); }
  html.has-scroll-motion .page-module-hero .page-module-hero-copy { opacity: calc(1 - 1.6 * var(--motion-exit, 0)); }
  html.has-scroll-motion .tenant-hero:not(.tenant-hero--video) .tenant-hero-image img { scale: calc(1 + .08 * var(--motion-exit, 0)); }
  html.has-scroll-motion .platform-page-body .designed-hero-copy { opacity: calc(1 - .9 * var(--motion-exit, 0)); translate: 0 calc(-48px * var(--motion-exit, 0)); }
  html.has-scroll-motion .platform-page-body .designed-hero-media > img { scale: calc(1 + .1 * var(--motion-exit, 0)); }

  /* Large headings grow from 90% to full size while they come into view. */
  html.has-scroll-motion :is(.tenant-intro .intro-mark, .tenant-listings .section-heading h2, .tenant-location .section-heading h2, .tenant-note h2, .page-module-listings > h2, .page-module-location > h2, .page-module-brands > h2, .guide-entry-copy h2, .tenant-about-name h2, .platform-page-body .designed-section > h2, .platform-page-body .designed-story h2, .platform-page-body .designed-steps h2) {
    opacity: calc(.2 + .8 * var(--motion-enter, 1));
    scale: calc(.9 + .1 * var(--motion-enter, 1));
    transform-origin: 0 50%;
  }
  html.has-scroll-motion .platform-page-body .platform-partner-cta { opacity: calc(.3 + .7 * var(--motion-enter, 1)); scale: calc(.94 + .06 * var(--motion-enter, 1)); }

  /* Feature photos settle from a slight zoom as they arrive. */
  html.has-scroll-motion .tenant-feature-main > img { scale: calc(1.08 - .08 * var(--motion-enter, 1)); }

  /* Reading highlight: each paragraph brightens as it reaches the middle of the screen. */
  html.has-scroll-motion :is(.tenant-intro-copy p, .tenant-about-bio p, .platform-page-body .designed-story p) { opacity: calc(.18 + .82 * var(--motion-read, 1)); }

  /* Banner layers drift at different speeds. */
  html.has-scroll-motion .platform-page-body .designed-banner svg path:first-child { translate: 0 calc((var(--motion-through, .5) - .5) * -56px); }
  html.has-scroll-motion .platform-page-body .designed-banner svg path:last-child { translate: 0 calc((var(--motion-through, .5) - .5) * -24px); }
  html.has-scroll-motion .platform-page-body .designed-banner span { translate: 0 calc((var(--motion-through, .5) - .5) * 32px); }
  html.has-scroll-motion .platform-page-body .designed-banner-photo { scale: 1.12; translate: 0 calc((var(--motion-through, .5) - .5) * -48px); }
  html.has-scroll-motion .platform-page-body .designed-brand-banner { scale: calc(.94 + .12 * min(var(--motion-through, .5), .5)); }

  /* Cards and steps rise in one after another. */
  html.has-scroll-motion [data-motion-item] {
    opacity: 0;
    translate: 0 32px;
    transition: opacity .7s ease, translate .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--motion-i, 0) * 90ms);
  }
  html.has-scroll-motion [data-motion-item].is-motion-in { opacity: 1; translate: none; }
}

/* Feature rail: scrolling down slides the cards sideways (scroll-motion.js builds the sticky frame and track). */
@media (prefers-reduced-motion: no-preference) {
  html.has-scroll-motion :is(.tenant-features, .page-module-cards).is-motion-rail { display: block; position: relative; width: 100%; max-width: none; height: calc(var(--motion-count, 3) * 55vh + 100vh); margin: 0 0 64px; padding: 0; }

  /* overflow: hidden would make the shell a scroll container and stop the frame sticking; clip keeps the same edge. */
  html.has-scroll-motion .page-shell:has(.is-motion-rail, .is-motion-pinned, .is-motion-spotlight, .is-motion-stack) { overflow: clip; }

  .motion-rail-sticky { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; height: 100vh; height: 100svh; overflow: hidden; }
  .motion-rail-track { display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 40px); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) 40vw; translate: var(--rail-x, 0) 0; will-change: translate; }

  html.has-scroll-motion .is-motion-rail .tenant-feature { container-type: inline-size; display: block; flex: 0 0 min(500px, 78vw); padding: 0; overflow: visible; border: 0; background: none; opacity: .5; scale: .94; transition: opacity .4s ease, scale .6s cubic-bezier(.2, .7, .2, 1); }
  html.has-scroll-motion .is-motion-rail .tenant-feature.is-motion-active { opacity: 1; scale: 1; }
  html.has-scroll-motion .is-motion-rail .tenant-feature-gallery { padding: 0; }

  /* The photo is 4:3 but never taller than ~40% of the screen, so on short laptop windows the copy still fits beside the dots. */
  html.has-scroll-motion .is-motion-rail .tenant-feature-main { aspect-ratio: auto; height: min(75cqi, max(180px, 100svh - 420px)); border-radius: 1.25rem; }
  html.has-scroll-motion :is(.is-motion-rail, .is-motion-stack) .tenant-feature-copy > .tenant-feature-logo { max-height: 84px; margin-bottom: 12px; }
  html.has-scroll-motion .is-motion-rail .tenant-feature-main > img { object-fit: cover; }
  html.has-scroll-motion .is-motion-rail :is(.tenant-feature-thumbs, .tenant-feature-counter) { display: none; }
  html.has-scroll-motion .is-motion-rail .tenant-feature-copy { padding: 16px 0 0; }
  html.has-scroll-motion .is-motion-rail .tenant-feature-copy h2 { margin: 6px 0 8px; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; }
  html.has-scroll-motion .is-motion-rail .tenant-feature-copy p { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

  /* 更多: the clamped card opens in full; blue so it reads as tappable (Apple-style). */
  .motion-rail-more { align-self: flex-start; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--link-blue, #0066cc); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .motion-rail-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .motion-rail-foot { display: flex; align-items: center; gap: 16px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .motion-rail-dots { display: flex; gap: 6px; }
  .motion-rail-dots span { width: 18px; height: 3px; border-radius: 999px; background: var(--line); transition: width .3s, background-color .3s; }
  .motion-rail-dots span.is-on { width: 36px; background: var(--accent); }
  .motion-rail-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
}

@media (prefers-reduced-motion: no-preference) and (width <= 820px) {
  .motion-rail-sticky { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  html.has-scroll-motion .is-motion-rail .tenant-feature { flex-basis: 82vw; }
}

/* Pinned (the original effect, chosen per card in the admin): on wide screens each feature
   photo stays pinned while its copy scrolls beside it, then cross-fades to the next photo. */
@media (prefers-reduced-motion: no-preference) and (width >= 1024px) and (height >= 700px) {
  html.has-scroll-motion .page-module-cards.is-motion-pinned { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 clamp(40px, 5vw, 80px); align-items: start; }
  html.has-scroll-motion :is(.is-motion-pinned, .is-motion-spotlight) > .tenant-feature { display: contents; }

  html.has-scroll-motion .is-motion-pinned .tenant-feature-gallery {
    position: sticky;
    top: 12vh;
    grid-column: 1;
    grid-row: 1 / span var(--motion-count, 3);
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper-deep);
    opacity: 0;
    pointer-events: none;
    scale: .96;
    transition: opacity .6s ease, scale .8s cubic-bezier(.2, .7, .2, 1);
  }
  html.has-scroll-motion .is-motion-pinned .is-motion-active > .tenant-feature-gallery { opacity: 1; pointer-events: auto; scale: 1; }

  html.has-scroll-motion :is(.is-motion-pinned, .is-motion-spotlight) .tenant-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88vh;
    padding-inline: 0;
    opacity: .22;
    transition: opacity .5s ease;
  }
  html.has-scroll-motion .is-motion-pinned .tenant-feature-copy { grid-column: 2; }
  html.has-scroll-motion :is(.is-motion-pinned, .is-motion-spotlight) .is-motion-active > .tenant-feature-copy { opacity: 1; }
  html.has-scroll-motion :is(.is-motion-pinned, .is-motion-spotlight) .tenant-feature-copy h2 { scale: .94; transform-origin: 0 50%; transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
  html.has-scroll-motion :is(.is-motion-pinned, .is-motion-spotlight) .is-motion-active > .tenant-feature-copy h2 { scale: 1; }

  /* Spotlight (釘住強化版): an index column with count and progress, photos that rise over the
     previous one like a curtain, a slow push-in while pinned, and copy that brightens as it is read. */
  html.has-scroll-motion .page-module-cards.is-motion-spotlight { grid-template-columns: 180px minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 clamp(28px, 4vw, 64px); align-items: start; }
  .motion-spot-index { position: sticky; top: 16vh; grid-column: 1; grid-row: 1 / span var(--motion-count, 3); align-self: start; }
  .motion-spot-count { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
  .motion-spot-count b { color: var(--ink); font-size: 44px; line-height: 1; }
  .motion-spot-bar { display: block; height: 2px; margin: 14px 0 18px; background: var(--line); }
  .motion-spot-bar i { display: block; width: calc(var(--motion-progress, 0) * 100%); height: 100%; background: var(--accent); }
  .motion-spot-index ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .motion-spot-index button { display: flex; gap: 10px; width: 100%; min-height: 32px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; line-height: 1.5; text-align: left; cursor: pointer; transition: color .3s, translate .3s; }
  .motion-spot-index button span { color: var(--accent); font-variant-numeric: tabular-nums; }
  .motion-spot-index li.is-on button { color: var(--ink); font-weight: 700; translate: 6px 0; }
  .motion-spot-index button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  html.has-scroll-motion .is-motion-spotlight .tenant-feature-gallery {
    position: sticky;
    top: 14vh;
    grid-column: 2;
    grid-row: 1 / span var(--motion-count, 3);
    align-self: start;
    padding: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--paper-deep);
    clip-path: inset(100% 0 0 0 round 1.25rem);
    pointer-events: none;
    transition: clip-path 1s cubic-bezier(.7, 0, .2, 1);
  }
  html.has-scroll-motion .is-motion-spotlight .is-motion-shown > .tenant-feature-gallery { clip-path: inset(0 round 1.25rem); }
  html.has-scroll-motion .is-motion-spotlight .is-motion-active > .tenant-feature-gallery { pointer-events: auto; }
  html.has-scroll-motion .is-motion-spotlight .tenant-feature-main { border-radius: 0; }
  html.has-scroll-motion .is-motion-spotlight .tenant-feature-main > img { object-fit: cover; scale: 1.02; transition: scale .2s linear; }
  html.has-scroll-motion .is-motion-spotlight .is-motion-active .tenant-feature-main > img { scale: calc(1 + .12 * var(--motion-within, 0)); }
  html.has-scroll-motion .is-motion-spotlight :is(.tenant-feature-backdrop, .tenant-feature-thumbs, .tenant-feature-counter, .tenant-feature-arrow) { display: none; }
  html.has-scroll-motion .is-motion-spotlight .tenant-feature-copy { grid-column: 3; min-height: 82vh; }
  html.has-scroll-motion .is-motion-spotlight .tenant-feature-copy > p { opacity: calc(.25 + .75 * var(--motion-read, 1)); }
}

/* Spotlight on smaller screens: cards stick near the top and each new card slides over the last,
   which shrinks and dims beneath it. */
@media (prefers-reduced-motion: no-preference) {
  html.has-scroll-motion .page-module-cards.is-motion-stack { display: block; }

  html.has-scroll-motion .is-motion-stack > .tenant-feature {
    container-type: inline-size;
    position: sticky;
    top: calc(12px + var(--motion-i, 0) * 6px);
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 18vh;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper-deep);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 8%);
    transform-origin: 50% 0;
    scale: calc(1 - .07 * var(--motion-cover, 0));
    filter: brightness(calc(1 - .35 * var(--motion-cover, 0)));
  }
  html.has-scroll-motion .is-motion-stack > .tenant-feature:last-child { margin-bottom: 0; }
  html.has-scroll-motion .is-motion-stack .tenant-feature-gallery { padding: 0; }
  html.has-scroll-motion .is-motion-stack .tenant-feature-main { aspect-ratio: auto; height: min(75cqi, max(180px, 100svh - 380px)); border-radius: 0; }
  html.has-scroll-motion .is-motion-stack .tenant-feature-main > img { object-fit: cover; }
  html.has-scroll-motion .is-motion-stack :is(.tenant-feature-thumbs, .tenant-feature-counter) { display: none; }
  html.has-scroll-motion .is-motion-stack .tenant-feature-copy { padding: 16px 18px 20px; }
  html.has-scroll-motion .is-motion-stack .tenant-feature-copy h2 { margin: 6px 0 8px; font-size: 20px; line-height: 1.4; }
  html.has-scroll-motion .is-motion-stack .tenant-feature-copy p { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
}

/* Short laptop windows: a smaller photo and logo and only the opening paragraph, so a whole card fits the screen. */
@media (prefers-reduced-motion: no-preference) and (height <= 640px) {
  html.has-scroll-motion :is(.is-motion-rail, .is-motion-stack) .tenant-feature-copy > .tenant-feature-logo { max-height: 60px; margin-bottom: 8px; }
  html.has-scroll-motion :is(.is-motion-rail, .is-motion-stack) .tenant-feature-copy > p:not(:first-of-type) { display: none; }
  .motion-rail-sticky { gap: 12px; }
}

/* Short but wide windows (laptops): photo beside the copy, so the 4:3 photo is never cropped and the whole card fits. */
@media (prefers-reduced-motion: no-preference) and (width > 820px) and (height <= 820px) {
  html.has-scroll-motion .is-motion-rail .tenant-feature { display: grid; flex-basis: min(1000px, 86vw, (100svh - 150px) * 2.4); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 40px); align-items: center; }
  html.has-scroll-motion .is-motion-rail .tenant-feature-copy { padding: 0; }
  html.has-scroll-motion .is-motion-stack > .tenant-feature { display: grid; max-width: min(1000px, (100svh - 60px) * 2.2); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  html.has-scroll-motion :is(.is-motion-rail, .is-motion-stack) .tenant-feature-main { height: auto; aspect-ratio: 4 / 3; }

  /* The copy column has the card's full height, so the logo can be large here. */
  html.has-scroll-motion :is(.is-motion-rail, .is-motion-stack) .tenant-feature-copy > .tenant-feature-logo { max-width: min(340px, 90%); max-height: clamp(80px, 19svh, 150px); margin-bottom: 14px; }
}

/* Phones swipe the rail by hand: no tall scroll section, a snap-scrolling track instead of the scroll-driven one. */
@media (prefers-reduced-motion: no-preference) {
  html.has-scroll-motion :is(.tenant-features, .page-module-cards).is-motion-rail.is-motion-swipe { height: auto; margin-bottom: 48px; }
  .is-motion-swipe .motion-rail-sticky { position: static; height: auto; padding-bottom: 0; overflow: visible; }
  .is-motion-swipe .motion-rail-track { translate: none; overflow-x: auto; padding-inline: var(--gutter); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; will-change: auto; }
  .is-motion-swipe .motion-rail-track::-webkit-scrollbar { display: none; }

  /* Cards keep their size while swiping (only brightness changes): a scaling card moves its own snap point, and Safari then re-snaps further along the rail. */
  html.has-scroll-motion .is-motion-swipe .tenant-feature { scale: 1; scroll-snap-align: start; transition: opacity .4s ease; }
  html.has-scroll-motion .is-motion-swipe .tenant-feature-main { height: auto; aspect-ratio: 4 / 3; touch-action: pan-x pan-y pinch-zoom; }
}

/* 閱讀全文: the whole card, every gallery photo and the full text. */
.motion-rail-dialog { width: min(760px, 94vw); max-height: 90dvh; padding: 20px; overflow-y: auto; border: 0; border-radius: 1.25rem; background: var(--paper); color: var(--ink); }
.motion-rail-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.motion-rail-close { display: block; min-height: 44px; margin: 0 0 12px auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-deep); color: var(--ink); font: inherit; cursor: pointer; }
.motion-rail-photos { display: grid; gap: 12px; }
.motion-rail-photos img { width: 100%; border-radius: .75rem; }
.motion-rail-dialog .tenant-feature-copy { padding: 20px 0 8px; }
.motion-rail-dialog .tenant-feature-copy p { white-space: pre-wrap; }

/* 關於我們: the portrait and title arrive in turn, then drift as the page scrolls on. */
@keyframes about-portrait-in {
  from { opacity: 0; scale: .82; rotate: -6deg; }
}

@keyframes about-rise {
  from { opacity: 0; translate: 0 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.has-scroll-motion .tenant-about-portrait { animation: about-portrait-in 1.1s cubic-bezier(.2, .7, .2, 1) both; translate: 0 calc(-48px * var(--motion-exit, 0)); rotate: calc(-8deg * var(--motion-exit, 0)); }
  html.has-scroll-motion .tenant-about-copy > * { animation: about-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  html.has-scroll-motion .tenant-about-copy > :nth-child(2) { animation-delay: .12s; }
  html.has-scroll-motion .tenant-about-copy > :nth-child(3) { animation-delay: .24s; }
  html.has-scroll-motion .tenant-about-copy { opacity: calc(1 - .7 * var(--motion-exit, 0)); }
  html.has-scroll-motion .tenant-about-profile { position: relative; border-top-color: transparent; }
  html.has-scroll-motion .tenant-about-profile::before { position: absolute; inset: 0 0 auto; height: 1px; content: ""; background: var(--line); scale: var(--motion-enter, 1) 1; transform-origin: 0 50%; }
  html.has-scroll-motion .tenant-about-name { translate: 0 calc(32px * (1 - var(--motion-enter, 1))); opacity: calc(.3 + .7 * var(--motion-enter, 1)); }
}

@media (prefers-reduced-motion: no-preference) and (width <= 820px) {
  html.has-scroll-motion :is(.tenant-hero--video, .page-module-hero) { --motion-shrink: .05; }
}

/* 創作者・媒體合作 (libenest.com/creators/): the designed-page frame with a hero, card grids, a proposal form and an FAQ. */
.platform-page-body .creators-hero { position: relative; display: grid; min-height: clamp(360px, 52vh, 560px); align-items: center; overflow: hidden; padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: color-mix(in srgb, var(--moss) 8%, var(--paper)); }
.platform-page-body .creators-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.platform-page-body .creators-hero--photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(20 22 20 / 72%), rgb(20 22 20 / 30%) 70%, rgb(20 22 20 / 10%)); }
.platform-page-body .creators-hero-copy { position: relative; z-index: 1; display: grid; gap: 16px; max-width: 44em; }
.platform-page-body .creators-hero--photo .creators-hero-copy { color: #fff; }
.platform-page-body .creators-hero--photo .designed-eyebrow, .platform-page-body .creators-hero--photo .creators-lead { color: rgb(255 255 255 / 88%); }
.platform-page-body .creators-hero h1 { max-width: none; margin: 0; font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; line-height: 1.3; text-wrap: balance; }

/* Headings break at punctuation, not inside a word (讓旅／途). */
.platform-page-body .creators-page :is(h1, h2) { word-break: keep-all; overflow-wrap: anywhere; }
.platform-page-body .creators-lead { display: grid; gap: 8px; max-width: 46em; color: var(--muted); font-size: 16px; line-height: 1.8; }
.platform-page-body .creators-lead p { margin: 0; }
.platform-page-body .creators-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.platform-page-body .creators-self-publish { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: 1120px; margin: 32px auto; padding: 28px 32px; border-radius: 1.5rem; background: #f5f5f7; }
.platform-page-body .creators-self-publish h2 { margin: 0 0 6px; font-size: 1.5rem; }
.platform-page-body .creators-self-publish p { max-width: 560px; margin: 0; color: var(--muted, #6e6e73); }
@media (width <= 767px) { .platform-page-body .creators-self-publish { margin: 24px 16px; padding: 22px; } }
.platform-page-body .creators-button { display: inline-flex; gap: 10px; align-items: center; min-height: 48px; padding: 11px 24px; border: 1.5px solid color-mix(in srgb, var(--ink) 70%, transparent); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: gap .3s ease, background-color .3s ease, box-shadow .3s ease; }
.platform-page-body .creators-button:hover, .platform-page-body .creators-button:focus-visible { gap: 16px; box-shadow: 0 10px 24px rgb(0 0 0 / 12%); }
.platform-page-body .creators-button--dark { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.platform-page-body .creators-hero--photo .creators-button { border-color: rgb(255 255 255 / 80%); color: #fff; }
.platform-page-body .creators-hero--photo .creators-button--dark, .platform-page-body .creators-button--light { border-color: #fff; background: #fff; color: #1d211e; }
.platform-page-body .creators-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.platform-page-body .creators-tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--muted); font-size: 13px; }
.platform-page-body .creators-hero--photo .creators-tags li { border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 12%); color: #fff; }
.platform-page-body .creators-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform-page-body .creators-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.platform-page-body .creators-card { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.platform-page-body .creators-card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
.platform-page-body .creators-card small { color: var(--moss); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.platform-page-body .creators-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.platform-page-body .creators-meta strong { display: block; margin-top: 6px; color: var(--ink); font-size: 13px; }
.platform-page-body .creators-number, .platform-page-body .creators-step { color: var(--moss); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.platform-page-body .creators-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.platform-page-body .creators-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.platform-page-body .creators-list li { position: relative; padding-left: 22px; line-height: 1.7; }
.platform-page-body .creators-list li::before { position: absolute; top: .7em; left: 4px; width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--moss); }
.platform-page-body .creators-stays .listing-grid { margin: 0; }
.platform-page-body .creators-apply { scroll-margin-top: 96px; }
.platform-page-body .creators-form { display: grid; gap: 20px; max-width: 860px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.platform-page-body .creators-form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.platform-page-body .creators-form legend { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.platform-page-body .creators-field { display: grid; gap: 8px; }
.platform-page-body .creators-field > span { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; font-weight: 600; }
.platform-page-body .creators-field > span small { color: var(--muted); font-size: 12px; font-weight: 400; }
.platform-page-body .creators-field b { color: #c2410c; font-weight: 600; }
.platform-page-body .creators-field :is(input, select, textarea) { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--paper)); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.platform-page-body .creators-field textarea { min-height: 96px; resize: vertical; }
.platform-page-body .creators-field-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.platform-page-body .creators-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-page-body .creators-choice { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.platform-page-body .creators-choice:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, var(--paper)); font-weight: 600; }
.platform-page-body .creators-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.platform-page-body :is(.creators-choice, .creators-consent) input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
.platform-page-body .creators-consent input { margin-top: 3px; }
.platform-page-body .creators-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.platform-page-body .creators-form-error { margin: 0; color: #b42318; font-size: 14px; }
.platform-page-body .creators-success { display: grid; gap: 8px; max-width: 860px; padding: clamp(20px, 3vw, 32px); border: 1px solid color-mix(in srgb, var(--moss) 40%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--moss) 8%, var(--paper)); }
.platform-page-body .creators-success h3 { margin: 0; font-size: 20px; }
.platform-page-body .creators-success p { margin: 0; color: var(--muted); line-height: 1.7; }
.platform-page-body .creators-faq-list { display: grid; gap: 10px; }
.platform-page-body .creators-faq-list details { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.platform-page-body .creators-faq-list summary { font-weight: 600; cursor: pointer; }
.platform-page-body .creators-faq-list p { margin: 10px 0 0; color: var(--muted); line-height: 1.75; }
.platform-page-body .creators-final { display: grid; gap: 12px; justify-items: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: 24px; background: var(--ink); color: var(--paper); text-align: center; }
.platform-page-body .creators-final h2 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; }
.platform-page-body .creators-final p { max-width: 36em; margin: 0; color: color-mix(in srgb, var(--paper) 80%, transparent); line-height: 1.8; }
.platform-page-body .creators-final .designed-eyebrow { margin: 0; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.platform-page-body .creators-final small { color: color-mix(in srgb, var(--paper) 60%, transparent); letter-spacing: .08em; }

@media (width <= 900px) {
  .platform-page-body .creators-cards, .platform-page-body .creators-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 640px) {
  .platform-page-body .creators-cards, .platform-page-body .creators-cards--four, .platform-page-body .creators-list, .platform-page-body .creators-field-row { grid-template-columns: minmax(0, 1fr); }
  .platform-page-body .creators-hero { padding: 28px 20px; border-radius: 18px; }
  .platform-page-body .creators-hero h1 { font-size: 27px; letter-spacing: 0; }
}

/* Button and link arrows point up and to the right; they size with the label. */
.partner-invite-card em svg, .platform-page-body .creators-button svg, .guide-entry-button svg { flex: none; width: 1.05em; height: 1.05em; }

/* 購買洽詢 card at the end of the 投資合作 page. */
.purchase-inquiry { padding-block: 48px 72px; scroll-margin-top: 24px; }
.purchase-inquiry:focus { outline: none; }
.purchase-inquiry-card { max-width: 880px; margin-inline: auto; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 28px rgb(0 0 0 / 5%); }
.purchase-inquiry-head h2 { margin: 8px 0 12px; font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.4; }
.purchase-inquiry-head > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.85; }
.purchase-inquiry-form { display: grid; gap: 20px; margin-top: 24px; }
.inquiry-note { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--moss) 7%, var(--paper)); color: var(--ink); font-size: 13px; line-height: 1.7; }
/* The owner's report site follows the note, bold and underlined so it reads as the next step. */
.inquiry-report-link { display: inline-block; margin-left: 4px; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inquiry-report-link::after { content: " →"; }
.inquiry-report-link:hover, .inquiry-report-link:focus-visible { color: var(--moss); }
.inquiry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.inquiry-span { grid-column: 1 / -1; }
.inquiry-group { display: grid; gap: 20px; padding-top: 4px; }
.inquiry-group[hidden], .inquiry-field[hidden] { display: none; }
.inquiry-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.inquiry-field legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.inquiry-required { margin-left: 4px; color: var(--moss); font-size: 11px; font-weight: 600; }
.inquiry-field :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.inquiry-field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.inquiry-field :is(input, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.inquiry-field [aria-invalid="true"] { border-color: #b42318; }
.inquiry-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.inquiry-choice { position: relative; display: inline-flex; }
.inquiry-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.inquiry-choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 400; line-height: 1.4; }
.inquiry-choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.inquiry-choice input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }
.inquiry-choice input[aria-invalid="true"] + span { border-color: #b42318; }
.inquiry-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.inquiry-budget-amount { display: inline-flex; flex: 1 1 220px; align-items: center; gap: 6px; }
.inquiry-budget-amount input { flex: 1; font-variant-numeric: tabular-nums; }
.inquiry-hint { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
.inquiry-error { margin: 0; color: #b42318; font-size: 13px; font-weight: 500; line-height: 1.6; }
.inquiry-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; }
.inquiry-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.inquiry-homepage { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-submit, .inquiry-line-button, .inquiry-copy { min-height: 50px; border-radius: 999px; font-size: 15px; }
.inquiry-submit { width: 100%; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.inquiry-submit:disabled { opacity: .6; cursor: progress; }
.purchase-inquiry-done { display: grid; gap: 14px; margin-top: 24px; padding: 24px; border-radius: 18px; background: color-mix(in srgb, var(--moss) 7%, var(--paper)); }
.purchase-inquiry-done:focus { outline: 2px solid var(--moss); outline-offset: 2px; }
.purchase-inquiry-done h3 { margin: 0; font-size: 20px; font-weight: 600; }
.purchase-inquiry-done p { margin: 0; font-size: 15px; line-height: 1.85; }
.purchase-inquiry-done strong { font-variant-numeric: tabular-nums; letter-spacing: .04em; overflow-wrap: anywhere; }
.inquiry-copy { justify-self: start; border-color: var(--ink); background: var(--paper); color: var(--ink); }
.inquiry-copied { color: var(--muted); font-size: 13px; }
.inquiry-line { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.inquiry-line-button { justify-self: start; border-color: #06c755; background: #06c755; color: #fff; }
.inquiry-line p { color: var(--muted); font-size: 13px; }

@media (width <= 720px) {
  .inquiry-grid { grid-template-columns: minmax(0, 1fr); }
  .purchase-inquiry-card { border-radius: 20px; }
  .inquiry-copy, .inquiry-line-button { justify-self: stretch; }
}
.inquiry-grid { align-items: start; }
.inquiry-label { display: block; }
.inquiry-line h4 { margin: 0; font-size: 16px; font-weight: 600; }
.inquiry-line-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inquiry-line-send { min-height: 50px; border-radius: 999px; border-color: #06c755; background: var(--paper); color: #06a648; font-size: 15px; }
.inquiry-line-id strong { color: var(--ink); letter-spacing: .03em; }
.inquiry-line-invite { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.inquiry-line-invite a { color: #06a648; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (width <= 720px) { .inquiry-line-actions > a { flex: 1 1 100%; } }
/* 住越久越優惠: the host's discounts above the price estimate. */
.booking-offers-slot { margin-top: 18px; }
.booking-offers { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--moss) 30%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--moss) 6%, var(--paper)); }
.booking-offers h3 { margin: 2px 0 10px; font-size: 17px; font-weight: 600; }
.booking-offers ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.booking-offers li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.booking-offers li::before { position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); content: ""; }
.booking-offers-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* Phones: like the listing page, what follows a full photo or video rises over its lower edge as a
   sheet with rounded top corners (home and 投資合作 heroes, 關於我們／全部空間 banners). */
@media (width <= 820px) {
  .page-module-hero:has(picture):not([data-portrait]) .page-module-hero-copy,
  .page-module-hero[data-portrait]:has(picture) + *,
  .page-banner + .section {
    position: relative;
    z-index: 2;
    margin-top: -24px;
    border-radius: 24px 24px 0 0;
    background: var(--paper);
  }
  /* A sheet spans the screen; its content keeps the page gutter. */
  .page-module-hero[data-portrait]:has(picture) + .section,
  .page-banner + .section { box-sizing: border-box; width: 100%; padding-inline: var(--gutter); }
  .page-module-hero:has(picture):not([data-portrait]) .page-module-hero-copy { padding-top: 28px; }
  .page-module-hero:has(picture):not([data-portrait]) { overflow: visible; background: transparent; }
}

/* Page changes cross-fade instead of flashing blank (Safari 18.2+, Chrome 126+; others just load).
   The header stays put while the content changes underneath. The phone bottom bar fades with the page:
   WebKit snapshots a backdrop-filtered element as a square block with the old page frozen inside.
   Only with scripting on: Chromium without JavaScript never finishes the transition after going back,
   leaving the whole page unclickable. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: libenest-site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
