/* 宿也 · 房源详情（移动优先，min-width 600 / 1024 / 1440）
   同时为 stay-detail.js 动态生成的日历、卧室弹层与预约表单提供松墨样式。 */

body[data-page="detail"] {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 标题区与封面（手机：封面在上；桌面：标题在上 + 拼贴相册） ---------- */
.detail-hero {
    display: flex;
    flex-direction: column-reverse;
}

.breadcrumb {
    display: none;
}

.detail-intro {
    padding-top: var(--space-5);
}

.detail-title-row h1 {
    font-size: var(--fs-h1);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: var(--space-3);
    font-size: 14px;
    color: var(--moss);
}

.detail-facts > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.detail-fact-icon,
.detail-location-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--moss);
}

.detail-intro .location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--stone);
    overflow-wrap: anywhere;
}

.detail-intro .location .detail-location-icon {
    margin-top: 2px;
    width: 15px;
    height: 15px;
}

.detail-cover {
    position: relative;
    margin-inline: calc(var(--page-pad) * -1);
    aspect-ratio: 4 / 3;
    max-height: 70svh;
    overflow: hidden;
    background: var(--sand);
}

.cover-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.cover-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform var(--motion-slow);
    will-change: transform;
}

.cover-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
}

.cover-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    pointer-events: none;
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 100%;
    background:
        radial-gradient(circle at 50% 125%, #D9D0BD 0 34%, transparent 35%),
        linear-gradient(160deg, #EFE9DC, #E4DCCB);
    color: var(--moss-deep);
    font-size: var(--fs-caption);
    letter-spacing: .08em;
}

.detail-placeholder-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--clay);
    border-radius: var(--radius-s);
    color: var(--clay);
    font-family: var(--font-serif);
    font-size: 15px;
    letter-spacing: .1em;
}

.cover-tools {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.cover-tool-actions {
    display: flex;
    gap: var(--space-2);
}

.round-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(251, 250, 246, .92);
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(31, 42, 38, .14);
    pointer-events: auto;
    transition: background var(--motion-fast), color var(--motion-fast);
}

.round-button:hover {
    background: var(--paper-raised);
    color: var(--pine);
}

.round-button .icon {
    width: 20px;
    height: 20px;
}

.round-button.favorite.is-saved {
    color: var(--clay);
}

.round-button.favorite.is-saved .icon {
    fill: currentColor;
}

.cover-dots {
    display: none;
}

.album-counter {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: rgba(31, 42, 38, .66);
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.album-counter .icon {
    width: 17px;
    height: 17px;
}

.album-all {
    display: none;
}

/* ---------- 章节锚点（吸顶） ---------- */
.detail-anchors {
    position: sticky;
    top: var(--header-height);
    z-index: 15;
    margin-top: var(--space-4);
    background: rgba(246, 243, 236, .97);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-anchors-inner {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scrollbar-width: none;
}

.detail-anchors-inner::-webkit-scrollbar {
    display: none;
}

.detail-anchors a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 48px;
    font-size: 14px;
    color: var(--moss);
    border-bottom: 2px solid transparent;
}

.detail-anchors a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.detail-section,
.booking-panel {
    scroll-margin-top: calc(var(--header-height) + 64px);
}

/* ---------- 主体：预订面板 + 内容 ---------- */
.detail-layout {
    padding-top: var(--space-5);
}

.booking-panel {
    display: grid;
    gap: var(--space-4);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
}

/* 手机端价格、主按钮与联系在底部预订栏，面板只展示日期与近期入住 */
.booking-price,
.booking-submit,
.booking-contact {
    display: none;
}

.booking-price .price {
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
}

.booking-price .price small,
.bar-price .price small {
    margin-right: 1px;
    font-size: 14px;
    font-weight: 500;
}

.booking-price .per-night,
.bar-price .per-night {
    margin-left: 4px;
    font-size: 13px;
    color: var(--stone);
}

.price-pending {
    font-size: 16px;
    font-weight: 600;
    color: var(--moss);
}

.booking-dates {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    min-height: 56px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper-raised);
    color: var(--ink);
    text-align: left;
    transition: border-color var(--motion-fast);
}

