/* 品牌图形与字样使用 SVG 曲线轮廓，按原始比例直接渲染。 */
.logo {
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: 240px;
    height: 72px;
    object-fit: contain;
    image-rendering: auto;
}

.header-top {
    align-items: center;
}

.header .logo {
    flex: 0 1 240px;
    min-width: 0;
}

.header .logo-image {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 3;
}

.header-actions {
    flex-shrink: 0;
}

.footer-brand .logo {
    width: fit-content;
    background: transparent;
}

@media (min-width: 615px) and (max-width: 900px) {
    .header-top {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .header-nav-center {
        order: 1;
        flex-basis: 100%;
    }
}

@media (max-width: 614px) {
    .header-top {
        padding: 0 12px;
    }

    .header .logo {
        flex-basis: 180px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-icon-btn {
        width: 30px;
        height: 30px;
    }

    .lang-switch {
        width: 106px;
        padding: 0 7px;
        gap: 4px;
        font-size: 13px;
    }
}

/* Keep navigation and the page frame visible while live content arrives. */
html.starsea-loading .main-content > .container,
html.starsea-loading .detail-page-body > .container,
html.starsea-loading .property-title-section > .container,
html.starsea-loading .breadcrumb-bar > .container,
html.starsea-loading .business-page > *,
html.starsea-loading [data-site-section-key] > * {
    visibility: hidden;
}
html.starsea-loading .main-content,
html.starsea-loading .detail-page-body {
    min-height: 240px;
    background: linear-gradient(110deg, #fafafa 25%, #f2f3f5 50%, #fafafa 75%);
}

#starsea-page-loader {
    display: none;
}

html.starsea-loading #starsea-page-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 32px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,.12);
    color: #595959;
    font-size: 15px;
    text-align: center;
}

.starsea-page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.starsea-page-loader-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e7eff9;
    border-top-color: #1b54bf;
    border-radius: 50%;
    animation: starsea-loader-spin 0.8s linear infinite;
}

#starsea-page-loader.is-error .starsea-page-loader-spinner {
    display: none;
}

#starsea-page-loader.is-error .starsea-page-loader-text {
    max-width: 420px;
    padding: 20px 24px;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    background: #fff2f0;
    color: #cf1322;
    text-align: center;
}

@keyframes starsea-loader-spin {
    to { transform: rotate(360deg); }
}

/* 列表刷新提示始终位于左侧结果区域内，出现和隐藏均不推动列表或侧栏。 */
.list-results {
    position: relative;
}

.list-feedback {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.list-feedback[hidden],
.list-feedback-retry[hidden] {
    display: none !important;
}

.list-feedback-panel {
    position: sticky;
    top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 12px auto;
    padding: 12px;
    border: 1px solid #dce7f7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(27, 84, 191, .12);
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    pointer-events: auto;
}

.list-feedback-spinner {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #e7eff9;
    border-top-color: #1b54bf;
    border-radius: 50%;
    animation: starsea-loader-spin .8s linear infinite;
}

.list-feedback[data-state="loading"] .list-feedback-message {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.list-feedback[data-state="error"] {
    top: -22px;
}

.list-feedback[data-state="error"] .list-feedback-panel {
    margin: 0 auto;
    padding: 0 6px;
    border-color: #f2d3b0;
    border-radius: 5px;
    background: #fffaf5;
    box-shadow: none;
    font-size: 12px;
}

.list-feedback[data-state="error"] .list-feedback-spinner {
    display: none;
}

.list-feedback-message {
    min-width: 0;
    overflow-wrap: anywhere;
}

.list-feedback-retry {
    flex-shrink: 0;
    padding: 5px 12px;
    border: 1px solid #1b54bf;
    border-radius: 6px;
    background: #1b54bf;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.list-feedback-retry:hover {
    background: #1646a0;
}

.list-feedback[data-state="error"] .list-feedback-retry {
    padding: 0 8px;
    border-radius: 4px;
}

.list-feedback-retry:focus-visible {
    outline: 2px solid #1b54bf;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .starsea-page-loader-spinner, .list-feedback-spinner { animation: none; }
}

.site-section-subtitle {
    margin: -8px 0 20px;
    color: #86909c;
    font-size: 14px;
    line-height: 1.6;
}

.starsea-runtime-toast {
    position:fixed;
    left:50%;
    bottom:32px;
    z-index:10000;
    padding:10px 18px;
    border-radius:999px;
    background:#1b54bf;
    box-shadow:0 6px 20px rgba(0,0,0,.16);
    color:#fff;
    font-size:14px;
    font-weight:500;
    opacity:0;
    transform:translate(-50%,8px);
    transition:opacity .2s ease,transform .2s ease;
    pointer-events:none;
}

.starsea-runtime-toast.is-visible {
    opacity:1;
    transform:translate(-50%,0);
}

/* 紧靠居中内容容器右侧；窄屏空间不足时保留 16px 屏内间距。 */
.back-to-top {position:fixed;right:max(16px,calc((100% - var(--container-width,1280px))/2 - 50px - 12px));bottom:32px;width:50px;height:50px;border-radius:50%;background:#103f9c;color:#fff;border:3px solid #fff;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;box-shadow:0 4px 20px #0004;opacity:0;visibility:hidden;transform:translateY(20px);transition:all .2s;z-index:999;}
.back-to-top.show {opacity:1;visibility:visible;transform:translateY(0);}
.back-to-top:hover {background:#103f9c;}
@media(max-width:768px){.back-to-top{right:16px;bottom:24px;}}

/* Regular text for listing parameters across lists and recommendation cards. */
.property-details-grid .detail-value,
.hot-property-meta,
.hot-meta-floor, .hot-meta-area,
.recent-meta-floor, .recent-meta-area,
.nearby-card .nb-meta-layout, .nearby-card .nb-meta-area,
.listing-card .l-meta-area {
    font-weight: 400;
}

.listing-corner-badge { position:absolute; top:8px; left:8px; padding:3px 8px; border-radius:4px; font-size:12px; line-height:1.5; z-index:2; }
.nearby-card-thumb { position:relative; }
