/* hg-building-map.css - the numbered building map (App_Code/Landing/BuildingMap.cs, hg-building-map.js). Nov 2026.
   Linked by BuildingMap.cs right before its markup, on complex rentals pages (the "Find your building" tile floated
   beside the insider tips, a "See Building N on the map" link on each rental card) and on unit pages (the
   "Your building" card in the Location section, styled in hg-details.css .hgd-bldg). Both open the full-screen
   viewer that spotlights one building on the aerial. Moved here from hg-landing.css on Nov 26 2026. */

.bm-tile {
    float: right;
    width: 300px;
    margin: 16px 0 12px 26px;
    padding: 0;
    border: 0;
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #1b2a2a;
    box-shadow: 0 1px 2px rgba(60,50,30,0.10), 0 8px 20px -8px rgba(60,50,30,0.35);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bm-tile-img {
    display: block;
    overflow: hidden;
}

    .bm-tile-img img {
        display: block;
        width: 100%;
        height: 196px;
        object-fit: cover;
        transform: scale(1.6);
        transition: transform 0.5s ease;
    }

.bm-tile:hover .bm-tile-img img, .bm-tile:focus .bm-tile-img img {
    transform: scale(1.68);
}

.bm-tile-zoom {
    position: absolute;
    top: 9px;
    right: 9px;
    background: rgba(255,253,245,0.94);
    color: #2f6f69;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}

.bm-tile-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 13px 11px 13px;
    background: linear-gradient(rgba(10,20,20,0), rgba(10,20,20,0.8));
    color: #fff;
    font-size: 12.5px;
    line-height: 1.35;
}

    .bm-tile-cap b {
        display: block;
        font: 600 17px/1.2 'Fraunces', Georgia, serif;
        margin-bottom: 2px;
    }

/* "building map" inside a tip, and the card link: buttons that look like links */
.bm-open, .bm-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #2f6f69;
    cursor: pointer;
}

.bm-open {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(47,111,105,0.4);
    text-underline-offset: 2px;
}

.bm-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .bm-link .glyphicon {
        font-size: 11px;
        margin-right: 4px;
        top: 1px;
    }

.bm-open:hover, .bm-open:focus, .bm-link:hover, .bm-link:focus {
    color: #1f4f4a;
    text-decoration: underline;
}

/* Viewer */
.bm-ov {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: rgba(14,22,24,0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: bmFade 0.2s ease;
}

.bm-panel {
    background: #fffdf5;
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    color: #3f3a2d;
}

.bm-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 10px 18px;
}

.bm-kick {
    color: #c0782e;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
}

.bm-title {
    font: 600 21px/1.15 'Fraunces', Georgia, serif;
    color: #2f4a46;
}

.bm-hint {
    color: #756a53;
    font-size: 13px;
    margin-left: auto;
}

.bm-x {
    border: 0;
    background: #f1eadb;
    color: #3f3a2d;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 34px;
    padding: 0;
    flex: none;
    margin-left: auto;
}

    .bm-x:hover, .bm-x:focus {
        background: #e6dcc4;
    }

.bm-hint + .bm-x {
    margin-left: 0;
}

.bm-stage {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #1b2a2a;
}

.bm-frame {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

    .bm-frame img {
        display: block;
        max-width: none;
    }

.bm-spot {
    position: absolute;
    width: var(--bm-d, 100px);
    height: var(--bm-d, 100px);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3000px rgba(8,14,16,0.5);
    border: 3px solid #fff;
    pointer-events: none;
    transition: left 0.4s ease, top 0.4s ease;
}

    .bm-spot::after {
        content: '';
        position: absolute;
        top: -9px;
        right: -9px;
        bottom: -9px;
        left: -9px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,0.85);
        animation: bmPulse 1.8s ease-out infinite;
    }

@keyframes bmPulse {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes bmFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bm-tag {
    position: absolute;
    transform: translate(-50%, -100%);
    background: #fffdf5;
    color: #3f3a2d;
    border-radius: 10px;
    padding: 7px 12px 8px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.4s ease, top 0.4s ease;
    text-align: center;
}

    .bm-tag.bm-below {
        transform: translate(-50%, 0);
    }

    .bm-tag b {
        display: block;
        font: 600 16px/1.2 'Fraunces', Georgia, serif;
        color: #2f4a46;
    }

    .bm-tag span {
        font-size: 12.5px;
        color: #756a53;
    }

    .bm-tag .bm-tag-ov {
        display: block;
        color: #2f6f69;
        font-weight: 600;
    }

    /* e.g. "Just past the right edge of the photo, ..." for a building outside the photo */
    .bm-tag .bm-tag-note {
        display: block;
        max-width: 230px;
        margin: 3px auto 0 auto;
        white-space: normal;
        font-style: italic;
        line-height: 1.3;
    }

.bm-hot {
    position: absolute;
    width: 2.6%;
    aspect-ratio: 1;
    padding: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

    .bm-hot:hover, .bm-hot:focus {
        border-color: #fff;
        background: rgba(255,255,255,0.18);
        outline: 0;
    }

.bm-foot {
    padding: 10px 18px 13px 18px;
    font-size: 14px;
    border-top: 1px solid rgba(168,154,133,0.3);
}

@media (min-width: 768px) and (max-width: 991px) {
    .bm-tile {
        width: 240px;
    }

    .bm-tile-img img {
        height: 160px;
    }
}

@media (max-width: 767px) {
    .bm-tile {
        float: none;
        width: 100%;
        margin: 12px 0 2px 0;
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border: 1px solid rgba(168,154,133,0.45);
        box-shadow: none;
        padding: 6px;
    }

    .bm-tile-img {
        width: 112px;
        height: 70px;
        border-radius: 7px;
        flex: none;
    }

        .bm-tile-img img {
            width: 112px;
            height: 70px;
        }

    .bm-tile-cap {
        position: static;
        background: none;
        color: #3f3a2d;
        padding: 0;
        font-size: 12.5px;
    }

        .bm-tile-cap b {
            color: #2f4a46;
            font-size: 16px;
        }

    .bm-tile-zoom {
        display: none;
    }

    .bm-link {
        display: block;
        margin: 3px 0 0 0;
    }

    .bm-ov {
        padding: 0;
        align-items: stretch;
    }

    .bm-panel {
        border-radius: 0;
        width: 100%;
        justify-content: center;
    }

    .bm-hint {
        display: none;
    }

    .bm-hint + .bm-x {
        margin-left: auto;
    }

    .bm-hot {
        width: 3.6%;
    }

    .bm-foot {
        font-size: 13.5px;
    }
}