.booking-dates:hover {
    border-color: var(--ink);
}

.booking-dates .icon {
    color: var(--moss);
}

.booking-dates > span {
    display: grid;
    min-width: 0;
    line-height: 1.35;
}

.booking-dates small {
    font-size: var(--fs-caption);
    color: var(--stone);
}

.booking-dates strong {
    overflow: hidden;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.quick-stay-heading h2 {
    margin-bottom: var(--space-2);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.quick-stay-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.quick-stay-list > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 88px;
    padding: 8px 2px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--sand);
    color: var(--ink);
    line-height: 1.35;
    transition: border-color var(--motion-fast), background var(--motion-fast);
}

.quick-stay-list > button:hover:not(:disabled) {
    border-color: var(--ink);
}

.quick-stay-list > button span {
    font-size: 13px;
    font-weight: 600;
}

.quick-stay-list > button small {
    font-size: 11px;
    color: var(--moss-deep);
}

.quick-stay-list > button strong {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.quick-stay-list > button em {
    font-size: 11px;
    font-style: normal;
    color: var(--ok-deep);
}

.quick-stay-list > button:disabled {
    background: transparent;
    color: var(--off);
    cursor: not-allowed;
}

.quick-stay-list > button:disabled strong {
    color: var(--off);
    text-decoration: line-through;
}

.quick-stay-list > button:disabled em {
    color: var(--clay);
}

.quick-stay-list > button.selected {
    border-color: var(--pine);
    background: var(--pine);
    color: #fff;
}

.quick-stay-list > button.selected small,
.quick-stay-list > button.selected em {
    color: rgba(255, 255, 255, .85);
}

.quick-stay-list > .quick-stay-more {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: var(--space-2);
    min-height: 44px;
    background: transparent;
}

.quick-stay-more .icon {
    width: 18px;
    height: 18px;
    color: var(--moss);
}

.booking-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.booking-total[hidden] {
    display: none;
}

.booking-contact {
    gap: var(--space-4);
}

.booking-contact .text-link .icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.booking-contact button.text-link {
    padding: 0;
    border: 0;
    background: transparent;
}

.booking-note {
    font-size: 12px;
    line-height: 1.6;
    color: var(--stone);
}

/* ---------- 内容章节 ---------- */
.property-switcher {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-5) calc(var(--page-pad) * -1) 0;
    padding: 0 var(--page-pad) 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.property-switcher::-webkit-scrollbar {
    display: none;
}

.property-switcher > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    max-width: 16em;
    min-height: 44px;
    padding: 0 var(--space-4);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.property-switcher > a:hover {
    border-color: var(--ink);
}

.property-switcher > a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.intro-text {
    margin-top: var(--space-5);
    font-size: 15px;
    line-height: 1.8;
    color: var(--moss);
}

.intro-text-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.detail-section {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
    border-bottom: 0;
}

.detail-section .section-heading {
    align-items: center;
    margin-bottom: var(--space-4);
}

.detail-section .section-heading h2 {
    font-size: var(--fs-h2);
}

.detail-section button.text-link {
    padding: 0;
    border: 0;
    background: transparent;
}

.muted {
    color: var(--stone);
}

.detail-section > .muted {
    font-size: 14px;
}

/* 卧室 */
.bedroom-preview-grid,
.bedroom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.bedroom-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 96px;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper-raised);
    color: var(--ink);
    text-align: left;
}

button.bedroom-card:hover {
    border-color: var(--ink);
}

.bedroom-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bedroom-beds {
    font-size: 13px;
    color: var(--moss);
}

.bedroom-bed-label {
    font-size: 13px;
    line-height: 1.6;
    color: var(--stone);
    overflow-wrap: anywhere;
}

.bedroom-more {
    justify-content: center;
    background: var(--sand);
}

.bedroom-more > strong {
    font-size: 15px;
}

.bedroom-more > span {
    font-size: 13px;
    color: var(--moss-deep);
}

