/* Mobile listing details preview; desktop keeps all details inline. */
.hzp-detail .hzp-details__preview { display: none; }
.hzp-detail .hzp-details__all {
    display: none;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #f5f7fc;
    color: var(--hzp-ink, #15191c);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.hzp-detail .hzp-details__all:hover { background: #e9eef9; }
.hzp-detail .hzp-details__all:focus-visible,
.hzp-detail .hzp-details-sheet__close:focus-visible,
.hzp-detail .hzp-details-sheet__body:focus-visible {
    outline: 2px solid var(--hagzi-primary, #0745d9);
    outline-offset: 3px;
}
.hzp-detail .hzp-details-sheet {
    position: fixed;
    inset: 0;
    width: min(680px, calc(100% - 48px));
    max-width: none;
    max-height: 85vh;
    max-height: 85dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #f5f7fc;
    color: var(--hzp-ink, #15191c);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}
.hzp-detail .hzp-details-sheet:not([open]) { display: none; }
.hzp-detail .hzp-details-sheet[open] { display: flex; flex-direction: column; }
.hzp-detail .hzp-details-sheet::backdrop { background: rgba(17, 24, 39, .4); }
.hzp-detail .hzp-details-sheet__handle { display: none; }
.hzp-detail .hzp-details-sheet__header {
    position: relative;
    flex: none;
    padding: 26px 72px;
}
.hzp-detail .hzp-details-sheet__header h2 {
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}
.hzp-detail .hzp-details-sheet__close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: inherit;
    cursor: pointer;
}
.hzp-detail .hzp-details-sheet__close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.hzp-detail .hzp-details-sheet__body {
    min-height: 0;
    padding: 0 20px 24px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}
.hzp-detail .hzp-details-sheet__list {
    margin: 0;
    padding: 0 18px;
    border-radius: 20px;
    background: #fff;
}
.hzp-detail .hzp-details-sheet__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e3e6ed;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.hzp-detail .hzp-details-sheet__row:last-child { border-bottom: 0; }
.hzp-detail .hzp-details-sheet__row dt { color: #5d6470; }
.hzp-detail .hzp-details-sheet__row dd { margin: 0; text-align: end; font-weight: 500; }
html.hzp-details-locked { overflow: hidden; }
html.hzp-details-locked body {
    position: fixed;
    top: var(--hzp-details-scroll-top);
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .hzp-detail .hzp-details__preview { display: grid; }
    .hzp-detail .hzp-details__desktop { display: none; }
    .hzp-detail .hzp-details__all { display: block; }
    .hzp-detail .hzp-details-sheet {
        inset: auto 0 0;
        width: 100%;
        height: 90vh;
        height: 90dvh;
        max-height: 90vh;
        max-height: 90dvh;
        margin: 0;
        border-radius: 28px 28px 0 0;
    }
    .hzp-detail .hzp-details-sheet[open] { animation: hzp-details-enter .2s ease-out; }
    .hzp-detail .hzp-details-sheet__handle {
        display: grid;
        place-items: center;
        flex: 0 0 26px;
        touch-action: none;
    }
    .hzp-detail .hzp-details-sheet__handle span {
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: #b8bdc7;
    }
    .hzp-detail .hzp-details-sheet__header { padding: 12px 64px 26px; }
    .hzp-detail .hzp-details-sheet__header h2 { font-size: 20px; }
    .hzp-detail .hzp-details-sheet__close { top: 2px; inset-inline-end: 16px; }
    .hzp-detail .hzp-details-sheet__body {
        flex: 1;
        padding: 0 16px calc(24px + env(safe-area-inset-bottom));
    }
    .hzp-detail .hzp-details-sheet__list { padding: 0 16px; }
    .hzp-detail .hzp-details-sheet__row { font-size: 15px; gap: 12px; }
}
@keyframes hzp-details-enter {
    from { transform: translateY(36px); opacity: .5; }
    to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hzp-detail .hzp-details-sheet[open] { animation: none; }
}
