.mk-house-ad {
    max-width: 840px;
    margin: 18px auto;
    min-width: 0;
}
.mk-house-ad-card {
    --ad-background: #eee3ff;
    --ad-ink: #211b45;
    --ad-button: #35257a;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ad-background);
    color: var(--ad-ink);
    border: 1px solid rgba(25, 27, 53, .15);
    text-decoration: none;
    text-align: left;
}
.mk-house-ad-android {
    --ad-background: #e4ffd6;
    --ad-ink: #123c28;
    --ad-button: #16533a;
}
a.mk-house-ad-card:hover { color: var(--ad-ink); text-decoration: none; }
.mk-house-ad-card:focus-visible { outline: 3px solid #1d69b6; outline-offset: 3px; }
.mk-house-ad-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 5px;
    padding: clamp(12px, 2vw, 25px);
    position: relative;
    z-index: 1;
    overflow-wrap: anywhere;
}
.mk-house-ad-brand { font-size: .8rem; font-weight: 750; }
.mk-house-ad-copy strong { font-size: clamp(1rem, 3vw, 1.8rem); line-height: 1.12; }
.mk-house-ad-description { font-size: clamp(.78rem, 1.5vw, .95rem); line-height: 1.35; }
.mk-house-ad-button {
    margin-top: 4px;
    border-radius: 6px;
    background: var(--ad-button);
    color: #fff;
    padding: 6px 8px;
    font-size: clamp(.73rem, 1.5vw, .88rem);
    font-weight: 700;
}
.mk-house-ad-art {
    position: relative;
    overflow: hidden;
    min-height: 138px;
}
.mk-house-ad-art img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 54%;
}
@media (prefers-reduced-motion: no-preference) {
    .mk-house-ad-playing .mk-house-ad-art img {
        animation: mk-house-ad-drift 4s ease-out both;
    }
    .mk-house-ad-playing .mk-house-ad-button {
        animation: mk-house-ad-enter 700ms 180ms ease-out both;
    }
}
@keyframes mk-house-ad-drift {
    from { transform: scale(1.14) translateX(2%); }
    to { transform: scale(1); }
}
@keyframes mk-house-ad-enter {
    from { transform: translateY(6px); opacity: .65; }
    to { transform: translateY(0); opacity: 1; }
}

.mk-house-ad-horizontal {
    width: 100%;
    max-width: none;
    margin: 0 0 12px;
}
.mk-house-ad-horizontal .mk-house-ad-copy {
    padding: 10px clamp(12px, 2vw, 22px);
}
.mk-house-ad-horizontal .mk-house-ad-art { min-height: 112px; }

.mk-house-ad-sidebar { margin: 0 0 12px; }
.mk-house-ad-sidebar .mk-house-ad-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.mk-house-ad-sidebar .mk-house-ad-copy { padding: 11px; }
.mk-house-ad-sidebar .mk-house-ad-copy strong { font-size: 1.06rem; }
.mk-house-ad-sidebar .mk-house-ad-description { font-size: .76rem; }
.mk-house-ad-sidebar .mk-house-ad-button { font-size: .74rem; }
.mk-house-ad-sidebar .mk-house-ad-art { min-height: 132px; }

.mk-house-ad-tile { margin: 0; width: 100%; }
.mk-house-ad-tile .mk-house-ad-card {
    grid-template: auto auto / minmax(0, 1fr);
    align-content: start;
    border-radius: 7px;
}
.mk-house-ad-tile .mk-house-ad-art {
    grid-area: 1 / 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
}
.mk-house-ad-tile .mk-house-ad-copy {
    display: contents;
}
.mk-house-ad-tile .mk-house-ad-brand {
    grid-area: 1 / 1;
    justify-self: start;
    align-self: start;
    z-index: 1;
    margin: 5px;
    border-radius: 4px;
    padding: 3px 5px;
    background: var(--ad-button);
    color: #fff;
    font-size: .69rem;
    line-height: 1;
}
.mk-house-ad-tile strong {
    grid-area: 2 / 1;
    min-width: 0;
    padding: 6px 7px 7px;
    font-size: .78rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@media (max-width: 850px) {
    .mk-house-ad-sidebar { display: none; }
}
@media (max-width: 600px) {
    .listing-detail-page .mk-house-ad-horizontal {
        order: 5;
        width: auto;
        margin: 0 8px;
    }
}
