/* Star Page Standard v2 — dedicated profile skin.
   Tokens come from /assets/css/styles.css. Do not use featured-shell / report layout. */

html.auth-pending body { visibility: hidden; }

.star-page {
  --star-max: 860px;
  --star-wide: 1080px;
  --star-pad: 22px;
  --star-photo: 4 / 3;
  padding-bottom: 88px;
}

.star-page .container {
  width: min(var(--star-wide), calc(100% - 32px));
}

.star-narrow {
  width: min(var(--star-max), calc(100% - 32px));
}

.star-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.star-chrome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
}

.star-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.star-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  background: transparent url("/assets/icons/favicon.svg") center / contain no-repeat;
  box-shadow: none;
  font-size: 0;
  color: transparent;
}

.star-brand-mark:has(img) {
  background-image: none;
}

.star-brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.star-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.star-chrome-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.star-chrome-nav a[aria-current="page"],
.star-chrome-nav a:hover { color: var(--text); }

.star-chrome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Paired EN blocks stay in the DOM for Standard v2; UI is Chinese-only. */
.star-page .star-lang-en { display: none; }

.star-preview-chrome {
  position: sticky;
  top: 64px;
  z-index: 35;
}

.star-viewport-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.star-viewport-toggle button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.star-viewport-toggle button.is-active {
  background: rgba(136, 245, 255, 0.12);
  color: var(--text);
}

.star-preview-stage { transition: max-width 0.2s ease; }

body.star-preview-mobile .star-preview-stage {
  max-width: 390px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.star-status-bar {
  z-index: 30;
  background: rgba(255, 214, 107, 0.08);
  border-bottom: 1px solid rgba(255, 214, 107, 0.22);
  color: #ffe7a8;
  font-size: 13px;
}

.star-status-inner {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.star-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.star-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 107, 0.32);
  background: rgba(255, 214, 107, 0.12);
  color: #ffe7a8;
  font-size: 12px;
  font-weight: 700;
}

.star-status-bar code {
  color: var(--text);
  font-size: 12px;
}

.star-status-note,
.star-public-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.star-public-note {
  padding: 10px 0;
  font-size: 13px;
}

.star-completeness-inline {
  --completeness: 65;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(220px, 100%);
}

.star-completeness-inline strong { color: var(--text); }

.star-completeness-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.star-completeness-fill {
  width: calc(var(--completeness) * 1%);
  height: 100%;
  background: #88f5ff;
}

.star-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.star-crumbs [aria-current="page"] { color: var(--text); }

.star-section {
  padding: 28px 0;
}

.star-section h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -0.03em;
}

.star-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.star-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#hero.star-hero {
  position: relative;
  min-height: calc(100svh - 140px);
  padding: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.star-hero-media {
  position: absolute;
  inset: 0;
}

.star-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.18) 0%, rgba(7, 17, 31, 0.55) 48%, rgba(7, 17, 31, 0.94) 100%);
}

.star-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--star-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 36px;
}

.star-hero-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 8vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.star-type,
.star-place {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.star-promise {
  max-width: 42rem;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
}

.star-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.star-pair {
  display: grid;
  gap: 14px;
}

.star-block {
  padding: 16px 16px 2px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.star-block p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.7;
}

.star-block[lang="zh-CN"] p { color: #d5e4f7; }

.star-highlights,
.star-offers,
.star-practical,
.star-faq-list {
  display: grid;
  gap: 14px;
}

.star-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.star-card p { margin: 0 0 10px; line-height: 1.65; color: var(--muted); }
.star-card .star-lang-en { color: var(--text); }

.star-gallery {
  display: grid;
  gap: 12px;
}

.star-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.star-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--star-photo);
  object-fit: cover;
}

.star-gallery figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.star-map-frame {
  width: 100%;
  margin: 12px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.star-map-frame iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.star-map-label {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(136, 245, 255, 0.06);
  border: 1px dashed rgba(136, 245, 255, 0.24);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.star-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.star-dl div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.star-dl dt {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.star-dl dd { margin: 0; line-height: 1.6; }

.star-contact address {
  font-style: normal;
}

.star-contact-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.star-contact-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.star-contact-list strong { font-size: 13px; color: var(--cyan); }

.star-form {
  display: grid;
  gap: 12px;
}

.star-form .field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.star-form .input,
.star-form .textarea { width: 100%; }

.star-enquire-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 17, 31, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.star-enquire-dock .btn { width: 100%; }

.star-page.is-hero-away .star-chrome .star-enquire-header {
  box-shadow: 0 0 0 1px rgba(136, 245, 255, 0.28);
}

#star-footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

#star-footer .site-footer-nav a {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .star-chrome-inner { flex-wrap: wrap; }
  .star-chrome-nav { order: 3; width: 100%; justify-content: flex-start; }
  .star-chrome-actions { margin-left: auto; }
}

@media (min-width: 980px) {
  .star-page { padding-bottom: 0; }
  .star-enquire-dock { display: none; }
  .star-gallery {
    grid-template-columns: 1.3fr 1fr;
  }
  .star-gallery figure:first-child { grid-row: span 2; }
  .star-gallery figure:first-child img { aspect-ratio: 4 / 5; height: 100%; }
  .star-highlights,
  .star-offers { grid-template-columns: 1fr 1fr; }
  .star-map-frame iframe { height: 320px; }
  .star-hero-copy { padding: 96px 0 48px; }
}

@media print {
  .star-chrome,
  .star-status-bar,
  .star-enquire-dock,
  .star-hero-actions,
  .no-print { display: none !important; }
  .star-page { padding-bottom: 0; background: #fff; color: #122033; }
  .star-page[data-star-lang] .star-lang-en,
  .star-page[data-star-lang] .star-lang-zh { display: block !important; }
  #hero.star-hero { min-height: 0; }
  .star-hero-media { position: relative; height: 220px; }
  .star-block,
  .star-card,
  .star-gallery figure { break-inside: avoid; }
}
