/* === MODAL SYSTEM === */
.pp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pp-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.pp-modal-content {
    position: relative;
    background: var(--bg-app);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    z-index: 1;
}

.pp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-main);
}

.pp-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.pp-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pp-modal-close:hover {
    background: var(--color-danger);
    color: white;
}

.pp-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Travel Cards */
.travel-card {
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.travel-card:last-child {
    margin-bottom: 0;
}

.travel-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.travel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.travel-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.travel-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.travel-copy {
    margin: 0.75rem 0;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.copy-row span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 60px;
}

.copy-row code {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg-app);
    border: 1px solid var(--border-main);
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-row button {
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 0.375rem;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 36px;
}

.copy-row button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .pp-modal {
        padding: 0;
        align-items: flex-end;
    }

    .pp-modal-content {
        border-radius: 1rem 1rem 0 0;
        max-height: 85vh;
    }

    .pp-modal-header,
    .pp-modal-body {
        padding: 1rem;
    }

    .pp-modal-header h3 {
        font-size: 1.1rem;
    }

    .travel-card {
        padding: 1rem;
    }

    .copy-row {
        flex-wrap: wrap;
    }

    .copy-row span {
        min-width: auto;
        width: 100%;
    }

    .copy-row code {
        flex: 1;
        min-width: 0;
    }
}
