/* Price-drop alert bell: property page, deal desk, My Deals. */

.pw-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pw-bell:hover {
    background: #f1f5f9;
    color: #1e3a5f;
}

.pw-bell:focus-visible {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
}

.pw-bell[aria-pressed="true"] {
    color: #1e3a5f;
}

.pw-bell[disabled] {
    opacity: 0.55;
    cursor: wait;
}

@media (hover: hover) {
    .pw-bell[data-pw-tip]:hover::after,
    .pw-bell[data-pw-tip]:focus-visible::after {
        content: attr(data-pw-tip);
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        z-index: 1080;
        width: max-content;
        max-width: 220px;
        padding: 6px 10px;
        border-radius: 6px;
        background: #0f172a;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 500;
        line-height: 1.35;
        white-space: normal;
        text-align: left;
        pointer-events: none;
    }
}

/* Touch: keep the icon small but make the tap target 44px. The negative
   margin stops the bigger target from making the head row taller. */
@media (hover: none), (max-width: 640px) {
    .pw-bell {
        width: 44px;
        height: 44px;
    }

    .dj-neg-watch-head .pw-bell,
    .property-facts-head .pw-bell {
        margin: -6px -10px -6px 0;
    }
}

.pw-ended {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.pw-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--app-tabbar-h, 0px) + 16px);
    z-index: 2000;
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    transform: translate(-50%, 12px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.pw-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pw-toast--error {
    background: #991b1b;
}

/* Deal desk: label left, bell right. */
.dj-neg-watch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 1rem 0 0.25rem;
}

.dj-neg-watch-head .dj-neg-label {
    margin: 0;
}

/* My Deals selection bar: icon button beside "Show in...". */
.nb-bulk-actions-bar .nb-bulk-watch {
    position: relative;
    justify-content: center;
    min-width: 38px;
}

.nb-bulk-actions-bar .nb-bulk-watch[hidden] {
    display: none;
}

.nb-bulk-watch-label {
    display: none;
    margin-left: 6px;
}

@media (hover: hover) {
    .nb-bulk-watch[data-pw-tip]:hover::after,
    .nb-bulk-watch[data-pw-tip]:focus-visible::after {
        content: attr(data-pw-tip);
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        z-index: 1080;
        width: max-content;
        max-width: 220px;
        padding: 6px 10px;
        border-radius: 6px;
        background: #0f172a;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 500;
        line-height: 1.35;
        white-space: normal;
        text-align: left;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
        transform: translateX(-50%);
        pointer-events: none;
    }
}

/* Phones have no tooltip, so the button spells out what it does. */
@media (max-width: 640px) {
    .nb-bulk-actions-bar .nb-bulk-watch {
        grid-column: 1 / -1;
    }

    .nb-bulk-watch-label {
        display: inline;
    }
}

/* My Deals portrait cards (mobile): bell sits outside the card link. */
.nb-portrait-card--watch {
    position: relative;
}

.nb-portrait-card--watch > .pw-bell {
    position: absolute;
    top: 0;
    right: 0;
}

.nb-portrait-card--watch .nb-portrait-address {
    padding-right: 36px;
}

/* Property page price card head row. */
.property-facts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
