.mmd-estate {
    --ak-status-available: #16823a;
    --ak-status-reserved: #f59e0b;
    --ak-status-sold: #d93025;
    --ak-status-preparing: #737373;
    --ak-status-unknown: #6b7280;
    max-width: 100%;
    overflow-x: clip;
    position: relative;
}

.mmd-scroll-hint {
    color: #5f6368;
    display: none;
    font-size: 14px;
    margin: 0 0 8px;
}

.mmd-table-scroll-hint {
    color: #5f6368;
    display: none;
    font-size: 14px;
    margin: 16px 0 8px;
}

.mmd-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 22px auto;
    text-align: center;
}

.mmd-legend-section {
    padding: 0 12px;
}

.mmd-legend span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.mmd-legend i {
    display: inline-block;
    height: 14px;
    width: 28px;
}

.mmd-legend .is-available {
    background: var(--ak-status-available);
}

.mmd-legend .is-reserved {
    background: var(--ak-status-reserved);
}

.mmd-legend .is-sold {
    background: var(--ak-status-sold);
}

.mmd-legend .is-preparing {
    background: var(--ak-status-preparing);
}

.mmd-legend .is-unknown {
    background: var(--ak-status-unknown);
}

.mmd-map-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.mmd-front-map {
    position: relative;
    width: 100%;
    max-width: var(--mmd-map-max-width, 1100px);
    margin: 0 auto;
}

.mmd-estate[style*="--mmd-map-align:left"] .mmd-front-map {
    margin-left: 0;
    margin-right: auto;
}

.mmd-front-image {
    display: block;
    width: 100%;
    height: auto;
}

.mmd-front-overlay,
.mmd-label-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mmd-front-overlay {
    z-index: 2;
}

.mmd-label-layer {
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}
.mmd-front-area {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 160ms ease, filter 160ms ease, stroke-width 160ms ease;
}

.mmd-front-area:hover,
.mmd-front-area:focus,
.mmd-front-area.is-selected {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.45));
    opacity: 0.82;
    outline: none;
    stroke-width: 0.75;
}

.mmd-front-area.is-filter-hidden,
.mmd-front-label.is-filter-hidden {
    display: none;
}

.mmd-front-label {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(18px, 1.6vw, 26px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 1);
    white-space: nowrap;
}

.mmd-tooltip {
    background: rgba(20, 24, 28, 0.94);
    color: #ffffff;
    display: grid;
    font-size: 13px;
    gap: 3px;
    line-height: 1.35;
    max-width: 260px;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    z-index: 8;
}

.mmd-lightbox[hidden],
.mmd-tooltip[hidden] {
    display: none;
}

.mmd-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

.mmd-lightbox-backdrop {
    background: rgba(0, 0, 0, 0.72);
    inset: 0;
    position: absolute;
}

