:root {
    --estate360-riva-ivory: #ebe8e3;
    --estate360-riva-paper: #f7f5f1;
    --estate360-riva-ink: #333439;
    --estate360-riva-deep: #415358;
    --estate360-riva-blue: #6b8c94;
    --estate360-riva-gold: #a99884;
    --estate360-heading-font: "PP Fragment Light 300", "Iowan Old Style", "Times New Roman", serif;
    --estate360-body-font: "Neue Haas Grotesk Display Pro", "Red Hat Display", Arial, sans-serif;
}

.estate360-table-theme {
    --estate360-riva-ivory: #ebe8e3;
    --estate360-riva-paper: #f7f5f1;
    --estate360-riva-ink: #333439;
    --estate360-riva-deep: #415358;
    --estate360-riva-blue: #6b8c94;
    --estate360-riva-gold: #a99884;
    --estate360-heading-font: "PP Fragment Light 300", "Iowan Old Style", "Times New Roman", serif;
    --estate360-body-font: "Neue Haas Grotesk Display Pro", "Red Hat Display", Arial, sans-serif;
    --primary-color: var(--estate360-table-accent);
    color: var(--estate360-table-text);
    font-family: var(--estate360-body-font);
    line-height: 1.45;
}

.estate360-catalogue {
    position: relative;
    left: 50%;
    display: grid;
    width: min(1480px, calc(100vw - 32px));
    max-width: none;
    margin-inline: 0;
    gap: clamp(22px, 3vw, 40px);
    transform: translateX(-50%);
}

.estate360-catalogue__viewer {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(65, 83, 88, 0.18);
    border-radius: var(--estate360-table-radius);
    background: var(--estate360-riva-ivory);
    box-shadow: 0 22px 60px rgba(51, 52, 57, 0.11);
}

.estate360-catalogue__viewer > [data-project-id-360],
.estate360-catalogue__viewer > [data-project-id-360] > div,
.estate360-catalogue__viewer .irep-preview,
.estate360-catalogue__viewer .irep-mouse-tracker,
.estate360-catalogue__viewer .irep-preview-layout {
    width: 100%;
}

.estate360-catalogue__viewer .irep-preview-layout {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    background: var(--estate360-riva-ivory) !important;
}

/* Overlay the legacy building header so it never creates a black strip. */
.estate360-catalogue__viewer .irep-preview-layout__header {
    position: absolute !important;
    z-index: 50;
    inset: 18px 18px auto 18px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--estate360-riva-ink) !important;
    pointer-events: none;
}

.estate360-catalogue__viewer .irep-preview-layout__header .irep-back-button {
    display: none !important;
}

