/* Shared by the three tower views and five floor plans. */
.hh-tower-details {
    position: fixed;
    top: calc(68px + env(safe-area-inset-top, 0px));
    right: calc(48px + env(safe-area-inset-right, 0px));
    width: 300px;
    z-index: 10000;
    pointer-events: none;
    color: #292929;
    font-family: 'Outfit', Arial, sans-serif;
    text-align: left;
}
.hh-details-floor-page .hh-tower-details {
    top: calc(24px + env(safe-area-inset-top, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
}
.hh-tower-details, .hh-tower-details * { box-sizing: border-box; }
.hh-details-panel {
    position: relative;
    padding: 26px 26px 18px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-top: 3px solid #b5121b;
    border-radius: 4px 4px 20px 20px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 40px rgba(36, 24, 18, .13), 0 2px 6px rgba(36, 24, 18, .04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    user-select: text;
    max-height: calc(100dvh - 140px);
    overflow: auto;
    overscroll-behavior: contain;
}
.hh-details-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: #8a2229;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.hh-details-eyebrow > span { width: 17px; height: 1px; background: #b5121b; }
.hh-tower-details .hh-details-name {
    margin: 0 0 22px;
    color: #292929;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 39px;
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.hh-details-facts { margin: 0; }
.hh-details-fact {
    padding: 13px 0;
    border-top: 1px solid rgba(41, 41, 41, .1);
}
.hh-details-fact dt { margin: 0 0 5px; color: #777; font-size: 10px; letter-spacing: .07em; }
.hh-details-fact dd { margin: 0; color: #333; font-size: 22px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.hh-details-unit { display: inline-block; margin-left: 6px; font-size: 12px; color: #777; font-weight: 400; }
.hh-details-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(41, 41, 41, .1);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .2em;
    color: #999;
}
.hh-tower-details .hh-details-toggle { display: none; }
/* Reserve space below the card for the existing floor/availability controls. */
.hh-has-tower-details #hhFloorControls {
    top: var(--hh-details-controls-top, 366px);
    right: calc(24px + env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
    .hh-tower-details, .hh-details-floor-page .hh-tower-details {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        width: min(310px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
        z-index: 12000;
    }
    .hh-tower-details .hh-details-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid rgba(181, 18, 27, .2) !important;
        border-radius: 50% !important;
        background: #fff;
        color: #b5121b;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: color .2s ease, background .2s ease, transform .2s ease;
    }
    .hh-details-toggle:active { transform: scale(.94); }
    .hh-details-toggle:focus-visible { outline: 2px solid #b5121b; outline-offset: 4px; }
    .hh-details-info { font: italic 600 26px/1 Georgia, serif; }
    .hh-details-info, .hh-details-cross { grid-area: 1 / 1; transition: opacity .22s ease, transform .3s ease; }
    .hh-details-cross { opacity: 0; transform: rotate(-90deg) scale(.5); }
    .is-open .hh-details-toggle { background: #b5121b; color: #fff; }
    .is-open .hh-details-info { opacity: 0; transform: rotate(90deg) scale(.5); }
    .is-open .hh-details-cross { opacity: 1; transform: rotate(0) scale(1); }
    .hh-details-panel {
        margin-top: 58px;
        max-height: calc(100dvh - 94px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        padding: 24px 24px 18px;
        border-radius: 18px 4px 18px 18px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform-origin: top right;
        transform: translate(10px, -14px) scale(.84);
        clip-path: inset(0 0 100% 100% round 20px);
        transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .22s ease,
            clip-path .4s cubic-bezier(.22, 1, .36, 1), visibility 0s .4s;
    }
    .is-open .hh-details-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(0, 0) scale(1);
        clip-path: inset(0 0 0 0 round 0);
        transition-delay: 0s;
    }
    .hh-details-panel > * { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .3s ease; }
    .is-open .hh-details-panel > * { opacity: 1; transform: none; transition-delay: .1s; }
    .is-open .hh-details-panel > .hh-details-facts { transition-delay: .15s; }
    .is-open .hh-details-panel > .hh-details-footer { transition-delay: .2s; }
    .hh-has-tower-details #hhFloorControls {
        top: calc(72px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
    }
    .hh-details-open #hhFloorControls { visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hh-tower-details *, .hh-tower-details .hh-details-panel { transition: none !important; }
}