.mmd-lightbox-panel {
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    max-height: min(880px, calc(100vh - 48px));
    max-width: min(1120px, calc(100vw - 48px));
    overflow: auto;
    padding: 26px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.mmd-lightbox-close {
    align-items: center;
    background: #1d2327;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
}

.mmd-lightbox-open {
    overflow: hidden;
}

.mmd-lightbox-header {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto;
    padding-right: 58px;
}

.mmd-lightbox-header p {
    color: #646970;
    font-size: clamp(24px, 2.8vw, 30px);
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.mmd-lightbox-header h3 {
    font-size: clamp(48px, 7vw, 64px);
    line-height: 1.05;
    margin: 0 0 18px;
}

.mmd-lightbox-header.is-available p {
    color: var(--ak-status-available);
}

.mmd-lightbox-header.is-reserved p {
    color: var(--ak-status-reserved);
}

.mmd-lightbox-header.is-sold p {
    color: var(--ak-status-sold);
}

.mmd-lightbox-header.is-preparing p {
    color: var(--ak-status-preparing);
}

.mmd-lightbox-header.is-unknown p {
    color: var(--ak-status-unknown);
}

.mmd-lightbox-price {
    color: #1d2327;
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

.mmd-unit-details {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 18px;
}

.mmd-unit-details div {
    background: #f6f7f7;
    border: 1px solid #e4e7eb;
    padding: 12px;
}

.mmd-unit-details dt {
    color: #646970;
    font-size: 12px;
    margin: 0 0 4px;
}

.mmd-unit-details dd {
    color: #1d2327;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.mmd-unit-description {
    color: #2c3338;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
}

.mmd-documents h4 {
    font-size: 22px;
    margin: 0 0 12px;
}

.mmd-documents h5 {
    font-size: 16px;
    margin: 16px 0 8px;
}

.mmd-doc-card {
    border: 1px solid #e4e7eb;
    display: grid;
    gap: 14px;
    grid-template-columns: 220px 1fr;
    margin-bottom: 12px;
    padding: 12px;
}

.mmd-doc-preview {
    align-items: center;
    background: #f6f7f7;
    display: flex;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
}

.mmd-doc-preview img,
.mmd-doc-preview object {
    border: 0;
    display: block;
    height: 180px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.mmd-doc-placeholder {
    color: #646970;
    font-size: 20px;
    font-weight: 700;
}

.mmd-doc-body h4 {
    font-size: 18px;
    margin: 0 0 4px;
}

.mmd-doc-body p {
    color: #646970;
    margin: 0 0 8px;
}

.mmd-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mmd-doc-actions a,
.mmd-unit-cta,
.mmd-table-details {
    background: #1d2327;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    line-height: 1;
    padding: 10px 14px;
    text-decoration: none;
}

.mmd-doc-actions a:hover,
.mmd-doc-actions a:focus,
.mmd-unit-cta:hover,
.mmd-unit-cta:focus,
.mmd-table-details:hover,
.mmd-table-details:focus {
    background: #3c434a;
    color: #ffffff;
}

.mmd-unit-cta {
    margin-top: 8px;
}

.mmd-inquiry-form {
    border-top: 1px solid #e4e7eb;
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
}

.mmd-inquiry-form h4 {
    font-size: 22px;
    margin: 0;
}

.mmd-inquiry-form label {
    display: grid;
    gap: 4px;
}

.mmd-inquiry-form input[type="text"],
.mmd-inquiry-form input[type="email"],
.mmd-inquiry-form input[type="tel"],
.mmd-inquiry-form textarea {
    border: 1px solid #c3c4c7;
    padding: 9px 10px;
    width: 100%;
}

.mmd-inquiry-form button {
    background: #1d2327;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    justify-self: start;
    padding: 11px 16px;
}

.mmd-units-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

.mmd-table-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mmd-units-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.mmd-units-table th,
.mmd-units-table td {
    border-bottom: 1px solid #e4e7eb;
    padding: 10px;
    text-align: left;
}

.mmd-units-table th {
    background: #1d2327;
    color: #ffffff;
    font-weight: 700;
}

.mmd-units-table tbody tr {
    color: #ffffff;
    cursor: pointer;
}

.mmd-units-table tbody tr:hover,
.mmd-units-table tbody tr.is-selected {
    filter: brightness(1.08);
    outline: 2px solid rgba(0, 0, 0, 0.22);
}

.mmd-units-table tbody tr.is-available {
    background: var(--ak-status-available);
}

.mmd-units-table tbody tr.is-reserved {
    background: var(--ak-status-reserved);
}

.mmd-units-table tbody tr.is-sold {
    background: var(--ak-status-sold);
}

.mmd-units-table tbody tr.is-preparing {
    background: var(--ak-status-preparing);
}

.mmd-units-table tbody tr.is-unknown {
    background: var(--ak-status-unknown);
}

.mmd-toggle-unavailable {
    background: #1d2327;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
}

.mmd-no-mobile-scroll .mmd-map-scroll,
.mmd-no-mobile-scroll .mmd-units-table-wrap {
    overflow-x: visible;
}

.mmd-no-mobile-scroll .mmd-front-map {
    min-width: 0;
}

.mmd-no-mobile-scroll .mmd-table-scroll-hint {
    display: none;
}

@media (max-width: 760px) {
    .mmd-scroll-hint,
    .mmd-table-scroll-hint {
        display: block;
    }

    .mmd-estate:not(.mmd-no-mobile-scroll) .mmd-front-map {
        max-width: none;
        min-width: var(--mmd-map-mobile-min-width, 900px);
        width: var(--mmd-map-mobile-min-width, 900px);
    }

    .mmd-estate {
        overflow-x: hidden;
    }

    .mmd-lightbox {
        align-items: stretch;
        padding: 0;
    }

    .mmd-lightbox-panel {
        max-height: 100vh;
        max-width: 100vw;
        padding: 20px;
    }

    .mmd-unit-details {
        grid-template-columns: 1fr 1fr;
    }

    .mmd-lightbox-header {
        grid-template-columns: 1fr;
    }

    .mmd-lightbox-price {
        text-align: left;
        white-space: normal;
    }

    .mmd-doc-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mmd-unit-details {
        grid-template-columns: 1fr;
    }
}

.mmd-price-history {
    margin-top: 24px;
}

.mmd-price-history h4 {
    font-size: 22px;
    margin: 0 0 12px;
}

.mmd-price-history-table-wrap {
    overflow-x: auto;
}

.mmd-price-history table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.mmd-price-history th,
.mmd-price-history td {
    border: 1px solid #e4e7eb;
    padding: 10px 12px;
    text-align: left;
}

.mmd-price-history th {
    background: #f6f7f7;
    font-weight: 700;
}
.mmd-front-area.is-table-hovered {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.55));
    opacity: 0.9;
    stroke-width: 1;
}

.mmd-front-label.is-table-hovered {
    transform: translate(-50%, -50%) scale(1.08);
}