/* Everything stays inside the renderer root; themes and other widgets remain untouched. */
.rel-listings {
    --rel-active-default-columns: var(--rel-default-columns, 3);
    --rel-gap: 24px;
    --rel-accent: #145b62;
    --rel-accent-hover: #0d444a;
    --rel-border: #dce3e6;
    --rel-muted: #52636c;
    --rel-text: #1c2d35;
    --rel-radius: 12px;
    color: var(--rel-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
    width: 100%;
    min-width: 0;
    margin: 0;
    scroll-margin-top: 32px;
}
.rel-listings *,
.rel-listings *::before,
.rel-listings *::after { box-sizing: border-box; }
.rel-listings [hidden] { display: none !important; }
.rel-listings a { color: var(--rel-accent); text-decoration: none; }
.rel-listings a:hover { text-decoration: underline; }
.rel-listings a:focus-visible,
.rel-listings button:focus-visible,
.rel-listings input:focus-visible,
.rel-listings select:focus-visible,
.rel-listings [tabindex]:focus-visible {
    outline: 3px solid var(--rel-accent);
    outline-offset: 3px;
}
.rel-listings .rel-heading {
    color: inherit;
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 24px;
    padding: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
.rel-listings .rel-grid {
    display: grid;
    grid-template-columns: repeat(var(--rel-columns, var(--rel-active-default-columns)), minmax(0, 1fr));
    align-items: stretch;
    gap: var(--rel-gap);
    width: 100%;
    margin: 0;
    padding: 0;
}
.rel-listings .rel-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rel-border);
    border-radius: var(--rel-radius);
    background: #fff;
    color: var(--rel-text);
    box-shadow: 0 3px 14px rgb(21 43 52 / 6%);
    overflow: hidden;
    text-align: left;
    transition: box-shadow 180ms ease, border-color 180ms ease;
}
.rel-listings .rel-card:hover {
    border-color: #b6c9cd;
    box-shadow: 0 6px 24px rgb(21 43 52 / 10%);
}
.rel-listings .rel-card__media { position: relative; margin: 0; padding: 0; }
.rel-listings .rel-card__image {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #edf2f3;
    border: 0;
    border-radius: 0;
    text-decoration: none;
}
.rel-listings .rel-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 220ms ease;
}
.rel-listings .rel-card__image:hover img { transform: scale(1.025); }
.rel-listings .rel-card__image:focus-visible { outline-offset: -5px; }
.rel-listings .rel-card__placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 180px;
    padding: 28px;
    background: linear-gradient(135deg, #edf2f3, #e2ebed);
    color: #536b73;
    font-size: 0.875em;
    font-weight: 500;
    text-align: center;
}
.rel-listings .rel-card__placeholder::before {
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    border: 3px solid #8aa1a8;
    border-radius: 5px;
    background: linear-gradient(145deg, transparent 52%, #a8bcc1 53%, #a8bcc1 70%, transparent 71%);
}
.rel-listings .rel-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 22px;
}
.rel-listings .rel-card__price {
    width: 100%;
    color: var(--rel-accent);
    font-size: 1.5em;
    font-weight: 750;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}
.rel-listings .rel-card__address {
    width: 100%;
    color: var(--rel-text);
    font-size: 1.125em;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
.rel-listings .rel-card__address a { color: inherit; font: inherit; }
.rel-listings .rel-card__location {
    width: 100%;
    color: var(--rel-muted);
    font-size: 0.9375em;
    line-height: 1.45;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}
.rel-listings .rel-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    width: 100%;
    margin: 2px 0 4px;
    padding: 0;
    color: var(--rel-muted);
    font-size: 0.8125em;
    line-height: 1.5;
    list-style: none;
}
.rel-listings .rel-card__meta li {
    display: block;
    width: auto;
    margin: 0;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f6;
    list-style: none;
    overflow-wrap: anywhere;
}
.rel-listings .rel-card__meta li::before { content: none; }
.rel-listings .rel-card__agent,
.rel-listings .rel-card__office {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--rel-muted);
    font-size: 0.8125em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.rel-listings .rel-attribution-label { font-weight: 600; }
