/* Независимые подсказки домов генплана. Стили Bootstrap .popover не используются. */
section.imap__project .plan-popover {
    position: absolute;
    z-index: 1060;
    display: block;
    box-sizing: border-box;
    min-width: 15rem;
    max-width: 276px;
    width: max-content;
    padding: 0;
    overflow: visible;
    border: 1px solid #e6e8f1;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1.42857143;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: break-word;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
section.imap__project .plan-popover[hidden] {
    display: none !important;
}
section.imap__project .plan-popover__inner {
    max-height: inherit;
    overflow-y: auto;
    border-radius: inherit;
}
section.imap__project .plan-popover__header {
    padding: 1rem 1.5rem;
}
section.imap__project .plan-popover__header:not(:last-child) {
    border-bottom: 1px solid #e6e8f1;
}
section.imap__project .plan-popover__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 1rem;
    line-height: 1.35;
}
section.imap__project .plan-popover__name {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: break-word;
}
section.imap__project .plan-popover__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 0.25rem;
    max-width: 58%;
}
section.imap__project .plan-popover__badge {
    display: inline-block;
    padding: 0.2em 0.6em 0.3em;
    border-radius: 0.25em;
    background-color: #f0ad4e;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: normal;
}
section.imap__project .plan-popover__status,
section.imap__project .plan-popover__date {
    font-size: 0.875rem;
    line-height: 1.35;
}
section.imap__project .plan-popover__heading + .plan-popover__status,
section.imap__project .plan-popover__heading + .plan-popover__date,
section.imap__project .plan-popover__status + .plan-popover__status,
section.imap__project .plan-popover__status + .plan-popover__date {
    margin-top: 0.25rem;
}
section.imap__project .plan-popover__status {
    color: #15ad66;
}
section.imap__project .plan-popover__date {
    color: #727272;
}
section.imap__project .plan-popover__offers {
    padding: 1rem 1.5rem;
}
section.imap__project .plan-popover__offers-label {
    margin-bottom: 0.625rem;
    font-weight: 600;
}
section.imap__project .plan-popover__offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
section.imap__project .plan-popover__offer + .plan-popover__offer {
    margin-top: 0.5rem;
}
section.imap__project .plan-popover__offer-name {
    margin-right: 1rem;
    color: #727272;
}
section.imap__project .plan-popover__address {
    padding: 0.75rem 1.5rem;
    color: #15ad66;
    font-size: 0.875rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}
section.imap__project .plan-popover__address--separated {
    border-top: 1px solid #e6e8f1;
}
/* Уголок, указывающий на дом: собственные классы, без Bootstrap .arrow. */
section.imap__project .plan-popover__arrow {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border: 9px solid transparent;
}
section.imap__project .plan-popover__arrow::after {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    content: "";
}
section.imap__project .plan-popover--left > .plan-popover__arrow {
    top: var(--plan-popover-arrow-position, 50%);
    right: -18px;
    margin-top: -9px;
    border-left-color: #e6e8f1;
}
section.imap__project .plan-popover--left > .plan-popover__arrow::after {
    left: -10px;
    top: -8px;
    border-left-color: #fff;
}
section.imap__project .plan-popover--right > .plan-popover__arrow {
    top: var(--plan-popover-arrow-position, 50%);
    left: -18px;
    margin-top: -9px;
    border-right-color: #e6e8f1;
}
section.imap__project .plan-popover--right > .plan-popover__arrow::after {
    left: -6px;
    top: -8px;
    border-right-color: #fff;
}
section.imap__project .plan-popover--top > .plan-popover__arrow {
    bottom: -18px;
    left: var(--plan-popover-arrow-position, 50%);
    margin-left: -9px;
    border-top-color: #e6e8f1;
}
section.imap__project .plan-popover--top > .plan-popover__arrow::after {
    left: -8px;
    top: -10px;
    border-top-color: #fff;
}
section.imap__project .plan-popover--bottom > .plan-popover__arrow {
    top: -18px;
    left: var(--plan-popover-arrow-position, 50%);
    margin-left: -9px;
    border-bottom-color: #e6e8f1;
}
section.imap__project .plan-popover--bottom > .plan-popover__arrow::after {
    left: -8px;
    top: -6px;
    border-bottom-color: #fff;
}
/* На десктопе подсказка только для просмотра: кнопка закрытия не нужна. */
section.imap__project .plan-popover__close {
    display: none;
}
@media (max-width: 47rem) {
    /* На телефоне подсказка доступна по тапу на регион без ссылки. */
    section.imap__project .plan-popover {
        min-width: 0;
        pointer-events: auto;
    }
    /* Не позволяем кнопке закрытия перекрывать первый заполненный блок. */
    section.imap__project .plan-popover__inner > :first-child {
        padding-right: 2.5rem;
    }
    section.imap__project .plan-popover__close {
        display: flex;
        position: absolute;
        top: 0.35rem;
        right: 0.35rem;
        z-index: 1;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        border: 0;
        border-radius: 0.25rem;
        background: transparent;
        color: #727272;
        font: normal 1.5rem/1 Arial, sans-serif;
        cursor: pointer;
    }
    section.imap__project .plan-popover__close:focus-visible {
        outline: 2px solid #15ad66;
        outline-offset: 1px;
    }
    section.imap__project a[data-plan-no-link="1"] polygon {
        cursor: pointer;
    }
}
