body.activity-drawer-open {
    overflow: hidden;
}

#activityDetailsDrawerHost {
    position: fixed;
    top: var(--app-header-height, 88px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5000;
    pointer-events: none;
}

#activityDetailsDrawerHost:not([hidden]) {
    pointer-events: auto;
}

#activityDetailsDrawerHost[hidden] {
    display: none !important;
}

.activity-drawer-host {
    position: absolute;
    inset: 0;
}

.activity-drawer-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.activity-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* Same width as #trip-detail-drawer (_TripDetailDrawer.cshtml:
       w-full sm:w-[min(100%,56vw,768px)]), so every Details drawer matches. */
    width: 100%;
    max-width: 100%;
    background: var(--color-surface-page, #f7fafc);
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.22);
    transform: translateX(102%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.activity-drawer-host.is-open .activity-drawer-panel {
    transform: translateX(0);
}

.activity-drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--color-surface, #fff);
    color: var(--color-ink, #1f2a37);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}

.activity-drawer-scroll {
    padding: 12px 16px 24px;
}

.activity-drawer-scroll .max-w-listing {
    max-width: none;
}

@media (min-width: 640px) {
    .activity-drawer-panel {
        width: min(100%, 56vw, 768px);
    }
}
