.rrg-pm {
    --pm-accent: #b84a09;
    --pm-purple: #312c4f;
    --pm-border: #e5e0da;
    --pm-surface: #f8f7f5;
    font-size: 1rem;
    container-type: inline-size;
}

.rrg-pm [hidden] {
    display: none !important;
}

.rrg-pm-section {
    margin-top: clamp(1.75rem, 4vw, 3.25rem);
}

.rrg-pm-section:first-of-type {
    margin-top: 0;
}

.rrg-pm-section,
.rrg-pm-tile {
    scroll-margin-top: 6rem;
}

.rrg-pm-services,
.rrg-pm-properties,
.rrg-pm-recommendations {
    display: grid;
    gap: 1rem;
}

.rrg-pm-services {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(19rem, 40%)), 1fr));
}

.rrg-pm-properties {
    grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 32rem) {
    .rrg-pm-properties {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 46rem) {
    .rrg-pm-properties {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rrg-pm-recommendations {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.rrg-pm-tile,
.rrg-pm-property,
.rrg-pm-recommendations a {
    min-width: 0;
    border: 1px solid var(--pm-border);
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.rrg-pm-tile,
.rrg-pm-property-body,
.rrg-pm-recommendations a {
    padding: 1rem;
}

.rrg-pm-tile {
    background: var(--pm-surface);
    border-top: 3px solid var(--pm-accent);
}

.rrg-pm-tile:last-child {
    grid-column: 1 / -1;
}

.rrg-pm-tile h3,
.rrg-pm-property h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.rrg-pm-tile ul,
.rrg-pm-property-body > :last-child {
    margin-bottom: 0;
}

.rrg-pm-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rrg-pm-filter button,
.rrg-pm-more {
    max-width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--pm-border);
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.rrg-pm-filter button:hover,
.rrg-pm-filter button:focus-visible {
    border-color: var(--pm-accent);
}

.rrg-pm-filter button[aria-pressed="true"] {
    border-color: var(--pm-accent);
    background: var(--pm-accent);
    color: #fff;
}

.rrg-pm-more {
    display: block;
    margin: 1.25rem auto 0;
    padding-inline: 1.25rem;
    border-color: var(--pm-purple);
    color: var(--pm-purple);
    font-weight: 700;
}

.rrg-pm-more:hover,
.rrg-pm-more:focus-visible {
    background: var(--pm-purple);
    color: #fff;
}

.rrg-pm-property {
    overflow: hidden;
}

.rrg-pm-property-media {
    display: grid;
}

.rrg-pm-property-photo,
.rrg-pm-category {
    grid-area: 1 / 1;
}

.rrg-pm .rrg-pm-property-photo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.rrg-pm-category {
    align-self: end;
    justify-self: start;
    z-index: 1;
    margin: 0.625rem;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    background: var(--pm-purple);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 700;
}

.rrg-pm-property-body {
    --rrg-content-font-size: 0.875rem;
    --rrg-content-line-height: 1.45;
    --rrg-text-gap: 0.5rem;
}

#content .rrg-pm-property-body h3 {
    --rrg-heading-size: 1.125rem;
    --rrg-heading-before: 0px;
    color: var(--pm-purple);
}

.rrg-pm-address {
    color: #59534d;
}

.rrg-pm-address,
.rrg-pm-property-description {
    font-weight: 700;
}

.rrg-pm-recommendations a {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.rrg-pm-recommendations img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--pm-surface);
}

.rrg-pm-contacts {
    display: grid;
    justify-items: start;
    gap: 0.375rem;
    margin: 0;
    font-style: normal;
}