.bedroom-number {
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--clay);
}

.bedroom-modal-intro {
    display: grid;
    gap: 2px;
    margin-bottom: var(--space-4);
}

.bedroom-modal-intro > span {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
}

.bedroom-modal-intro > strong {
    font-size: 13px;
    font-weight: 400;
    color: var(--moss);
}

/* 设施 */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
}

.facility-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    font-size: 15px;
}

.facility-item > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.facility-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--moss);
}

.all-facilities {
    margin-top: var(--space-5);
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-height) + 64px);
}

.all-facilities summary,
.stay-rule-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 52px;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.all-facilities summary::-webkit-details-marker,
.stay-rule-details summary::-webkit-details-marker {
    display: none;
}

.all-facilities summary .icon,
.stay-rule-chevron {
    width: 18px;
    height: 18px;
    color: var(--moss);
    transition: transform var(--motion-fast);
}

.all-facilities[open] summary .icon,
.stay-rule-details details[open] .stay-rule-chevron {
    transform: rotate(180deg);
}

.all-facilities-grid {
    margin-top: var(--space-2);
}

.all-facilities > .muted {
    margin-top: var(--space-4);
    font-size: 13px;
}

/* 房源富文本：保持原比例与完整信息 */
.stay-description-shell {
    position: relative;
}

.stay-description {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.stay-description > * + * {
    margin-top: 1em;
}

.stay-description p {
    margin: 0;
}

.stay-description img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    vertical-align: middle;
}

.stay-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
}

.stay-description th,
.stay-description td {
    padding: 6px 10px;
    border: 1px solid var(--line);
}

.stay-description a {
    color: var(--pine);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stay-description-shell:not(.is-expanded) .stay-description {
    max-height: 420px;
    overflow: hidden;
}

.stay-description-shell.is-expanded .stay-description {
    max-height: none;
    overflow: visible;
}

.stay-description-shell.is-collapsible:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 52px;
    height: 96px;
    background: linear-gradient(180deg, rgba(246, 243, 236, 0), var(--paper));
    pointer-events: none;
}

.stay-description-toggle {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-m);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.stay-description-toggle:hover {
    background: var(--ink);
    color: var(--paper);
}

.stay-description-toggle[hidden] {
    display: none;
}

/* 入住须知 */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.rules-grid > span {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-m);
    background: var(--sand);
    font-size: 13px;
    color: var(--moss-deep);
}

.rules-grid .icon {
    width: 22px;
    height: 22px;
}

.rules-grid strong {
    display: block;
    font-size: 16px;
    color: var(--ink);
}

.stay-rule-details details {
    border-top: 1px solid var(--line);
}

.stay-rule-details p {
    padding-bottom: var(--space-4);
    font-size: 14px;
    line-height: 1.9;
    color: var(--moss);
    overflow-wrap: anywhere;
}

/* 商家与地图 */
.merchant-info-list {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.merchant-info-list p {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: center;
    font-size: 14px;
    line-height: 1.7;
}

.merchant-info-list > p > span:first-child {
    color: var(--stone);
}

.merchant-info-list strong,
.merchant-phone-number {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.merchant-phone-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-width: 0;
}

.merchant-call-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-4);
    border: 1px solid var(--ink);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
}

.merchant-call-button:hover {
    background: var(--ink);
    color: var(--paper);
}

.merchant-map {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-m);
    background: var(--sand);
}

.booking-contact-note {
    font-size: 14px;
    line-height: 1.85;
    color: var(--moss);
}

.booking-contact-note strong {
    color: var(--ink);
}

/* 也许你还喜欢 */
.detail-recommendation-block {
    margin-top: var(--space-6);
}

.detail-recommendations {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: var(--space-4);
    margin-inline: calc(var(--page-pad) * -1);
    padding: 0 var(--page-pad) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.detail-recommendations::-webkit-scrollbar {
    display: none;
}

.detail-recommendations > .stay-card {
    scroll-snap-align: start;
}

/* ---------- 手机底部预订栏 ---------- */
.detail-booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 8px var(--page-pad) max(8px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(251, 250, 246, .98);
    box-shadow: 0 -6px 20px rgba(31, 42, 38, .06);
}

.booking-bar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 60px;
}

