/* Property amenities preview, progressive fallback and accessible dialog. */
.property-amenities {
    max-width: 620px;
    min-width: 0;
}

.property-amenities .property-hero-amenities {
    max-width: 100%;
}

.property-amenities .property-hero-amenities .feature-pill {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.property-amenities-more {
    margin-top: 14px;
}

.property-amenities-more[hidden],
.property-amenities-show-all[hidden] {
    display: none !important;
}

.dhost-public .property-amenities-show-all {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 17px;
    margin: 0;
    border: 1px solid #bc9a64;
    border-radius: 10px;
    background: #fffaf1;
    color: var(--dh-header, #081721);
    font: 600 14px/1.4 var(--font-body, Arial, sans-serif);
    text-align: left;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    box-shadow: none;
    overflow-wrap: anywhere;
    transform: none;
}

.dhost-public button.property-amenities-show-all {
    margin-top: 14px;
}

.property-amenities-show-all::-webkit-details-marker {
    display: none;
}

.property-amenities-show-all::marker {
    content: "";
}

.property-amenities-show-all svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: #946a33;
    pointer-events: none;
}

.dhost-public .property-amenities-show-all:hover {
    background: #f5ebd9;
    border-color: #946a33;
    color: var(--dh-header, #081721);
    transform: none;
}

.dhost-public .property-amenities-show-all:focus-visible,
.dhost-public .property-amenities-close:focus-visible {
    outline: 3px solid var(--dh-gold, #b98a43);
    outline-offset: 3px;
}

.property-amenities-more[open] > .property-amenities-content {
    margin-top: 15px;
    padding: 20px;
    border: 1px solid #e4d9c7;
    border-radius: 14px;
    background: #fff;
}

.property-amenities-content {
    min-width: 0;
}

.property-amenities-content .property-amenities-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.property-amenities-list > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid #eee7db;
    color: #34434b;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.property-amenities-list > li > svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--dh-gold, #b98a43);
}

.property-amenities-list > li > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.property-amenities-dialog {
    --dh-amenities-styled: 1;
    box-sizing: border-box;
    width: min(760px, calc(100% - 40px));
    max-width: none;
    max-height: min(760px, calc(100vh - 40px));
    max-height: min(760px, calc(100dvh - 40px));
    padding: 0;
    margin: auto;
    border: 1px solid #c8ac79;
    border-radius: 20px;
    background: #fff;
    color: var(--dh-header, #081721);
    box-shadow: 0 24px 90px #0006;
    overflow: hidden;
}

.property-amenities-dialog:not([open]) {
    display: none !important;
}

.property-amenities-dialog[open] {
    display: flex;
    flex-direction: column;
}

.property-amenities-dialog::backdrop {
    background: #06121ad9;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.property-amenities-dialog-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    padding: 22px 26px;
    border-bottom: 1px solid #e4d9c7;
    background: #fffaf1;
}

.property-amenities-dialog-header > div {
    min-width: 0;
}

.property-amenities-dialog-header h2 {
    margin: 0;
    color: var(--dh-header, #081721);
    font: 500 30px/1.2 Georgia, serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.property-amenities-dialog-header p {
    margin: 7px 0 0;
    color: #606e77;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dhost-public .property-amenities-close {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    flex-shrink: 0;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid #c9ae7d;
    border-radius: 50%;
    background: #fff;
    color: #765321;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.property-amenities-close svg {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.dhost-public .property-amenities-close:hover {
    border-color: #a97d3d;
    background: #f0e4cf;
    color: #765321;
    transform: none;
}

.property-amenities-dialog-body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 10px 26px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.property-amenities-dialog-body:focus-visible {
    outline: 2px solid var(--dh-gold, #b98a43);
    outline-offset: -4px;
}

body.property-amenities-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .property-amenities-dialog {
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        border-radius: 16px;
    }

    .property-amenities-dialog-header {
        gap: 12px;
        padding: 17px 16px;
    }

    .property-amenities-dialog-header h2 {
        font-size: 25px;
    }

    .property-amenities-dialog-body {
        padding: 4px 18px 18px;
    }

    .property-amenities-content .property-amenities-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .property-amenities-list > li {
        padding: 15px 0;
        font-size: 14px;
    }

    .property-amenities-more[open] > .property-amenities-content {
        padding: 7px 16px 14px;
    }
}