.rel-listings .rel-card__excerpt {
    width: 100%;
    margin: 4px 0;
    padding: 0;
    color: var(--rel-muted);
    font-size: 0.875em;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.rel-listings .rel-card__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 5px 10px;
    background: var(--rel-accent);
    color: #fff;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}
.rel-listings .rel-card__media > .rel-card__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    pointer-events: none;
}
.rel-listings .rel-card__button,
.rel-listings .rel-search-form__submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 18px;
    border: 1px solid var(--rel-accent);
    border-radius: 6px;
    background: var(--rel-accent);
    color: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.875em;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition: background 180ms ease;
}
.rel-listings .rel-card__button { margin-top: auto; }
.rel-listings .rel-card__button:hover,
.rel-listings .rel-search-form__submit:hover {
    background: var(--rel-accent-hover);
    border-color: var(--rel-accent-hover);
    color: #fff;
    text-decoration: none;
}
.rel-listings .rel-search-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--rel-border);
    border-radius: var(--rel-radius);
    background: #f7fafb;
    text-align: left;
}
.rel-listings .rel-search-form__field { min-width: 0; margin: 0; padding: 0; }
.rel-listings .rel-search-form label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
    color: var(--rel-text);
    font-size: 0.8125em;
    font-weight: 650;
    line-height: 1.45;
}
.rel-listings .rel-search-form input:not([type="hidden"]),
.rel-listings .rel-search-form select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid #b8c6cb;
    border-radius: 6px;
    background-color: #fff;
    color: var(--rel-text);
    box-shadow: none;
    font-family: inherit;
    font-size: 1em;
    font-weight: 400;
    line-height: normal;
    text-transform: none;
}
.rel-listings .rel-search-form select { padding-right: 26px; }
.rel-listings .rel-search-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    grid-column: 1 / -1;
    margin-top: 2px;
}
.rel-listings .rel-search-form__submit { margin: 0; }
.rel-listings .rel-search-form__reset,
.rel-listings .rel-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 0.875em;
    font-weight: 600;
}
.rel-listings .rel-results-count {
    color: var(--rel-muted);
    font-size: 0.875em;
    margin: 0 0 18px;
    padding: 0;
}
.rel-listings .rel-empty,
.rel-listings .rel-error {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--rel-border);
    border-radius: var(--rel-radius);
    background: #f7fafb;
    color: var(--rel-muted);
    text-align: center;
    overflow-wrap: anywhere;
}
.rel-listings .rel-admin-note {
    margin: 12px 0 0;
    color: var(--rel-muted);
    font-size: 0.8125em;
}
.rel-listings .rel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
    padding: 0;
}
.rel-listings .rel-pagination__link,
.rel-listings .rel-pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--rel-border);
    border-radius: 6px;
    background: #fff;
    color: var(--rel-accent);
    font-size: 0.875em;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
.rel-listings .rel-pagination__link:hover {
    background: #edf4f5;
    border-color: var(--rel-accent);
    text-decoration: none;
}
.rel-listings .rel-pagination__current {
    border-color: var(--rel-accent);
    background: var(--rel-accent);
    color: #fff;
}
.rel-listings .rel-pagination__ellipsis { color: var(--rel-muted); padding: 0 3px; }
.rel-listings .rel-disclaimer {
    margin: 28px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--rel-border);
    color: var(--rel-muted);
    font-size: 0.75em;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.rel-listings .rel-disclaimer p { margin: 0 0 10px; }