.bar-shortcut {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--moss);
    font-size: 11px;
}

.bar-shortcut .icon {
    width: 22px;
    height: 22px;
}

.bar-price {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}

.bar-price .price {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}

.bar-price .per-night {
    display: none;
}

.bar-price > small {
    overflow: hidden;
    font-size: 12px;
    color: var(--stone);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bar-book {
    flex: 0 0 auto;
    padding: 0 var(--space-4);
    font-size: 15px;
}

/* ---------- 弹层内容（stay-detail.js 生成） ---------- */
.stay-detail-dialog .calendar-legend span {
    display: inline;
}

.day.unavailable:disabled small {
    color: var(--clay);
}

.day.checkout-boundary {
    border: 1px dashed var(--pine);
    color: var(--pine);
}

.day.checkout-boundary small {
    color: var(--pine);
    font-weight: 600;
}

.calendar-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.calendar-total strong {
    font-size: 15px;
    color: var(--ink);
}

.detail-reservation-summary {
    display: grid;
    gap: 6px;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line);
}

.detail-reservation-summary > span {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
}

.detail-reservation-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
}

.detail-reservation-dates strong {
    font-size: 15px;
}

.detail-reservation-dates .text-link,
.field-error .text-link {
    padding: 0;
    border: 0;
    background: transparent;
}

.detail-reservation-summary > p {
    font-size: 14px;
    color: var(--moss);
}

.booking-inquiry-form {
    display: grid;
    gap: var(--space-3);
}

.booking-phone-field {
    display: grid;
    gap: 6px;
}

.booking-phone-field > span {
    font-size: var(--fs-caption);
    color: var(--stone);
}

.booking-phone-field input {
    width: 100%;
    height: 52px;
    padding: 0 var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper);
    font-size: 17px;
    outline: none;
}

.booking-phone-field input:focus {
    border-color: var(--ink);
}

.booking-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.booking-inquiry-form .notice,
.booking-inquiry-success .notice {
    font-size: 12px;
    color: var(--stone);
}

.booking-inquiry-success {
    display: grid;
    gap: var(--space-2);
}

.booking-inquiry-success > strong {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.5;
}

.booking-inquiry-success > p:not(.notice) {
    font-size: 14px;
    color: var(--moss);
}

.detail-toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    max-width: calc(100% - 40px);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    transform: translateX(-50%);
    box-shadow: var(--shadow-float);
}

.detail-toast[hidden] {
    display: none;
}

