/*
 * new-property.css — New Property Modal
 * Batch 21: Full-screen overlay, address input, strategy chips.
 * Zero hardcoded colors — CSS vars only.
 */

/* ============================================================
   OVERLAY
   ============================================================ */
#lf-new-property-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: npOverlayIn 0.18s ease;
}

#lf-new-property-modal.np-open {
    display: flex;
}

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

/* ============================================================
   CARD
   ============================================================ */
.np-card {
    width: 100%;
    max-width: 520px;
    background: rgba(6, 16, 30, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(0, 224, 255, 0.06);
    overflow: hidden;
    animation: npCardIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes npCardIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* Header */
.np-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.np-card__title {
    font-family: 'Exo 2', var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.np-card__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-base);
    transition: color 0.15s ease, background 0.15s ease;
}

.np-card__close:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

/* Body */
.np-card__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   ADDRESS INPUT
   ============================================================ */
.np-address-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--cyan-alpha-30);
    border-radius: var(--radius-md);
    padding: 0 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.np-address-wrap:focus-within {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.10);
}

.np-address-icon {
    color: var(--text-dim);
    font-size: var(--text-base);
    flex-shrink: 0;
}

#np-address-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--text-primary);
    padding: 16px 0;
    caret-color: var(--cyan-500);
    min-width: 0;
}

#np-address-input::placeholder {
    color: var(--text-dim);
    font-weight: var(--weight-light);
}

/* ============================================================
   STRATEGY SELECTOR
   ============================================================ */
.np-strategy-label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.np-strategy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.np-strategy-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.np-strategy-chip:hover {
    background: var(--glass-bg-hover);
    color: var(--text-secondary);
}

/* Active states per strategy */
.np-strategy-chip[data-strategy="fix-flip"].np-chip-active,
.np-strategy-chip[data-strategy="fix-flip"]:focus {
    background: var(--cyan-alpha-10);
    border-color: var(--cyan-500);
    color: var(--cyan-500);
    box-shadow: 0 0 0 2px rgba(0, 224, 255, 0.12);
}

.np-strategy-chip[data-strategy="wholesale"].np-chip-active {
    background: var(--gold-alpha-20);
    border-color: var(--gold-500);
    color: var(--gold-400);
    box-shadow: 0 0 0 2px rgba(253, 169, 41, 0.12);
}

.np-strategy-chip[data-strategy="rental"].np-chip-active {
    background: rgba(34, 197, 94, 0.10);
    border-color: #22c55e;
    color: #22c55e;
}

.np-strategy-chip[data-strategy="brrrr"].np-chip-active {
    background: var(--color-purple-bg, rgba(168, 85, 247, 0.10));
    border-color: var(--color-purple, #a855f7);
    color: var(--color-purple, #a855f7);
}

.np-strategy-chip[data-strategy="financing"].np-chip-active {
    background: rgba(59, 130, 246, 0.10);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ============================================================
   FOOTER BUTTONS
   ============================================================ */
.np-card__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.np-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: none;
    border: 1.5px solid var(--cyan-alpha-30);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--cyan-500);
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: var(--tracking-wide);
}

.np-btn-cancel:hover {
    background: var(--cyan-alpha-10);
    border-color: var(--cyan-500);
}

.np-btn-analyze {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    transition: var(--btn-transition);
}

.np-btn-analyze:hover {
    background: var(--btn-primary-bg-hover);
    box-shadow: var(--glow-gold-sm);
    transform: translateY(-1px);
}

.np-btn-analyze:active {
    transform: translateY(0);
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 600px) {
    #lf-new-property-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .np-card {
        max-width: 100%;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .np-card__title {
        font-size: var(--text-lg);
    }

    .np-strategy-chips {
        gap: 6px;
    }

    .np-strategy-chip {
        padding: 6px 12px;
        font-size: 11px;
    }
}