.estate360-catalogue__viewer .irep-block-preview__title {
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(247, 245, 241, 0.9);
    color: var(--estate360-riva-deep) !important;
    font-family: var(--estate360-body-font) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em;
    line-height: 1.2 !important;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(51, 52, 57, 0.12);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.estate360-catalogue__viewer .irep-block-preview__canvas,
.estate360-catalogue__viewer .irep-project-preview__canvas {
    width: 100% !important;
    margin: 0 !important;
    background: var(--estate360-riva-ivory);
}

.estate360-catalogue__viewer .irep-block-preview__canvas img,
.estate360-catalogue__viewer .irep-project-preview__canvas img {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: clamp(520px, 55vw, 820px);
    object-fit: cover;
}

/* Full-image coordinate surface shared by project/building previews. Width,
   height and overlays scale together; no cover crop or independently fit SVG. */
.estate360-image-stage {
    position: relative;
    width: 100%;
    /* Reserve the previous frame's geometry while a metadata-free view loads.
       The old-image buffer must never sit inside a collapsed container. */
    aspect-ratio: var(--estate360-image-ratio, 1.5);
}

.estate360-image-stage > img:not(.estate360-frame-buffer),
.estate360-catalogue__viewer .estate360-image-stage > img:not(.estate360-frame-buffer) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

.estate360-image-stage > .canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.estate360-image-stage > .canvas > svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.estate360-image-stage > img.estate360-frame-buffer,
.estate360-catalogue__viewer .estate360-image-stage > img.estate360-frame-buffer {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
}

/* Large screens use the full catalogue width. A global height cap would also
   shrink wide desktop displays, even when there is plenty of room. */
.estate360-catalogue__viewer.estate360-fitted-viewer {
    justify-self: center;
    width: 100%;
    min-height: 0 !important;
}

.estate360-catalogue__viewer .estate360-image-canvas,
.estate360-catalogue__viewer .estate360-image-stage {
    height: auto !important;
    min-height: 0 !important;
}

/* A laptop viewer must remain useful, not shrink to fit the table above the
   fold. The table follows naturally. Scale image and SVG as a single surface. */
@media (min-width: 768px) and (max-width: 1599px) and (max-height: 900px) {
    .estate360-catalogue__viewer.estate360-fitted-viewer {
        --estate360-viewer-height: clamp(520px, 78vh, 760px);
        --estate360-viewer-height: clamp(520px, 78svh, 760px);
        width: min(100%, calc(var(--estate360-viewer-height) * var(--estate360-image-ratio, 1.5)));
    }
}

/* The overview is intentionally quieter so each interactive building reads clearly. */
.estate360-catalogue__viewer .irep-project-preview__canvas img {
    filter: brightness(0.86) saturate(0.94);
    transition: filter 220ms ease;
}

.estate360-catalogue__viewer .irep-project-preview__svg-overlay {
    z-index: 4;
    pointer-events: auto !important;
}

.estate360-catalogue__viewer .irep-project-preview__svg-overlay g[polygon-type="block"] {
    cursor: pointer;
    outline: none;
}

.estate360-catalogue__viewer .irep-project-preview__svg-overlay g[polygon-type="block"] path {
    fill: rgba(65, 83, 88, 0.12) !important;
    stroke: rgba(32, 43, 47, 0.92) !important;
    stroke-width: max(var(--stroke-width), 1.5px) !important;
    pointer-events: all;
    transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}

.estate360-catalogue__viewer .irep-project-preview__svg-overlay g[polygon-type="block"]:hover path {
    fill: rgba(255, 255, 255, 0.28) !important;
    stroke: rgba(255, 255, 255, 0.96) !important;
    filter: drop-shadow(0 5px 12px rgba(22, 32, 35, 0.2));
}

.estate360-catalogue__viewer .irep-project-preview__svg-overlay g[polygon-type="block"]:focus-visible path,
.estate360-catalogue__viewer .irep-project-preview__svg-overlay g[polygon-type="block"].ire-estate-selected path {
    fill: rgba(255, 255, 255, 0.44) !important;
    stroke: #fff !important;
    filter: drop-shadow(0 6px 16px rgba(22, 32, 35, 0.28));
}

.estate360-catalogue__viewer .irep-project-360-viewer {
    width: 100% !important;
    height: clamp(620px, 72vw, 860px) !important;
    min-height: 620px;
    background: var(--estate360-riva-ivory);
}

.estate360-catalogue__viewer .irep-project-360-viewer__canvas,
.estate360-catalogue__viewer .irep-project-360-viewer__content,
.estate360-catalogue__viewer canvas {
    background: var(--estate360-riva-ivory);
}

.estate360-catalogue .estate360-catalogue__overview-button {
    position: absolute;
    z-index: 70;
    top: 18px;
    left: 18px;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: rgba(247, 245, 241, 0.92);
    color: var(--estate360-riva-deep);
    font-family: var(--estate360-body-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(51, 52, 57, 0.13);
    backdrop-filter: blur(12px);
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.estate360-catalogue .estate360-catalogue__overview-button:hover {
    background: var(--estate360-riva-deep);
    color: #fff;
    transform: translateY(-1px);
}

.estate360-catalogue .estate360-catalogue__overview-button:focus-visible,
.estate360-table-action-button:focus-visible {
    outline: 2px solid var(--estate360-riva-blue);
    outline-offset: 3px;
}

.estate360-catalogue .estate360-catalogue__overview-button[hidden],
.estate360-catalogue__context[hidden] {
    display: none !important;
}

.estate360-catalogue__table {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4.5vw, 64px);
    border: 1px solid var(--estate360-table-border);
    border-radius: var(--estate360-table-radius);
    background: var(--estate360-table-bg);
    box-shadow: 0 16px 46px rgba(51, 52, 57, 0.07);
}

.estate360-catalogue__context {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid rgba(65, 83, 88, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--estate360-riva-deep);
}

.estate360-catalogue__context-kicker,
.estate360-catalogue__context-label {
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.estate360-catalogue__context-kicker {
    background: var(--estate360-riva-deep);
    color: #fff;
}

.estate360-catalogue__context-label {
    color: var(--estate360-riva-deep);
}

.estate360-table-theme[id^="irep-shortcode-flats-"] .irep-shortcode-wrapper,
.estate360-catalogue__table [id^="irep-shortcode-flats-"] .irep-shortcode-wrapper,
.estate360-catalogue__table > .estate360-table-theme,
.estate360-catalogue__table > [id^="irep-shortcode-flats-"] {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.estate360-table-theme .irep-flats-list,
.estate360-table-theme .irep-flats-list__container {
    color: var(--estate360-table-text);
    font-family: var(--estate360-body-font) !important;
}

.estate360-table-theme .irep-flats-top {
    margin: 0 0 clamp(24px, 3vw, 38px) !important;
}

.estate360-table-theme .irep-flats-list__header {
    margin-bottom: 24px !important;
}

.estate360-table-theme .irep-flats-list__title {
    margin: 0 !important;
    color: var(--estate360-riva-ink) !important;
    font-family: var(--estate360-heading-font) !important;
    font-size: clamp(34px, 4vw, 54px) !important;
    font-weight: 300 !important;
    letter-spacing: -0.035em;
    line-height: 1 !important;
    text-transform: none !important;
}

.estate360-table-theme .irep-flats-list-filters {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    width: 100%;
    margin: 0 !important;
    padding: clamp(20px, 2.6vw, 32px) !important;
    gap: clamp(18px, 2.2vw, 34px) !important;
    border: 1px solid rgba(65, 83, 88, 0.16) !important;
    border-radius: calc(var(--estate360-table-radius) - 8px) !important;
    background: #fff !important;
}

.estate360-table-theme .irep-range,
.estate360-table-theme .irep-flats-list-filters-select,
.estate360-table-theme .irep-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.estate360-table-theme .irep-range__header,
.estate360-table-theme .irep-select label,
.estate360-table-theme .irep-flats-list-filters .label {
    margin-bottom: 10px !important;
    color: var(--estate360-riva-blue) !important;
    font-family: "Red Hat Display", var(--estate360-body-font) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase !important;
}

.estate360-table-theme .irep-range__values-inner {
    padding: 0 !important;
    background: transparent !important;
    color: var(--estate360-riva-ink) !important;
}

.estate360-table-theme .irep-range__values-inner span {
    color: var(--estate360-riva-ink) !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums;
}

.estate360-table-theme .irep-select__trigger {
    min-height: 48px;
    border: 1px solid var(--estate360-table-border) !important;
    border-radius: 10px !important;
    background: var(--estate360-riva-paper) !important;
    color: var(--estate360-riva-ink) !important;
    box-shadow: none !important;
}

.estate360-table-theme .irep-select__trigger:hover {
    border-color: var(--estate360-riva-gold) !important;
}

.estate360-table-theme .irep-range input[type="range"] {
    accent-color: var(--estate360-riva-gold);
}

.estate360-table-theme .irep-range__fill:not(.ire-bg-gray-200) {
    background: var(--estate360-riva-gold) !important;
}

.estate360-table-theme .irep-range__thumb,
.estate360-table-theme .irep-range button {
    border-color: rgba(65, 83, 88, 0.18) !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(51, 52, 57, 0.12) !important;
}

.estate360-table-theme .irep-table-wrapper {
    overflow: hidden !important;
    border: 1px solid var(--estate360-table-border);
    border-radius: calc(var(--estate360-table-radius) - 8px);
    background: #fff;
}

.estate360-table-theme .irep-flats-table table,
.estate360-table-theme .irep-flats-list__table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
}

.estate360-table-theme .irep-flats-table thead tr,
.estate360-table-theme .irep-flats-list__table-thead tr {
    background: var(--estate360-table-header-bg) !important;
}

.estate360-table-theme .irep-flats-table thead th,
.estate360-table-theme .irep-flats-list__table-thead th {
    height: 58px;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: var(--estate360-table-header-bg) !important;
    color: #fff !important;
    font-family: "Red Hat Display", var(--estate360-body-font) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase !important;
}

.estate360-table-theme .irep-flats-table thead th:hover,
.estate360-table-theme .irep-flats-list__table-thead th:hover,
.estate360-table-theme .irep-flats-list__table-heading--active {
    background: var(--estate360-riva-blue) !important;
    color: #fff !important;
}

.estate360-table-theme .irep-flats-table tbody tr,
.estate360-table-theme .irep-flats-list__table tbody tr {
    background: #fff !important;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.estate360-table-theme .irep-flats-table tbody tr:hover,
.estate360-table-theme .irep-flats-list__table tbody tr:hover {
    background: var(--estate360-riva-paper) !important;
    box-shadow: inset 4px 0 0 var(--estate360-riva-gold);
}

.estate360-table-theme .irep-flats-table td,
.estate360-table-theme .irep-flats-list__table td {
    min-height: 66px;
    padding: 17px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(65, 83, 88, 0.12) !important;
    background: transparent !important;
    color: var(--estate360-table-text) !important;
    font-size: 15px !important;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.estate360-table-theme .irep-flats-list__table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.estate360-table-theme .irep-table-price {
    color: var(--estate360-riva-deep) !important;
    font-weight: 500;
    text-transform: none !important;
}

.estate360-table-theme .irep-table-action__buttons {
    justify-content: flex-start !important;
}

.estate360-table-theme .estate360-table-action-button,
.estate360-table-theme .irep-table-action__contact,
.estate360-table-theme .irep-table-action__download {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid rgba(65, 83, 88, 0.26) !important;
    border-radius: 50%;
    background: transparent !important;
    color: var(--estate360-riva-deep) !important;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.estate360-catalogue .estate360-table-action-button {
    width: auto;
    min-width: 42px;
    gap: 8px;
    padding: 0 14px !important;
    border-radius: 999px;
    white-space: nowrap;
}

.estate360-table-theme .estate360-table-action-label {
    font-family: "Red Hat Display", var(--estate360-body-font) !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.estate360-catalogue .irep-flats-table th:last-child,
.estate360-catalogue .irep-flats-table td:last-child,
.estate360-catalogue .irep-flats-list__table th:last-child,
.estate360-catalogue .irep-flats-list__table td:last-child {
    width: 230px;
}

.estate360-table-theme .estate360-table-action-button:hover,
.estate360-table-theme .irep-table-action__contact:hover,
.estate360-table-theme .irep-table-action__download:hover {
    border-color: var(--estate360-riva-deep) !important;
    background: var(--estate360-riva-deep) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.estate360-table-theme .estate360-table-action-button svg,
.estate360-table-theme .irep-table-action__contact svg,
.estate360-table-theme .irep-table-action__download svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

.estate360-table-theme .estate360-table-action-button path,
.estate360-table-theme .irep-table-action__contact path,
.estate360-table-theme .irep-table-action__download path {
    stroke: currentColor !important;
}

.estate360-table-theme .irep-flats-list__pagination {
    margin-top: 30px !important;
}

.estate360-table-theme .Pagination {
    align-items: center;
    gap: 4px;
}

.estate360-table-theme .Pagination button,
.estate360-table-theme .Pagination .Control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
    color: var(--estate360-riva-deep) !important;
}

.estate360-table-theme .Pagination .Page-active {
    border-color: var(--estate360-riva-gold) !important;
    background: var(--estate360-riva-gold) !important;
    color: #fff !important;
}

.estate360-table-theme .irep-flats-list__empty {
    margin: 42px 0 !important;
    color: var(--estate360-riva-blue) !important;
    font-family: var(--estate360-heading-font) !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    text-transform: none !important;
}

/* Flat details and forms are teleported outside the shortcode wrapper. */
.irep-modal,
.irep-modal .irep-flat-preview,
.irep-modal .irep-reservation-form,
.irep-modal .irep-callback-form,
.irep-tooltip,
[class^="irep-tooltip"],
[class*=" irep-tooltip"] {
    color: var(--estate360-riva-ink) !important;
    font-family: var(--estate360-body-font) !important;
}

.irep-modal .irep-flat-kv__value,
.irep-modal .irep-flat-preview__type-title,
.irep-modal .irep-flat-modal-price-container,
.irep-modal .irep-flat-modal-price-container * {
    font-family: var(--estate360-heading-font) !important;
    font-weight: 300 !important;
}

.irep-modal .irep-flat-kv__key,
.irep-modal button,
.irep-modal input,
.irep-modal textarea,
.irep-modal select,
.irep-modal label,
.irep-modal .irep-button__text,
.irep-tooltip *,
[class^="irep-tooltip"] *,
[class*=" irep-tooltip"] * {
    font-family: var(--estate360-body-font) !important;
}

.irep-modal .irep-preview-modal__container {
    color: var(--estate360-riva-ink) !important;
}

@media (max-width: 1023px) {
    .estate360-table-theme .irep-flats-list-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estate360-table-theme .irep-table-wrapper {
        overflow-x: auto !important;
        scrollbar-width: thin;
    }

    .estate360-table-theme .irep-flats-list__table {
        min-width: 780px !important;
    }

    .estate360-catalogue__viewer .irep-project-360-viewer {
        height: clamp(560px, 82vw, 760px) !important;
        min-height: 560px;
    }
}

@media (max-width: 767px) {
    .estate360-catalogue {
        width: calc(100vw - 20px);
        gap: 26px;
    }

    .estate360-catalogue__viewer,
    .estate360-catalogue__table {
        border-radius: 18px;
    }

    .estate360-catalogue__table {
        padding: 22px 16px;
    }

    .estate360-catalogue__viewer .irep-preview-layout__header {
        inset: 10px 10px auto 10px;
    }

    .estate360-catalogue .estate360-catalogue__overview-button {
        top: 10px;
        left: 10px;
        min-height: 38px;
        padding: 9px 13px;
        font-size: 10px;
    }

    .estate360-catalogue__viewer .irep-block-preview__title {
        max-width: 48%;
        overflow: hidden;
        padding: 9px 12px !important;
        font-size: 10px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .estate360-catalogue__viewer .irep-block-preview__canvas img {
        min-height: 440px;
    }

    .estate360-catalogue__viewer .irep-project-preview__canvas img {
        min-height: 0;
    }

    .estate360-catalogue__viewer .irep-project-360-viewer {
        height: min(660px, 78svh) !important;
        min-height: 480px;
    }

    .estate360-table-theme .irep-flats-list__title {
        font-size: clamp(31px, 10vw, 42px) !important;
    }

    .estate360-table-theme .irep-flats-list-filters {
        grid-template-columns: 1fr;
        padding: 18px !important;
        gap: 20px !important;
        border-radius: 14px !important;
    }

    .estate360-table-theme .irep-table-wrapper {
        border-radius: 14px;
    }

    .estate360-table-theme .irep-flats-list__table {
        min-width: 720px !important;
    }

    .estate360-catalogue__context {
        margin-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estate360-catalogue .estate360-catalogue__overview-button,
    .estate360-table-theme .estate360-table-action-button,
    .estate360-table-theme .irep-flats-table tbody tr,
    .estate360-table-theme .irep-flats-list__table tbody tr {
        transition: none !important;
    }
}

/* Compact catalogue with page navigation and inline apartment details. */
.estate360-catalogue__table {
    padding: clamp(18px, 2vw, 28px);
}

.estate360-catalogue .irep-flats-list__header,
.estate360-catalogue__viewer .irep-navigation-arrows,
.estate360-catalogue__viewer .irep-project-360-viewer__frame-indicator {
    display: none !important;
}

.estate360-catalogue__viewer .irep-project-preview__canvas img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

.estate360-catalogue__viewer .irep-project-preview__canvas,
.estate360-catalogue__viewer .irep-project-preview__canvas > .ire-relative {
    height: auto !important;
    min-height: 0 !important;
}

.estate360-catalogue__viewer .estate360-project-overview [class^="irep-tooltip"],
.estate360-catalogue__viewer .estate360-project-overview [class*=" irep-tooltip"] {
    display: none !important;
}

.estate360-catalogue__viewer .irep-block-preview__canvas img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

.estate360-building-labels {
    position: absolute;
    z-index: 12;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Component scope keeps theme button resets from overriding the appearance. */
.estate360-building-labels .estate360-building-label {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: rgba(247, 245, 241, 0.92);
    color: var(--estate360-riva-deep);
    font-family: var(--estate360-body-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(22, 32, 35, 0.18);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: pointer;
}

.estate360-building-labels .estate360-building-label:focus-visible {
    outline: 3px solid #3275ae;
    outline-offset: 3px;
}

/* Match the compact hover card on laptops. Keep dimensions independent of
   the host theme's rem scale and preserve the existing large-screen labels. */
@media (max-width: 1599px), (max-height: 850px) {
    .estate360-building-labels .estate360-building-label {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: 0.05em;
        box-shadow: 0 4px 12px rgba(22, 32, 35, 0.16);
    }
}

/* Admin-only independent building-label positioning, outside the SVG editor. */
.estate360-label-editor__toolbar {
    padding: 12px 16px;
    border: 1px solid #d8e0e8;
    background: #f7f9fb;
    color: #334155;
    font: 13px/1.5 Arial, sans-serif;
}
.estate360-label-editor__toolbar button {
    padding: 8px 12px;
    border: 1px solid #b9c6d4;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font: inherit;
}
.estate360-label-editor__toolbar button[aria-pressed="true"] {background:#415358;color:#fff}
.estate360-label-editor__toolbar button:disabled {opacity:.5;cursor:default}
.estate360-label-editor__toolbar p {margin:6px 0 0;font:inherit}
.estate360-label-editor__controls {display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:10px}
.estate360-label-editor__controls label {display:grid;gap:3px}
.estate360-label-editor__controls input,.estate360-label-editor__controls select {
    width:120px;min-height:34px;border:1px solid #b9c6d4;border-radius:4px;padding:5px 8px;background:#fff;color:#334155;font:inherit;
}
.estate360-label-editor__controls select {width:180px}
.estate360-label-editor__message {color:#31587c}
.estate360-label-editor__layer {position:absolute;inset:0;z-index:110;pointer-events:none;overflow:hidden}
.estate360-label-editor__layer.is-editing {pointer-events:auto;cursor:crosshair;touch-action:none}
.estate360-label-editor__pill {
    position:absolute;transform:translate(-50%,-50%);padding:9px 13px;border:1px solid #d3dbe0;border-radius:999px;
    background:#f7f5f1f2;color:#415358;box-shadow:0 5px 18px #0002;white-space:nowrap;
    font:600 12px/1.2 Arial,sans-serif;pointer-events:none;
}
.is-editing .estate360-label-editor__pill {pointer-events:auto;cursor:grab;touch-action:none}
.is-editing .estate360-label-editor__pill:active {cursor:grabbing}
.is-editing .estate360-label-editor__pill.is-selected {background:#415358;color:#fff}
.estate360-label-editor button:focus-visible,.estate360-label-editor__pill:focus-visible {outline:3px solid #3275ae;outline-offset:3px}

.estate360-table-theme .estate360-catalogue-filters {
    grid-template-columns: 1fr 1.15fr 1fr 1fr minmax(150px, 0.9fr) !important;
    align-items: end !important;
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 14px !important;
}

.estate360-catalogue .irep-flats-top {
    margin-bottom: 18px !important;
}

.estate360-catalogue-filter {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.estate360-catalogue-filter > span {
    color: var(--estate360-riva-blue);
    font-family: var(--estate360-body-font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.estate360-catalogue-filter select,
.estate360-catalogue-filter input {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--estate360-table-border);
    border-radius: 9px;
    outline: 0;
    background: var(--estate360-riva-paper);
    color: var(--estate360-riva-ink);
    font-family: var(--estate360-body-font);
    font-size: 14px;
    box-shadow: none;
}

.estate360-catalogue-filter select:focus,
.estate360-catalogue-filter input:focus {
    border-color: var(--estate360-riva-blue);
    box-shadow: 0 0 0 3px rgba(107, 140, 148, 0.15);
}

.estate360-catalogue-filter select:disabled {
    cursor: not-allowed;
    color: #687579;
    background: #eeece7;
    opacity: 1;
}

.estate360-catalogue-filter .estate360-catalogue-filter__hint {
    display: block;
    margin: 0;
    color: var(--estate360-riva-deep);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

/* Keep the controls aligned when the floor filter includes its help text. */
.estate360-table-theme .estate360-catalogue-filters:has(.estate360-catalogue-filter__hint) {
    align-items: start !important;
}

@media (min-width: 768px) {
    .estate360-catalogue-filters:has(.estate360-catalogue-filter__hint) .estate360-catalogue-filter__available {
        margin-top: 16px;
    }
}

.estate360-catalogue-filter__price {
    position: relative;
}

.estate360-catalogue-filter__price input {
    padding-right: 52px;
}

.estate360-catalogue-filter__price small {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--estate360-riva-blue);
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

.estate360-catalogue-filters .estate360-catalogue-filter__available {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--estate360-riva-ink);
    font-family: var(--estate360-body-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.estate360-catalogue-filters .estate360-catalogue-filter__available:hover,
.estate360-catalogue-filters .estate360-catalogue-filter__available.is-active {
    background: transparent;
    color: var(--estate360-riva-ink);
}

.estate360-catalogue-filters .estate360-catalogue-filter__available:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.estate360-availability-switch {
    display: inline-flex;
    align-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    padding: 3px;
    border-radius: 999px;
    background: #767c84;
    transition: background-color 180ms ease;
}

.estate360-availability-switch__thumb {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform 180ms ease;
}

.estate360-catalogue-filters .estate360-catalogue-filter__available[aria-checked="true"] .estate360-availability-switch {
    background: #2563eb;
}

.estate360-catalogue-filters .estate360-catalogue-filter__available[aria-checked="true"] .estate360-availability-switch__thumb {
    transform: translateX(18px);
}

@media (prefers-reduced-motion: reduce) {
    .estate360-availability-switch,
    .estate360-availability-switch__thumb { transition: none; }
}

.estate360-table-theme .estate360-catalogue-table__scroll {
    max-height: none !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--estate360-riva-gold) transparent;
    -webkit-overflow-scrolling: touch;
}

.estate360-catalogue-pagination__count {
    margin: 0;
    color: var(--estate360-riva-deep);
    font: 13px/1.4 var(--estate360-body-font);
}

.estate360-catalogue-table thead {
    position: sticky;
    z-index: 6;
    top: 0;
}

.estate360-catalogue .estate360-catalogue-table thead th {
    height: 44px;
    padding: 10px 12px !important;
    font-size: 10px !important;
}

.estate360-catalogue .estate360-catalogue-table tbody td {
    min-height: 46px;
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.estate360-catalogue .estate360-catalogue-table th:last-child,
.estate360-catalogue .estate360-catalogue-table td:last-child {
    width: 100px;
}

.estate360-catalogue-table thead th button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}

.estate360-catalogue-table thead th button svg {
    width: 12px;
    height: 12px;
    color: #fff;
    transition: transform 160ms ease;
}

.estate360-catalogue-table__row {
    cursor: pointer;
}

.estate360-catalogue .estate360-table-action-button {
    min-width: 34px;
    height: 32px;
    padding: 0 11px !important;
}

.estate360-catalogue-table__row:focus-visible {
    outline: 2px solid var(--estate360-riva-blue);
    outline-offset: -2px;
}

.estate360-catalogue-table__row.is-open {
    background: var(--estate360-riva-paper) !important;
    box-shadow: inset 4px 0 0 var(--estate360-riva-gold);
}

.estate360-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.estate360-status--available {
    background: #e8f6ef;
    color: #3d8e67;
}

.estate360-status--reserved {
    background: #fff3d9;
    color: #9a7124;
}

.estate360-status--sold {
    background: #f5e5e3;
    color: #9c554f;
}

.estate360-catalogue-table__detail-row,
.estate360-catalogue-table__detail-row:hover {
    background: #fff !important;
    box-shadow: none !important;
}

.estate360-catalogue-table__detail-row > td {
    padding: 0 !important;
    border-bottom: 1px solid var(--estate360-table-border) !important;
}

.estate360-inline-detail,
.estate360-inline-form,
.estate360-inline-detail__form-panel {
    animation: estate360-inline-reveal 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.estate360-catalogue__table { scroll-margin-top: 96px; }

/* Ordinary hover remains unchanged outside the table's focused selection. */
.irep-block-preview__svg-overlay.canvas g[polygon-type="flat"]:hover path {
    fill: var(--path-hover-color, rgba(255, 255, 255, .4)) !important;
    stroke: var(--stroke-color) !important;
    animation: none !important;
    opacity: 1 !important;
}

/* Focus hides status colours, but keeps neighbouring lots discoverable. */
.canvas:has(g[polygon-type="flat"].ire-flat-focus) g[polygon-type]:not(.ire-flat-focus) {
    opacity: 0 !important;
}

.canvas:has(g[polygon-type="flat"].ire-flat-focus) g[polygon-type]:not([polygon-type="flat"]),
.canvas:has(g[polygon-type="flat"].ire-flat-focus) g[polygon-type]:not([polygon-type="flat"]) path {
    pointer-events: none !important;
}

.canvas:has(g[polygon-type="flat"].ire-flat-focus) g[polygon-type="flat"]:not(.ire-flat-focus) {
    pointer-events: auto;
}

.canvas:has(g[polygon-type="flat"].ire-flat-focus) g[polygon-type="flat"]:not(.ire-flat-focus) path {
    pointer-events: inherit !important;
    animation: none !important;
    fill: rgba(255, 255, 255, .22) !important;
    stroke: #fff !important;
}

.canvas:has(g[polygon-type="flat"].ire-flat-focus) g[polygon-type="flat"]:not(.ire-flat-focus):hover {
    opacity: 1 !important;
}

.canvas svg g[polygon-type="flat"].ire-flat-focus {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.canvas.path-color svg g[polygon-type="flat"].ire-flat-focus path {
    fill: rgba(255, 255, 255, 0.65) !important;
    stroke: #fff !important;
    stroke-width: 2.5px !important;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 2px rgba(22, 32, 35, 0.65));
    opacity: 1 !important;
    fill-opacity: 0.85;
    stroke-opacity: 1;
    animation: estate360-selected-flat-pulse 2.6s ease-in-out infinite !important;
}

@keyframes estate360-selected-flat-pulse {
    0%, 100% { fill-opacity: 0.28; stroke-opacity: 0.65; }
    50% { fill-opacity: 1; stroke-opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .canvas.path-color svg g[polygon-type="flat"].ire-flat-focus path {
        animation: none !important;
    }
}

/* Fixed pixels prevent the host site's large rem scale from inflating the
   laptop hover card. The large-desktop presentation remains unchanged. */
@media (max-width: 1599px), (max-height: 850px) {
    .irep-preview-layout:not(.estate360-project-overview) .irep-tooltip-1:has(.irep-tooltip-1__flat) {
        width: min(230px, calc(100% - 32px)) !important;
        min-width: 0 !important;
        padding: 14px !important;
        right: 16px !important;
        bottom: 16px !important;
        border-radius: 14px !important;
    }
    .irep-tooltip-1 .irep-tooltip-1__flat { gap: 10px !important; }
    .irep-tooltip-1 .irep-tooltip-1__flat-number,
    .irep-tooltip-1 .irep-tooltip-1__flat-price-value { font-size: 20px !important; line-height: 1.25 !important; }
    .irep-tooltip-1 .irep-tooltip-1__flat-aptitle,
    .irep-tooltip-1 .irep-tooltip-1__flat-price { font-size: 11px !important; line-height: 1.4 !important; margin-top: 4px !important; }
    .irep-tooltip-1 .irep-tooltip-1__flat-details { width: 100%; min-width: 0 !important; padding: 10px !important; }
    .irep-tooltip-1 .irep-tooltip-1__flat-price-wrapper { padding: 4px 0 !important; }
    .irep-tooltip-1 .irep-tooltip-1__flat-area-frame { border: 0; padding: 0 !important; }
    .irep-tooltip-1 .irep-tooltip-1__flat-area { font-size: 14px !important; line-height: 1.4 !important; transform: none !important; }
}

.estate360-inline-detail {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
    min-height: 0;
    padding: 18px;
    gap: 16px 24px;
    background: var(--estate360-riva-paper);
    color: var(--estate360-riva-ink);
    font-family: var(--estate360-body-font);
    line-height: 1.45;
}

.estate360-inline-detail__media {
    position: relative;
    align-self: start;
    height: 260px;
    min-height: 0;
    overflow: hidden;
    background: var(--estate360-riva-ivory);
}

/* Elementor's later `.elementor img { height: auto }` must not enlarge the
   image beyond this fixed frame. Include padding inside the fitted image. */
.estate360-inline-detail .estate360-inline-detail__media > img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.estate360-inline-detail .estate360-inline-detail__media > img.is-contain {
    padding: 14px;
    object-fit: contain;
    background: var(--estate360-riva-ivory);
}

.estate360-inline-detail__media-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(247, 245, 241, 0.9);
    color: var(--estate360-riva-deep);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.estate360-inline-detail__media-empty {
    display: grid;
    height: 260px;
    min-height: 0;
    place-items: center;
    color: var(--estate360-riva-blue);
    font-family: var(--estate360-heading-font);
    font-size: 26px;
}

.estate360-inline-detail__gallery-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(65, 83, 88, 0.86);
    color: #fff;
    backdrop-filter: blur(10px);
}

.estate360-inline-detail__media-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.estate360-inline-detail__media-switcher::-webkit-scrollbar {
    display: none;
}

.estate360-inline-detail__media-switcher button {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--estate360-riva-deep);
    border-radius: 999px;
    background: rgba(247, 245, 241, 0.9);
    color: var(--estate360-riva-deep);
    font-family: var(--estate360-body-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.estate360-inline-detail__media-switcher button:hover,
.estate360-inline-detail__media-switcher button:focus-visible,
.estate360-inline-detail__media-switcher button.is-active {
    border-color: var(--estate360-riva-deep);
    background: var(--estate360-riva-deep);
    color: #fff;
    outline: none;
}

.estate360-inline-detail__gallery-controls button {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--estate360-riva-deep);
    cursor: pointer;
}

.estate360-inline-detail__gallery-controls button svg {
    width: 18px;
}

.estate360-inline-detail__gallery-controls span {
    min-width: 42px;
    font-size: 11px;
    text-align: center;
}

.estate360-inline-detail__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px 0;
}

.estate360-inline-detail__heading p,
.estate360-inline-form__eyebrow {
    display: block;
    margin: 0 0 10px;
    color: var(--estate360-riva-blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.5;
}

.estate360-inline-detail__heading h3,
.estate360-inline-form__heading h3 {
    margin: 0;
    color: var(--estate360-riva-ink);
    font-family: var(--estate360-heading-font);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.22;
}

.estate360-inline-detail__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    gap: 24px 18px;
}

.estate360-inline-detail__metric {
    display: grid;
    min-width: 0;
    gap: 6px;
    align-content: start;
}

.estate360-inline-detail__metric span {
    color: var(--estate360-riva-blue);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estate360-inline-detail__metric strong {
    color: var(--estate360-riva-ink);
    font-family: var(--estate360-body-font);
    font-size: 16px;
    font-weight: 500;
}

.estate360-inline-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    gap: 8px;
}

.estate360-inline-detail__footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
    align-items: start;
    gap: 16px 24px;
}

:is(.estate360-inline-detail, .estate360-inline-form) .estate360-inline-detail__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--estate360-riva-deep);
    border-radius: 999px;
    background: transparent;
    color: var(--estate360-riva-deep);
    font-family: var(--estate360-body-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

:is(.estate360-inline-detail, .estate360-inline-form) .estate360-inline-detail__button:hover,
:is(.estate360-inline-detail, .estate360-inline-form) .estate360-inline-detail__button--primary {
    background: var(--estate360-riva-deep);
    color: #fff;
}

:is(.estate360-inline-detail, .estate360-inline-form) .estate360-inline-detail__button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.estate360-inline-form {
    padding: clamp(24px, 3vw, 42px);
    background: var(--estate360-riva-paper);
}

.estate360-inline-detail__form-panel { padding: 0; }

.estate360-inline-detail__form-panel .irep-reservation-form,
.estate360-inline-detail__form-panel .irep-callback-form {
    max-width: 760px;
    margin: 0 auto;
    color: var(--estate360-riva-ink) !important;
    font-family: var(--estate360-body-font) !important;
}

.estate360-inline-form {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding: 24px 32px;
    max-height: none !important;
    overflow: visible !important;
    font-size: 14px;
    line-height: 1.45;
}

.estate360-inline-form__heading h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.estate360-inline-form__heading p { margin: 0 0 5px; }

.estate360-inline-form__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.estate360-inline-form__heading > div { min-width: 0; }

.estate360-inline-form .estate360-inline-form__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--estate360-riva-deep);
    border-radius: 999px;
    background: transparent;
    color: var(--estate360-riva-deep);
    font-family: var(--estate360-body-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.estate360-inline-form .estate360-inline-form__back:hover { background: var(--estate360-riva-deep); color: #fff; }
.estate360-inline-form .estate360-inline-form__back:focus-visible { outline: 2px solid var(--estate360-riva-deep); outline-offset: 3px; }
.estate360-inline-form .estate360-inline-form__back:disabled { opacity: .55; cursor: wait; }

.estate360-inline-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.estate360-inline-form__field {
    display: grid;
    gap: 6px;
}

.estate360-inline-form__field span {
    color: var(--estate360-riva-blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estate360-inline-form__field input,
.estate360-inline-form__field textarea {
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--estate360-table-border);
    border-radius: 8px;
    background: #fff;
    color: var(--estate360-riva-ink);
    font: inherit;
}

.estate360-inline-form__field input { min-width: 0; width: 100%; }
.estate360-inline-form__field textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; width: 100%; }
.estate360-lead-fields { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; max-height: none; overflow: visible; }
.estate360-lead-fields:disabled { opacity: .7; }
.estate360-lead-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.estate360-inline-form__consent input { flex-shrink: 0; }
.estate360-inline-form__consent a { text-decoration: underline; color: inherit; }

.estate360-inline-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 760px;
    color: var(--estate360-riva-ink);
    font-size: 12px;
}

.estate360-inline-form__consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--estate360-riva-deep);
}

.estate360-inline-form__message {
    margin: 0;
    font-size: 13px;
}

.estate360-inline-form__message--error {
    color: #9c554f;
}

.estate360-inline-form__message--success {
    color: #245c40;
    background: #e9f3ed;
    border: 1px solid #b8d6c3;
    border-radius: 10px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.estate360-inline-form.estate360-inline-form--complete {
    grid-template-rows: auto 1fr;
}

.estate360-inline-form__confirmation {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 220px;
    padding-block: 24px;
}

.estate360-inline-form__confirmation .estate360-inline-form__message--success {
    width: 100%;
    padding: clamp(24px, 4vw, 40px);
    text-align: center;
}

/* The same compact detail is used by the table and the teleported popup. */
.estate360-inline-detail,
.estate360-inline-detail *,
.estate360-inline-form,
.estate360-inline-form * {
    box-sizing: border-box;
}

.estate360-inline-detail__price-metric {
    grid-column: auto;
}

.estate360-inline-detail .estate360-inline-detail__price {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #202124;
    font-family: var(--estate360-body-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

:is(.estate360-inline-detail, .estate360-inline-form) .estate360-inline-detail__button,
.estate360-inline-detail__media-switcher button,
.estate360-inline-form {
    font-family: var(--estate360-body-font);
}

:is(.estate360-inline-detail, .estate360-inline-form) .estate360-inline-detail__button:focus-visible,
.estate360-inline-detail__gallery-controls button:focus-visible,
.estate360-inline-detail__media-switcher button:focus-visible {
    outline: 2px solid var(--estate360-riva-deep);
    outline-offset: 3px;
}

.irep-modal:has(.estate360-detail--modal) {
    padding: 20px !important;
    overflow: hidden !important;
}

.irep-modal .irep-preview-modal__container:has(.estate360-detail--modal) {
    width: min(1120px, 100%) !important;
    min-width: 0 !important;
    max-width: 1120px !important;
}

.irep-preview-modal__content:has(.estate360-detail--modal) {
    max-height: calc(100dvh - 40px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.irep-modal .irep-preview-modal__container:has(.estate360-inline-form) {
    width: min(840px, 100%) !important;
}

.estate360-detail--modal {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.estate360-detail--modal .estate360-inline-detail__content {
    padding-top: 16px;
}

.estate360-detail--modal.estate360-inline-detail { padding-top: 48px; }
.estate360-detail--modal .estate360-inline-form { padding-top: 48px; }

@media (max-width: 767px) {
    .estate360-detail--modal .estate360-inline-detail__content { padding: 0; }
    .estate360-inline-detail__price-metric { grid-column: auto; }
    .estate360-inline-form { padding: 20px 16px; }
    .estate360-inline-form__heading { gap: 12px; }
    .estate360-inline-form__heading h3 { font-size: 18px; }
    .estate360-inline-form .estate360-inline-form__back { padding: 0 12px; font-size: 12px; }
}

@keyframes estate360-inline-reveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .estate360-table-theme .estate360-catalogue-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .estate360-catalogue__viewer .irep-block-preview__canvas img {
        height: auto !important;
    }

    .estate360-catalogue__viewer .irep-project-preview__canvas img {
        height: auto !important;
    }

    .estate360-building-labels .estate360-building-label {
        min-height: 24px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .estate360-table-theme .estate360-catalogue-filters {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }

    .estate360-catalogue-filters .estate360-catalogue-filter__available {
        grid-column: 1 / -1;
    }

    .estate360-catalogue-table table {
        min-width: 1020px !important;
    }

    .estate360-inline-detail,
    .estate360-inline-detail__footer {
        grid-template-columns: 1fr;
    }

    .estate360-inline-detail__content { padding: 0; }
    .estate360-inline-form__heading { flex-direction: column-reverse; gap: 16px; }
    .estate360-inline-form .estate360-inline-form__back { align-self: flex-end; }

    .estate360-catalogue-table__detail-row > td {
        position: relative;
    }

    .estate360-catalogue-table__detail-row .estate360-inline-detail,
    .estate360-catalogue-table__detail-row .estate360-inline-form,
    .estate360-catalogue-table__detail-row .estate360-inline-detail__form-panel {
        position: sticky;
        left: 0;
        width: calc(100vw - 60px);
        max-width: calc(100vw - 60px);
    }

    .estate360-inline-detail__media,
    .estate360-inline-detail__media-empty {
        min-height: 220px;
        height: 220px;
    }

    .estate360-inline-detail__gallery-controls {
        top: auto;
        right: 16px;
        bottom: 16px;
    }

    .estate360-inline-detail__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estate360-inline-form__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estate360-inline-detail,
    .estate360-inline-form,
    .estate360-inline-detail__form-panel {
        animation: none;
    }
}
/* Administration identity; isolated from property data and front-end layout. */
.estate360-brand-info{display:flex;align-items:flex-start;gap:20px;padding:24px;max-width:720px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#243438}
.estate360-brand-info__badge{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:52px;height:52px;border-radius:10px;background:#405459;color:#fff;font-size:17px;font-weight:700}
.estate360-brand-info h2{margin:0 0 8px;font-size:20px;font-weight:600;line-height:1.4;color:inherit}
.estate360-brand-info p{margin:0;font-size:14px;line-height:1.6;color:#52616a}
.estate360-brand-info .estate360-brand-info__version{margin-top:12px;font-size:12px;color:#687780}
@media(max-width:480px){.estate360-brand-info{padding:18px;gap:14px}.estate360-brand-info h2{font-size:18px}}
.estate360-language-bar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 12px;
    font-family: var(--estate360-body-font, Arial, sans-serif);
}
.estate360-catalogue > .estate360-language-bar { margin-bottom: calc(12px - clamp(22px, 3vw, 40px)); }
.estate360-language-switch {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid #d8d1c7;
    border-radius: 999px;
    background: #ffffffb8;
}
.estate360-language-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 38px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #415358;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .05em;
    cursor: pointer;
}
.estate360-language-switch button[aria-pressed="true"] { background: #415358; color: #fff; }
.estate360-language-switch button:focus-visible { outline: 2px solid #415358; outline-offset: 3px; }
.estate360-language-switch button:hover { box-shadow: inset 0 0 0 1px #a99884; }
@media (max-width: 767px) { .estate360-language-switch button { min-height: 44px; } }