/* ---------- 平板 ≥ 600 ---------- */
@media (min-width: 600px) {
    .detail-cover {
        max-height: 60svh;
    }

    .cover-dots {
        position: absolute;
        bottom: 6px;
        left: 50%;
        z-index: 3;
        display: flex;
        max-width: calc(100% - 220px);
        overflow: hidden;
        transform: translateX(-50%);
    }

    .cover-dots button {
        display: grid;
        place-items: center;
        width: 24px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .cover-dots span {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        background: rgba(255, 255, 255, .6);
        box-shadow: 0 1px 4px rgba(31, 42, 38, .3);
        transition: width var(--motion-fast);
    }

    .cover-dots .active span {
        width: 18px;
        background: #fff;
    }

    .quick-stay-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .quick-stay-list > .quick-stay-more {
        grid-column: auto;
        flex-direction: column;
        min-height: 88px;
    }

    .bedroom-preview-grid,
    .bedroom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .facility-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-recommendations {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }

    .stay-detail-dialog.bedrooms-modal {
        width: min(680px, calc(100vw - 64px));
    }
}

/* ---------- 桌面 ≥ 1024：拼贴相册 + 吸顶预订卡 ---------- */
@media (min-width: 1024px) {
    body[data-page="detail"] {
        padding-bottom: 0;
    }

    .detail-hero {
        flex-direction: column;
    }

    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-4);
        font-size: 13px;
        color: var(--stone);
    }

    .breadcrumb a:hover {
        color: var(--pine);
    }

    .breadcrumb [aria-current] {
        max-width: 32em;
        overflow: hidden;
        color: var(--ink);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .detail-intro {
        padding: var(--space-6) 0 var(--space-5);
    }

    .detail-facts {
        font-size: 15px;
    }

    .detail-cover {
        margin-inline: 0;
        aspect-ratio: auto;
        height: clamp(420px, 42vw, 560px);
        max-height: none;
        border-radius: var(--radius-l);
    }

    .cover-track {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        transform: none !important;
        transition: none;
    }

    .cover-slide {
        overflow: hidden;
        width: auto;
        height: auto;
        min-height: 0;
    }

    .cover-slide:first-child {
        grid-row: 1 / span 2;
    }

    .cover-slide:nth-child(n + 6) {
        display: none;
    }

    .cover-slide img {
        transition: transform 600ms ease-out, filter var(--motion-fast);
    }

    .cover-slide:hover img {
        transform: scale(1.03);
        filter: brightness(.94);
    }

    .detail-cover[data-media-count="0"] .cover-track,
    .detail-cover[data-media-count="1"] .cover-track {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .detail-cover[data-media-count="2"] .cover-track {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr;
    }

    .detail-cover[data-media-count="2"] .cover-slide:first-child {
        grid-row: auto;
    }

    .detail-cover[data-media-count="3"] .cover-track,
    .detail-cover[data-media-count="4"] .cover-track {
        grid-template-columns: 2fr 1fr;
    }

    .detail-cover[data-media-count="4"] .cover-slide:nth-child(4) {
        display: none;
    }

    .cover-back,
    .cover-dots,
    .cover-count {
        display: none !important;
    }

    .cover-tools {
        justify-content: flex-end;
        top: var(--space-4);
        right: var(--space-4);
    }

    .album-counter {
        right: var(--space-4);
        bottom: var(--space-4);
        background: var(--paper-raised);
        color: var(--ink);
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(31, 42, 38, .14);
    }

    .album-counter:hover {
        color: var(--pine);
    }

    .album-all {
        display: inline;
    }

    .detail-anchors {
        margin-top: var(--space-6);
    }

    .detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(340px, 4fr);
        gap: var(--space-8);
        align-items: start;
        padding-top: var(--space-6);
    }

    .detail-main {
        grid-column: 1;
        grid-row: 1;
    }

    .booking-panel {
        position: sticky;
        top: calc(var(--header-height) + 66px);
        grid-column: 2;
        grid-row: 1;
        padding: var(--space-5);
        border: 1px solid var(--line);
        border-radius: var(--radius-l);
        background: var(--paper-raised);
        box-shadow: var(--shadow-float);
    }

    .booking-price,
    .booking-submit {
        display: block;
    }

    .booking-contact {
        display: flex;
        flex-wrap: wrap;
    }

    .booking-submit {
        width: 100%;
    }

    .quick-stay-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-stay-list > button {
        min-height: 80px;
    }

    .quick-stay-list > .quick-stay-more {
        grid-column: 1 / -1;
        flex-direction: row;
        min-height: 44px;
    }

    .property-switcher {
        flex-wrap: wrap;
        margin: 0 0 var(--space-2);
        padding: 0;
        overflow: visible;
    }

    .intro-text {
        margin-top: var(--space-3);
        font-size: 16px;
    }

    .detail-section:first-of-type {
        padding-top: var(--space-5);
    }

    .detail-recommendation-block {
        margin-top: var(--space-8);
    }

    .detail-recommendations {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-7) var(--space-5);
    }

    .detail-booking-bar {
        display: none;
    }

    .detail-toast {
        bottom: var(--space-6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cover-track,
    .cover-slide img {
        transition: none;
    }
}

/* 矮视口（横屏手机）：章节锚点不吸顶，预订底栏保留（QA phase 7） */
@media (max-height: 500px) {
    .detail-anchors {
        position: static;
    }
}
