/* ==========================================================================
   Блок «Что изменится вокруг {Район}» на странице property_area.
   Подключается только в контексте района (inc/mm-area-plans.php).
   Токены — из assets/css/mm-preview.css (:root).
   ========================================================================== */

.mm-ap {
    background: var(--mm-paper, #f7f3ec);
    border-bottom: 1px solid var(--mm-line, rgba(32, 36, 31, .14));
    font-family: var(--mm-sans, Inter, system-ui, sans-serif);
}

.mm-ap-in {
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(30px, 3.6vw, 52px) clamp(18px, 4vw, 64px) clamp(30px, 3.6vw, 48px);
}

/* ---------- Шапка блока ---------- */
.mm-ap-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin: 0 0 22px;
}

.mm-ap-eyebrow {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mm-gold, #ad8b51);
}

.mm-ap-h2 {
    margin: 0 0 12px;
    max-width: 720px;
    font-family: var(--mm-serif, "Cormorant Garamond", Georgia, serif);
    font-weight: 400;
    font-size: clamp(30px, 3.1vw, 42px);
    line-height: 1.06;
    color: var(--mm-ink, #20241f);
}

.mm-ap-sub {
    margin: 0;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--mm-muted, #6d7169);
}

.mm-ap-head-act { flex: 0 0 auto; }

.mm-ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    background: var(--mm-ink, #20241f);
    border: 1px solid var(--mm-ink, #20241f);
    border-radius: 4px;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mm-paper, #f7f3ec);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.mm-ap-btn:hover,
.mm-ap-btn:focus {
    background: var(--mm-gold, #ad8b51);
    border-color: var(--mm-gold, #ad8b51);
    color: #fff;
    text-decoration: none;
}

/* ---------- Сетка карточек ---------- */
.mm-ap-grid-wrap { }

.mm-ap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border: 1px solid rgba(32, 36, 31, .12);
    border-radius: 8px;
    overflow: hidden;
    background: var(--mm-surface, #fbfaf6);
}

.mm-ap-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 20px 18px;
    background: var(--mm-surface, #fbfaf6);
    box-shadow:
        1px 0 0 0 rgba(32, 36, 31, .12),
        0 1px 0 0 rgba(32, 36, 31, .12);
}
.mm-ap-card.is-hidden { display: none; }

/* ---------- Верх карточки ---------- */
.mm-ap-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.mm-ap-year {
    font-family: var(--mm-serif, "Cormorant Garamond", Georgia, serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.1;
    color: var(--mm-gold, #ad8b51);
}

.mm-ap-kind {
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 1px solid rgba(32, 36, 31, .16);
    border-radius: 999px;
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .04em;
    line-height: 1.2;
    color: var(--mm-muted, #6d7169);
    white-space: nowrap;
}

/* ---------- Статус-бейдж ---------- */
.mm-ap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 4px 10px;
    border: 1px solid rgba(32, 36, 31, .16);
    border-radius: 999px;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--mm-muted, #6d7169);
    background: transparent;
}
.mm-ap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.mm-ap-st-confirmed .mm-ap-badge {
    color: var(--mm-olive-2, #2e3d31);
    border-color: rgba(46, 61, 49, .38);
    background: rgba(46, 61, 49, .07);
}
.mm-ap-st-signal .mm-ap-badge {
    color: var(--mm-gold, #ad8b51);
    border-color: rgba(173, 139, 81, .45);
    background: rgba(173, 139, 81, .09);
}
.mm-ap-st-announced .mm-ap-badge {
    color: var(--mm-muted, #6d7169);
    border-color: rgba(32, 36, 31, .18);
    background: rgba(32, 36, 31, .04);
}
.mm-ap-st-phantom .mm-ap-badge {
    color: #8b8f88;
    border: 1px dashed rgba(32, 36, 31, .3);
    background: transparent;
}
.mm-ap-st-phantom .mm-ap-dot {
    background: transparent;
    width: auto;
    height: auto;
}
.mm-ap-st-phantom .mm-ap-dot::before {
    content: "\26A0";
    font-size: 11px;
    line-height: 1;
}
.mm-ap-st-phantom .mm-ap-year { color: #a8a49a; }

/* ---------- Текст ---------- */
.mm-ap-t {
    margin: 0 0 8px;
    font-family: var(--mm-sans, Inter, system-ui, sans-serif);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.32;
    color: var(--mm-ink, #20241f);
}

.mm-ap-d {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--mm-muted, #6d7169);
}

/* ---------- Низ карточки ---------- */
.mm-ap-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(32, 36, 31, .1);
}

.mm-ap-when,
.mm-ap-src,
.mm-ap-art {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.45;
}
.mm-ap-art { margin-bottom: 0; }
.mm-ap-src { margin-bottom: 6px; }

.mm-ap-when { color: var(--mm-muted, #6d7169); }
.mm-ap-src { color: var(--mm-gold, #ad8b51); }

.mm-ap-ico {
    flex: 0 0 auto;
    margin-top: 2px;
}

.mm-ap-src a {
    color: var(--mm-gold, #ad8b51);
    text-decoration: none;
    border-bottom: 1px solid rgba(173, 139, 81, .38);
}
.mm-ap-src a:hover,
.mm-ap-src a:focus {
    color: var(--mm-ink, #20241f);
    border-bottom-color: rgba(32, 36, 31, .4);
    text-decoration: none;
}

.mm-ap-art a {
    font-weight: 600;
    color: var(--mm-ink, #20241f);
    text-decoration: none;
    border-bottom: 1px solid rgba(32, 36, 31, .28);
}
.mm-ap-art a:hover,
.mm-ap-art a:focus {
    color: var(--mm-gold, #ad8b51);
    border-bottom-color: rgba(173, 139, 81, .5);
    text-decoration: none;
}

/* ---------- Показать все ---------- */
.mm-ap-more {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}
.mm-ap-more-btn {
    min-height: 46px;
    padding: 12px 26px;
    background: transparent;
    border: 1px solid rgba(32, 36, 31, .22);
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    color: var(--mm-ink, #20241f);
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}
.mm-ap-more-btn:hover,
.mm-ap-more-btn:focus {
    border-color: var(--mm-gold, #ad8b51);
    color: var(--mm-gold, #ad8b51);
}

/* ---------- Сноска ---------- */
.mm-ap-note {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--mm-muted, #6d7169);
    opacity: .85;
}

/* ---------- Планшет / мобильный ---------- */
@media (max-width: 1024px) {
    .mm-ap-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .mm-ap-head-act { width: 100%; }
    .mm-ap-btn { width: 100%; }
}

@media (max-width: 640px) {
    .mm-ap-in { padding-top: 26px; padding-bottom: 28px; }
    .mm-ap-grid { grid-template-columns: 1fr; }
    .mm-ap-card { padding: 18px 16px 16px; }
    .mm-ap-h2 { font-size: 28px; }
    .mm-ap-sub { font-size: 13.5px; }
    .mm-ap-src a,
    .mm-ap-art a {
        display: inline-block;
        min-height: 26px;
        padding: 9px 0;
    }
    .mm-ap-more-btn { width: 100%; }
}