.rel-listings .rel-disclaimer p:last-child { margin-bottom: 0; }
.rel-listings .rel-detail { width: 100%; margin: 12px 0 0; padding: 0; }
.rel-listings .rel-detail__body { display: block; width: 100%; padding: 28px; }
.rel-listings .rel-detail__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
}
.rel-listings .rel-detail__address {
    width: 100%;
    color: var(--rel-text);
    margin: 0;
    padding: 0;
    font-size: clamp(1.5em, 4vw, 2.25em);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    overflow-wrap: anywhere;
}
.rel-listings .rel-detail__price { font-size: 1.875em; }
.rel-listings .rel-gallery {
    width: 100%;
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
}
.rel-listings .rel-gallery__stage {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rel-border);
    border-radius: var(--rel-radius);
    overflow: hidden;
    background: #edf2f3;
}
.rel-listings .rel-gallery__main {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}
.rel-listings .rel-gallery__thumbnails {
    display: flex;
    gap: 10px;
    width: 100%;
    margin: 12px 0 0;
    padding: 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
.rel-listings .rel-gallery__thumbnail {
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 66px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #edf2f3;
    box-shadow: none;
    cursor: pointer;
}
.rel-listings .rel-gallery__thumbnail[aria-pressed="true"] {
    border-color: var(--rel-accent);
    background: #fff;
}
.rel-listings .rel-gallery__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    object-fit: cover;
}
.rel-listings .rel-gallery__fallback {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 0;
}
.rel-listings .rel-gallery__fallback img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}
.rel-listings .rel-gallery--empty .rel-card__placeholder {
    aspect-ratio: 16 / 8;
    border-radius: var(--rel-radius);
    min-height: 220px;
}
.rel-listings .rel-detail__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 16px 24px;
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid var(--rel-border);
    border-radius: var(--rel-radius);
    background: #f7fafb;
    color: var(--rel-text);
    font-size: 0.9375em;
}
.rel-listings .rel-detail__fact { min-width: 0; margin: 0; padding: 0; }
.rel-listings .rel-detail__facts dt {
    margin: 0 0 4px;
    padding: 0;
    color: inherit;
    font-size: 0.875em;
    font-weight: 500;
}
.rel-listings .rel-detail__facts dd {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
}
.rel-listings .rel-detail__remarks,
.rel-listings .rel-detail__contact { margin: 0 0 28px; padding: 0; }
.rel-listings .rel-detail__remarks { color: var(--rel-text); line-height: 1.75; }
.rel-listings .rel-detail__remarks h3,
.rel-listings .rel-detail__contact h3 {
    margin: 0 0 14px;
    padding: 0;
    color: var(--rel-text);
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}
.rel-listings .rel-detail__remarks p {
    margin: 0 0 14px;
    padding: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}
.rel-listings .rel-detail__contact {
    padding-top: 24px;
    border-top: 1px solid var(--rel-border);
}
.rel-listings .rel-detail__agent,
.rel-listings .rel-detail__office { font-size: 0.9375em; margin-bottom: 10px; }
.rel-listings .rel-detail__phone { display: inline-block; margin-left: 8px; }
.rel-listings .rel-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
@media (max-width: 1024px) {
    .rel-listings { --rel-active-default-columns: var(--rel-columns-tablet, var(--rel-default-columns-tablet, 2)); }
    .rel-listings .rel-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rel-listings .rel-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .rel-listings { --rel-active-default-columns: var(--rel-columns-mobile, var(--rel-default-columns-mobile, 1)); }
    .rel-listings .rel-search-form { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
    .rel-listings .rel-card__body { padding: 18px; }
    .rel-listings .rel-detail__facts { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .rel-listings .rel-gallery__fallback { grid-template-columns: minmax(0, 1fr); }
    .rel-listings .rel-pagination { gap: 6px; }
    .rel-listings .rel-pagination__link,
    .rel-listings .rel-pagination__current { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .rel-listings *, .rel-listings *::before, .rel-listings *::after { transition: none !important; scroll-behavior: auto !important; }
    .rel-listings .rel-card__image:hover img { transform: none; }
}
@media (forced-colors: active) {
    .rel-listings .rel-gallery__thumbnail[aria-pressed="true"] { border-color: Highlight; }
    .rel-listings .rel-card__badge,
    .rel-listings .rel-pagination__current { border: 1px solid CanvasText; }
}
